Python Programming 1: print, strings, variables, casting

Quiz
•
Computers
•
9th Grade
•
Medium
Ezra Teh
Used 2+ 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
20 questions
kuis pertama

Quiz
•
University
10 questions
ASESMEN DIAGNOSTIK INFORMATIKA – FASE E

Quiz
•
11th Grade
10 questions
KD-1 Dasar pemrograman python

Quiz
•
10th Grade
15 questions
Củng Cố - Biến và lệnh gán trong Python

Quiz
•
10th Grade
15 questions
ONE 6th FORM Introduction to Python Basics

Quiz
•
11th Grade
16 questions
№5.2. Типи даних. Величини (16 q)

Quiz
•
5th - 11th Grade
10 questions
Python Basics

Quiz
•
University
10 questions
Python Workshop Week 1 Review

Quiz
•
9th - 12th 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 Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade