stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
CS-1400-601 Exam 1 Flashcards | StudBud
Explore
/
CS-1400-601 Exam 1
CS-1400-601 Exam 1
30 terms
·
StudBud Administration
·
25 plays
Imported from external platform
Flashcards
30 cards
F
Practice quiz
P
Host live
L
Questions
30
Answers
1
Who is credited as having created the World Wide Web in 1992?
Tim Berners-Lee
Steve Jobs
Albert Gore
Paul Allen
2
Which phrase describes what an algorithm is?
a step-by-step process that may or may not solve a problem
a mathematical function that is the opposite of a logarithm function
a step-by-step process for solving a problem that will complete in an hour
a step-by-step process that will eventually solve a problem
3
An off-by-one error is an example of what type of error in programming?
logic error
syntax error
type error
input error
4
In evaluating the precedence rules used by Python, what statement is accurate?
Multiplication is evaluated before unary multiplication.
Addition and subtraction are evaluated after assignment.
Exponentiation has the highest precedence.
Exponentiation and assignment operations are left associative.
5
When using the range function, what effect does the specification of a third argument have?
Third argument declares an exponential value the numbers will be raised to.
The third argument specifies a step value to be used in the range.
The third argument is simply included in the sequence.
The third argument is used as the starting point for the range function.
6
What technology replaced the vacuum tube as the mechanism for implementing electronic switches in computer hardware?
microprocessor
fully programmable gate array
transistor
resistor
7
You find the following statement: "value += 1". What happens to the value variable upon each iteration of the loop?
The variable is reset to an int type, with a value of 1.
The variable is incremented by itself.
The variable's value is changed to a positive value.
The variable is increased by 1 each iteration through the loop.
8
In writing software to solve a problem, which of the following should you typically do first?
Test/debug the program.
Analyze the problem.
Write pseudocode.
Write Python code.
9
In programming, what is a prototype?
It is a program in final stages of development.
It is a rough draft of a program.
It is a program statement that builds a module.
It is a production-ready program.
10
In general terms, what does an if statement do?
It allows a computer to selectively execute based on processing cost.
It forces a computer to favor one value over another.
It allows a computer to make choices based on checking conditions.
It allows a computer to select the values that are most economical.
11
In a computer, what component is known as the "processor"?
motherboard
CPU
RAM
basic input/output devices
12
What kind of programming language is Python?
A interpolated language.
A compiled language.
A manufactured language.
An interpreted language.
13
Which of the following literals would be considered a float type in Python?
'42'
-2
7
3.16
14
What comparison operator can be used to test whether an expression does NOT equal another expression?
!=
-=
/=
_=
15
What part of the loop comprises the statements to be executed?
The loop body.
The loop end.
The loop header.
The loop tail.
16
What is the purpose of comments in a computer program?
they help the compiler or interpreter understand the code.
They help a human reading the comment understand the code.
They are a waste of time.
They help the CPU understand the code.
17
How is data stored within a computer's memory?
It is stored in plain text data.
It is stored as octal data.
It is stored as binary data.
It is stored as hexadecimal data.
18
What does the term syntax refer to?
a type of programming language
the rules for forming legal statements
a step-by-step set of instructions
the meaning of statements
19
In Python, what is the result of 4 % 5?
4
5
0
0.8
20
Which statement can be used to stop a loop and jump to the next statement after the loop?
break
exit
halt
quit
21
Which of the following is used in Python to execute statements multiple times?
def
input
print
for
22
What symbols are used to mark a multi-line comment in Python?
# comment
// comment
<!-- comment -->
""" comment """
23
What statement accurately describes what a semantic error is?
An expression is syntactically correct, expression cannot be carried out.
An expression that is syntactically incorrect.
A semantic error is the result of an improperly nested if statement.
An expression attempts to perform operations with incompatible data types.
24
What is NOT a Boolean or logical operator used in the Python language?
and
or
xor
not
25
What statement regarding precedence of operators is accurate?
(+, -) are lower in precedence than the logical conjunction operator (and).
(and) is higher in precedence than the (not)
The assignment operator (=) is higher in precedence than exponentiation(**)
The comparison operators are higher in precedence than assignment (=)
26
What is the result of float(int(2.5))?
2
3.0
3
2.0
27
In the waterfall development model, what is the most expensive part of software development?
The maintenance phase.
The analysis phase.
The design phase.
The integration phase.
28
What does the term semantics refer to?
the rules for forming legal statements
a type of programming language
a step-by-step set of instructions
the meaning of statements
29
Which of the following choices best describes the order of evaluation for the following statement?
addition, subtraction, multiplication, division, and finally assignment
addition, multiplication, division, subtraction and finally assignment
assignment, addition, multiplication, division, and finally subtraction
multiplication, division, addition, subtraction, and finally assignment
30
What term describes the process of substituting a simple process for a complex process in a program?
refactoring
subletting
abstraction
inferring