Chapter 2 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

True/False

The best way to write a program is to immediately type in some code and then debug it until it works.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True/False

An algorithm can be written without using a programming language.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True/False

Programs no longer require modification after they are written and debugged.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True/false

Python identifiers must start with a letter or underscore

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True/False

Keywords make good variable names.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

True/False

Expressions are built from literals, variables, and operators.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True/false

In Python, x = x + 1 is a legal statement.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True/false

Python does not allow output of multiple values with a single statement.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

True/false

A counted loop is designed to iterate a specific number of times.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

True/false

In a flowchart, diamonds are used to show statement sequences, and rectangles are used for decision points.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which of the following is not a step in the software development process?

A

Fee setting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the correct formula for converting Celsius to Fahrenheit?

A

F=9/5(C)+32

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The process of describing exactly what a computer program will do to solve a problem is called

A

Specification

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following is not a legal identifier?

A

2spam

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which of the following are not used in expressions?

A

Statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Fragments of code that produce or calculate new data values are called

A

Expression

17
Q

Which of the following is not a part of the IOP pattern?

A

program

18
Q

The template for in range() describes

A

General/for loop (Multiple choice)

19
Q

Which of the following is the most accurate model of assignment in Python?

A

Sticky note

20
Q

In Python, getting user input is done with a special expression called

A

Input