Review Game Zone
Flash Cards
(current)
Games
Teachers
Search
Computer Programming 1 - 3
Test Description: Computer Programming 1 - 3
Instructions: Answer all questions to get your test result.
1) A pair of keywords that allows for a multiple-way selection are:
A
Switch-Case
B
For
C
Do-While
D
If-Else
2) Each case in a switch should end with what keyword?
A
Switch
B
Case
C
Break
D
Continue
3) Which of the following is NOT a loop keyword?
A
Do
B
While
C
Method
D
For
4) Which of these following is defined as placing loops inside of loops?
A
Nesting
B
Loopception
C
Class
D
Method
5) A loop that never ends is called a(n):
A
incremental loop
B
infinite loop
C
terminal loop
D
initial loop
6) Which of the following is correct?
A
for(int x = 0; x (less than) size; x++)
B
for(x (less than) size; int x = 0; x++)
C
for(x++; int x = 0; x (less than) size)
D
for(int x = 0; x++; x (less than) size)
7) Which of the following will loop 7 times when x = 1?
A
for(x = 1; x (less than)= 8; x++)
B
for(x = 1; x (less than)= 6; x++)
C
for(x = 1; x (less than) 8; x++)
D
for(x = 1; x (less than) 7; x++)
8) Methods:
A
Allow a block of code to change depending on a variable's value
B
Allow a block of code to be executed multiple times in a row
C
Allow a block of code to be skipped if a condition isn't met
D
Allow a block of code to be executed anywhere in a program
9) A value that a method asks for when it is being called is:
A
An object
B
A variable
C
A class
D
A parameter
10) Any method which has a return type that is not void must use:
A
The switch keyword
B
The parameter keyword
C
The method keyword
D
The return keyword
*select an answer for all questions
Check Results & Get Answers
Play Games with the Questions Above
Teachers: Create FREE classroom games with your questions
Click for more info!
©2007-2024
ReviewGameZone.com
|
About
|
Privacy
|
Contact
|
Terms
|
Site Map
WAIT! Find what you needed?
×
Still Looking for the Answers?
Have Another Question?
Play a Review Game with These Questions?
Want to Make Your Own Test Like This One?