CS Python Fundamentals Quiz 3 Practice

CS Python Fundamentals Quiz 3 Practice

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Linux: Users and Groups

Linux: Users and Groups

9th Grade - University

14 Qs

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 5

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 5

1st - 10th Grade

10 Qs

Ready Player One - HPSS ZOMBIES

Ready Player One - HPSS ZOMBIES

9th Grade

10 Qs

Empowerment Technologies Quiz 2

Empowerment Technologies Quiz 2

11th Grade

10 Qs

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

IP ADDRESSING AND ITS VERSION

IP ADDRESSING AND ITS VERSION

11th Grade

15 Qs

Lesson 5 Looping Quiz

Lesson 5 Looping Quiz

10th - 12th Grade

15 Qs

10° Bimestral informática 3° periodo

10° Bimestral informática 3° periodo

10th Grade

10 Qs

CS Python Fundamentals Quiz 3 Practice

CS Python Fundamentals Quiz 3 Practice

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Scott Chamberlain

Used 7+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 2 pts

What is an if statement specifically designed to do? Select ALL that apply.

Accept user input

Initialize a variable

Make a selection among choices

Evaluate true/false conditions

Repeat sections of code

2.

MATCH QUESTION

1 min • 5 pts

Match the following:

Remainder without quotient

//

Quotient without remainder

>=

Equal to

==

Not equal to

%

Greater or equal to

!=

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which line of code tests to see if x1 and x2 are not equal?

if (x1 == x2):

if (x1 <> x2):

if (x1 =! x2):

if (x1 != x2):

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is printed by this code?

1

2

3

nothing

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which condition performs a test to see whether an integer value is negative and odd?

if (x > 0 and x // 2 == 1):

if (x < 0 and x % 2 == 1):

if (x != 0 and x % 2 == 0):

if (x <> 0 and x / 2 == 0):

6.

MULTIPLE SELECT QUESTION

1 min • 3 pts

The variable food is a string. The code should be checking to see if the food equals pizza. Select ALL of the corrections needed to the following line of code:


if food = pizza

Change if to IF

Change = to !=

Change = to ==

Add : to the end of the line

Add "" around pizza

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How does the and relational operator work?

If any part of the statement is true, the entire statement is true

If any part of the statement is true, the entire statement is false

If any part of the statement is false, the entire statement is true

If any part of the statement is false, the entire statement is false

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?