Unit 2 and 3_CS Python

Unit 2 and 3_CS Python

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

Data Engineering y BigQuery V1

Data Engineering y BigQuery V1

12th Grade

10 Qs

ETWINNING SID EVENT 24

ETWINNING SID EVENT 24

1st - 12th Grade

10 Qs

Computer Programming Vocabulary-1

Computer Programming Vocabulary-1

KG - University

11 Qs

Nhập môn HTML

Nhập môn HTML

6th - 9th Grade

13 Qs

Server Administration- Quiz 1

Server Administration- Quiz 1

12th Grade - University

10 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

Thinglink

Thinglink

9th - 12th Grade

10 Qs

Programação Front End - CSS avançado

Programação Front End - CSS avançado

11th Grade

10 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?