Python Variables, Print, and Input Quiz

Python Variables, Print, and Input Quiz

12th Grade

8 Qs

quiz-placeholder

Similar activities

MID SEMESTER TIK 9 OKT 2020

MID SEMESTER TIK 9 OKT 2020

12th Grade

10 Qs

Anime

Anime

KG - University

10 Qs

Test 1

Test 1

1st - 12th Grade

10 Qs

Chapter 6 Part 2 - 4

Chapter 6 Part 2 - 4

11th - 12th Grade

11 Qs

Quiz - Quarter 4 (Oracle)

Quiz - Quarter 4 (Oracle)

12th Grade

10 Qs

STRUKTUR KAWALAN ULANGAN

STRUKTUR KAWALAN ULANGAN

1st - 12th Grade

12 Qs

bts

bts

KG - Professional Development

13 Qs

ป.6 หน่วยการเรียนรู้ที่ 2 ออกแบบและเขียนโปรแกรมอย่างง่าย

ป.6 หน่วยการเรียนรู้ที่ 2 ออกแบบและเขียนโปรแกรมอย่างง่าย

1st - 12th Grade

10 Qs

Python Variables, Print, and Input Quiz

Python Variables, Print, and Input Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Nicholas Marsh

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to assign a value to a variable in Python?

value = variable_name

variable_name = value

value : variable_name

value -> variable_name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you print the value of a variable x in Python?

display(x)

output(x)

print(x)

show(x)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to take user input in Python?

user_input()

input()

take_input()

get_input()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the function used to convert a string to an integer in Python?

to_integer()

str()

int()

float()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function do you use to convert an integer to a string in Python?

convertToStr()

str()

stringify()

intToStr()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the variable after executing the following code: x = 5.0

integer

boolean

string

float

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to concatenate two strings in Python?

Using the '-' operator

Using the '*' operator

Using the '/' operator

Using the '+' operator

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?