Error Finding

Error Finding

12th Grade

10 Qs

quiz-placeholder

Similar activities

emtech

emtech

12th Grade

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Common Protocols

Common Protocols

10th - 12th Grade

15 Qs

Basic computer

Basic computer

9th - 12th Grade

8 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

ICT as Platform for Change

ICT as Platform for Change

11th - 12th Grade

10 Qs

Error Finding

Error Finding

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Demon Dog

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the error in the following Python code?

print("Hello, world!)

a) Missing colon

b) Missing quotation mark


c) Missing parentheses

d) No error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the error in the following Python code?

if x = 5:

print("x is 5")

Not using any comparison operator for assignment
Using a colon (:) instead of an equal sign (=) for assignment
Using a triple equal sign (===) for assignment
Using a single equal sign (=) for assignment instead of a double equal sign (==) for comparison

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the error in the following Python code?

for i in range(5)

print(i)

Missing semicolon after 'for' loop statement
Incorrect indentation in 'for' loop
Missing colon (:) after 'for' loop statement
Wrong loop variable used in 'for' loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the error in the following Python code?

while True:

print("Infinite loop")

Missing break statement
Incorrect indentation
Syntax error in print statement
Missing continue statement

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the error in the following Python code?

def my_function:

print("Hello")

Missing quotation marks around function name
Missing colon after function name

no error

Missing parentheses after function name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the error in the following Python code?

x = 10

y = 5

if x > y:

print("x is greater than y")

SyntaxError: invalid syntax
ValueError: x is not defined
TypeError: '>' not supported between instances of 'int' and 'str'
IndentationError: expected an indented block

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the error in the following Python code?

for i in range(5):

print(i)

TypeError
IndentationError
KeyError
SyntaxError

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?