Test 1 quizzes

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

eatenPies has not been assigned before using it

what is the error in the following code? numberOfPies = 3 if numberOfPies-eatenPies>25 print("Wow, it's full of pies")

true

what is the result of the following Boolean expressin,if x equals 5, y equals 3 and z equals 8 x<y or z>x

false

what is the result of the following Boolean expression, if x equals 5, y equals 3, and z equals 8 x<y and z>x

false

what is the result of the follwoing Boolean expression, if x equals 5, y equals 3, and z equals 8 not (x<y or z>x) and y<z

5

what would the following display num=99 num=5 print(num)

or

when using the __ operator, one or both subexpressions must be true for the compunf expression to be true

**

which mathematical operator is used to raise five to the second power in python

99bottles

which of the following is an illegal variable name A. X B. 99bottles C. R_d D. Grade99

=

which of the following is the assignment operator

if y>=10 and y<=50

which of the following is the correct if clause to determine whether y is in the range 10 through 50

17=X

which of the following statemnets will cause error A. X=17 B. 17=X C. X=99999 D. X='17'

color = input("Enter your favorite color:")

write a python code that prompts the user to enter his or her favorite color and assigns the user's input tp varibale named color

float

19.5 is what type of data type

int

255 is what type of data type

true or false

A Boolean variable can reference one of two values: __

an input device

A component that collects data from people or other devices and sends it to the computer is called __

decode

In the _________ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform.

**

give the symbol used to represent the Exponentiation Operator in Python

/

give the symbol used to represent the Float Division Operator in Python

//

give the symbol used to represent the Integer Division Operator in Python

%

give the symbol used to represent the Remainder Operator is Python

*

give the symboll used to represent the Multiplication Operator in Python

comments

short notes in different parts of a program are called __

input

the __ built-in function is used to read a number that has been typed on the keyboard

dual alternative

the decision structure that has two possible paths of execution is known as __

\

the line continuation character is a __

the CPU

the part of a computer that actually runs programs is called__

#

this symbol marks the beginning of a comment in python

microprocessors

Today, CPUs are small chips known as

secondary storage

__ is a volatile type of memory that is used only for temporary storage while a program is running

variable

a __ is a name that holds data

String

a __ is a sequence of characters or sentences

secondary storage

a type of memory that can hold data for long periods of time, even when there is no power to the computer, is called __

program

a(n) __ is a set of instructions that a computer follows to perform a task

single alternative decision

a(n) __ structure tests a condition and then takes one path if the condition is true, or another path if the condition is false

124

convert the following binary to decimal 0 1 1 1 1 1 0 0

234

convert the following binary to decimal 1 1 1 0 1 0 1 0

24.0

if value1 is 2.0 and value2 is 12, what is the output of the following command

binary

in a(n) __ numbering system, all numeric values are written as sequences of 0s and 1s

compound

multiple Boolean expressions can be conbined by using a logical operator to create __ expressions


संबंधित स्टडी सेट्स

Commercial General Liability Coverage Practice Questions

View Set

Public Health Test 1 and Test 2 Material

View Set

Finance 311 Final Review (chapters 1-8)

View Set

NET260.30 LINUX ADMINISTRATION Chapter 12

View Set

Health Risks Associated with Obesity

View Set

Частини мови: критерії виділення, характеристика (у мовах світу)

View Set