Assume i = 1, j = 2, k = 3 and m = 2. What does each of the following statements print? Are the parentheses necessary in each case?
a) document.writeln( i == 1 );
b) document.writeln( j == 3 );
c) document.writeln( i >= 1 && j < 4 );
d) document.writeln( m <= 99 && k < m );
e) document.writeln( j >= i || k == m );
f) document.writeln( k + m < j | 3 - j >= k );
g) document.writeln( !( k > m ) );
a) True.
b) False.
c) True.
d) False.
e) True.
f) False.
g) False.
You might also like to view...
What property gives the value of the index of an item selected in a list box.
(A) election (B) eletedItem (C) Index (D) electedIndex
Suppose A is an inner class in Test. A is compiled into a file named _________.
a. A.class b. Test$A.class c. A$Test.class d. Test&A.class
Which of the following statements is false?
a. Primitive types are keywords. b. Primitive types must appear in all lowercase letters. c. Real numbers contain decimal points. d. Variable name identifiers must begin with a lowercase letter.
You type ____ in vim command mode to move the cursor one space to the left.
A. h B. j C. k D. l