Search Header Logo

[Hall] JS Text - Spot the Error

Authored by Jocelyn Hall

Computers

9th - 12th Grade

Used 9+ times

[Hall] JS Text - Spot the Error
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line contains an error?

Line 5

Line 6

Line 7

No Error

Answer explanation

Media Image

The text command should have three parameters

text( "text", x-pos, y-pos)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line contains an error?

Line 5

Line 6

Line 7

No Error

Answer explanation

Media Image

On line 7 cheese is missing quotation marks.

All text to be displayed to the canvas should be inside " ".

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line contains an error?

Line 5

Line 6

Line 7

No Error

Answer explanation

Media Image

On line 6 text size is not capitalized correctly.

It should be textSize

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line contains an error?

Line 5

Line 6

Line 7

No Error

Answer explanation

Media Image

On line 5 fill should contain three values.

(red, green, blue)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line contains an error?

Line 5

Line 6

Line 7

No Error

Answer explanation

Media Image

There is no error in this setup function.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line contains an error?

Line 5

Line 6

Line 7

No Error

Answer explanation

Media Image

On line 7 there is a missing comma between the text and x-position.

It should be

text("cheese" , 30 , 30)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which line contains an error?

Line 5

Line 6

Line 7

No Error

Answer explanation

Media Image

On line 6 there is an extra space between text and size

It should be

textSize( 28 )

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?