CSP Unit 5 Assessment 2 review (code.org)

CSP Unit 5 Assessment 2 review (code.org)

9th - 12th Grade

13 Qs

quiz-placeholder

Similar activities

Distribución Binomial

Distribución Binomial

11th - 12th Grade

10 Qs

Term 1 Week 9

Term 1 Week 9

11th Grade

10 Qs

DJöflaeyjan - Kárakappar lengi lifi!

DJöflaeyjan - Kárakappar lengi lifi!

9th - 10th Grade

15 Qs

Compositors del segle XX

Compositors del segle XX

8th - 12th Grade

11 Qs

28.02 C sharp

28.02 C sharp

12th Grade

15 Qs

How much do I know about my school?

How much do I know about my school?

7th - 12th Grade

10 Qs

Types of Assertions Quiz

Types of Assertions Quiz

11th Grade

10 Qs

Queen

Queen

4th Grade - University

9 Qs

CSP Unit 5 Assessment 2 review (code.org)

CSP Unit 5 Assessment 2 review (code.org)

Assessment

Quiz

Other

9th - 12th Grade

Practice Problem

Medium

Created by

Frances Tee

Used 48+ times

FREE Resource

AI

Enhance your content in a minute

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

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

a = 11 and c = 8, what will be displayed by the program?

The answer is a

The answer is c

The answer is 11

The answer is 8

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var age = 20

var grade = 12


(age < 10) || (grade < 20) evaluates to what value?

Error undefined

true

false

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Javascript, what is not true about strings?

Strings consist of a sequence of concatenated characters.

Strings are indicated by quotation marks.

Strings with numerical digits in them are invalid.

Strings sometimes include spaces.

A string can be empty.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the line of code will result in the following display in the debug log:


Goodbye!

Have a nice day.

console.log("Goodbye! \tHave a nice day.");

console.log("Goodbye \nHave a nice day.");

console.log("Goodbye!\nHave a nice day.");

console.log("Goodbye! \newlineHave a nice day.");

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output for the following code?


var num = 11;

var str = "see ya!";

var result = num + str;

console.log(result);

11 see ya!

error on num + str type mismatch

11 + see ya!

11see ya!

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Boolean expressions evaluate to which one of these possible values?

Yes/No/Maybe

Any Integer

0 or 1

True / False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The code below is psuedo code, do not worry about syntax. What is the result of running this code?


john = 5

if john > 6:

print("John is getting ice cream")

else:

print("John is getting apple juice")

print("John is getting grapes")

John is getting ice cream

John is getting ice cream

John is getting grapes

John is getting grapes

John is getting apple juice

John is getting grapes

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?