Dual Credit Python Exam 1

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What is the ending value of z? x = 0.3 z = math.pow(math.ceil(x), 2)

1.0

t = 10 t = t * 2 t = t + 5 t = t - 4 put t What is the output?

21

Which of the following identifiers is valid? A. max_age B. 32area C. transfer$ D. True

A. max_age

Which instruction displays variables or expression values? A. put() B. print() C. output() D. display()

B. print()

Which statement is equivalent to the following assignment? x -= 2 + y A. x = 2 + y - x B. x = -(2 + y) C. x = x - (2 + y) D. x = x - 2 + y

C. x - (2 + y)

A language is called _____ when upper case letters in identifiers are considered different from lower case letters.

Case Sensitive

Which type of program converts a high-level language program into machine instructions?

Compiler

Which expression gives the number of whole minutes that corresponds to some number of seconds? A. seconds % 60 B. seconds / 60 C. seconds * 60 D. seconds // 60

D. seconds // 60

A processor is a circuit that executes a list of _____.

Instructions

Basic python instruction types are input, process, and _____.

Output

RAM is an abbreviation that stands for:

Random Access Memory (RAM)

0s and 1s are known as ___ .

bits


Set pelajaran terkait

Architecture in the Global Context Review 1

View Set