
Lec3: Decisions

Quiz
•
Other
•
University
•
Hard
Salwa Abougamila
FREE Resource
48 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
42 is of which data type in Python?
String
Integer
Float
Boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of: print("3" + "4")?
34
7
Error
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is a valid variable assignment in Python?
x = 5
5 = x
x == 5
x := 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does input("Enter a number: ") do?
It displays a message and waits for the user to enter a value.
It prints a number to the screen.
It adds two numbers together.
It exits the program.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, # is used to:
Define a function
Indicate a comment
Start a loop
End a program
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The purpose of an if statement is:
to repeat a block of code multiple times
to make decisions based on conditions
to define a function
to store data in variables
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is a string in Python?
42
3.14
'hello'
True
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
METHODOLOGIES EXAM 1 AND 2

Quiz
•
University
50 questions
Contract Law Revision

Quiz
•
University
51 questions
ict 2021

Quiz
•
University
50 questions
Elec 06-01 to Elec 06-04 Semicon

Quiz
•
University
50 questions
untitled

Quiz
•
11th Grade - University
50 questions
TRY OUT KE -3 TEORI KEJURUAN TKRO

Quiz
•
12th Grade - University
50 questions
SISTEM INFORMASI (Luring Akhir)

Quiz
•
University
50 questions
UTS PRELIMS

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University