MIS 3301 Baylor Sanchez Final Review
Programs are commonly referred to as - ANS-software
The __________ coding scheme contains a set of 128 numeric codes that are used to
represent characters in the computers memory - ANS-ASCII
A _____________ has no moving parts and operates faster than a traditional disk drive
- ANS-solid state drive
Which of the following is NOT a major component of a typical computer system? -
ANS-the operating system
(major components include: CPU, main memory, secondary storage devices)
Which type of error prevents the program from running? - ANS-syntax
Where does a computer store a program and the data that the program is working with
while the program is running? - ANS-in main memory
The following is an example of an instruction written in which computer language?
10110000 - ANS-machine language
Hyper-Threading occurs when ____________ - ANS-a single CPU chip can process
two instructions on one CPU core
What is the informal language, used by programmers use to create models of programs,
that has no syntax rules and is not meant to be compiled or executed? -
ANS-pseudocode
What is the output of the following command, given that value1 = 2.0 and value 2 = 12?
print(value1 + value2) - ANS-24.0
A(n) _____________ is a diagram that graphically depicts the steps that take place in a
program? - ANS-flowchart
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. - ANS-input()
,Which of the following is line continuation character? - ANS-\
Which mathematical operator is used to raise 5 to the second power in Python? -
ANS-**
Which of the following statements will generate this output:
a b cabc - ANS-print('a', 'b', 'c', end=")
print('a', 'b', 'c', sep=")
Which of the following is false? - ANS-Python is a statically-typed language
After the execution of the following statement, the variable sales will reference the value
_______________.
sales = int(1234.549) - ANS-1234
Assume a vehicle inspection fee 15.50 and will never change. This type of value is
known as a _____________ and the standard is to code as ________________. -
ANS-constant; INSPECTION_FEE = 15.50
A(n) ___________ structure is a logical design that controls the order in which a set of
statements execute. - ANS-control
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 - ANS-False
What will the following code generate on the output screen?
val = 75
if val > 80:
print('Level A ', end='')
else:
print('Level B ', end='')
print('Error') - ANS-Level B Error
In Python the ____________ symbol is used as the not-equal-to operator - ANS-!=
When using the ___________ logical operator, only one or both of the subexpressions
may be true for the compound expression to be true. - ANS-or
What does the following statement yield?
, print('12'*2) - ANS-1212
What is the result of the following Boolean expression, given that x = 5, y = 3, and z =
8?
x < y or z > x - ANS-True
What will the following code generate on the output screen?
x = 22
if x <= 15 or x >= 35:
x=x*2
print(x) - ANS-22
What type of loop structure repeats the code a specific number of times? -
ANS-count-controlled loop
When will the following loop terminate?
while keep_on_going != 999 : - ANS-when keep_on_going refers to a value equal to
999
In Python, a comma-separated sequence of data items that are enclosed in a set of
brackets is called - ANS-list
Which of the following represents an example to calculate the sum of numbers (that is,
an accumulator), given that the number is stored in the variable number and the total is
stored in the variable total? - ANS-total += number
What will be displayed after the following code is executed?
total = 0
for count in range(1, 4):
total += count
print(total) - ANS-6
What will be displayed after the following code is executed?
total = 0
for count in range(4, 6):
total += count
print(total) - ANS-4
9
What will be displayed after the following code is executed?
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Hkane. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £6.48. You're not tied to anything after your purchase.