wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CS201: Chapter 2

Total questions: 13

Worksheet time: 9mins

Name
Class
Date
1.

In which phase of the waterfall model does the programmer determine how the program will do its task?

a)

analysis

b)

design

c)

implementation

d)

integration

2.

What is another name for a rough draft or skeletal version of a program?

(a)  

3.

True or False: In programming, a data type consists of a set of values and a set of operations that can be performed on those values.

a)

True

b)

False

4.

The newline character \n is called which of the following?

a)

escape sequence

b)

backspace

c)

horizontal tab

d)

print function

5.

Variables receive their initial values and can be reset to new values with which of the following?

a)

variable reference

b)

program comment

c)

assignment statement

d)

escape sequence

6.

True or False: In the 1960s, the original ASCII set encoded each keyboard character and several control characters using the integers from 0 through 255.

a)

True

b)

False

7.

True or False: The precedence rules you learned in algebra apply during the evaluation of arithmetic expressions in Python.

a)

True

b)

False

8.

Which of the following provides an easy way to perform operations on data values to produce other data values?

a)

strings

b)

expressions

c)

conversions

d)

modules

9.

What is a module?

4 lines
10.

Which of the following is a chunk of code that can be called by name to perform a task?

a)

parameter

b)

argument

c)

function

d)

script

11.

True or False: Arguments are also known as literals.

a)

True

b)

False

12.

Which are you most confident in?

a)

Describe the basic phases of software development: analysis, design, coding, and testing

b)

Use strings for the terminal input and output of text

c)

Construct arithmetic expressions

d)

Initialize and use variables with appropriate names

e)

Call functions with arguments and use returned values appropriately

13.

Which are you least confident in?

a)

Describe the basic phases of software development: analysis, design, coding, and testing

b)

Use strings for the terminal input and output of text

c)

Construct arithmetic expressions

d)

Initialize and use variables with appropriate names

e)

Call functions with arguments and use returned values appropriately