Python Programming 1: print, strings, variables, casting

Quiz
•
Computers
•
9th Grade
•
Medium
Ezra Teh
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Basics Quiz

Quiz
•
9th Grade
20 questions
Unit 3 Python TEST

Quiz
•
11th - 12th Grade
10 questions
Python Variables

Quiz
•
7th - 12th Grade
20 questions
ITIPT01 Quiz No 1

Quiz
•
University
15 questions
Python Casting and Input

Quiz
•
8th - 11th Grade
20 questions
Python String

Quiz
•
12th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
18 questions
Kiểu dữ liệu xâu kí tự trong Python

Quiz
•
10th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade