Multiple choice
(Not rated)
(Not rated)
1. Which of the following is correct if the data type for weight is num?
A) weight = 2.75
B) weight = “2.75”
C) weight = (2.75)
D) weight = “heavy”
2. What would be the output of the following expression if the temperature outside is 30 degrees?
If temperature >=35 and temperature <= 55 then
output “it is cold outside”
else output “The weather is nice today”
A) The weather is nice today
B) The temperature is 45
C) it is could outside
D) none of the above
3. Misuse of a language’s grammar rules is called a (n) ____ error.
A) illegal
B) logical
C) syntax
D) semantic
4. The body of a loop can contain only a limited number of statements.
A) True
B) False
12 years ago
A+ Answers
NOT RATED
Purchase the answer to view it
- 25.doc