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
HCI - 1.1 & 1.2 Introduction To HCI

Quiz
•
University
15 questions
Python-Grundlagen (IF Kl. 10)

Quiz
•
10th Grade - University
13 questions
Python

Quiz
•
University
12 questions
CS201: Chapter 1

Quiz
•
University
10 questions
TIU Quiz-4

Quiz
•
University
10 questions
Input Devices

Quiz
•
University
10 questions
Computer Organization and Architecture Quiz

Quiz
•
University
15 questions
IT SKILLS

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University