Quiz 4

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which sequence of integers will be generated by range(4)?

[0, 1, 2, 3]

Given two variables, "a" and "b", which expression would you use to test whether or not they are equal?

a==b

What could I use to simplify the following line of Python? rabbit_population = rabbit_population * 2

augmented assignment operator

A __________ is an expression evaluated as either true or false by "if" and "while" clauses.

condition

The "while" statement is an example of a count-controlled loop.

false

A(n) __________ loop has no means of terminating.

infinite

and, or, and not are known as __________ operators.

logical

A loop placed inside another loop, is called a __________ loop.

nested

The answer to this question is the result of the following Boolean expression: 'PROGRAMMING' != 'programming'

true

range() can generate sequences that increment from high to low, like [3, 2, 1, 0].

true


Ensembles d'études connexes

PDBIO 210 --Lesson 6 -- Appendicular Skeleton--Pelvic girdle, os coxae

View Set

Ch. 56 Acute Intracranial Problems

View Set

MS PL-100 Individual Question Sets

View Set

Biology Exam: Polarity, hydrogen bonds, and properties of water

View Set

Chapter 2: Network Infrastructure and Documentation

View Set

ELE 3010 Midterm Exam Hope Parnell Clemson University

View Set