Filters
Question type

Study Flashcards

Object-oriented programmers usually specify that their data fields will have ____.


A) public access
B) private access
C) inheritance
D) signatures

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

In some languages,a derived class can have more than one parent.This capability is called ____.


A) multiple inheritance
B) multiple heritage
C) multiplicity
D) multiple lineage

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Case 1 You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode. -Identify an object that might belong to the Automobile class:


A) string name
B) num price
C) Toyota
D) jet

E) C) and D)
F) A) and D)

Correct Answer

verifed

verified

An ____ is a term that defines the type of access that outside classes will have to the attribute or method.


A) access specifier
B) accessor
C) access interface
D) accessor method

E) C) and D)
F) None of the above

Correct Answer

verifed

verified

When an object is created it is ____.


A) instantiatied
B) invoked
C) involved
D) instanced

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

Case 1 You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode. -The following pseudocode is not working correctly.Which answer shows the corrected code? class Product Fields String name Methods Void setName(string prodName) Name = prodName Return String getName() Return EndClass


A) string getName()
Return name
B) void setName(prodName)
C) string getName(prodName)
Return name
D) string getName(prodName)
Return

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

A ____ definition is just an abstract description of what an object will be like if any objects are ever actually instantiated.


A) class
B) prototype
C) accessor
D) signature

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

Usually,data fields are public and methods are private.

A) True
B) False

Correct Answer

verifed

verified

An ____ of a class is an existing object of a class.


A) example
B) occurrence
C) instance
D) illustration

E) A) and C)
F) A) and D)

Correct Answer

verifed

verified

____ methods change values within an object.


A) Transformer
B) Change
C) Mutator
D) Get

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

According to the principle of ____,data fields should usually be private,and a client application should be able to access them only through the public interfaces,that is,through the class's public methods.


A) function hiding
B) data hiding
C) data encapsulation
D) data definition

E) C) and D)
F) A) and B)

Correct Answer

verifed

verified

Case 1 You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode. -What is NOT true about the following pseudocode? class Salesperson inheritsFrom Employee


A) Every Salesperson has all the attributes of an Employee
B) Salesperson is a derived class
C) Every Salesperson object can use all Employee methods
D) Salesperson is a base class

E) B) and C)
F) A) and B)

Correct Answer

verifed

verified

____ methods assign values to the fields of any objects created from the class.


A) Accessor
B) Set
C) Change
D) Get

E) A) and D)
F) All of the above

Correct Answer

verifed

verified

The term ____ implies that the type's data can be accessed only through methods.


A) abstract type
B) data type
C) abstract data type
D) object data type

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

Case 1 You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode. -The following pseudocode is not working correctly.Which answer shows the corrected code? start Declarations Product myApple MyApple.setName = "Gala" Output "My favorite apple is ",myApple.getName() Stop


A) Product.setName = "Gala"
B) myApple.setName("Gala")
C) Product = "Gala"
D) Product.setName("Gala")

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

A program or class that instantiates objects of another prewritten class is a ____ or class user.


A) class slave
B) class object
C) class master
D) class client

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

In object-oriented terminology,a(n) ____ is one concrete example of a class.


A) entity
B) interface
C) method
D) object

E) None of the above
F) A) and D)

Correct Answer

verifed

verified

Because the plus symbol (+) has diverse meanings based on context,it is ____.


A) overdefined
B) defined
C) polyclassist
D) polymorphic

E) C) and D)
F) A) and B)

Correct Answer

verifed

verified

When you create a new class using inheritance,you ____ the existing class.


A) stretch
B) expand
C) extend
D) broaden

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

When you program in object-oriented languages,you frequently create classes from which objects will be instantiated.

A) True
B) False

Correct Answer

verifed

verified

Showing 21 - 40 of 50

Related Exams

Show Answer