a) The keyword if, a conditional expression in parentheses, square brackets, and executable statement. b) The keyword if, a conditional expression in parentheses, and executable statements possibly inside curly braces. c) The keyword if, a conditional expression in curly braces, and executable statements. d) The keyword if, a conditional expression without parentheses, and executable statements.
a) a comment statement b) an instance of an object c) an internal JavaScript function d) one repetition of a loop statement
a) if (x==2) then myvalue = 5; b) if (x==2), myvalue = 5; c) if (x==2)[myvalue=5]; d) if (x==2) myvalue = 5;
a) a value of true b) a value of false c) a value of zero d) none of the above
a) contained within square brackets b) contained within parentheses c) contained within curly braces d) defined on the same line
a) arithmetic b) assignment c) string d) comparison
a) the "myvalue = x" must be in curly braces b) the "myvalue = x" must be in parentheses c) the conditional statement uses the assignment operator instead of the comparison operator d) none of the above, the statement is correct
a) if false statement b) else clause c) when false statement d) then do clause
a) else (myvalue = 5); b) else [myvalue = 5]; c) else {myvalue = 5}; d) else myvalue = 5;
a) embedded b) related c) nested d) subordinate
a) increase the programs complexity b) perform multiple conditional evaluations c) decrease processing time d) all of the above
a) The conditional expression evaluates to true. b) The conditional expression evaluates to false. c) The conditional expression cannot be interpreted by JavaScript d) It will always execute as soon as the if statement finishes executing
a) 2 b) 5 c) 10 d) unlimited
a) break b) if...or c) switch d) if...then
a) case labels b) switch labels c) question marks d) begin statements
a) nomatch b) default c) altcase d) dowhen
a) while {(conditional expression) then statements}; b) while (conditional expression, counter variable) {statements;} c) while (conditional expression, statements); d) while (conditional expression){statements;}
a) a specific condition is true b) a specific condition is false c) a counter has not reached its terminating value d) none of the above
a) repeater b) counter c) terminator d) accumulator
a) The loop will repeat 10 times and print the values 10, 9, 8, etc. b) It will not execute because there is a syntax error c) This will statement will cause an infinite loop d) It will execute 10 times and print the values 1, 2, 3, etc.
a) Nothing - they function the same b) A while loop always executes its loop statements at least once c) The do...while loop executes while a condition is false d) The do...while loop always executes at least once
a) do {statements,} while (conditional expressions); b) do while {statements; (conditional expression}; c) do (conditional expression {statements;} while (true); d) {statements;} do while (conditional expression);
a) It will not execute because there is a syntax error b) This do...while loop will cause an infinite loop c) It will execute twice d) It will execute only one time
a) The syntax is essentially the same b) The for statement itself can contain code to initialize and increment/decrement its counter variable c) The while statement itself can contain code to initialize and increment/decrement its counter variable d) The for statement executes while the given condition is false
a) When the condition begin evaluated becomes false b) At the beginning of every iteration c) At the end of every iteration d) Immediately after it is initialized
a) for {(variable in object) statements;} b) for (variable in property){statements;} c) for (variable in object){statements;} d) for (object in variable){statements;}
a) index b) default value c) class d) name
a) class b) descriptors c) properties d) field values
a) with{(object) statements;} b) with(object, property){statements;} c) with (object){statements;} d) none of the above
a) 1,2,3,4 b) 1,2,4 c)1,2 d)1,2,3
a) The statement above is TRUE. b) The statement above is FALSE.
The 'Muddy Water' Issues that I need help on are as follows: I am having trouble with...
decision making flow control if statement command block if...else statement
nested if statement nested if...else statement switch statement loop statement while statement
iteration counter infinite loop do...while statement for statement
When you have completed this quiz click the submit button (Those users whose Browser supports JavaScript) to send answers to your instructor
(This may takes a few moments to submit)
Click reset to clear all answers
Users whose browser does not support JavaScript, when you have completed this quiz click the submit button below to send answers to your instructor