test

test

8th Grade - University

22 Qs

quiz-placeholder

Similar activities

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

Data Structures: 1D,2D & List

Data Structures: 1D,2D & List

11th Grade

17 Qs

Q1 M3 PRE-TEST

Q1 M3 PRE-TEST

10th Grade

20 Qs

CCEA Digital Technology Chapter 14 Multimedia Applications

CCEA Digital Technology Chapter 14 Multimedia Applications

11th Grade

20 Qs

Loops

Loops

9th Grade

19 Qs

Klávesnice

Klávesnice

6th - 10th Grade

17 Qs

Transistors

Transistors

11th Grade

19 Qs

sec1 _ Revision

sec1 _ Revision

10th 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?