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
Dynamic error
B
Runtime error
C
Syntax error
D
Logic error
2) Jamie keyed “Interger” instead of “Integer”. What type of error resulted?
A
Dynamic error
B
Syntax error
C
Runtime error
D
Logic error
3) Misspelling a keyword is an example of a:
A
Dynamic error
B
Runtime error
C
Syntax error
D
Logic error
4) Programming errors are classified into one of three categories. Which one is not a standard category?
A
Logic
B
Runtime
C
Syntax
D
Infinite
5) Which type of error halts the program when a statement cannot be executed?
A
Dynamic error
B
Runtime error
C
Logic error
D
Syntax error
6) Which type of error produces undesired or unexpected results?
A
Dynamic error
B
Syntax error
C
Runtime error
D
Logic 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
Syntax error
D
Dynamic 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
Add break-points and step through the code while watching the variable output
B
Hover over the variables in the code to change the output
C
Debug the program
D
Add try catch
9) When the code is completely written but will not execute, what is the appropriate action?
A
Perform programmer debugging and/or program debugging.
B
Give the program to another programmer for review and correction.
C
Rewrite all the lines of code.
D
Code another program to correct the program just completed.
10) If defaults are set to show the Watch window, which data would be shown in the Watch window?
A
variable: values
B
variable names only
C
variable: code statements
D
variable values only
11) What is a purpose of the Watch window?
A
To examine values during the execution of a program
B
To switch to the Code window
C
To display online help
D
To display the application interface
12) The reason to use a breakpoint is to:
A
set the tab order for controls.
B
evaluate the user interface.
C
verify code syntax.
D
examine variables and check logic.
13) Which condition is correct?
A
Case 2 Or 5
B
Case 2 - 5
C
Case 2 And 5
D
Case 2, 5
14) In what type of loop are the conditions evaluated before the instructions are processed?
A
Pretest
B
Infinite
C
Finite
D
Posttest
15) In the following code, how many times does the program count through the loop structure?For intCounter as integer = 1 To 5
A
The loop will not start.
B
1
C
0
D
5
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-2023
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?