Exam 2: Elements of High Quality Programs

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

What does a data item's data type describe?

Free
(Essay)
4.9/5
(32)
Correct Answer:
Verified

A data item's data type is a classification that describes the following:
1 What values can be held by the item
2 How the item is stored in computer memory
3 What operations can be performed on the data item

In most programming languages, before you can use any variable, you must include a ____ for it.

Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
Verified

A

Program ___________________ are written explanations that are not part of the program logic but that serve as documentation for readers of the program.

Free
(Short Answer)
4.9/5
(35)
Correct Answer:
Verified

comments

Programmers refer to programs that contain meaningful names as ____.

(Multiple Choice)
4.9/5
(44)

When you write programs, you work with data in three different forms: ____.

(Multiple Choice)
4.8/5
(34)

Because one memory location can be used repeatedly with different values, you can write program instructions once and then use them for thousands of separate calculations

(True/False)
5.0/5
(38)

Most modern programming languages require that program statements be placed in specific columns.

(True/False)
4.8/5
(31)

A specific numeric value is often called a(n) ____.

(Multiple Choice)
4.9/5
(41)

Explain the purpose of temporary variables.

(Essay)
4.7/5
(44)

In a flowchart, an ____ is most often represented by a three-sided box that is connected to the step it references by a dashed line.

(Multiple Choice)
4.8/5
(38)

Programmers say that variables and constants declared within a module are ____ only within that module.

(Multiple Choice)
4.9/5
(28)

Explain the purpose of annotation symbols.

(Essay)
4.9/5
(41)

Program comments are a type of internal documentation.

(True/False)
4.8/5
(46)

Discuss why it is important to use meaningful names for identifiers.

(Essay)
5.0/5
(42)

Programmers say the statements that are contained in a module have been ____.

(Multiple Choice)
4.8/5
(36)

Modularization makes it harder for multiple programmers to work on a problem.

(True/False)
4.9/5
(28)

A variable's unknown value is commonly called ____.

(Multiple Choice)
4.7/5
(40)

Variable names can be more than one word with blanks between the words.

(True/False)
4.9/5
(40)
Match each term with a statement below.
Can hold text, such as letters of the alphabet, and other special characters, such as punctuation marks
Variables
The act of repeating input back to a user either in a subsequent prompt or in output
Identifier
A program component's name
Reliability
Correct Answer:
Verified
Premises:
Responses:
Can hold text, such as letters of the alphabet, and other special characters, such as punctuation marks
Variables
The act of repeating input back to a user either in a subsequent prompt or in output
Identifier
A program component's name
Reliability
A statement that provides a data type and an identifier for a variable
Numeric variable
A list of every variable name used in a program, along with its type, size, and description
Data dictionary
Can hold digits and have mathematical operations performed on it
Declaration
The feature of programs that assures you a module has been tested and proven to function correctly
Type-safety
The feature of programming languages that prevents assigning values of an incorrect data type
Echoing input
Named memory locations whose contents can vary or differ over time
Prompt
A message that is displayed on a monitor to ask the user for a response and perhaps explain how that response should be formatted
String variable
(Matching)
4.9/5
(40)

____ is where a variable's data type or other information is stored as part of the name.

(Multiple Choice)
4.9/5
(34)
Showing 1 - 20 of 51
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)