Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Soal Informatika semester Ganjil - MA Baitur Rohmah Muhammadiyah

Soal Informatika semester Ganjil - MA Baitur Rohmah Muhammadiyah

10th Grade

25 Qs

Code HS Computer SCi 114.1.1 JavaScript Final Exam Pt. 1

Code HS Computer SCi 114.1.1 JavaScript Final Exam Pt. 1

9th - 12th Grade

25 Qs

Software Testing in Java

Software Testing in Java

1st Grade - University

25 Qs

Threat to data

Threat to data

9th Grade

25 Qs

MID TEST MATERI DEKSTOP DAN WEB APPLICATIONS

MID TEST MATERI DEKSTOP DAN WEB APPLICATIONS

11th Grade

25 Qs

Excel Quiz

Excel Quiz

4th Grade - University

25 Qs

KELAS 6 Analisis Data B. Langkah-Langkah Analisis Data

KELAS 6 Analisis Data B. Langkah-Langkah Analisis Data

6th Grade - University

25 Qs

Remedial Ujian PTS Informatika XI Semester Ganjil

Remedial Ujian PTS Informatika XI Semester Ganjil

11th Grade

25 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Practice Problem

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

Already have an account?