Coding Week 4 Quiz

Coding Week 4 Quiz

8th Grade

14 Qs

quiz-placeholder

Similar activities

adys

adys

8th Grade

16 Qs

Training Trackers Lessons 1 & 2 Quiz

Training Trackers Lessons 1 & 2 Quiz

8th Grade

12 Qs

Clay Shakers Unit Quiz

Clay Shakers Unit Quiz

6th - 8th Grade

10 Qs

Energy Drinks

Energy Drinks

6th - 8th Grade

17 Qs

Maya, Aztec, Inca Review

Maya, Aztec, Inca Review

6th - 8th Grade

19 Qs

Geological Time Scale Quiz

Geological Time Scale Quiz

8th Grade

14 Qs

Getting To Know Canvas: Scavenger Hunt

Getting To Know Canvas: Scavenger Hunt

6th - 8th Grade

14 Qs

4 - Table Saw Safety Quiz

4 - Table Saw Safety Quiz

6th - 8th Grade

12 Qs

Coding Week 4 Quiz

Coding Week 4 Quiz

Assessment

Quiz

others

8th Grade

Easy

Created by

Padma Kanukollu

Used 1+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if a ValueError occurs and no except block is provided?

The program will continue to run normally

The error will be ignored

The program will crash and show a traceback

The input will be skipped

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the except block?

To run code that never causes an error

To handle the error raised in the try block

To skip execution

To comment out the error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can go inside a try block?

Only print statements

Only input statements

Any code that may raise an exception

Only variable declarations

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the result of the following code if the user enters 5?

Cannot divide by zero.

Invalid number.

2.0

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is automatically called when a new object is created in a class?

__start__()

__call__()

__init__()

__create__()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

Error

Hello

display

Test

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this code?

value

0

5

Error

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?