This Quiz contains totally 10 Questions each carry 1 point for you.
1. Which punctuator is used to group a set of C++ statements?
{}
[]
()
/
Correct!
Wrong!
2. Which refers to the process of changing the data type of the value stored in a variable.
Type char
Type cast
Type int
Type float
Correct!
Wrong!
3. Which data types are structure, union, class and enumeration.
built in
derived
user defined
integer
Correct!
Wrong!
4. Which operator is used to compare numerical values?
relational
conditional
assignment
arithmetic
Correct!
Wrong!
5. Which allocates memory, based on the data type of the variable?
compiler
converter
interpreter
link
Correct!
Wrong!
6. Redirection redirects
Screen from a device to a stream
A device from the screen to a file
A stream from a file to the screen
A file from a device to a stream
Correct!
Wrong!
7. Memorizing the new items used in C++ is
Critically important
Completely irrelevant
The key to wealth and success
Something you can return to later
Correct!
Wrong!
8. The scope resolution operator usually
Providing a useful conceptual frame work
Specifies a particular class
Tells what base class is derived from
Limits the visibility of variables to a certain function
Correct!
Wrong!
9. An enumerated data type brings together a group of
Constant values, integers with user defined names
Related data type
Items of different data type
All the above
Correct!
Wrong!
10. A variable defined within a block is visible
From the point of definition onward in the block
From the point of definition on ward in the function
From the point of definition on ward in the program
Throughout the function
Correct!
Wrong!
Share the quiz to show your results !
Subscribe to see your results
Ignore & go to results
CPP-Programming-Quiz-8
You got %%score%% of %%total%% right
%%description%%
%%description%%
Loading...
