QUESTIONS AND ANSWERS | 100% RATED CORRECT | 100% VERFIED
| ALREADY GRADED A+
Which of the following variables could hold the literal numeric value 3.141 without losing any
information?
float x
int y
char z
string w - (ANSWER)float
What is the value of the variable divisor in the following equation?
Int divisor = 3/6;
0.5
1
0
2 - (ANSWER)0
,What is the value of the variable remainder in the following equation?
long remainder = 3%6;
6
3
0
0.5 - (ANSWER)3
When assigning a value to a variable, the variable must be on the left of the assignment operator
(=).
True
False - (ANSWER)True
Constants are used to make program maintenance easier.
True
False - (ANSWER)True
A DEFAULT CASE is required as part of a SWITCH statement.
,True
False - (ANSWER)False
An IF statement must always have an ELSE statement after it.
True
False - (ANSWER)False
True or False: The following is an example of a valid program in Pseudocode:
END MAIN - (ANSWER)False
You must declare and initialize a variable in two separate steps.
True
False - (ANSWER)False
, Evaluate 10-(40+(20/(10-5)*2)/4)+50
18
22
4
20 - (ANSWER)18
Evaluate 3-6%5*2
4
1
-3
3 - (ANSWER)1
Evaluate as an integer: 5*7+3%2-4
7
32