/  CPP-Programming-Quiz-9

This Quiz contains totally 10 Questions each carry 1 point for you.

1. The library function exit( ) causes an exit from
The program in which it occurs
The function in which it occurs
The block in which it occurs
The loop in which it occurs

Correct!

Wrong!

2. The dot operator connects which of the following two entities?
Class object and member of that class
Class and member of that class
Class object and a class
Class member and class object

Correct!

Wrong!

3. A static function
Should be called when an object is destroyed
Can be called using the class name and function
Is closely connected with an individual object of a class
Is used when a dummy object must be created

Correct!

Wrong!

4. The function bad( ) is declared in the header file




Correct!

Wrong!

5.In C++, a function contained within a class is called a
method
class function
member function
None of these

Correct!

Wrong!

6. A function argument is a
Value sent to function by the calling program
Value returned by the function to the calling program
Variable in the function that receives a value from the calling program
Way that functions resist accepting the calling program’s values

Correct!

Wrong!

7.The break statement causes an exit
From the innermost loop or switch
Only from the innermost switch
Only from the innermost loop
From all loops and switches

Correct!

Wrong!

8. Element double array [7] is which element of the array?
6th
7th
8th
impossible

Correct!

Wrong!

9. In C++, a structure brings together a group of
Items of the same data type
Integers with user-defined names
Related data items, variables
All of these

Correct!

Wrong!

10. In C++, which of the following can legitimately be passed to a function?
constant
variable
structure
All the above

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

Ignore & go to results

CPP-Programming-Quiz-9

You got %%score%% of %%total%% right

%%description%%

%%description%%

Where to go ?

Quizzes

Loading...