Coding Week 4 Quiz

Coding Week 4 Quiz

8th Grade

14 Qs

quiz-placeholder

Similar activities

8 - 9 FINAL

8 - 9 FINAL

8th Grade

15 Qs

Vocabulary Definitions and Critical Thinking Quiz

Vocabulary Definitions and Critical Thinking Quiz

7th Grade - University

15 Qs

Unit 1 Notebook Quiz - FCCLA and Careers

Unit 1 Notebook Quiz - FCCLA and Careers

8th Grade - University

11 Qs

5 Fields of Social Studies practice

5 Fields of Social Studies practice

6th - 8th Grade

17 Qs

S.S. U1 L1 Vocabulary Quiz

S.S. U1 L1 Vocabulary Quiz

5th Grade - University

12 Qs

Study Skills: Percent Review

Study Skills: Percent Review

8th Grade

10 Qs

Expectations & Procedures Quiz

Expectations & Procedures Quiz

6th - 8th Grade

18 Qs

Booked, Pages 1-22

Booked, Pages 1-22

8th Grade

10 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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?