What is wrong with the following code?
while (4>2)
System.out.println ("Hi there");
?
A. missing curly braces
B. illegal conditional expression
C. infinite loop
D. Syntax error in the output statement
Answer: C
Computer Science & Information Technology
You might also like to view...
Scriptlets are blocks of code delimited by_______ and_______.
a) < !---, -->. b) < %, %>. c) < %=, %>. d) None of the above.
Computer Science & Information Technology
When the body of a member function is defined inside a class declaration, it is called a(n) ________ function.
A) static B) global C) inline D) conditional E) constructor
Computer Science & Information Technology
The ternary operator of C++ takes:
A. no operands B. one operand C. two operands D. three operands
Computer Science & Information Technology
How does the TCP protocol provide a reliable byte stream?
What will be an ideal response?
Computer Science & Information Technology