CS Unit 2 Test

CS Unit 2 Test

Assessment

Flashcard

Computers, Education, Instructional Technology, Fun

9th - 12th Grade

Hard

Created by

Quizizz 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

Back

3

2.

FLASHCARD QUESTION

Front

What would be outputted here?

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.

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

Back

nothing

5.

FLASHCARD QUESTION

Front

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

Back

3

6.

FLASHCARD QUESTION

Front

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

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.

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?