Unit 4: Variables, Conditionals, & Functions  (2)

Unit 4: Variables, Conditionals, & Functions (2)

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

32 questions

Show all answers

1.

FLASHCARD QUESTION

Front

When is a compound condition using the logic operator AND true?

Back

When both of the conditions are true

2.

FLASHCARD QUESTION

Front

Which are examples of Boolean operators? Options: AND, OR and NOT, Greater than (>), less than (<) and equal to (=), Multiplication (*), subtraction (-), addition (+) and division (/), Picking random numbers

Back

AND, OR and NOT

3.

FLASHCARD QUESTION

Front

Which are examples of relational operators? Options: AND, OR and NOT, Greater than (>), less than (<) and equal to (=), Multiplication (*), subtraction (-), addition (+) and division (/), Picking random numbers

Back

Greater than (>), less than (<) and equal to (=)

4.

FLASHCARD QUESTION

Front

Which of the following is FALSE regarding ELSE IF statements?
You add an ELSE IF when you have another condition you want to check.
You are limited to only one ELSE in your code
Each condition in an ELSE IF is checked from top to bottom
The final ELSE clause is executed if all the previous conditions evaluated to false.

Back

You are limited to only one ELSE in your code

5.

FLASHCARD QUESTION

Front

Which of the following statements regarding AND/OR operators are FALSE? true && true --> true, true && false --> true, false || true --> true, false || false --> false

Back

true && false --> true

6.

FLASHCARD QUESTION

Front

Which of the following statements regarding AND/OR/NOT operators are TRUE? Options: !(true) = true, true || true = false, false && true = true, false || true = true

Back

false || true = true

7.

FLASHCARD QUESTION

Front

Based on the following, determine whether the expression !(season== “Summer”) is TRUE or FALSE:

var season= “Spring”;

Back

True

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?