NEW
Font size
WorksheetsGrade 8 - C ++
Total questions: 15
Worksheet time: 8mins
which manipulator is similar to that of “\n” escape sequence character.
setw()
endl
const
new line
Which operator is called as remainder operator ?
+
+=
%
/
Logical NOT operator results "True" if the expression is....
True
False
Both are True
Both are false
(10 >= 9) && ( 50 >=9) = ?
0
1
(10 >= 99) && ( 50 >=20) = ?
0
1
(10 >= 9) || ( 50 >=9) = ?
0
1
Which one of the following is not a Built-in data type?
int
float
void
struct
Which one of the following is a correct variable declaration ?
int a = 10
float 2x = 22.3;
int a = 10,b =20, c;
int a = 10 ; b = 20; c;
In "cin>>" statement, ">>" represent ........ operator.
Assignment
Logical
Insertion
Extraction
If a = 7 and b = 5 then, b+=a is
10
11
12
13
Data type "Double" occupies, how many bytes ?
2
4
8
10
The expression a ++ is same as a +=1.
True
False
Logical operator OR (||) returns TRUE if any one of the expression evaluates to TRUE.
True
False
............ controls the way that the data is displayed.
Operator
Constant
Manipulator
Variables
Ternary operator is represented by
>>
? :
: ?
+=
