1. (TCO 9) What type of menu displays a choice and then immediately the action?
ID: 3544035 • Letter: 1
Question
1. (TCO 9) What type of menu displays a choice and then immediately the action? (Points : 3) Single-level menu Multiple-level menu Step-level menu Sublevel menu 2. (TCO 9) What is not part of the menu valued selections process? (Points : 3) Input validation loop Including the Default clause in the case structure State Use of an Else clause 3. (TCO 9) What software entity contains both data and procedures (actions on the data)? (Points : 3) Objects Instances Events All of the above 4. (TCO 9) The procedures that the object performs are known as _____. (Points : 3) records functions addresses data fields 5. (TCO 9) The class _____ starts with the word "Class" followed by the name of the class. (Points : 3) body definition return members 6. (TCO 9) You should declare a data field private by using the _____ keyword. (Points : 3) clandestine concealed private Data fields cannot be private. 7. (TCO 9) UML stands for _____. (Points : 3) United Modeling Language Unified Mega Language United Mega Language Unified Modeling Language 8. (TCO 9) Given the following class definition: class Sample { public: Sample() { cout << "constructor called, "; } ~Sample() { cout << "destructor called, "; } }; What will the following program output? int main() { for ( int i = 1; i <= 2; i++ ) Sample object; return 0; } (Points : 3) constructor called, destructor called, constructor called, destructor called, constructor called, constructor called, constructor called, constructor called, destructor called, destructor called, None of the above 9. (TCO 9) Member access specifiers (public and private) can appear _____. (Points : 3) in any order and multiple times in any order (public first or private first), but not multiple times in any order and multiple times if they have brackets separating each type outside a class definition 10. (TCO 9) Which of the following about the constructor is true? (Points : 3) Can be overloaded Does not have a return type, not even void Must have the same name as the class All of the above 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. (Points : 5
Explanation / Answer
2. use of an else clause
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.