Semester Exam Review

Semester Exam Review

12th Grade

50 Qs

quiz-placeholder

Similar activities

APCSP Review

APCSP Review

9th - 12th Grade

45 Qs

CodeHS Karel Python

CodeHS Karel Python

9th - 12th Grade

48 Qs

CodeHS Programming with Karel

CodeHS Programming with Karel

9th - 12th Grade

48 Qs

CodeHS Karel Unit

CodeHS Karel Unit

9th - 12th Grade

48 Qs

AP CSP Exam Review

AP CSP Exam Review

9th - 12th Grade

45 Qs

APCSP Unit 4 (and review)  Quiz

APCSP Unit 4 (and review) Quiz

9th - 12th Grade

50 Qs

Exam Review

Exam Review

9th - 12th Grade

50 Qs

Karel Programming Review

Karel Programming Review

9th - 12th Grade

53 Qs

Semester Exam Review

Semester Exam Review

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Alicia Alanis

Used 7+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

let numApples == 20;

20 numApples;

let numApples = 20;

let applesToBuy

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a code comment?

A way to teach Karel a new word

A way to give notes to the reader to explain what your code is doing

A message to your teacher in code

A place to write whatever you want in your code

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following choices is a properly formed JavaScript variable name, meaning it is both legal in the JavaScript language and considered good style?

user_age

UserAge

userAge

User age

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you were given the following variables:

let distance = 2;

let time = 30;

What line of code would print the speed in km/hr if the distance is given in km and the time is given in minutes? (Speed = distance / time)

console.log(distance / (time / 60));

console.log(distance / time);

console.log(distance * (time / 60));

console.log(distance * time);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol do you use to do multiplication in JavaScript?

x

X

*

#

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print to the screen?

console.log(2 + 2);

2 + 2

2

4

22

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following returns a random decimal number between 1 and 10?

randomFloat(1, 10);

randFloat(1, 10);

Randomizer.float(1, 10);

Randomizer.nextFloat(1, 10);

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?