Python Essentials Module 2 Quiz

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

The most important difference between integer and floating-point numbers lies in the fact that: a. they are stored differently in the computer memory b. they cannot be used simultaneously c. integers cannot be literals, while floats can

a. they are stored differently in the computer memory

A value returned by the 'input()' function is: a. a float b. a string c. an integer

b. a string

The '0x' prefix means that the number after it is denoted as: a. an octal b. a hexadecimal c. a decimal

b. a hexadecimal

The '//' operator: a. performs regular division b. performs integer division c. does not exist

b. performs integer division

A 'keyword' is a word that: a. is the most important word in the whole program b. is the key to the puzzle c. cannot be used as a variable name

c. cannot be used as a variable name

The 'escape character' owes its name to the fact that it: a. cannot be caught due to its high speed b. escapes from source files into the computer memory c. changes the meaning of the character next to it

c. changes the meaning of the character next to it

Right-sided binding means that the following expression: '1 ** 2 ** 3" will be evaluated: a. in random order b. from left to right c. from right to left

c. from right to left

The result of the following addition '123 + 0.0': a. cannot be evaluated b. is equal to '123' c. is equal to '123.0'

c. is equal to '123.0'

The meaning of the 'positional parameter' is determined by its: a. appearance b. name c. position

c. position

Only one of the following statements is TRUE - which one? a. neither statement can be evaluated b. addition precedes multiplication c.multiplication precedes addition

c.multiplication precedes addition


Ensembles d'études connexes

BYU Final Study Guide Everything You Need To Know

View Set

One Flew Over the Cuckoo's Nest All Questions

View Set

Jensen Ch. 4: Documentation and Interprofessional Communication

View Set