
Python_Chapter 3_Part One
Quiz
•
Instructional Technology
•
University
•
Practice Problem
•
Hard
Kevin Tinsley
Used 4+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of expression has a value of either true or false?
relational
binary
Boolean
if-else
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following creates a Boolean variable?
flag = True or False
flag = True
if flag == True:
flag == "False"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The and operator has
higher precedence than the or operator, but lower precedence than the not operator
higher precedence than the or and not operators
lower precedence than the or operator, but higher precedence than the not operator
lower precedence than the or and not operators
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following in this expression is evaluated first?
age >= 65
age <= 18
status == "retired"
age >= 65 or age <= 18
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following in this expression is evaluated first?
age >= 65
status == "retired"
age < 18
status == "retired" or age < 18
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When two strings are compared, they are evaluated based on the _________________ of the characters in the string.
uppercase/lowercase sequence
alphabetical order
sort sequence
string method
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To compare two strings with mixed uppercase and lowercase letters, a programmer can first use the
upper() method to convert the first character in each string to uppercase.
lower() method to convert all characters in each string to lowercase.
lower() method to convert all characters after the first character in each string to lowercase.
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
15 questions
Combinational Circuits
Quiz
•
University
20 questions
MOODLE LMS
Quiz
•
10th Grade - Professi...
15 questions
Software engineering
Quiz
•
University
17 questions
TV shows and movies
Quiz
•
1st Grade - Professio...
20 questions
Plumbing
Quiz
•
University
15 questions
Car Companies of the world (1.1 update)
Quiz
•
KG - University
20 questions
Air Cargo Management 01
Quiz
•
University
15 questions
ASSESSMENT IN LEARNING (BEED)
Quiz
•
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Instructional Technology
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
