
Lec3: Decisions
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Salwa Abougamila
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
53 questions
Unit 6 How Your Choices Affect Income
Quiz
•
12th Grade - University
50 questions
306 Final
Quiz
•
University
50 questions
MapleStory
Quiz
•
KG - University
48 questions
Tissues
Quiz
•
11th Grade - University
50 questions
Philippine Electrical Code (Subject 1) - Nth
Quiz
•
University
50 questions
NSTP 202 Final Exam
Quiz
•
University
46 questions
amino acids
Quiz
•
University
44 questions
Keterampilan Generik dan Berpikir Komputasi
Quiz
•
12th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
