
KP9-Events n Exceptions
Authored by MrsT Voci
Education
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
A programmer tries to run the following code. What error is likely to be raised in this instance?
print('Hello world')s
GrammarError
EOLerror
SyntaxError
ValueError
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
A programmer tries to run the following code. What error is likely to be raised in this instance?
print(int('cat'))
EOLerror
SyntaxError
GrammarError
ValueError
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
A programmer accidentally attempts to convert the type of an object and receives the error: 'int() cannot convert 'dog' into an integer'. What error was likely raised in this instance?
ValueError
AttributeError
NameError
TypeError
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Consider a program that has a module that provides a framework of sorts to short declarative one-file scripts that writes. Which of the following words is suitable for describing the previous program.
A request loop
A module callback
A chapter
An event
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is a programming paradigm where programs are constructed by applying and composing functions?
Functional Programming
Event Driven Programming
Response Oriented Programming
Object Oriented Programming
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
A programmer accidentally attempts to call a function or use an operator on something of the incorrect type. What error is likely to be raised in this instance?
AttributeError
NameError
ValueError
TypeError
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
A programmer has created a string with a single speech mark on one side and double speech mark on the other. What error is likely to be raised in this instance?
var1 = 'Hello"
GrammarError
SyntaxError
ValueError
EOLerror
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?