Review Game Zone
Flash Cards
(current)
Games
Teachers
Search
Computer Programming 1 - 1
Test Description: Computer Programming 1 - Part 1
Instructions: Answer all questions to get your test result.
1) A syntax error occurs:
A
When the program crashes unexpectedly
B
When compiling the code fails
C
When the program wants to
D
When the program does not give an expected result
2) A runtime error occurs:
A
When the program wants to
B
When the program crashes unexpectedly
C
When compiling the code fails
D
When the program does not give an expected result
3) A logic error occurs:
A
When the program crashes unexpectedly
B
When compiling the code fails
C
When the program does not give an expected result
D
When the program wants to
4) Which is an example of camelCase?
A
IAMERROR
B
iamerror
C
iAmError
D
IAmError
5) Which is NOT a valid variable name?
A
INTE
B
int1
C
Xint
D
1int
6) Which of the following properly creates and initializes an int variable?
A
5 = x
B
int x = 5
C
int 5 = x
D
x = 5
7) Which of the following data types is used to track currency?
A
double
B
int
C
string
D
boolean
8) Which of the following data types is used to represent an On or Off state?
A
double
B
char
C
boolean
D
int
9) What value will be stored in x when this code is executed? int x = 5.2 + 7.4;
A
13
B
12.6
C
13.6
D
12
10) What value will be stored in x when this code is executed? float x = 5.2 + 7.4;
A
12.6
B
13.6
C
12
D
13
*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?