Object Oriented Programming Using C++ - Part 10 Online Exam Quiz
Object Oriented Programming Using C++ - Part 10 GK Quiz. Question and Answers related to Object Oriented Programming Using C++ - Part 10. MCQ (Multiple Choice Questions with answers about Object Oriented Programming Using C++ - Part 10
The main difference in operation between an 'if statement and a 'while' statement is
Options
A : the 'while' loop body is executed
B : the body of the 'while' statement may be executed many times, the body of the 'if statements only once
C : the conditional expression following the keyboard is evaluated differently
D : All of the above
If a class object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is_________
Options
A : a parent class of the thrown class
B : a child class of the thrown class
C : either (a) or (b)
D : neither (a) nor (b)
The weakest form of cohesion is
Options
A : coincidental
B : functional
C : logical
D : communicational
The 'break' statement is used to exist from
Options
A : a do loop
B : a for loop
C : a switch statement
D : All of the above
You have assigned the address of Value to the pointer P, Which statement will display the value stored in Value?
Options
A : cout<<P;
B : cout<<*Value;
C : cout<<&P;
D : cout<<*P;
A constructor initialization list is preceded by
Options
A : a. semicolon
B : a colon
C : two colons
D : a space
In C++, a function contained within a class is called
Options
A : a member function
B : an operator
C : a class function
D : a method
Which of the following is the scope resolution operator?
Options
A : ->>
B : ::
C : *
D : &
If the description of function is "input the quantity, validate that the quantity is greater than 1, subtract 1 from the quantity, and print the quantity," the function is
Options
A : sequentially cohesive
B : logically cohesive
C : communicationally cohesive
D : functionally cohesive
A function that changes an object's state belongs to the category of
Options
A : inspector functions
B : mutator functions
C : auxiliary functions
D : manager functions
Artificial Intelligence - Part 1 more Online Exam Quiz
Object Oriented Programming Using C++ - Part 5
Object Oriented Programming Using C++ - Part 6
Object Oriented Programming Using C++ - Part 7
Object Oriented Programming Using C++ - Part 8
Object Oriented Programming Using C++ - Part 9
Object Oriented Programming Using C++ - Part 11
Operating Systems Concepts - Part 2
Operating Systems Concepts - Part 3