5.00 Programming And Conditional Logic Question Preview (ID: 45031)
Read Each Statement Carefully And Select The Best Answer.
TEACHERS: click here for quick copy question ID numbers.
Sara thought her program would calculate grade point averages, but the program listed the highest grade instead. What type of error is this?
a) Logic error
b) Dynamic error
c) Runtime error
d) Syntax error
Jamie keyed “Interger” instead of “Integer”. What type of error resulted?
a) Logic error
b) Syntax error
c) Runtime error
d) Dynamic error
Misspelling a keyword is an example of a:
a) Syntax error
b) Logic error
c) Runtime error
d) Dynamic error
Programming errors are classified into one of three categories. Which one is not a standard category?
a) Syntax
b) Logic
c) Runtime
d) Infinite
Which type of error halts the program when a statement cannot be executed?
a) Runtime error
b) Logic error
c) Syntax error
d) Dynamic error
Which type of error produces undesired or unexpected results?
a) Syntax error
b) Runtime error
c) Logic error
d) Dynamic error
John’s computer program stopped executing and displayed an error message. What type of error is this?
a) Logic error
b) Syntax error
c) Dynamic error
d) Run-time error
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 break-points and step through the code while watching the variable output
c) Add try catch
d) Debug the program
When the code is completely written but will not execute, what is the appropriate action?
a) Code another program to correct the program just completed.
b) Give the program to another programmer for review and correction.
c) Perform programmer debugging and/or program debugging.
d) Rewrite all the lines of code.
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: values
d) variable names only
What is a purpose of the Watch window?
a) To display online help
b) To examine values during the execution of a program
c) To display the application interface
d) To switch to the Code window
The reason to use a breakpoint is to:
a) examine variables and check logic.
b) evaluate the user interface.
c) set the tab order for controls.
d) verify code syntax.
Which condition is correct?
a) Case 2, 5
b) Case 2 - 5
c) Case 2 And 5
d) Case 2 Or 5
In what type of loop are the conditions evaluated before the instructions are processed?
a) Posttest
b) Infinite
c) Finite
d) Pretest
In the following code, how many times does the program count through the loop structure?For intCounter as integer = 1 To 5
a) 0
b) 1
c) 5
d) The loop will not start.
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) 1
c) 9
d) 3
Play Games with the Questions above at ReviewGameZone.com
To play games using the questions from above, visit ReviewGameZone.com and enter game ID number: 45031 in the upper right hand corner or click here.
To play games using the questions from above, visit ReviewGameZone.com and enter game ID number: 45031 in the upper right hand corner or click here.
TEACHERS / EDUCATORS
Log In | Sign Up / Register
Log In | Sign Up / Register