Python Programming Quiz

Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Hard
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
Similar Resources on Wayground
35 questions
Python Programmieren 1.0

Quiz
•
10th Grade
30 questions
Call by Reference Vs Call by Value

Quiz
•
11th Grade
25 questions
Understanding the concept of list

Quiz
•
11th Grade
25 questions
Data Types

Quiz
•
12th Grade
31 questions
Quiz on Variables, Constants, and Data Types

Quiz
•
9th Grade
25 questions
Soal Informatika Kelas XI Strategi Algoritmik dan Pemrograman

Quiz
•
11th Grade
25 questions
G9-Introduction to Python Programming

Quiz
•
9th Grade - University
29 questions
Teste de Avaliação em Python

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
12 questions
Graphing Inequalities on a Number Line

Quiz
•
9th Grade
20 questions
Cell Organelles

Quiz
•
9th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
15 questions
Two Step Equations

Quiz
•
9th Grade