Site icon i2tutorials

CPP-Programming-Quiz-5

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

1. _____ variable of the same data type can be declared in a single declaration statement.
only one
2
3
more than one

Correct!

Wrong!

2. The special characters like tab, backspace, line feed, null, back slash are called ____ character constant
floating
string
graphic
non graphic

Correct!

Wrong!

3. What type of integer starts with 0X?
binary
octal
decimal
hexadecimal

Correct!

Wrong!

4. The sequence of digits starting with 0 is treated as ___ constant.
binary
octal
decimal
hexadecimal

Correct!

Wrong!

5. The body of function contains ___
Return statement
A variable declaration part
Processing part
All the above

Correct!

Wrong!

6. Where a condition is checked to see whether to do one or more iteration is _____
Definite iteration
Sequencing
Indefinite iteration
None of these

Correct!

Wrong!

7. Which of the following is the valid real constant?
75.34
75
0.75
Both 1 & 3

Correct!

Wrong!

8.  Which variables are sensitive to the data type they point to.
char
pointer
integer
float

Correct!

Wrong!

9. The statement int A; b; is invalid because ____
Variables should be separated by Comma
Capital A is not allowed
Only one variable should be given
All the above

Correct!

Wrong!

10. What is a file?
A file is a selection of main storage used to store data.
A file is another name for floppy disk.
A file is a part of a program that is used to describe what the program should do.
A file is a collection of information that has been given a name and is stored in secondary memory.

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

Ignore & go to results

CPP-Programming-Quiz-5

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

%%description%%

%%description%%

Where to go ?

Quizzes

Loading...

Exit mobile version