Home
Microsoft Office Index
Excel
Word
PowerPoint
A~Z Quizzes
Computer Programming
Typing Index
Typing Speed Test
English Lessons & Practice Grammar Tests
Excel 2016
Word 2016
A ~ Z of Tests & Quizzes Index Page
*
Health Tests
*
Personality Tests
*
Fun Tests
*
IQ Tests
*
EQ Tests
*
Computer Programming Languages
*
Java Tests
*
Multiplication Table Charts & Tests
Free Online Java Tests – Repetition Control Structures Test – Java Language Programming
Java Repetition Control Structures Test
Free Online Java Tests
Java Language Programming
Test yourself on Java Programming Repetition Control Structures – Loop, Repetition, Control Structure, for, while, do, do-while.
10 Question Multiple Choice Quiz with Answers and Answer Explanations
1)
Every pass through a loop is termed a/an __________?
a) pass through
b) encapsulation
c) iteration
d) elimination
2)
Which of the following only perform equality tests?
a) switch
b) if
c) Both a and b
d) None of the above
3)
Pick the selection statements from the following options.
a) continue
b) break
c) if()
d) for()
4)
A continue statement makes the execution jump to ______________
a) The end of the loop.
b) The statement just after continue.
c) The first statement of the loop.
d) The next iteration of the loop.
5)
Which of the following loops will execute the statements at least once, even though the condition is false initially?
a) for()
b) while()
c) do while()
d) All of the above
6)
In fixed repetition what does fixed indicate?
a) The number of statements.
b) The number of iterations.
c) The value of “I”.
d) None of the above.
7)
The loop counter in a for loop must be an int value?
a) False
b) True
c) Depends
d) Cannot be determined
8)
Which looping structure should be used when the iterations are known?
a) for()
b) while()
c) do while()
d) None of the above.
9)
In a for loop if the number of statements are greater than one, which of the following needs to be inserted at the beginning and the end of the loop?
a) Arrows<>
b) Parenthesis( )
c) French curly braces{ }
d) Square bracket [ ]
10)
What value is stored in Iat the end of this loop? For(int I =1;i<=10;i++)
a) 1
b) 9
c) 10
d) 11
Please leave this field empty.
A to Z of Tests & Quizzes
IQ Tests
EQ Tests
Fun Tests
Personality Tests
Health Tests
Multiplication Table Charts
Printable Free Download
2 & 3 Times Tables Quiz
3 & 4 Times Tables Quiz
4 & 5 Times Tables Quiz
5 & 6 Times Tables Quiz
6 & 7 Times Tables Quiz
8 & 9 Times Tables Quiz
Computer Programming Languages