KP9-Events n Exceptions

KP9-Events n Exceptions

Professional Development

10 Qs

quiz-placeholder

Similar activities

Quiz on Dig into Digital

Quiz on Dig into Digital

Professional Development

15 Qs

Test Security/Accessibility

Test Security/Accessibility

Professional Development

9 Qs

Errores de Funciones en Microsoft Excel

Errores de Funciones en Microsoft Excel

Professional Development

15 Qs

Aleo Concepts Quiz

Aleo Concepts Quiz

Professional Development

10 Qs

C  Datatypes/Operators 2 MCQs

C Datatypes/Operators 2 MCQs

Professional Development

10 Qs

Object Oriented Modeling & Design

Object Oriented Modeling & Design

University - Professional Development

10 Qs

OOps VB

OOps VB

Professional Development

10 Qs

CHAPTER 2

CHAPTER 2

Professional Development

6 Qs

KP9-Events n Exceptions

KP9-Events n Exceptions

Assessment

Quiz

Education

Professional Development

Medium

Created by

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?