ch 1 test: Intro to computer programming

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

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

!=

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

**

What is the output of the following command, given that value1 = 2.0 and value2 = 12? print(value1 * value2)

24.0

What is the largest value that can be stored in one byte?

255

What will be displayed after the following code is executed? total = 0 for count in range (4,6) : total += count print (total)

4 9

Which of the following is not an augmented assignment operator?

<=

In python the - symbol is used as the equality operator.

==

The - coding scheme contains a set of 128 numeric codes that are used to represent characters in the computer's memory.

ASCII

What computer language uses short words known as mnemonics for writing programs?

Assembly

Which of the following is not a microprocessor manufacturing company?

Dell

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

I'm ready to begin

What type of volatile memory is usually used only for temporary storage while running a program?

RAM

What is the output of the following print statement? print('The path is D: \\sample\\test.')

The path is D: \sample\test.

A Boolean variable can reference one of two values which are

True or False

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

When keep_on_going refers to a value equal to 999

The line continuation character is a....?

\

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

a quote mark (")

A variable used to keep a running total is called a(n)?

accumulator

When using the - logical operator, both subexpressions must be true for the compund expression to be true.

and

What language is referred to as a low-level language?

assembly language

The smallest storage location in a computer's memory is known as a....?

bit

Multiple Boolean expressions can be combined by using a logical operator to create - expressions.

compound

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

count-controlled loop

What will be displayed after the following code is executed? count = 4 while count < 12 print("counting") count = count + 2

counting counting counting counting

The decision structure that has two possible paths of execution is known as....?

dual alternative

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

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

What is the result of the following Boolean expression, given that x = 5, y = 3, and z = 8? not (x < y or z > x) and y < z

false

What is the result of the following Boolean expression, given that x = 5, y = 3, and z = 8? x < y and z > x

false

The process known as the - cycle is used by the CPU to execute instructions in a program.

fetch-decode-execute

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

float

What is the correct if clause to determine whether choice is anything other than 10?

if choice != 10:

Which of the following will determine if the turtle's pen is up and will change it to down if that's the case?

if not (turtle. isdown ( )) : turtle.pendown( )

Which of the following will hide the turtle if it is visible?

if turtle.isvisible() : turtle.hideturtle( )

What is the correct if clause to determine whether y is in the range 10 through 50, inclusive?

if y >= 10 and y <=50:

To use Python's turtle graphics, you must include what statement in your program?

import turtle

The - function reads a piece of data that has been entered at the keyboard and returns that piece of data, as a string, back to the program.

input ( )

The following is an example of an instruction written in which computer language? 10110000

machine language

Where does a computer store a program and the data that the program is working with while the program is running?

main memory

When using the - operator, one or both of the subexpressions must be true for the compound expression to be true.

or

Which logical operators perform short-circuit evaluation?

or, and

The first operation is called the - and its purpose is to get the first input value that will be tested by the validation loop.

priming read

What will display 20%

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

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

pseudocode

Programs are commonly referred to as...?

software

A - has no moving parts and operates faster than a traditional disk drive.

solid state drive

Which type of error prevents the program from running?

syntax

Which of the following is not a major component of a typical computer system?

the operating system

What does the following expression mean? x <= y

x is less than or equal to y


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

prepU ch 55 Drugs Acting on the Lower Respiratory Tract

View Set

Domain 2.0 Threats, Vulnerabilities, and Mitigations Assessment

View Set

Protestant Reformation Practice Quizzes

View Set

Nursing Care: High-Risk Newborn - Acquired Conditions

View Set

PRAXIS Elementary Education: Multiple Subjects Mathmatics (5003) Practice Test Questions (forms 1 & 2)

View Set

Electrical Multiple Choice, CM 2112 ELECTRICITY VOCAB, CM 2112 ELECTRICAL T/F, Electrical Images CM 2112

View Set