Chapter 2 Quiz

Ace your homework & exams now with Quizwiz!

Which mathematical operator is used to raise 5 to the second power in Python?

**

After the execution of the following statement, the variable price will reference the value ________.price = int(68.549)

68

What is the output of the following print statement? print 'I\'m ready to begin'

I'm ready to begin

The line continuation character is a

\

What symbol is used to mark the beginning and end of a string?

a quote mark (")

The Python turtle is initially positioned in the ________ of a graphics window and it first appears, by default, to be heading ________.

center, east

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

After the execution of the following statement, the variable sold will reference the numeric literal value as (n) ________ data type.sold = 256.752

float

Which of the following will display 20%?

print(format(0.2, '.0%'))

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


Related study sets

Chapter 4 Multiple choice questions

View Set

NURS 111 Exam 3 Thyroid PrepU questions

View Set

Sukys Business Law 15th Edition Ch. 1-3

View Set

The Ovaries and Fallopian Tubes - Chapter 18 (Review Questions)

View Set

Exam 3 Study Questions 345 Sexuality Quiz

View Set

MC Test for Unit 3 APUSH PART 1!!

View Set

MICROBIO 310 Exam 1 Sample Questions

View Set