Search Header Logo
Review Monday WebDev1

Review Monday WebDev1

Assessment

Presentation

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Noah Marestaing

Used 2+ times

FREE Resource

1 Slide • 10 Questions

1

Review Variables, Conditionals

By Noah Marestaing

2

Multiple Choice

We want to create a variable called rabbit that stores the number 35. What will do that?

1

var rabbit == 33

2

variable rabbit = 33

3

var rabbit = 33

4

var rabbit = "33"

3

Multiple Choice

What data type refers to words or a sentence?

1

boolean

2

number

3

array

4

string

4

Multiple Choice

Is the following true or false?

"dog" != "DOG"

1

True

2

False

3

Both

5

Multiple Choice

Is the following true or false?

100 >= (40 + 60)

1

True

2

False

3

Both

6

Multiple Choice

We want to ask the user for their username. What is missing?

var username = _____("what is your username?")

1

prompt

2

input

3

answer

4

function ask

7

Multiple Choice

What would get printed?

var cat = 300

if (cat > 301) {

console.log("hi")

}

1

hi

2

300

3

there would be an error

4

nothing would be printed

8

Multiple Choice

What can we use when we still want to run some code in an if statement even if the condition is not met?

1

else {

2

otherwise {

3
4

9

Multiple Choice

What is the box at the bottom of p5.js called where things get printed and errors show up?

1

console

2

console.log()

3

canvas

4

output area

10

Multiple Choice

A lot of symbols in code normally come in pairs. So if you have one, you need to have another one or an error shows up. Which of the following does NOT normally come in pairs?

1

curly brackets {

2

parentheses (

3

semicolons ;

4

quotation marks "

11

Multiple Choice

var item1 = "peanut butter"

var item2 = "jelly"

console.log(item1 + item2)

1

"peanut butter jelly"

2

"peanut butter and jelly"

3

"peanut butterjelly"

4

error: you can't add strings together

Review Variables, Conditionals

By Noah Marestaing

Show answer

Auto Play

Slide 1 / 11

SLIDE