A+ Answers


Question 1.1. (TCO 9) What is capable of performing several tasks and allows the user to select the task? (Points : 3)

Menu driven programs

Interactive programs

Graphical programs

User-friendly programs



Question 2.2. (TCO 9) When the user makes a selection from the main menu in a multiple-level menu, a _____ might be displayed next. (Points : 3)

menu

main menu

grand menu

submenu



Question 3.3. (TCO 9) What type of programming is centered on the procedures or actions that take place in a program? (Points : 3)

Object-oriented

Interactive

Procedural

Menu-driven



Question 4.4. (TCO 9) The programmer determines the fields and methods of an object and creates the _____ code. (Points : 3)

class

procedural

module

None of the above

 

Question 5.5. (TCO 9) The class _____ starts with the word "Class" followed by the name of the class. (Points : 3)

body

definition

return

members



Question 6.6. (TCO 9) The mutator methods are sometimes called _____. (Points : 3)

getters

accessors

setters

None of the above

 

Question 7.7. (TCO 9) What has exactly the same name as the defining class? (Points : 3)

Constructor

Inheritance

Accessor

Polymorphism

 

Question 8.8. (TCO 9) Which of the following is not true of a constructor and destructor of the same class? (Points : 3)

They both have the same name aside from the tilde (~) character.

They are both usually called once per object created.

They both are able to have default arguments.

Both are called automatically, even if they are not explicitly defined in the class.



Question 9.9. (TCO 9) Every object of the same class _____. (Points : 3)

gets a copy of every member function and member variable

gets a copy of every member variable

gets a copy of every member function

shares pointers to all member variables and member functions



Question 10.10. (TCO 9) Which of the following is correct? (Points : 3)

A constructor must be declared for each class.

A constructor must be declared with a return type.

A default constructor can only be provided by the compiler.

A class can have only one default constructor



Question 11.11. (TCO 9) Explain which is more appropriate for writing a menu program: a switch case or if-else statements. Provide a snippet of code to support your position