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