Unit 2 and 3_CS Python

Unit 2 and 3_CS Python

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

MEDIA AND INFORMATION LITERACY

MEDIA AND INFORMATION LITERACY

12th Grade

10 Qs

To Change or Not to Change?

To Change or Not to Change?

12th Grade

10 Qs

networks

networks

11th Grade

10 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

Fundamentos PHP (Manejo de Fomularios y arreglos)

Fundamentos PHP (Manejo de Fomularios y arreglos)

9th Grade

10 Qs

IT- Revision

IT- Revision

9th Grade

10 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

Unit 2 and 3_CS Python

Unit 2 and 3_CS Python

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Marco Castro

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the code to test if num1 and num2 are the same.

if num1 == num2:

if num1 != num2:

if num1 < num2:

if num1 = num2:

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

1

2

3

syntax error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following would NOT fix the error for the following code:

Change Bob to "Bob"


Add parentheses in the code

Add a : (colon) at the end of the line of code

Change IF to if

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To test if a variable is between two numbers you would use:

and

else

or

!

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the Output for the following code?

1

2

3.4

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following calculations would evaluate to 12?

3 * 6 + 2 / 2

(3 * 6 + 2) / 2

3 * ((6 + 2) / 2)

(3 * 6) + 2 / 2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When should you use an else statement?

To execute code when one of the other expressions were TRUE

To check one of many expressions for TRUE

To check the first expression for TRUE

To execute code if none of the other expressions were TRUE

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?