[Hall] JS Text - Spot the Error

[Hall] JS Text - Spot the Error

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

CMU CS

CMU CS

9th Grade

10 Qs

Excel IF and Nested IF Functions Quiz

Excel IF and Nested IF Functions Quiz

12th Grade - University

10 Qs

APCSU01D02 Errors

APCSU01D02 Errors

12th Grade

10 Qs

Python Strings

Python Strings

8th - 12th Grade

14 Qs

Syntax and Logic Errors

Syntax and Logic Errors

9th - 11th Grade

12 Qs

Scratch Text Operators

Scratch Text Operators

KG - Professional Development

15 Qs

Python IF Statements

Python IF Statements

9th - 12th Grade

10 Qs

Entry Level - Programming Techniques

Entry Level - Programming Techniques

8th - 9th Grade

13 Qs

[Hall] JS Text - Spot the Error

[Hall] JS Text - Spot the Error

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Jocelyn Hall

Used 6+ times

FREE Resource

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 )

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?