Matching questions
1-13 of 13
Click a definition to match it with a term
A program contains the line of code x = 2 + y, but the variable y has never been seen
before this point. What will happen when we run this code?
Question 8 options:
The Python interpreter will treat y as having the value 0.
The program will crash.
Nothing will happen.
The computer will report a logical error.
Give this one a try later!
, The program will crash.
When a line of code containing a logical error is reached, _____________.
Question 11 options:
the Python interpreter terminates the program.
the Python interpreter typically skips the line and doesn't execute it.
nothing obvious happens, typically.
the computer prints an error message.
Give this one a try later!
nothing obvious happens, typically.
Debugging is:
Question 1 options:
creating/writing a series of software tests
documenting the bugs in a program
finding all the bugs in a program
running a program through a series of tests
tracking down programming errors and correcting them
Give this one a try later!
tracking down programming errors and correcting them
Which of the following is a semantic/logic error?
Question 3 options:
Including a space in the name of a variable.
Mistakenly dividing a value by 100 instead of multiplying it by 100 in a formula.
1-13 of 13
Click a definition to match it with a term
A program contains the line of code x = 2 + y, but the variable y has never been seen
before this point. What will happen when we run this code?
Question 8 options:
The Python interpreter will treat y as having the value 0.
The program will crash.
Nothing will happen.
The computer will report a logical error.
Give this one a try later!
, The program will crash.
When a line of code containing a logical error is reached, _____________.
Question 11 options:
the Python interpreter terminates the program.
the Python interpreter typically skips the line and doesn't execute it.
nothing obvious happens, typically.
the computer prints an error message.
Give this one a try later!
nothing obvious happens, typically.
Debugging is:
Question 1 options:
creating/writing a series of software tests
documenting the bugs in a program
finding all the bugs in a program
running a program through a series of tests
tracking down programming errors and correcting them
Give this one a try later!
tracking down programming errors and correcting them
Which of the following is a semantic/logic error?
Question 3 options:
Including a space in the name of a variable.
Mistakenly dividing a value by 100 instead of multiplying it by 100 in a formula.