T02: Python - The Basics
Quiz
•
Computers
•
University
•
Medium
Miriam Santos
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the result of 1 // 2 ?
0
0.5
1.0
1
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the result of 7 % 5 ?
2
1
1.4
3
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which operator has the highest precedence in Python?
Multiplication
Addition
Exponentiation
Division
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which one uses f-strings correctly?
print("Your age is {}".format(age))
print(f"Your age is {age}")
print("Your age is %d" % age)
print("Your age is " + str(age))
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is NOT part of the Zen of Python?
Simple is better than complex
Readability counts
Flat is better than nested
Optimisation is king
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the result of 2 + 3 * 2 ** 2 ?
100
14
64
38
7.
MULTIPLE SELECT QUESTION
10 sec • 1 pt
Which of these are NOT valid in Python?
class
my variable
abc
import_from
5days
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Lourdes Amaranta Ayala Gracia
Quiz
•
8th Grade - University
10 questions
BIOMETRICS-UNIT-I
Quiz
•
University
15 questions
ER MODEL
Quiz
•
University
10 questions
CHAPTER 1: COMPUTER SECURITY REVIEW
Quiz
•
University
10 questions
ระบบทางเทคโนโลยี ม.4
Quiz
•
10th Grade - University
13 questions
Chap 1: What is a program made of?
Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
15 questions
Komponen Jaringan & Pengkabelan
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
