Exam 7: Object-Oriented Programming

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When an object is created it is ____.

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
4.8/5
(40)

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

(Multiple Choice)
4.7/5
(38)

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

(True/False)
4.8/5
(39)

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.

(Multiple Choice)
5.0/5
(41)

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

(Multiple Choice)
4.8/5
(41)

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

(Multiple Choice)
4.8/5
(38)

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:

(Multiple Choice)
4.8/5
(43)

Usually,data fields are public and methods are private.

(True/False)
4.8/5
(44)

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

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.7/5
(38)

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

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
4.7/5
(35)

____ methods change values within an object.

(Multiple Choice)
4.7/5
(37)

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

(Multiple Choice)
4.9/5
(33)

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

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
4.8/5
(41)

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

(Multiple Choice)
4.8/5
(28)

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

(Multiple Choice)
4.8/5
(39)

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

(Multiple Choice)
4.9/5
(39)
Showing 21 - 40 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)