When a function computes a value and needs to send it back to where the
function was called it needs this:
argument
def
don't pick this answer
invoke
return - ANSWER return
Which of the following is NOT a benefit of learning to code?
You can become a better problem solver
You may need to code in your job
You can develop a basic understanding of how software works
You learn to easily give up whenever you encounter a difficult problem. -
ANSWER You learn to easily give up whenever you encounter a difficult
problem.
T/F: An algorithm is a list of steps needed to solve a problem. - ANSWER
True
Which of the following is NOT an essential algorithm property?
The algorithm has inputs
The algorithm has outputs
The order of the steps is completely random
Each steps is doable
The algorithm must eventually hault - ANSWER The order of the steps is
completely random.
Which of the following is NOT a part of the Program Development Cycle?
Browsing
Input
Output
Processing - ANSWER Browsing
,Which of the following is NOT one of the four main parts of a general-purpose
computer?
central processing unit(CPU)
memory(RAM)
inputs (like keyboard or mouse
outputs(like monitor or printer
blanket(to keep the parts warm) - ANSWER blanket ( to keep the parts warm)
In a flowchart, which shape is used to represent the start or end of a solution?
arrow
diamond
oval
parallelogram
rectangle - ANSWER oval
In a flowchart, which shape is used to represent an action or process?
arrow
diamond
oval
parallelogram
rectangle - ANSWER rectangle
In a flowchart, which shape is used to represent the flow of execution?
arrow
diamond
oval
parallelogram
rectangle - ANSWER arrow
In a flowchart, which shape is used to represent input and output?
arrow
diamond
oval
parallelogram
rectangle - ANSWER parallelogram
In Python, a ____ begins with a pound sign (#)
,comment
formula
input
print - ANSWER comment
Which of the following is an environment for writing and running Python
programs?
ABLE
GRUMPY
IDLE
PUPPY - ANSWER IDLE
Who created Python?
Bill Gates
Steve Jobs
Guido van Rossum
Alan Turing - ANSWER Guido van Rossum
Which of the following is an advantage of using python?
it's easy to learn
its portable
its powerful
all of the above - ANSWER It's easy to learn, its portable, its powerful
The rules of programming language (punctuation, spacing, etc.) is called its___.
comments
function
syntax
variable - ANSWER syntax
What is a name used to store data in memory?
comments
function
syntax
variable - ANSWER variable
T/F: A computer program can be thought of as a "black box" with inputs and
outputs. - ANSWER True
, T/F: An algorithm is a sequence of steps that solves a problem. - ANSWER
True
T/F: A flowchart is a visual, or graphical, representation of a solution to a
problem. - ANSWER True
Which of the following is a valid Python variable name?
half pints
half-pints
halfPints
print - ANSWER halfPints
What is the output of this Python program?
a=5+2*3
print (a)
10
11
13
21 - ANSWER 11
What is the output of this Python program?
a = 7 +8 + 9 /3
print(a)
8
15
18
27 - ANSWER 18
What is the output of this Python program?
a = 19/4
print(a)
3
4
4.75
5 - ANSWER 4.75
What is the output of this Python program?
function was called it needs this:
argument
def
don't pick this answer
invoke
return - ANSWER return
Which of the following is NOT a benefit of learning to code?
You can become a better problem solver
You may need to code in your job
You can develop a basic understanding of how software works
You learn to easily give up whenever you encounter a difficult problem. -
ANSWER You learn to easily give up whenever you encounter a difficult
problem.
T/F: An algorithm is a list of steps needed to solve a problem. - ANSWER
True
Which of the following is NOT an essential algorithm property?
The algorithm has inputs
The algorithm has outputs
The order of the steps is completely random
Each steps is doable
The algorithm must eventually hault - ANSWER The order of the steps is
completely random.
Which of the following is NOT a part of the Program Development Cycle?
Browsing
Input
Output
Processing - ANSWER Browsing
,Which of the following is NOT one of the four main parts of a general-purpose
computer?
central processing unit(CPU)
memory(RAM)
inputs (like keyboard or mouse
outputs(like monitor or printer
blanket(to keep the parts warm) - ANSWER blanket ( to keep the parts warm)
In a flowchart, which shape is used to represent the start or end of a solution?
arrow
diamond
oval
parallelogram
rectangle - ANSWER oval
In a flowchart, which shape is used to represent an action or process?
arrow
diamond
oval
parallelogram
rectangle - ANSWER rectangle
In a flowchart, which shape is used to represent the flow of execution?
arrow
diamond
oval
parallelogram
rectangle - ANSWER arrow
In a flowchart, which shape is used to represent input and output?
arrow
diamond
oval
parallelogram
rectangle - ANSWER parallelogram
In Python, a ____ begins with a pound sign (#)
,comment
formula
input
print - ANSWER comment
Which of the following is an environment for writing and running Python
programs?
ABLE
GRUMPY
IDLE
PUPPY - ANSWER IDLE
Who created Python?
Bill Gates
Steve Jobs
Guido van Rossum
Alan Turing - ANSWER Guido van Rossum
Which of the following is an advantage of using python?
it's easy to learn
its portable
its powerful
all of the above - ANSWER It's easy to learn, its portable, its powerful
The rules of programming language (punctuation, spacing, etc.) is called its___.
comments
function
syntax
variable - ANSWER syntax
What is a name used to store data in memory?
comments
function
syntax
variable - ANSWER variable
T/F: A computer program can be thought of as a "black box" with inputs and
outputs. - ANSWER True
, T/F: An algorithm is a sequence of steps that solves a problem. - ANSWER
True
T/F: A flowchart is a visual, or graphical, representation of a solution to a
problem. - ANSWER True
Which of the following is a valid Python variable name?
half pints
half-pints
halfPints
print - ANSWER halfPints
What is the output of this Python program?
a=5+2*3
print (a)
10
11
13
21 - ANSWER 11
What is the output of this Python program?
a = 7 +8 + 9 /3
print(a)
8
15
18
27 - ANSWER 18
What is the output of this Python program?
a = 19/4
print(a)
3
4
4.75
5 - ANSWER 4.75
What is the output of this Python program?