Review Game Zone
Flash Cards
(current)
Games
Teachers
Search
5.00 Programming And Conditional Logic
Test Description: Read each statement carefully and select the best answer.
Instructions: Answer all questions to get your test result.
1) Sara thought her program would calculate grade point averages, but the program listed the highest grade instead. What type of error is this?
A
Syntax error
B
Logic error
C
Dynamic error
D
Runtime error
2) Jamie keyed “Interger” instead of “Integer”. What type of error resulted?
A
Syntax error
B
Runtime error
C
Logic error
D
Dynamic error
3) Misspelling a keyword is an example of a:
A
Runtime error
B
Logic error
C
Syntax error
D
Dynamic error
4) Programming errors are classified into one of three categories. Which one is not a standard category?
A
Infinite
B
Syntax
C
Runtime
D
Logic
5) Which type of error halts the program when a statement cannot be executed?
A
Runtime error
B
Dynamic error
C
Syntax error
D
Logic error
6) Which type of error produces undesired or unexpected results?
A
Dynamic error
B
Logic error
C
Syntax error
D
Runtime error
7) John’s computer program stopped executing and displayed an error message. What type of error is this?
A
Run-time error
B
Logic error
C
Dynamic error
D
Syntax error
8) Alice wrote a program that executed but did not produce the expected output. What is the best method for Alice to use to find the error?
A
Hover over the variables in the code to change the output
B
Add try catch
C
Debug the program
D
Add break-points and step through the code while watching the variable output
9) When the code is completely written but will not execute, what is the appropriate action?
A
Rewrite all the lines of code.
B
Code another program to correct the program just completed.
C
Perform programmer debugging and/or program debugging.
D
Give the program to another programmer for review and correction.
10) If defaults are set to show the Watch window, which data would be shown in the Watch window?
A
variable values only
B
variable: code statements
C
variable names only
D
variable: values
11) What is a purpose of the Watch window?
A
To switch to the Code window
B
To display online help
C
To display the application interface
D
To examine values during the execution of a program
12) The reason to use a breakpoint is to:
A
set the tab order for controls.
B
examine variables and check logic.
C
verify code syntax.
D
evaluate the user interface.
13) Which condition is correct?
A
Case 2 - 5
B
Case 2 Or 5
C
Case 2, 5
D
Case 2 And 5
14) In what type of loop are the conditions evaluated before the instructions are processed?
A
Infinite
B
Posttest
C
Finite
D
Pretest
15) In the following code, how many times does the program count through the loop structure?For intCounter as integer = 1 To 5
A
5
B
1
C
The loop will not start.
D
0
16) In the following code, how many times does the program count through the loop structure? For intCounter as integer = 1 To 9 Step -3
A
Infinite
B
9
C
3
D
1
*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?