Python Chapters 1 and 2
Which mathematical operator is used to raise five to the second power in python
**
If value1 is 2.0 and value2 is 12. print(value1 * value2)
24.0
What is the largest value that can be stored in one byte?
255
After the execution of the following statement the variable PRICE will reference the value ______. price = int(68.549)
68
Which computer language uses short words known as mnemonics for writing programs?
Assembly
Which language from the following list is referred to as a low-level language?
Assembly
Which of the following is not a microprocessor manufacturing company?
Dell
Which of the following is considered to be the world's first programmable electronic computer
ENIAC
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
A bit that is turned off is represented by the value -1
FALSE
All programs are normally stored in ROM and loaded into RAM as needed for processing.
FALSE
According to the behavior of integer division, when an integer is divided by an integer the result will be a float.
False
In Python, math expressions are evaluated from left to right, no matter what the operators are.
False
Python formats all floating-point numbers to two decimal places when outputting using the print statement
False
The Python language uses a compiler, which is a program that both translates and executes the instructions in a high level language.
False
After the execution of the following statement, the variable sold will reference the numeric literal value as a(n) _____ data type: sold = 256.752
Float
A ________ is a diagram that graphically depicts the steps that take place in a program.
Flowchart
What type of error produces incorrect results but does not prevent the program from running?
Logic
What is the informal language that programmers use to create models of programs that have no syntax rules and are not meant to be compiled or executed?
Pseudocode
What type of volatile memory is usually used only for temporary storage while running a program
RAM
Programs are commonly referred to as
Software
A flowchart is a tool that programmers use to design programs
TRUE
Computer programs typically perform three steps: Input is received, some process is performed on the input, and output is produced.
TRUE
In Python, print statements written on separate lines do not necessarily output on separate lines
TRUE
The main reason for using secondary storage is to hold data for long periods of time, even when the power supply to the computer is turned off.
TRUE
What is the output of the following print statement? print('the path is D:\\sample\\test.')
The path is D:\sample\test.
Python allows programmers to break a statement into multiple lines
True
RAM is volatile memory used for temporary storage while a program is running.
True
The CPU is able to quickly access data stored at any random location in ROM.
True
The CPU understands instructions written in a binary machine language
True
The instruction set for a microprocessor is unique and is typically understood only by the microprocessors of the same brand
True
What is the encoding technique called that is used to store negative numbers in the computers memory?
Two's complement
The line continuation character is a _____.
\
The process known as the _____ cycle is used by the CPU to execute instructions in a program.
fetch-decode-execute
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 _____ built-in function is used to read a number that has been typed on the keyboard.
input