Python Programming 1: print, strings, variables, casting
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Ezra Teh
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the correct file extension for Python files?
.py
.pt
.python
.pyt
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
True or False: Indentation in Python is for readability only.
True
False
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a correct way to declare a Python variable?
int x = 5
x = 5
5 = x
declare x = 5
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which is NOT a legal variable name in Python?
my_var
myVar
2myvar
my_var2
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
True or False: Variable names are not case-sensitive in Python.
True
False
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Consider the following code: print('Hello', 'World'). What will be the printed result?
HelloWorld
Hello,World
Hello World
'Hello' 'World'
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which is NOT a legal numeric data type in Python?
int
float
double
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
UTS Semester 1 Informatika 2024/2025
Quiz
•
8th Grade - University
17 questions
Conocimientos previos - grado noveno
Quiz
•
9th Grade
12 questions
Python_基礎觀念
Quiz
•
9th Grade
20 questions
kiểm tra khối 3
Quiz
•
1st - 10th Grade
15 questions
R087 LO1 - Uses & properties of interactive multimedia products
Quiz
•
9th Grade
20 questions
2324tx6
Quiz
•
9th - 12th Grade
19 questions
QUIZ INFORMATIKA
Quiz
•
1st - 10th Grade
20 questions
KELAS 7 1
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
