Expressions coding and or not coding

Expressions coding and or not coding

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

HTML CSS JS Review

HTML CSS JS Review

12th Grade

15 Qs

Programming with JavaScript: Mastery Test

Programming with JavaScript: Mastery Test

11th Grade

16 Qs

Javascript Basics

Javascript Basics

9th - 12th Grade

16 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

JavaScript variable quiz

JavaScript variable quiz

7th - 12th Grade

10 Qs

Conditionals and Logical Operators Review

Conditionals and Logical Operators Review

9th - 12th Grade

10 Qs

Javascript Quiz 2

Javascript Quiz 2

11th Grade

15 Qs

JavaScript Control Structures Basic

JavaScript Control Structures Basic

12th Grade

11 Qs

Expressions coding and or not coding

Expressions coding and or not coding

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Joe Rowe

Used 4+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 What syntax compares using "Equal to" ?

=

==

!=

>=

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 What syntax compares using "Not equal to" ?

=

==

!=

>=

3.

MATCH QUESTION

1 min • 1 pt

Match the following

compare

health to

4

x = 3

comparison

operator

=

assignment

operator

health == 4

true or false

==

assign 3 to x

boolean

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A condition is __________.
any expression that evaluates to True or False
a built-in function that assigns a Boolean value to a variable
a formula that is executed for a result
an operand that indicates both conditions are True or False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var age = 17;

if ( age > 17 ) {

print("you are old enough to vote);
}

Testing a condition

True condition

Always true

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

var yourHealth = 0;

var yourFood = 1;

if ( yourHealth < 1 | | yourFood < 1 ) {

print("you are dead");

}

Testing two conditions

You are dead

you are alive

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if ( x > 200 && y > 200)

Always True

compound condition testing x and y

Always False

x and y always greater than 200

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?