test

test

8th Grade - University

22 Qs

quiz-placeholder

Similar activities

Python For And While Loop

Python For And While Loop

9th Grade - University

20 Qs

ABD9 (C++)

ABD9 (C++)

University

19 Qs

/Python_Quiz\

/Python_Quiz\

KG - Professional Development

20 Qs

Python Loops

Python Loops

University

17 Qs

Chapter 5 loops structure

Chapter 5 loops structure

10th Grade

20 Qs

JavaScript Control Structures

JavaScript Control Structures

9th - 12th Grade

20 Qs

PHP First Internal Practical Viva

PHP First Internal Practical Viva

University

20 Qs

Final Exam - VR

Final Exam - VR

9th - 12th Grade

20 Qs

test

test

Assessment

Quiz

Computers

8th Grade - University

Hard

Used 6+ times

FREE Resource

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

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?