100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten
logo-home
OBJECT ORIENTED PROGRAMMING - EXAM 1 QUESTIONS WITH COMPLETE SOLUTIONS!! $23.99
In winkelwagen

Tentamen (uitwerkingen)

OBJECT ORIENTED PROGRAMMING - EXAM 1 QUESTIONS WITH COMPLETE SOLUTIONS!!

 0 keer verkocht
  • Vak
  • OOP
  • Instelling
  • OOP

OBJECT ORIENTED PROGRAMMING - EXAM 1 QUESTIONS WITH COMPLETE SOLUTIONS!!

Voorbeeld 4 van de 32  pagina's

  • 23 november 2024
  • 32
  • 2024/2025
  • Tentamen (uitwerkingen)
  • Vragen en antwoorden
  • OOP
  • OOP
avatar-seller
EvaTee
OBJECT ORIENTED PROGRAMMING - EXAM 1
QUESTIONS WITH COMPLETE SOLUTIONS!!


Real world objects share which two characteristics?
a. Inheritance and polymorphism
b. Classes and interfaces
c. State and behavior
d. Times and dates Answer - C. State and behavior


In object oriented programming how is state represented?


a. Functions
b. Methods
c. Global variables
d. Member Variables Answer - D. Member Variables


What is the purpose of a class in object oriented programming?


a. To create a data structure for functions
b. To create an interface for implementation
c. Serve as the blueprint of how objects will be created
d. To create a data structure for variables Answer - C. Serve as the blueprint of
how objects will be created

,Based on best practices and how the Java API Library is implemented a class
should start with a capital letter (i.e. Dog versus dog).


a. True
b. False Answer - A. True


When defining a class, member variables are included within the class's
open/close curly braces (i.e. {}) and methods are defined outside of the
open/close curly braces.


a. True
b. False Answer - B. False


Information hiding is accomplished via encapsulation


a. True
b. False Answer - A. True


Which of the following is the correct code for instantiating an instance of class
Dog?


a. Dog puppy = Dog;
b. Dog puppy;
c. Dog puppy = Dog();
d. Dog puppy = new Dog(); Answer - D. Dog puppy = new Dog();


Which part of the following statement is the instance or the created object?

,Dog puppy = new Dog();


a. Dog();
b. new
c. puppy
d. Dog Answer - C. puppy


In the following statement, Dog puppy = new Dog();, what is "Dog()" called?


a. Maker
b. Constructor
c. Creator
d. malloc Answer - B. Constructor


Regarding inheritance the existing class is called ____1____ and the new class
is called ____2____. Answer - 1. Superclass
2. Subclass


How many superclasses can a subclass have?


a. 1
b. 2
c. 3
d. unlimited Answer - A. 1


How many subclasses can a superclass have?

, a. 3
b. unlimited
c. 2
d. 1 Answer - B. unlimited


Given the class definition


public class KeyTerminology{}


what is "public" called?


a. Membership level
b. Access level modifier
c. Data type of class
d. Not relevant Answer - B. Access level modifier


What type of implementation behavior is the following class definition doing?


public class SubclassDog extends Dog{}


a. Interface
b. Inheritance
c. Extending
d. Implemenation Answer - B. Inheritance

Dit zijn jouw voordelen als je samenvattingen koopt bij Stuvia:

Bewezen kwaliteit door reviews

Bewezen kwaliteit door reviews

Studenten hebben al meer dan 850.000 samenvattingen beoordeeld. Zo weet jij zeker dat je de beste keuze maakt!

In een paar klikken geregeld

In een paar klikken geregeld

Geen gedoe — betaal gewoon eenmalig met iDeal, Bancontact of creditcard en je bent klaar. Geen abonnement nodig.

Focus op de essentie

Focus op de essentie

Studenten maken samenvattingen voor studenten. Dat betekent: actuele inhoud waar jij écht wat aan hebt. Geen overbodige details!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper EvaTee. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor $23.99. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 64670 samenvattingen verkocht

Opgericht in 2010, al 15 jaar dé plek om samenvattingen te kopen

Start met verkopen
$23.99
  • (0)
In winkelwagen
Toegevoegd