CS1 - Final Exam Review

CS1 - Final Exam Review

KG - University

32 Qs

quiz-placeholder

Similar activities

Algoritma dan Logika Informatika

Algoritma dan Logika Informatika

University

35 Qs

QUIZ FINAL RP GRADO 6°

QUIZ FINAL RP GRADO 6°

6th Grade

28 Qs

Doamne ajuta Antoane

Doamne ajuta Antoane

12th Grade

28 Qs

Linguagem C - Loops e Array

Linguagem C - Loops e Array

10th Grade

30 Qs

CS380-Mobile Application Developments-1

CS380-Mobile Application Developments-1

KG - University

30 Qs

Networks & Connections Revision

Networks & Connections Revision

9th - 12th Grade

32 Qs

OOSE

OOSE

University

35 Qs

K7_Ôn tập học kỳ 2

K7_Ôn tập học kỳ 2

7th Grade

30 Qs

CS1 - Final Exam Review

CS1 - Final Exam Review

Assessment

Quiz

Computers

KG - University

Medium

Created by

Stephan Moore

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What symbol is used to negate a boolean in JavaScript?

NOT
!
~
&

2.

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"

3.

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

4.

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;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We want to flip a coin until we get 3 heads in a row.What kind of loop should we use?

for loop
while loop
loop and a half
infinite loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we write functions?

Make our code easier to understand 
Avoid writing repeated code
Make our code reusable
All of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of statement allows us to run a block code only if a certain condition is true?

if statement
break statement
else statement
for loop

Create a free account and access millions of resources

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?