Python Basics Quiz - Variables Round 2

Python Basics Quiz - Variables Round 2

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

PWPB - 11 RPL

PWPB - 11 RPL

11th Grade

15 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

LMS dan Media Pembelajaran SMP Ricci 1

LMS dan Media Pembelajaran SMP Ricci 1

7th - 9th Grade

10 Qs

Alat - Alat Fiber Optic dan Fungsinya

Alat - Alat Fiber Optic dan Fungsinya

10th Grade

10 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

MEDIA AND INFORMATION LITERACY

MEDIA AND INFORMATION LITERACY

12th Grade

10 Qs

Python Basics Quiz - Variables Round 2

Python Basics Quiz - Variables Round 2

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Angelito Villalon

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you assign a value to a variable in Python?

x <- 1

x = 1

x == 1

x : 1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

my-var

2myvar

_myvar

my var

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type would be used to represent the value 2.2 in Python?

str

float

int

char

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you output the value of a variable in Python?

console.log(x)

print(x)

output(x)

echo(x)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a rule for creating variable names in Python?

Cannot contain spaces

Can start with a number

Case-sensitive

Can contain alpha-numeric characters and underscores

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(type(1))?

error

type1

type(1)

(type(1))

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a string in Python?

True

None

'Hello'

123

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

Already have an account?