Animation and Games JavaScript

Animation and Games JavaScript

9th - 12th Grade

24 Qs

quiz-placeholder

Similar activities

PH Infromatika kls IX Bab 4, 5, 6

PH Infromatika kls IX Bab 4, 5, 6

9th Grade

20 Qs

Computer Fundamentals

Computer Fundamentals

10th Grade

20 Qs

Latihan Jaringan Dasar PSAS

Latihan Jaringan Dasar PSAS

10th Grade

20 Qs

Text and Image representation

Text and Image representation

11th Grade

22 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

Practice Quiz for Term 1

Practice Quiz for Term 1

10th Grade

20 Qs

Informática 1

Informática 1

10th Grade

20 Qs

ICT WEBINAR QUIZ

ICT WEBINAR QUIZ

KG - Professional Development

20 Qs

Animation and Games JavaScript

Animation and Games JavaScript

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What does this program do?

Animates a ball by moving it down and to the right once every 20 milliseconds.

Animates a ball by moving it up and to the right once every 20 milliseconds

Animates a ball by moving it down and to the right every 20 seconds

Animates a ball by moving it up and to the right once every 20 seconds

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which of the following statements are true about ball?

I – ball is a local variable

II – the ball variable in draw is different from the ball variable in start

III – ball is a global variable

IV – ball’s scope includes both start and draw

III and IV

I and II

III only

I, II, III, and IV

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

The following program animates a ball by setting a timer to move the ball across the screen. We want the animation to stop whenever the user clicks the mouse:


Which statement would stop the animation in this program?

stopTimer(ball.move(2, 2));

stopTimer(draw);

stopTimer(draw());

stopTimer(draw, 20);

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

We extend our draw function to include:


How many times will the ball be moved before the animation stops?

20

40

2

25

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following are techniques that make our code more reusable?

I – Using constants instead of magic numbers

II – Using specific values in our functions rather than using parameters

III – Writing multiple functions that solve small subproblems rather than one function that solves the entire problem.

IV – Writing as few lines of code as possible

I, II, and III

II and IV

I and III, and IV

I, II, III, and IV

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which function has better reusability?

Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How many circles of radius 10 will fit vertically stacked in a window that has height 100? The circles should not overlap, the bottom of one circle should touch the top of the next circle.

10

20

5

100

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?