This Quiz contains totally 10 Questions each carry 1 point for you.
1. Which of the following gives special meaning to the language compiler?
Constant
variable
keyword
compiler
Correct!
Wrong!
2. Which operator requires one operand?
unary
binary
ternary
both 1 & 2
Correct!
Wrong!
3. Which data type indicates the function does not return a value.
static
main
public
void
Correct!
Wrong!
4. Which type is further divided into int and char.
int
float
char
integral
Correct!
Wrong!
5. The enum, unsigned int, short int and int data type’s uses ___ bits.
8
16
32
64
Correct!
Wrong!
6. Which of the following are good reasons to use an object oriented language?
An object oriented program can be taught to correct its own errors
Program statements are simpler than in procedural language
We can define our own data types
None of these
Correct!
Wrong!
7. In a class specified, data or functions and designated private are accessible
Only to public members of class
Only if you know the password
To any function in the program
To member functions of that class
Correct!
Wrong!
8. When a language has the capability to produce new data types, it is called
Extensible
Encapsulated
Reprehensible
None of these
Correct!
Wrong!
9. Keyword typed is used to declare
A synonym for an existing type
Absence of a type
Objects that can be modified outside of a program control
A member function that is defined in a subclass
Correct!
Wrong!
10. Which of the following is used to write data that contains variables of type flat to an object of type of stream ?
put()
write()
seekg()
Insertion
Correct!
Wrong!
Share the quiz to show your results !
Subscribe to see your results
Ignore & go to results
CPP-Programming-Quiz-6
You got %%score%% of %%total%% right
%%description%%
%%description%%
Loading...