Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Summative Test No. 1_Media and Information Literacy_3rd Quarter

Summative Test No. 1_Media and Information Literacy_3rd Quarter

12th Grade

25 Qs

3 Tri C# 3

3 Tri C# 3

12th Grade

25 Qs

IT Concepts 3

IT Concepts 3

12th Grade - University

25 Qs

RETURN 8-БӨЛІМ

RETURN 8-БӨЛІМ

11th Grade

33 Qs

X_INFORMATIKA

X_INFORMATIKA

10th Grade

25 Qs

2-semestr  Yakuniy Nazorat

2-semestr Yakuniy Nazorat

10th Grade

25 Qs

Information and Communication  Technology and Society

Information and Communication Technology and Society

11th Grade

25 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Hard

Created by

Godwin Promise

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct way to declare a Python variable?

var x = 5

#x = 5

$x = 5

x = 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: You can declare string variables with single or double quotes.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: Variable names are not case-sensitive.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is NOT a legal variable name?

my-var

my_var

Myvar

_myvar

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to add the value 'Hello World', to 3 variables in one statement?

x, y, z = 'Hello World'

x = y = z = 'Hello World'

x|y|z = 'Hello World'

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Insert the correct syntax to convert x into a floating point number.

float

int

str

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Insert the correct syntax to convert x into an integer.

int

float

str

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?