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
Similar Resources on Wayground
10 questions
PSP Week3

Quiz
•
University
15 questions
Python introduction

Quiz
•
University
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
10 questions
PYTHON BASICS PART 1

Quiz
•
University
12 questions
Python Basics

Quiz
•
University
9 questions
Introdution to Scripting 2

Quiz
•
University
12 questions
CSSE Quiz Day2

Quiz
•
University
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