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
15 questions
Python Basics

Quiz
•
University
13 questions
Python Reflect

Quiz
•
8th Grade - University
12 questions
Neural Networks Basic with Python

Quiz
•
University - Professi...
10 questions
G12_Week7

Quiz
•
12th Grade - University
10 questions
Python User Input Quiz

Quiz
•
6th Grade - University
15 questions
Python Variables

Quiz
•
University
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
10 questions
Executing SQL Commands With Python

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University