Search Header Logo

Identify the error in the code

Authored by Joshua Harper

Computers

9th Grade

Used 1+ times

Identify the error in the code
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Identify the error in the code below.

There is an extra bracket

There is a lowercase p in print

There is a missing bracket

No speech marks should be used

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Identify the error in the code below.

There is an extra speech mark

There is a lowercase p in print

The end bracket is green rather than black

There is a missing speech mark

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Identify the error in the code below.

There is a missing speech mark

There is an extra speech mark

Hello Jane should be black, not green

== should have been used rather than =

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Identify the error in the code below.

There is a missing bracket

There is an extra bracket

Speech marks have been used

Hello Jane should be in black not green

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Identify the error in the code below.

Speech marks have not been placed around the variable called name in line 1.

Speech marks have been used around "Hello Jane".

Brackets have been used in line 2.

Speech marks have been placed around the variable called name in line 2.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

We wanted the words “Hello Jane” to be printed on the screen, but instead an error was displayed. Why is this?

== should have been used, not =.

The variable called name stores the words Hello Jane, not the variable called bob.

bob should not be surrounded by brackets.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Identify the error in the code below.

The word IF should have been used at the start of line 4, not ELIF.

There is a colon at the end of the elif statement in line 4.

The word ELIF should have been used at the start of line 2, not IF.

There is a missing colon at the end of the first if statement in line 2.

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?