Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

Welcome to All Test Answers

Chapter 01 – An Introduction to Programming using Python Schneider


 

Download  file with the answers

If you are not a member register here to download this file 


 

Chapter 1

1. Which one of the following is not a high-level language?
a. assembly language 
b. Java
c. Visual Basic
d. Python

2. A sequence of instructions is called a(n) _______________ .
a. program 
b. high-level language
c. interpreter
d. flowchart

3. A _______________ is any person who runs a program.
a. user **
b. programmer
c. coder
d. computer

4. Computer programs are referred to as _______________ .
a. software 
b. hardware
c. flowcharts
d. high-level languages

5. The mechanical and electrical devices of a computer are referred to as _______________.
a. hardware 
b. software
c. peripherals
d. programs

6. Writing Python statements is called _______________.
a. coding 
b. compiling
c. interpreting
d. processing

7. An error is a program is called a(n) _______________.
a. bug 
b. moth
c. incomplete input
d. cycle

8. Which programming tool is used to show how the different parts of a program relate to each other?
a. hierarchy chart 
b. flowchart
c. pseudocode
d. algorithm

9. Which programming tool graphically depicts the logical steps to carry out a task and show how the steps relate to each other?
a. flowchart 
b. hierarchy chart
c. algorithm
d. pseudocode

10. Which programming tool uses English-like phrases with some Python terms to outline the task?
a. pseudocode 
b. algorithm
c. hierarchy chart
d. flowchart

11. Hierarchy charts are also called
a. structure charts
b. top-down charts
c. Visual Table of Contents charts
d. all of the above 

12. In a flowchart, the representation of instructions that require a “yes” or “no” answer is called a(n) _______________.
a. decision structure 
b. sequence structure
c. binary structure
d. answer structure

13. Using different inputs and outputs on a flowchart to test an algorithm is called _______________.
a. desk checking 
b. interpreting
c. flow charting
d. debugging

14. Instructions in a Python program are called _______________.
a. source code 
b. editor code
c. debugging code
d. files

True/False (10)
1. The word disk is often used to refer to any storage device.
Answer: true
2. In the program development cycle, the first step in writing instructions to carry out a task is to determine how to process the input to obtain the desired output.
Answer: false

3. Pseudocode is typically more compact than a flowchart.
Answer: true

4. In a hierarchy chart, details on how modules work should be included.
Answer: false

5. The main benefit of hierarchy charts is in the initial planning phase of a program.
Answer: true

6. Flowcharts are time-consuming to write and difficult to update.
Answer: true

7. Python requires all programs be saved as a file on a storage device before they can be executed.
Answer: true

8. Indentation is not semantically meaningful in Python.
Answer: false

9. Python is considered a block-structured language.
Answer: true

10. Planning a solution to a problem is called coding.
Answer: false

Short Answer (9)
1. Most programs do three general things. List them.
Answer: Take in data, manipulate data, and produce desired results. This is also called input, processing and output.
2. Someone preparing for a marathon trains by running laps on a track which is ¼ mile per lap. The runner would like to know their average time in minutes per mile. List the inputs, processing steps and output for a computer program to accomplish this.
Answer: The input is the number of laps and the total time run in minutes. The processing is dividing the laps by 4 to give the miles run, then dividing the time in minutes by the miles. The output is the minutes per mile calculated.
3. Fill in the steps of the problem solving process.

Answer:

4. List the 5 steps in the software development life cycle in order.
Answer:
1) analyze
2) design
3) code
4) test and correct
5) complete the documentation
5. You are given the following pseudocode to determine if a number is even or odd. Create a hierarchy chart for this program.

get number
If the number is divisible by 2 without a remainder
display the number is even
else
display the number is odd

Answer:

6. You are given the following pseudocode to determine if a number is even or odd. Create a flowchart for this program.

get number
If the number is divisible by 2 without a remainder
display the number is even
else
display the number is odd

Answer:

7. Given the following flowchart for a program that determines if a number is even or odd, write the pseudocode.

Answer:
get number
If the number is divisible by 2 without a remainder
display the number is even
else
display the number is odd

8. Write a line of Python code that displays the sum of 468 + 751.
Answer: print (468 + 751)

9. Write a line of Python code that displays the words “How are you?” to the screen.
Answer: print (“How are you?”)

About

Leave a reply

Captcha Click on image to update the captcha .

error: Content is protected !!