CSC 131 Test 1 Questions and Answers
Characters within quotes such as "How are you?", are called
a. Buffers
b. Textlines
c. Strings
c. Strings
Python is most commonly translated by use of an
a. Compiler
b. Executer
c. Interpreter
c. Interpreter
Previous
Play
Next
Rewind ...
CSC 131 Test 1 Questions and Answers
Characters within quotes such as "How are you?", are called
a. Buffers
b. Textlines
c. Strings - answer c. Strings
Python is most commonly translated by use of an
a. Compiler
b. Executer
c. Interpreter - answer c. Interpreter
An operating system
a. Is software that manages the hardware of a computer and provides a user interface
b. Converts binary data to hexadecimal data for a computer to understand
c. Is what the computer does when you order a pizza on the PizzaHut app. - answer
a. Is software that manages the hardware of a computer and provides a user interface
All information within a computer system is represented by the use of
a. Graphs, charts, numbers, and complex languages
b. only two digits, 0 and 1
c. Sixteen digits, 0-9 and A-F known as hexadecimal representation - answer b. only
two digits, 0 and 1
A backslash at the end of a line of a Python is used to
a. Cause the line and the following line to be considered one program line
b. Cause python to indent the following line
c. Allow for an open quoted string to be continued on the next line - answer a. Cause
the line and the following line to be considered one program line
Examine the following Python code,
numList = [1,3,6,7,10,3,12]
for k in range (0, (len(numList)-2)):
print(numList[k])
How many times does the above loop iterate?
a. 5
b. 6
c. 7
d. 8 - answer a. 5
Which of the following is the proper way to denote an empty list in Python?
a. ['']
b. []
, c. ['empty']
d. all of the above - answer b. []
Which of the following is the correct notation for a tuple of only one element?
a. (10,)
b. (10)
c. (,10,)
d. all of the above - answer a. (10,)
True or False? there are 16 bits in 1 byte - answer false
True or False? In Python, a comma can be used in numerical literal values greater than
999. That is, one thousand can be represented as either 1,000 or 1000 within a python
program - answer false
True or False? The input function in Python both displays output on the screen and gets
input from the user - answer true
True or False? All if statements must include an else header - answer false
True or False? Of the basic list operations of retrieve, update, insert, delete and
append, only the append operation can be used on tuples. - answer false
True or False? When a variable is assigned to another variable holding a list, each
variable ends up referring to the same instance of the list in memory - answer true
The ___ and ___ characters are used in format specifiers in Python to left or right justify
a string in a specified field width. - answer <,>
The three forms of control provided by programming languages are ___, ___, and ___
control - answer sequential, selective, iterative
An if statement may include the use of both the ___ header and the ___ header -
answer else, elif
The process of accessing each element of a list, one-by-one, is referred to as ___ -
answer list traversal
Match
a. Central Processing Unit(CPU)
b. Main Memory
c. Secondary Memory
d. Input/Output Devices
e. Buses
___transfer data between components within a computer system
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 or Stuvia-credit 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 Pogba119. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $13.49. You're not tied to anything after your purchase.