What is the result of 1 // 2 ?
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
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
Similar Resources on Quizizz
10 questions
PYTHON_CHAPTER 3

Quiz
•
University
10 questions
Bahasa Pemrograman Python

Quiz
•
University
14 questions
Python Revision

Quiz
•
University
15 questions
Grade 8 End of Unit Revision

Quiz
•
8th Grade - University
15 questions
Quiz 142 - Python inputs and outputs

Quiz
•
9th Grade - University
15 questions
Exam 1 Practice

Quiz
•
University
10 questions
Python Basics

Quiz
•
University
10 questions
Lesson 1 Recap

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade