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
Do-While
B
If-Else
C
For
D
Switch-Case
2) Each case in a switch should end with what keyword?
A
Case
B
Switch
C
Continue
D
Break
3) Which of the following is NOT a loop keyword?
A
While
B
Do
C
For
D
Method
4) Which of these following is defined as placing loops inside of loops?
A
Nesting
B
Loopception
C
Method
D
Class
5) A loop that never ends is called a(n):
A
terminal loop
B
infinite loop
C
incremental loop
D
initial loop
6) Which of the following is correct?
A
for(int x = 0; x (less than) size; x++)
B
for(int x = 0; x++; x (less than) size)
C
for(x (less than) size; int x = 0; x++)
D
for(x++; int x = 0; x (less than) size)
7) Which of the following will loop 7 times when x = 1?
A
for(x = 1; x (less than)= 6; x++)
B
for(x = 1; x (less than)= 8; 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 be skipped if a condition isn't met
B
Allow a block of code to be executed multiple times in a row
C
Allow a block of code to be executed anywhere in a program
D
Allow a block of code to change depending on a variable's value
9) A value that a method asks for when it is being called is:
A
A variable
B
An object
C
A class
D
A parameter
10) Any method which has a return type that is not void must use:
A
The parameter keyword
B
The method keyword
C
The switch 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?