A programmer tries to run the following code. What error is likely to be raised in this instance?
print('Hello world')s
KP9-Events n Exceptions
Quiz
•
Education
•
Professional Development
•
Medium
MrsT Voci
Used 3+ times
FREE Resource
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
15 questions
Errores de Funciones en Microsoft Excel
Quiz
•
Professional Development
12 questions
Pedagogy [CodeMonkey Training Samtse]
Quiz
•
Professional Development
10 questions
GFG Quiz
Quiz
•
11th Grade - Professi...
10 questions
Summary of Findings, Conclusions and Recommendations
Quiz
•
10th Grade - Professi...
10 questions
CIS - Prompt Engineering Workshop
Quiz
•
Professional Development
8 questions
Reliability
Quiz
•
University - Professi...
10 questions
Java Strings
Quiz
•
1st Grade - Professio...
10 questions
OOps VB
Quiz
•
Professional Development
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade