NEW
Font size
WorksheetsBasic C Programming
Total questions: 16
Worksheet time: 8mins
Every C Program Statement must be terminated with a
.
#
;
!
What does the following code fragment write to the monitor?
Under
Over
Under the limit
Over the limit
What does the following code fragment write to the monitor?
Under
Over
Under the limit
Over the limit
What does the following code fragment write to the monitor?
You win
You lose
You win the prize.
You lose the prize.
Evaluate(to true or false) each of the following expressions:
(1) 14 <= 14
(2) 14 < 14
false false
true true
true false
false true
Which of the following is the boolean operator for logical-AND?
&
&&
|
||
Which data type is incorrect?
Which of the following is not a valid C variable name?
int number;
float rate;
int variable_count;
int $main;
Which of the following is not a logical operator?
&&
!
||
|
What is the output of the following code?
5
10
15
20
What is the output of the following code?
0
5
10
15
What is the output of the following code?
a is greater than b
b is greater than a
a and b are equal
<
When you would like to read a temperature, a/an _____ should be created to store the temperature data
input
output
notation
variable
