Python_Chapter 3_Part One

Python_Chapter 3_Part One

University

18 Qs

quiz-placeholder

Similar activities

G Suite for Education Overview

G Suite for Education Overview

University

20 Qs

Cyber Crime

Cyber Crime

University

20 Qs

LITERACIES in the 21st Century

LITERACIES in the 21st Century

University

20 Qs

Final Exam--Educ 6

Final Exam--Educ 6

University

20 Qs

TOPIC 1 COMPUTER HARDWARE

TOPIC 1 COMPUTER HARDWARE

University

19 Qs

ICT Competency Standards Quiz

ICT Competency Standards Quiz

University

14 Qs

Learning, Media and Instruction 1st Quiz

Learning, Media and Instruction 1st Quiz

University

15 Qs

Software Development (review)

Software Development (review)

University

15 Qs

Python_Chapter 3_Part One

Python_Chapter 3_Part One

Assessment

Quiz

Instructional Technology

University

Practice Problem

Hard

Created by

Kevin Tinsley

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?