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