Python - Chpt 1 - Review

Python - Chpt 1 - Review

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

conditional and iterative statements

conditional and iterative statements

11th Grade

10 Qs

CHỦ ĐỀ A. MÁY TÍNH VÀ XÃ HỘI TRÍ THỨC P1

CHỦ ĐỀ A. MÁY TÍNH VÀ XÃ HỘI TRÍ THỨC P1

10th Grade

20 Qs

AI and Python: Ch.1 Revision

AI and Python: Ch.1 Revision

9th Grade

10 Qs

End of term assessment

End of term assessment

9th Grade

15 Qs

Keyboarding Terms

Keyboarding Terms

9th - 12th Grade

10 Qs

C-Programming Basics

C-Programming Basics

12th Grade

16 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Internet

Internet

7th - 10th Grade

10 Qs

Python - Chpt 1 - Review

Python - Chpt 1 - Review

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Beverly Brown

Used 45+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What character begins a comment?

*

/

%

#

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you combine two strings?

string1 + string2

string1.combine(string2)

string1.concatenate(string2)

string1*string2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following defined variables is a string?


cool_variable_1 = 23.18

cool_variable_2 = 9

cool_variable_3 = “Important Message!”

cool_variable_4 = 14 ** 3

cool_variable_3

cool_variable_1

cool_variable_4

cool_variable_2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What number is saved to exponented_variable in the following expression?


exponented_variable = 2 ** 4

8

16

12

24

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of total_cost that gets printed?


total_cost = 5

total_cost += 10

print(total_cost)

15

10

5

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does one define a multi-line string in Python?

***

Like

This

***

###

Like

This

###

“””

Like

This

“””

///

Like

This

///

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the difference between a float and an int?

A float represents decimal quantities. An int represents whole numbers.

A float can only be used with whole numbers. An int can be any number with a decimal point.

A float contains text information. An int is any number.

There is no difference. They can be used interchangeably.

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?