CS 1101 Programming Fundamentals - Term 1, 2018-2019. Exam Review | Contains 80 Questions & Answers
The statements inside of a loop are known as the ____ of the loop.
Select one:
a. body
b. expression
c. counter
d.
...
CS 1101 Programming Fundamentals - Term 1, 2018-2019. Exam Review | Contains 80 Questions & Answers
The statements inside of a loop are known as the ____ of the loop.
Select one:
a. body
b. expression
c. counter
d. block
What does the following symbol mean when used in a owchart?
Select one:
a. Start/End of process
b. Input/output
c. Sub-routine process
d. Decision
CS 1101 Programming Fundamentals - Term 1, 2018-2019
Question 3
Correct
Mark 1.00 out of
1.00
Question 4
Correct
Mark 1.00 out of
1.00
Question 5
Correct
Mark 1.00 out of
1.00
In the following segment of code what do we call the portion of the
statement that follows the dot (capitalize)?
string.capitalize('maryland')
Select one:
a. Module
b. Method
c. Attribute
d. Function name
The set of modules that are included in the default installation of python
are known as the:
Select one:
a. Standard Library
b. API (Application Programming Interface)
c. Module Library
d. Python Library
One of the advantages of a function is that it allows the programmer to
alter the ow of execution in the program.
Select one:
True
False
Question 6
Correct
Mark 1.00 out of
1.00
Question 7
Correct
Mark 1.00 out of
1.00
Question 8
Correct
Mark 1.00 out of
1.00
Question 9
Correct
Mark 1.00 out of
1.00
: A parameter written in a function header with an assignment to a default
value which it will receive if no corresponding argument is given for it in the
function call is called an optional parameter.
Select one:
True
False
A program is a sequence of instructions that species how to perform a
computation.
Select one:
True
False
What does function subroutine do?
def subroutine( n ):
while n > 0:
print (n,)
n -= 1
Select one:
a. Counts from 10 down to 0 and displays each number
b. Counts from n down to 1 and displays each number
c. Calculates the sum of n numbers greater than 0
d. Calculates the mean of n
The C language was developed at Bell Labs with the objective of being the
rst object-oriented language
Select one:
True
False
Question 10
Correct
Mark 1.00 out of
1.00
Question 11
Correct
Mark 1.00 out of
1.00
Question 12
Correct
Mark 1.00 out of
1.00
Which of the following is NOT one of the computer languages developed in
the 1950s.
Select one:
a. COBOL
b. Fortran
c. BASIC (Beginners All Purpose Symbolic Instruction Code)
d. LISP
Given the following code, what will the output be?
mylist = ["now", "four", "is", "score", "the", "and seven", "time", "years",
"for"]
a=0
while a < 7:
print (mylist[a],)
a += 2
Select one:
a. now is the time
b. now is the time for
c. for score and seven years
d. now four is score the and seven time years for
[Show More]