Conditionals Tracing

Conditionals Tracing

Assessment

Flashcard

Computers

University

Hard

Comparison, If, Switch

Standards-aligned

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

8 questions

Show all answers

1.

FLASHCARD QUESTION

Front

All switch statements can be written as if statements, but not all if statements can be written as switch statements.

Back

True

Tags

Comparison

2.

FLASHCARD QUESTION

Front

What is output? For reference: mean(examScores) --> 89 std(examScores) --> 10.3199 Options: 'Exam went well for a few students', 'Exam went well for a few students, some failed', 'Exam went well', 'Exam went poorly'

Back

'Exam went well for a few students, some failed'

Tags

If

3.

FLASHCARD QUESTION

Front

What is a? Options: 'New', Error, 0, 8

Back

Error

Tags

If

4.

FLASHCARD QUESTION

Front

Are these the same?

Back

False

Tags

Comparison

5.

FLASHCARD QUESTION

Front

What is a? Options: -1, -2, -4, 41

Back

-4

Tags

If

6.

FLASHCARD QUESTION

Front

Are these the same?

Back

False

Tags

Comparison

7.

FLASHCARD QUESTION

Front

What is out? Options: Error, 'Too many cows are swimming', 'Not enough', 'Too many cows'

Back

'Too many cows'

Tags

Switch

8.

FLASHCARD QUESTION

Front

Are these the same? Trees will be > 0 and will be an integer (whole number)

Back

False

Tags

Comparison