Identify the error in the code

Identify the error in the code

9th Grade

16 Qs

quiz-placeholder

Similar activities

1.4 Variables, strings and integers

1.4 Variables, strings and integers

9th Grade

13 Qs

Python Next Steps Homework Quiz

Python Next Steps Homework Quiz

8th - 10th Grade

20 Qs

Sonic Pi Challenge

Sonic Pi Challenge

5th - 12th Grade

12 Qs

MAWD 4.01

MAWD 4.01

9th - 12th Grade

16 Qs

9.1.6 - Starter Quiz

9.1.6 - Starter Quiz

8th - 9th Grade

12 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Small Basic

Small Basic

7th - 9th Grade

17 Qs

AQA GCSE Computer Science - 3.2.2 Programming Concepts

AQA GCSE Computer Science - 3.2.2 Programming Concepts

8th - 10th Grade

20 Qs

Identify the error in the code

Identify the error in the code

Assessment

Quiz

Computers

9th Grade

Easy

Created by

Joshua Harper

Used 1+ times

FREE Resource

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.

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?