test

test

8th Grade - University

22 Qs

quiz-placeholder

Similar activities

TIN 11 BÀI 11 KIỂU MẢNG

TIN 11 BÀI 11 KIỂU MẢNG

11th Grade

18 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

COA_QUIZ_UNIT I

COA_QUIZ_UNIT I

University

20 Qs

Test vstupní a výstupní zařízení PC

Test vstupní a výstupní zařízení PC

10th Grade

21 Qs

Quiz1 TAFL(module-2)2020-21

Quiz1 TAFL(module-2)2020-21

University

20 Qs

UNIT IV Normalization

UNIT IV Normalization

University

20 Qs

Tin 8 (KTTX học kì 1) đề 2

Tin 8 (KTTX học kì 1) đề 2

8th Grade

20 Qs

C# - Teste diagnóstico

C# - Teste diagnóstico

11th Grade

20 Qs

test

test

Assessment

Quiz

Computers

8th Grade - University

Practice Problem

Hard

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In the following program, when will the function draw be called?

Once, inside of start
Never
Every 20 milliseconds
Every 20 seconds

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will call a function animate every 50 milliseconds?

setTimer(animate, 50);
setTimer(animate(), 50);
for(var i = 0; i < 50; i++){
animate();
}
timer.animate(50);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To add a rectangle named rect to the screen, which command do you need to give?

add(rect);
new(rect);
put(rect);
rect();

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to negate a boolean in JavaScript?

NOT
!
~
&

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After the following code runs, what is the value of b?
var a = true; var b = a || false;

true
false
"b"
"a || false"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A store has 20 apples in inventory.How can you store this information in a JavaScript variable?

var numApples == 20;
20 = numApples;
var numApples = 20;
var num apples = 20;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We want to print “CodeHS is the best” exactly 25 times.What control structure should we use?

break statement
for loop
while loop
if statement

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?