
Python_Chapter 3_Part One

Quiz
•
Instructional Technology
•
University
•
Hard
Kevin Tinsley
Used 4+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
ADB Quiz #1

Quiz
•
University
16 questions
OSH (BNP20402): Quiz #3

Quiz
•
University
20 questions
ICT 9 Q4 M1 & 2

Quiz
•
9th Grade - University
15 questions
TECHNOLOGY PROBLEM SOLVING

Quiz
•
8th Grade - University
16 questions
Online Workshop Yakobus

Quiz
•
6th Grade - Professio...
20 questions
HCI Chapter 7

Quiz
•
University
20 questions
NACES Orientation quiz

Quiz
•
University
20 questions
Integrative Programming BSIT404- Q1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
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
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University