Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CSE 205 Final Study-Guide Questions With 100% Verified Solutions | Updated | GRADED A+

Beoordeling
-
Verkocht
-
Pagina's
19
Cijfer
A+
Geüpload op
02-05-2026
Geschreven in
2025/2026

CSE 205 Final Study-Guide Questions With 100% Verified Solutions | Updated | GRADED A+ Encapsulation is about assigning responsibilities to objects. - ANSWER -True Which object oriented element is used to define "is a" relationships? - ANSWER Inheritence A name defined in an inner scope is not available outside that block. - ANSWER True The "inherits" keyword is used to specify inheritance in Java. - ANSWER -False, (extends keyword is used to specify inheritance in java.) The Java keyword throw is used to catch an exception. - ANSWER -False Any recursive algorithm can be written iteratively. - ANSWER -True The index of the last element of an array with a size of 5 elements is _____. - ANSWER -4 We can use a variable as an index expression to access an array element in Java. - ANSWER -True To help us collect information from the user through the keyboard in Java, we use a(n) _____. - ANSWER -Scanner Java Boolean literal values are expressed in all lowercase. - ANSWER -True Which of the following would have a exponential Big O run-time complexity? Compute the area of a circle given the radius Determine if two logical statements are equivalent by brute force Find the phone number in a phone book, given a person's name Delete a value from an ArrayList none of these - ANSWER -Determine if two logical statements are equivalent by brute force Which of the following would have a logarithmic Big O run-time complexity? Determine if two logical statements are equivalent by brute force Compute the area of a circle given the radius Delete a value from an ArrayList Find the phone number in a phone book, given a person's name none of these - ANSWER -Delete a value from an ArrayList Which of the following run-time complexity orders is best? O(log n) Logarithmic time none of these O(n) Linear time O(2^n) Exponential - ANSWER -O(log n) Logarithmic time Which of the following run-time complexity orders is worst? O(n) Linear time O(log n) Logarithmic time none of these O(1) Constant time - ANSWER -O(n) Linear time A name defined in an outer scope is not available in all blocks nested inside that scope. - ANSWER -True Which keyword is used in Java to create an object? none of these create build make new - ANSWER -new Which object oriented element is best defined as "objects best viewed as packages of responsibility"? Data Hiding Message Passing Encapsulation Polymorphism Inheritance none of these Composition - ANSWER -Encapsulation We can more easily debug a program when the responsibilities are well encapsulated. - ANSWER -True A Queue is a First In First Out (FIFO) data structure. - ANSWER -True The finally block of a try/catch structure will execute if no exception occurs in the try block. - ANSWER -True In a Binary Search Tree, all elements below a given a node have values that are that node's value. - ANSWER -False Stacks can only be implemented as LinkedLists, while Queues can only be implemented as ArrayLists. - ANSWER -False

Meer zien Lees minder
Instelling
CSE 205
Vak
CSE 205

Voorbeeld van de inhoud

CSE 205 Final Study-Guide Questions
With 100% Verified Solutions |
Updated | GRADED A+

Encapsulation is about assigning responsibilities to objects. - ANSWER -True

Which object oriented element is used to define "is a" relationships? - ANSWER -
Inheritence

A name defined in an inner scope is not available outside that block. - ANSWER -
True

The "inherits" keyword is used to specify inheritance in Java. - ANSWER -False,
(extends keyword is used to specify inheritance in java.)

The Java keyword throw is used to catch an exception. - ANSWER -False

Any recursive algorithm can be written iteratively. - ANSWER -True

The index of the last element of an array with a size of 5 elements is _____. -
ANSWER -4

We can use a variable as an index expression to access an array element in Java. -
ANSWER -True

To help us collect information from the user through the keyboard in Java, we use
a(n) _____. - ANSWER -Scanner

Java Boolean literal values are expressed in all lowercase. - ANSWER -True

Which of the following would have a exponential Big O run-time complexity?

Compute the area of a circle given the radius
Determine if two logical statements are equivalent by brute force
Find the phone number in a phone book, given a person's name
Delete a value from an ArrayList

,none of these - ANSWER -Determine if two logical statements are equivalent by
brute force

Which of the following would have a logarithmic Big O run-time complexity?

Determine if two logical statements are equivalent by brute force
Compute the area of a circle given the radius
Delete a value from an ArrayList
Find the phone number in a phone book, given a person's name
none of these - ANSWER -Delete a value from an ArrayList

Which of the following run-time complexity orders is best?

O(log n) Logarithmic time
none of these
O(n) Linear time
O(2^n) Exponential - ANSWER -O(log n) Logarithmic time

Which of the following run-time complexity orders is worst?

O(n) Linear time
O(log n) Logarithmic time
none of these
O(1) Constant time - ANSWER -O(n) Linear time

A name defined in an outer scope is not available in all blocks nested inside that
scope. - ANSWER -True

Which keyword is used in Java to create an object?
none of these
create
build
make
new - ANSWER -new

Which object oriented element is best defined as "objects best viewed as packages
of responsibility"?
Data Hiding
Message Passing
Encapsulation

, Polymorphism
Inheritance
none of these
Composition - ANSWER -Encapsulation

We can more easily debug a program when the responsibilities are well
encapsulated. - ANSWER -True

A Queue is a First In First Out (FIFO) data structure. - ANSWER -True

The finally block of a try/catch structure will execute if no exception occurs in the
try block. - ANSWER -True

In a Binary Search Tree, all elements below a given a node have values that are <
that node's value. - ANSWER -False

Stacks can only be implemented as LinkedLists, while Queues can only be
implemented as ArrayLists. - ANSWER -False

In a Binary Search Tree, all elements to one side of a node are < that node's value,
and all elements to the other side are > that node's value. - ANSWER -True

The finally block of a try/catch structure will execute if an exception occurs in the
try block. - ANSWER -True

Which of the following run-time complexity orders is best?
O(log n) Logarithmic time
none of these
O(2^n) Exponential
O(n) Linear time - ANSWER -none of these

Which of the following would have a quadratic Big O run-time complexity?
none of these
Bubble Sort an unsorted array
Insert a value into an ArrayList
Efficiently find the phone number in a phone book, given a person's name
Determine if a binary number is even or odd - ANSWER -Bubble sort

Which of the following would have a quadratic Big O run-time complexity?
Efficiently find the definition of a given word in a dictionary

Geschreven voor

Instelling
CSE 205
Vak
CSE 205

Documentinformatie

Geüpload op
2 mei 2026
Aantal pagina's
19
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

€10,65
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
TheExamMaestro Teachme2-tutor
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
144
Lid sinds
2 jaar
Aantal volgers
5
Documenten
3368
Laatst verkocht
3 dagen geleden
Exam Vault

Exam Vault is your trusted destination for high-quality exam materials and study resources. We provide a wide rage of tests and prep guides to help you succeed, whether you're preparing for academic exams, certifications, or professional assessments

3,6

18 beoordelingen

5
9
4
2
3
2
2
0
1
5

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen