WorksheetsC++ Workshop 2021 [Quiz-1]
Total questions: 10
Worksheet time: 10mins
Name
Class
Date
1.
Which of the following is NOT a logical operator in C++ language?
a)
&
b)
&&
c)
||
d)
!
2.
Point variables store decimal numbers (3.5, -5,123, 4.0, etc).
a)
Float
b)
Integer
c)
Logical
d)
Character
3.
Variables store whole numbers (-4, 3, 51, etc) is called
a)
Float
b)
Logical
c)
Character
d)
Integer
4.
What is the output of this program?
Program
int main()
{
cout<<"Hi everybody";
return 0;
}
Program
int main()
{
cout<<"Hi everybody";
return 0;
}
a)
"Hi everybody"
b)
Hi everybody"
c)
Hi everybody
d)
"Hi everybody
5.
Which command moves the shown text to the next line?
a)
\t
b)
\n
c)
\r
d)
\s
6.
What does <= mean?
a)
less than
b)
greater than
c)
less than or equal to
d)
greater than or equal to
7.
Command used for comments
a)
\\
b)
//
c)
#
d)
{ }
8.
CPP uses
a)
ASM
b)
Interpreter
c)
Complier
d)
None of the above
9.
Who Designed C++?
a)
Linus Torvalds
b)
Jeff Bezos
c)
Bjarne Stroustrup
d)
Guido van Rossum
10.
When was CPP developed?
a)
early 1980
b)
Late 1980
c)
early 1990
d)
late 1990
100 %
