Python traceback

Python traceback

Professional Development

17 Qs

quiz-placeholder

Similar activities

Javascript Assessment

Javascript Assessment

Professional Development

20 Qs

C Code Master

C Code Master

Professional Development

20 Qs

Python Final Quiz

Python Final Quiz

Professional Development

13 Qs

PHP nulmeting

PHP nulmeting

8th Grade - Professional Development

14 Qs

codePannu  Level 1 Python Course - Week 5 Quiz on Conditional Operators

codePannu Level 1 Python Course - Week 5 Quiz on Conditional Operators

Professional Development

15 Qs

Python Class 1

Python Class 1

Professional Development

15 Qs

Programming II - Introduction

Programming II - Introduction

12th Grade - Professional Development

20 Qs

PYTHON EXCEPTION

PYTHON EXCEPTION

Professional Development

13 Qs

Python traceback

Python traceback

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Pich Rim

Used 3+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What Is a Python Traceback?

A report containing the function calls made in your code at an error point.

A report containing the function calls made in your code at the last point.

A wealth of information that can help you diagnose and fix the reason for the exception being raised in your code.

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What Does a blue box mean?

It contains the exception name that was raised.

It is an Instantiate name of a class exception that was raised.

It is an error title that was raised.

It is a function name that was raised.

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Question 3: What Does a green box mean?

Understanding the reason for the exception being raised.

This message usually contains helpful information about errors.

It is an error title that was raised.

It is a function name that was raised.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What Does a yellow box mean?

Contains information like the file name, line number, and module name.

Contains information like the file name, line number, and module name, all specifying where the code can be found.

Show path file and line number where the code can be found.

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What Does a red box mean?

The second line for these calls contains the actual code that was executed.

Each line for these calls contains the actual code that was executed.

Show a function was executed.

Show a code was executed.

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What does REPL stand for?

Read-write-print-loop

Read-executed-print-loop

Read-eval-print-loop

Read-executed-prompt-loop

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The following code example what is the raise exception would be?


>>> bar = {1:'a',2:'b'}

>>> bar[3]

AttributeError

ValueError

KeyError

InvalidKey

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?