stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Duplicate of Python Exam 1 Flashcards | StudBud
Explore
/
Duplicate of Python Exam 1
Duplicate of Python Exam 1
97 terms
·
StudBud Administration
·
46 plays
Imported from external platform
Flashcards
97 cards
F
Practice quiz
P
Host live
L
Questions
97
Answers
1
Today, CPUs are small chips known as
ENIAC's
Microprocessors
Memory chips
Operating systems
2
A(n) makes a variable reference a value in the computer’s memory.
math expression
assignment statement
string literal
variable declaration
3
The computer stores a program while the program is running, as well as the data that the program is working with, in ___
the CPU
a secondary
main memory
the micoprocessor
4
A(n) _____ is a set of well-defined logical steps that must be taken to perform a task.
plan of action
logic schedule
logarithm
algorithm
5
and
,
or
, and
not
are operators.
ternary
conditional
relational
logical
6
An informal language that has no syntax rules and is not meant to be compiled or executed is called _______
faux code
pseudocode
Python
flowchart
7
Any piece of data that is stored in a computer’s memory must be stored as a binary number.
False
True
8
You use a(n) __________ statement to write a single alternative decision structure.
if
test-jump
if-else
if-call
9
The symbols > , < , and == are all operators.
ternary
conditional
logical
relational
10
While loop is a pretest loop
False
True
11
Validation loops are also known as ____.
defensive loops
error traps
doomsday loops
error avoidance loops
12
This type of loop can repeat an undetermined number of times
for
while
13
In the ____ numbering system, all numeric values are written as sequences of 0s and 1s.
Octal
Binary
Decimal
Hexadecimal
14
A string literal in Python must be enclosed in
parentheses
single-quotes
double-quotes
either single-quotes or double-quotes
15
This symbol marks the beginning of a comment in Python
&
#
**
*
16
In Python the first character of a variable name cannot be a number.
False
True
17
A ______ structure can execute a set of statements only under certain circumstances
decision
boolean
sequence
circumstantial
18
A compound expression created with the _____ operator is true if both subexpressions are true
OR
AND
NOT
BOTH
19
A condition-controlled loop always repeats a specific number of times.
true
false
20
A(n) ________ expression has a value of either true or false
Boolean
decision
unconditional
binary
21
Assembly language is considered a high-level language.
False
True
22
This is an operator that raises a number to a power
%
/
**
*
23
A video display is a(n) _____ device
input
output
secondary storage
main memory
24
A ____ Is any hypothetical person that is using a program and providing input for it.
Designer
Test subject
User
Guinea pig
25
Which of the following statements will cause an error?
x = 17
x = 99999
x = '17'
17 = x
26
An interpreter is a program that both translates and executes the instructions of a program.
True
False
27
A __________ is a name that references a value in the computer’s memory
register
byte
RAM slot
variable
28
Main memory is also known as RAM.
True
False
29
If you were to look at a machine language program, you would see
Python code
circuits
English words
a stream of binary numbers
30
The ________ translates an assembly language program to a machine language
Translater
Compiler
Assembler
Interpreter
31
The tiny dots of color that digital images are composed of are called
color packets
bytes
bits
pixels
32
GIGO stands for?
Garbage In Garbage Out
Gogobytes Gigibytes
Garbage Incorrect Garbage Output
Garbage Input Garbage Output
33
A ______ -controlled loop repeats a specific number of times.
Boolean
condition
count
decision
34
A component that collects data from people or other devices and sends it to the computer is called ___.
an input device
main memory
an output device
a secondary storage device
35
A sequence of characters that can be typed.
LIST
VARIABLE
STRING
LOOP
36
The physical devices that a computer is made of are referred to as
hardware
tools
the operating system
software
37
The -= operator is an example of a(n) operator.
reverse assignment
relational
complex assignment
augmented assignment
38
This is a boolean variable that signals when some condition exists in the program.
sentinel
flag
siren
signal
39
The operator that takes a Boolean expression as its operand and reverses its logical value
EITHER
NOT
OR
AND
40
Single alternative decision structure tests a condition, if true takes a path, or another path if false.
False
True
41
If you print a variable that has not been assigned a value, the number 0 will be displayed
False
True
42
To calculate the total number of iterations of a nested loop, add the number of iterations of all the loops.
True
False
43
A Boolean expression created with the
and
operator is true only when both subexpressions are true.
True
False
44
A(n) ___ structure tests a condition and then takes one path if true, and another if false.
single alternative decision
If-Then statement
sequence
dual alternative decision
45
A type of memory that can hold data for long periods of time, even when there is no power
CPU storage
Main memory
RAM
Secondary storage
46
In the expression 12 + 7, the values on the right and left of the + symbol are called:
math expressions
arguments
operands
operators
47
A byte is made up of eight
bits
variables
addresses
CPUs
48
Which built-in function can be used to read input that has been typed on the keyboard?
input()
get_input()
read_input()
keyboard()
49
The structure that provides one alternative path of execution
single execution decision
sequence
single alternative decision
one path alternative
50
A decision structure can be nested inside another decision structure.
True
False
51
A Boolean expression created with the ___ operator is true if either subexpressions are true
OR
NOT
EITHER
AND
52
a WHILE loop is...
count controlled
condition controlled
never loops
loops forever
53
A ____ -controlled loop uses a true/false condition to control the number of times it repeats.
condition
count
decision
Boolean
54
The integrity of a program’s output is only as good as the integrity of the program’s .
compiler
programming language
input
debugger
55
The words that make up a high level programming language are called
Key words
Mnemonics
Commands
Binary instructions
56
A bit that is turned off represents the following value.
1
No
-1
0
57
This operator performs integer division:
**
%
//
/
58
Variable names can have spaces in them.
True
False
59
A(n) __________ is a set of instructions that a computer follows to perform a task.
Program
Compiler
Programming Language
Interpreter
60
A syntax error does not prevent a program from being compiled and executed.
False
True
61
Each repetition of a loop is known as a(n)
orbit
cycle
iteration
revolution
62
A magic number is .
a number that causes computers to crash
a number that cannot be divided by 1
an unexplained value that appears in aprogram’s code
a number that is mathematically undefined
63
Images, like the ones created with your digital camera, cannot be stored as binary numbers.
True
False
64
It is not necessary to initialize accumulator variables.
True
False
65
A ______ is enough memory to store a letter of the alphabet or a small number.
transistor
switch
bit
byte
66
You use a(n) ___ statement to write a dual alternative decision structure.
if-else
if
test-jump
if-call
67
the following statement subtracts 1 from x: x = x - 1
true
false
68
The rules that must be followed when writing a program are called ____.
Key words
Syntax
Punctuation
Operators
69
Negative numbers are encoded using the _____ technique.
ASCII
two's complement
Unicode
floating point
70
A _____ error does not prevent the program from running, but causes it to produce incorrect results.
hardware
fatal
syntax
logical
71
A set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters is _____.
ENIAC
binary numbering
ASCII
Unicode
72
Machine language is the only language that a CPU understands.
True
False
73
The input operation that appears just before a validation loop is known as the
error trap
prevalidation input
priming read
initialization read
74
A(n) _____ variable keeps a running total.
sentinal
sum
total
accumulator
75
A ___ is a diagram that graphically depicts the steps that take place in a program.
step chart
flowchart
code graph
program graph
76
You can write any program using only sequence structures
False
True
77
A program can be made of only one type of control structure. You cannot combine structures.
True
False
78
Programmers must be careful not to make syntax errors when writing pseudocode programs
True
False
79
This operator performs division, but instead of returning the quotient it returns the remainder
%
*
/
**
80
This volatile type of memory that is used only for temporary storage while a program is running
Secondary storage
The disk drive
The USB drive
RAM
81
A ___ Is a single function that the program must perform in order to satisfy the customer.
Task
Predicate
Prerequisite
Sofware requirement
82
An extensive encoding scheme that can represent characters for many languages in the world is ____.
ASCII
ENIAC
binary numbering
Unicode
83
Today, CPUs are huge devices made of electrical and mechanical components such as vacuum tubes and switches.
True
False
84
In a math expression, multiplication and division take place before addition and subtraction.
false
true
85
Computers can only execute programs written in
translator
Assembly Language
Machine Language
C#
86
A(n) ___ program translates a high-level language program into a separate machine program.
assembler
operators
compiler
translator
87
In the _____ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform.
decode
deconstruct
execute
fetch
88
Input validation loop works like this when the user enters invalid data, it should ask the user “Are you sure? yes/no".
True
False
89
Short notes placed in different parts of a program explaining how those parts of the program work are called __.
External documentation
Comments
Reference manuals
Tutorial
90
price = 99.0 . After this statement executes, the price will be of which data type?
str
float
int
currency
91
A(n) _____ is a special value that signals when there are no more items from a list of items to be processed.
accumulator
signal
sentinel
flag
92
Real numbers are encoded using the _______ technique.
floating point
Unicode
two's complement
ASCII
93
The part of a computer that runs programs is called
main memory
RAM
secondary storage
the CPU
94
Word processing, spreadsheet, email, web browsers, and games are all examples of utility programs.
True
False
95
In a nested loop, the inner loop goes through all of its iterations for every single iteration of the outer loop.
TRUE
FALSE
96
Windows, Linux, Android, iOS, and macOS are all examples of application software.
True
False
97
A ____ is a name that represents a value that cannot be changed during the program’s execution.
key term
variable signature
named constant
named literal