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
Exam (elaborations)

Object Oriented Programming - Exam 1 Questions With Correct Answers.

Rating
-
Sold
-
Pages
26
Grade
A+
Uploaded on
15-01-2025
Written in
2024/2025

Object Oriented Programming - Exam 1 Questions With Correct Answers. C. State and behavior - AnswerReal world objects share which two characteristics? a. Inheritance and polymorphism b. Classes and interfaces c. State and behavior d. Times and dates D. Member Variables - AnswerIn object oriented programming how is state represented? a. Functions b. Methods c. Global variables d. Member Variables C. Serve as the blueprint of how objects will be created - AnswerWhat 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 A. True - AnswerBased 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 ©BRIGHSTARS 2024/2025 ALL RIGHTS RESERVED. 2 | P a g e B. False - AnswerWhen 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 A. True - AnswerInformation hiding is accomplished via encapsulation a. True b. False D. Dog puppy = new Dog(); - AnswerWhich 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(); C. puppy - AnswerWhich part of the following statement is the instance or the created object? Dog puppy = new Dog(); a. Dog(); b. new c. puppy d. Dog B. Constructor - AnswerIn the following statement, Dog puppy = new Dog();, what is "Dog()" called? a. Maker b. Constructor

Show more Read less
Institution
Object Oriented Programming
Course
Object Oriented Programming

Content preview

©BRIGHSTARS 2024/2025 ALL RIGHTS RESERVED.




Object Oriented Programming - Exam 1
Questions With Correct Answers.

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

D. Member Variables - Answer✔In object oriented programming how is state represented?


a. Functions
b. Methods
c. Global variables
d. Member Variables

C. Serve as the blueprint of how objects will be created - Answer✔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

A. True - Answer✔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

1|Page

, ©BRIGHSTARS 2024/2025 ALL RIGHTS RESERVED.

B. False - Answer✔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

A. True - Answer✔Information hiding is accomplished via encapsulation


a. True
b. False

D. Dog puppy = new Dog(); - Answer✔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();

C. puppy - Answer✔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

B. Constructor - Answer✔In the following statement, Dog puppy = new Dog();, what is "Dog()"
called?


a. Maker
b. Constructor

2|Page

, ©BRIGHSTARS 2024/2025 ALL RIGHTS RESERVED.

c. Creator
d. malloc
1. Superclass

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

A. 1 - Answer✔How many superclasses can a subclass have?


a. 1
b. 2
c. 3
d. unlimited

B. unlimited - Answer✔How many subclasses can a superclass have?


a. 3
b. unlimited
c. 2
d. 1

B. Access level modifier - Answer✔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



3|Page

Written for

Institution
Object Oriented Programming
Course
Object Oriented Programming

Document information

Uploaded on
January 15, 2025
Number of pages
26
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$11.99
Get access to the full document:

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

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Brightstars Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
248
Member since
1 year
Number of followers
7
Documents
13552
Last sold
1 day ago
VERIFIED EXAMS AND STUDY GUIDES.

Here, you will find Study Notes, Exam answer packs 100% Guarenteed success.

3.2

36 reviews

5
11
4
5
3
8
2
4
1
8

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