
Python Quiz - Beginner level

Quiz
•
Computers
•
7th Grade
•
Medium
Deepti Vaidya
Used 6+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In Python, a variable must be declared before it is assigned a value:
True
False
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following statements assigns the value 100 to the variable x in Python:
let x = 100
x = 100
x := 100
x ← 100
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type:
True
False
4.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of the following are valid Python variable names:
4square
Age
route66
ver1.3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are reading Python code, and these statements appear scattered in different locations throughout the code:
employeenumber = 4398
.
.
.
EmployeeNumber = 4398
.
.
.
employeeNumber = 4398
These statements refer to the same variable.
These statements refer to different variables.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is correct way of declaring and initialising a variable, x with value 5?
int x
x=5
int x=5
x=5
declare x=5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is incorrect regarding variables in Python?
Variable names in Python cannot start with number. However, it can contain number in any other position of variable name.
Variable names can start with an underscore.
Data type of variable names should not be declared
None of these
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable?
var@
32var
abc_a_c
All of them
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python was developed by
Guido van Rossum
James Gosling
Dennis Ritchie
Bjarne Stroustrup
Similar Resources on Wayground
10 questions
Python Plus : Rock, Paper, Scissors

Quiz
•
6th - 8th Grade
10 questions
Coding: Conditionals

Quiz
•
6th - 8th Grade
8 questions
Intro to Python

Quiz
•
7th - 9th Grade
13 questions
Python Basics Revision

Quiz
•
6th - 8th Grade
10 questions
Python3

Quiz
•
4th Grade - University
12 questions
Python

Quiz
•
7th - 9th Grade
8 questions
Python

Quiz
•
KG - 9th Grade
10 questions
Programming with Python

Quiz
•
7th - 9th 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
18 questions
Company Logos

Quiz
•
6th - 8th 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