WorksheetsC++_1_variables_if_switch_easy_level
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
what is the output?
a)
15.5
b)
15
c)
16
d)
compilation error
2.
What is the output?
a)
3.14
b)
3
c)
4
d)
Error: can not assign double to int
3.
What is the output?
a)
Greater than 10
b)
Less than or equal to 10
c)
No output
d)
Error: invalid if condition
4.
What is the output?
a)
Five
b)
Eight
c)
Not Five or Eight
d)
Compilation error
5.
What is the output?
a)
Between 5 and 20
b)
Out of range
c)
No ouput
d)
Compilation error
6.
What is the output?
a)
Monday
b)
Tuesday
c)
Wednesday
d)
Invalid day
7.
What is the output?
a)
Two
b)
OneTwoThree
c)
TwoThreeInvalid
d)
Invalid
8.
What is the output?
a)
Exellent
b)
Good
c)
Average
d)
Invalid grade
9.
What is the output?
a)
True
b)
False
c)
No output
d)
Compilation error
10.
What is the output?
a)
Condition met
b)
Condition not met
c)
No output
d)
Compilation error
100 %
