KA Intro to JS: Drawing Basics

KA Intro to JS: Drawing Basics

KG - University

7 Qs

quiz-placeholder

Similar activities

CMU CS Academy Unit 6.1 Groups (Postion Properties) Part 1

CMU CS Academy Unit 6.1 Groups (Postion Properties) Part 1

9th Grade

6 Qs

JavaScript Graphics

JavaScript Graphics

9th - 12th Grade

10 Qs

Unit 1 - Intro to p5.js

Unit 1 - Intro to p5.js

6th Grade

5 Qs

Unit 3, Lessons 3 & 4

Unit 3, Lessons 3 & 4

6th - 8th Grade

10 Qs

Khan Academy Programming

Khan Academy Programming

KG - University

7 Qs

Quiz de Funções em p5.js

Quiz de Funções em p5.js

10th Grade - University

10 Qs

Define Variables

Define Variables

9th - 12th Grade

12 Qs

JavaScript quiz

JavaScript quiz

6th - 8th Grade

10 Qs

KA Intro to JS: Drawing Basics

KA Intro to JS: Drawing Basics

Assessment

Quiz

Computers

KG - University

Medium

Used 691+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these lines of JS code are syntactically correct?
rect(100, 100, 50, 50);
rect[100, 100, 50, 50];
rect(100 100 50 50);
rect(100, 100, 50, 50):

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these lines of JS code are syntactically correct?
ellipse(100; 100; 50; 50);
ellipse(100 100 50 50);
ellipse  (100, 100, 50, 50)
ellipse(100, 100, 50, 50);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the  Khan Academy programming environment, where is the point (0, 0)?
upper left corner
center
upper right corner
lower left corner

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many parameters should you pass to the line() function?
1
2
4
6

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these function calls draws a perfect circle?
ellipse(100, 100, 200, 50);
ellipse(50, 200, 100, 100);
ellipse(50, 100, 100, 200);
ellipse(100, 50, 200, 100);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For the line() function, what numbers should you pass to the third and fourth parameters?
The width and height of the line
The end x position and end y position of the line
The amount to rotate and skew the line
Your 2 favorite numbers in the world

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these function calls draws a square?
rect(100, 100, 75, 60);
rect(75, 60, 100, 100);
rect(100, 60, 75, 100);
rect(60, 100, 100, 75);