Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

UJIAN MID SMT GENAP INFORMATIKA KLS X TP. 2024/2025

UJIAN MID SMT GENAP INFORMATIKA KLS X TP. 2024/2025

10th Grade

30 Qs

Computer Science Examination Paper A - Allowed Items

Computer Science Examination Paper A - Allowed Items

12th Grade

33 Qs

Python - Chapter 3 Practice Quiz

Python - Chapter 3 Practice Quiz

12th Grade

25 Qs

REMEDIAL ASESMEN SUMATIF AKHIR SEM-GANJIL MULOK 2024

REMEDIAL ASESMEN SUMATIF AKHIR SEM-GANJIL MULOK 2024

12th Grade

30 Qs

 Python Basic (Grade9)

Python Basic (Grade9)

9th Grade

34 Qs

2-semestr  Yakuniy Nazorat

2-semestr Yakuniy Nazorat

10th Grade

25 Qs

Form 4 - CSEC Information Technology Quiz

Form 4 - CSEC Information Technology Quiz

10th Grade - University

30 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Hard

Created by

Godwin Promise

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?