Python Basics

Quiz
•
Computers
•
4th - 7th Grade
•
Hard
Keerthana V
Used 34+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is the difference between = and == operators in Python?
= operator checks if two values are equal
WHEREAS
== operator assigns a value to a variable
== operator checks if two values are equal
WHEREAS
= operator assigns a value to a variable
I do not know
Both = and == can be used interchangeably
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between / and % operator
% operator gives the 'Quotient' from a division operation
AND
/ operator gives the 'Remainder' value from a division operation
/ operator gives the 'Quotient' from a division operation
AND
% operator gives the 'Remainder' value from a division operation
I do not know.
Both / and % operators are the same and used interchangeably.
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is a list?
Lists are used to store multiple items in a single variable
Lists are used to store multiple items in a multiple variables
I do not know
4.
MULTIPLE SELECT QUESTION
15 mins • 1 pt
Choose the snippets which will run without errors when executed
raining = "Less"
if raining =="Less"
print " Carry an umbrella"
raining = "Less"
if raining =="Less":
print ("Carry an umbrella" )
raining = "Heavy"
if raining =="Heavy":
print ("Carry an umbrella, wear boots and raincoat " )
elif raining == "Moderate":
print ("Wear boots, take umbrella")
else:
print ("Carry raincoat")
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A "for loop" is used :
To repeat instructions through a specific number of times
To repeat instructions through an undefined number of times
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Using which operator do you insert COMMENTS in Python code?
7.
MULTIPLE SELECT QUESTION
15 mins • 1 pt
Which of the below are acceptable variable names?
result final = 5
result-final = 1
resultFinal = 3
result#final = 4
result_final = 2
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
4--ข้อสอบ ภาษาไพทอน ม.1

Quiz
•
7th Grade
10 questions
Python тілінде программалау

Quiz
•
1st - 10th Grade
10 questions
6 сынып информатика 3-тоқсан қорытынды тест

Quiz
•
6th Grade
10 questions
Introducing Python

Quiz
•
7th Grade
14 questions
Python-basics

Quiz
•
1st - 4th Grade
11 questions
Python Intro 1

Quiz
•
7th - 12th Grade
10 questions
Викторина по Python (Урок 1-2)

Quiz
•
5th - 11th Grade
14 questions
Python Basics - Year 8

Quiz
•
7th - 9th Grade
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
Discover more resources for Computers
11 questions
Standard Response Protocol

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

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

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

Quiz
•
6th - 7th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade
15 questions
Decimal Operations

Quiz
•
6th Grade
10 questions
Common Denominators

Quiz
•
5th Grade
10 questions
Plotting Points on the Coordinate Plane

Quiz
•
7th - 8th Grade