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
Document preview thumbnail
Voorbeeld 2 van de 10 pagina's
Tentamen (uitwerkingen)

Object Oriented Programming Exam 1 UPDATED Exam Questions and CORRECT Answers

Document preview thumbnail
Voorbeeld 2 van de 10 pagina's

Object Oriented Programming Exam 1 UPDATED Exam Questions and CORRECT Answers What are the characteristics of good software? - CORRECT ANSWER Flexible/Adaptable Extendable Reusable - Robust/Reliable To design a software with all of the characteristics of good software, what principles do you need to utilize? - CORRECT ANSWER - Object-Oriented

Voorbeeld van de inhoud

Object Oriented Programming Exam 1
UPDATED Exam Questions and CORRECT
Answers
What are the characteristics of good software? - CORRECT ANSWER - Robust/Reliable
Flexible/Adaptable
Extendable
Reusable


To design a software with all of the characteristics of good software, what principles do you need
to utilize? - CORRECT ANSWER - Object-Oriented


What is it called when you have 2+ functions of the same name but different parameters? -
CORRECT ANSWER - Overloading functions



What do you call the input of a function? - CORRECT ANSWER - Parameters


What is a blueprint for representing various concepts / is abstract? - CORRECT
ANSWER - Classes



What is an instance of a class / is concrete? - CORRECT ANSWER - Objects


What do we use to initialize the state of a class that has the same name as the class and no return
type? - CORRECT ANSWER - Constructor


When no constructor is provided, the compiler automatically creates a constructor with no
argument. What is this constructor called? - CORRECT ANSWER - Default constructor



How many bytes do character types take? - CORRECT ANSWER -4

, How many bytes do int types take? - CORRECT ANSWER -4



How many bytes do long types take? - CORRECT ANSWER -8



How many bits do bytes contain? - CORRECT ANSWER -8



What would int* p = &i store? - CORRECT ANSWER - The address of i


What would int* r = p + 1 store where the value stored in p is 100 and the address of p is 112? -
CORRECT ANSWER - 104 (adds the address of p (100) and 1 (4 bytes) = 104)



What would int l = *r store? - CORRECT ANSWER - The value at the address stored in r


What can we use to fetch the value at the address that a pointer is pointing to (ex: int x = *y) -
CORRECT ANSWER - Dereferencing a pointer



What data types are stored in stack memory? - CORRECT ANSWER - Primitive types
(int, float, double, boolean)


What data types are stored in heap memory? - CORRECT ANSWER - User defined types /
Object references


What type of function calls itself? - CORRECT ANSWER - Recursive function


Whenever a function is called, memory will be allocated in the stack for the variables. What
happens to the memory when the method returns? - CORRECT ANSWER - The memory
gets deleted

Documentinformatie

Geüpload op
17 april 2025
Aantal pagina's
10
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
$12.49

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

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.
STANFORDGRADESS
4.0
(238)
Verkocht
1590
Volgers
108
Items
115164
Laatst verkocht
9 uur geleden




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 Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het 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