Computing 1 Programming Quiz 1
Computing 1 Programming Quiz 1
id=901
Answer: True
False
Submit
Answer: True
False
Submit
Submit
Answer: True
False
Submit
1 of 5 27/04/2007 14:10
TCC101: Programming Quiz 1 https://lms.wou.edu.my/mod/quiz/attempt.php?id=901
Answer: True
False
Submit
Answer: True
False
Submit
Answer: True
False
Submit
Answer: True
False
Submit
Answer: True
False
Submit
2 of 5 27/04/2007 14:10
TCC101: Programming Quiz 1 https://lms.wou.edu.my/mod/quiz/attempt.php?id=901
do
{
System.out.print('o');
count--;
}
while (count < 5);
System.out.println('p');
is: Stop
Answer: True
False
Submit
11 The program that interprets the byte codes on your hardware is called the
Marks: --/1
Java Virtual Machine
Answer: True
False
Submit
12 Suppose x = 10 and y = 20. The value of the expression ((x >= 10) &&(y <= 20)) is true.
Marks: --/1
Answer: True
False
Submit
13 The output of the Java code (Assume all variables are properly declared.)
Marks: --/1
for (i = 1; i <= 10; i++);
System.out.print(i + " ");
System.out.println();
is: 1 2 3 4 5 6 7 8 9 10
Answer: True
False
Submit
3 of 5 27/04/2007 14:10
TCC101: Programming Quiz 1 https://lms.wou.edu.my/mod/quiz/attempt.php?id=901
str1.equals(str2);
is true or false.
Answer: True
False
Submit
Answer: True
False
Submit
16 The following for loop executes 20 times. (Assume all variables are properly declared.)
Marks: --/1
for (i = 0; i <= 20; i++)
System.out.println(i);
Answer: True
False
Submit
17 The statement immediately following the while is called the loop body. It
Marks: --/1
can be a block statement by including several statements between braces {
and }.
Answer: True
False
Submit
4 of 5 27/04/2007 14:10
TCC101: Programming Quiz 1 https://lms.wou.edu.my/mod/quiz/attempt.php?id=901
the statement
Answer: True
False
Submit
Answer: True
False
Submit
20 A loop is a control structure that causes certain statements to be executed over and over until certain
Marks: --/1
conditions are met.
Answer: True
False
Submit
5 of 5 27/04/2007 14:10