Python Basics

Python Basics

KG - University

16 Qs

quiz-placeholder

Similar activities

CD 3 PHẦN MỆ SOẠN THẢO VĂN BẢN

CD 3 PHẦN MỆ SOẠN THẢO VĂN BẢN

1st - 7th Grade

12 Qs

Segundo

Segundo

8th Grade

15 Qs

Pretest TIK

Pretest TIK

10th Grade

20 Qs

Pengantar Teknologi Informasi 8

Pengantar Teknologi Informasi 8

University

17 Qs

DPS Jorhat - Robotics Skill Assessment

DPS Jorhat - Robotics Skill Assessment

6th - 8th Grade

20 Qs

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

¿Qué es un sistema operativo?

¿Qué es un sistema operativo?

10th Grade

19 Qs

DCN5511: Chapter 5 - 7

DCN5511: Chapter 5 - 7

University

15 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

KG - University

Practice Problem

Hard

Used 1K+ times

FREE Resource

AI

Enhance your content in a minute

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

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 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

1 min • 1 pt

Media Image

How would would you print a text string?

output "Hello!"
print ("Hello!")
print (Hello!)
output (Hello!)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which symbol do we use if we want to add a comment to our code?

@
#
*
&

4.

MULTIPLE CHOICE QUESTION

1 min • 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

1 min • 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

1 min • 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

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?