Exam one python

Ace your homework & exams now with Quizwiz!

In Python the ________ symbol is used as the not-equal-to operator.

!=

What type of loop structure repeats the code a specific number of times?

Count-Controlled loop

Reducing duplication of code is one of the advantages of using a loop structure

True

Which logical operators perform short-circuit evaluation?

and, or, not

In a print statement, you can set the ________ argument to a space or empty string to stop the output from advancing to a new line.

end

The Python language is not sensitive to block structuring of code.

false

What is the informal language, used by programmers use to create models of programs, that has no syntax rules and is not meant to be compiled or executed?

pseudocode

A(n) ________ structure is a logical design that controls the order in which a set of statements execute.

sequence

A flowchart is a tool used by programmers to design programs.

true

A while loop is called a pretest loop because the condition is tested after the loop has had one iteration.

true

Both of the following for clauses would generate the same number of loop iterations

true

Comments in Python begin with the # character.

true

Computer programs typically perform three steps: input is received, some process is performed on the input, and output is produced.

true

Decision structures are also known as selection structures.

true

When will the following loop terminate?while keep_on_going != 999:

when keep_going refers to a value equal to 999


Related study sets

Chapter 18: Aldehydes and Ketones - Nucleophilic Addition to the Carbonyl Group

View Set

Anatomy lecture quiz ( Nervous system)

View Set

Comprehensive Review Saunders Hesi based questions

View Set

RE 2 Land and Real Estate Practice Quiz

View Set

CRJU 151 Ch. 1-4 test The Core by Siegel 5th Ed.

View Set

Chapter 22 The Respiratory System

View Set

Quiz 4 Econ Modules 46-50 (10-14) Multiple Choice

View Set

Chapter 4 - Consolidated Financial Statements and Outside Ownership

View Set