test

test

8th Grade - University

22 Qs

quiz-placeholder

Similar activities

Visual Basic Ch.5 Loops

Visual Basic Ch.5 Loops

9th - 12th Grade

20 Qs

Python while loops

Python while loops

12th Grade

20 Qs

Functions

Functions

9th - 12th Grade

20 Qs

FCS Fall Collective review

FCS Fall Collective review

9th - 10th Grade

21 Qs

For Loops in Python

For Loops in Python

9th Grade - University

20 Qs

For and While Loop in Python

For and While Loop in Python

9th Grade - University

20 Qs

Programming Constructs

Programming Constructs

9th - 10th Grade

20 Qs

TN +2 -LESSON1 FUNCTIONS

TN +2 -LESSON1 FUNCTIONS

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?