Search Header Logo

Python traceback

Authored by Pich Rim

Computers

Professional Development

Used 3+ times

Python traceback
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?