Python Basics

Python Basics

KG - University

16 Qs

quiz-placeholder

Similar activities

Python basics yr7

Python basics yr7

6th - 9th Grade

20 Qs

Chapter 1 Python

Chapter 1 Python

8th Grade - University

12 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Basics Python

Basics Python

8th - 10th Grade

20 Qs

Introduction to Python

Introduction to Python

University

20 Qs

Review Python

Review Python

8th Grade

15 Qs

Python basic

Python basic

9th Grade

21 Qs

Python Basics 2

Python Basics 2

11th Grade

15 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

KG - University

Hard

Used 1K+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
How would you assign an integer to a variable?
new_var = 4
new_var == 4
new_var = "4"
new var "4"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
How would would you print a text string?
output "Hello!"
print ("Hello!")
print (Hello!)
output (Hello!)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Which symbol do we use if we want to add a comment to our code?
@
#
*
&

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
To create a variable named new_var and assign it a value of 81 divided by 9, which statement would you use?
new_var = 81 \ 9
new_var = "81 / 9"
new_var = "81 \ 9"
new_var = 81 / 9

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Choose the statement that assigns 4 to the power of 3 to the variable new_var...
new_var = 4 ** 3
new_var = 3 ** 4
new var = 3 ** 4
new_var = 4 ^^ 3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Which of the following is a float?
new_var = 1234
new_var = True
new_var = 1.234
new_var = "True"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Which of the following is not a string?
new_var = "True"
new_var = "3123"
new_var = "3.123"
new_var = False

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?