Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 12 pages
Exam (elaborations)

CSE 2221 OSU Final Terms Questions with 100% Correct Answers

Document preview thumbnail
Preview 2 out of 12 pages

CSE 2221 OSU Final Terms Questions with 100% Correct AnswersCSE 2221 OSU Final Terms Questions with 100% Correct AnswersCSE 2221 OSU Final Terms Questions with 100% Correct AnswersCSE 2221 OSU Final Terms Questions with 100% Correct AnswersCSE 2221 OSU Final Terms Questions with 100% Correct AnswersCSE 2221 OSU Final Terms Questions with 100% Correct Answers

Content preview

1




CSE 2221 OSU Final Terms Questions
with 100% Correct Answers
generic/parameterized type Correct Answer: this is basically like the type of
what it is:


ex//


Queue<Integer> qi = new Queue1L<>()


in this case: Queue is the generic/parameterized type


FIFO Correct Answer: first-in, first-out is how you manipulate the strings of entries
in a QUEUE


string (math) Correct Answer: a mathematical model called mathematical
strings that is a series of zero or more entries of any other mathematical type say
T,


T is the entry type and this math type is a string of T




** there can be duplicates


** order of strings is important


formal type parameter ("T") Correct Answer: when creating a queue you are
originally creating a queue of type T (the formal type parameter) but later on
you choose the type when you parameterize it!

:
vPretest - Stuvia US

, 2




actual/argument type Correct Answer: the actual type is the type of your
queue instead of the default type "T"


wrapper type Correct Answer: an immmutable type that is basically a reference
to a primitive type: it looks diff:


ie


Integer - int


Character - char


Boolean - boolean


Double - double


diamond operator Correct Answer: when you first create a Queue you dont
have to specify twice the type of the queue(meaning you don't have to say:
Queue<Integer> qi = new Queue1L<Integer>();


you can just say: Queue<Integer> qi = new Queueu1L<>();


the diamond operator is <> and it tells you that you're still using the actual type
of Integer


auto-boxing/unboxing Correct Answer: a feature for wrapper types that lets it
be a lot more fluid and be able to be used almost as if they were a primitive
type




:

vPretest - Stuvia US

Document information

Uploaded on
October 30, 2025
Number of pages
12
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
7
Followers
0
Items
4111
Last sold
2 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions