CS Unit 2 Test

CS Unit 2 Test

Assessment

Flashcard

Computers, Education, Instructional Technology, Fun

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

55 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Given the nested if-else below, what will be the value x when the code is executed successfully? Options: 0, 4, 2, 3

Media Image

Back

3

2.

FLASHCARD QUESTION

Front

What would be outputted here?

Media Image

Back

Bigger than 2! Number is 5

3.

FLASHCARD QUESTION

Front

What would be outputted here? Options: it divides by 7!, it divides by 3!, It divides by 7., It divides by 3.

Media Image

Back

It divides by 3.

4.

FLASHCARD QUESTION

Front

What will be outputted? Options: number is bigger than 10, nothing, an error, NUMBER IS BIGGER THAN 10

Media Image

Back

nothing

5.

FLASHCARD QUESTION

Front

What is the output? Options: 3, 3 7, 3 5 7, 7

Media Image

Back

3

6.

FLASHCARD QUESTION

Front

The user enters 25. What is printed? Options: num1 - 5, num1 = -5, NameError: name 'num1' is not defined

Media Image

Back

NameError: name 'num1' is not defined

7.

FLASHCARD QUESTION

Front

This operator means that one value is the same as the other value: ==, !=, >, <

Back

== is the operator that indicates equality.

Access all questions and much more by creating a free account

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?