Chapter 2 (Input, Processing, and Output)

Beschreibung

Flashcards to help understand the terminology of chapter 2 from the textbook, "Programming Logic and Design, 5th Edition".
Andrew Lewis
Karteikarten von Andrew Lewis, aktualisiert more than 1 year ago
Andrew Lewis
Erstellt von Andrew Lewis vor etwa 4 Jahre
495
0

Zusammenfassung der Ressource

Frage Antworten
A _____ is a mistake that doesn't prevent the program from running, but causes it to produce incorrect results. Logic Error
A _____ is a single function that the program must perform in order to satisfy the customer. Software Requirement
An _____ is a set of well-defined logical steps that must be taken to perform a task. The steps are also sequentially ordered. Algorithm
An informal language that has no syntax rules, and is not meant to be compiled or executed is called _____. Pseudocode
A _____ is a diagram that graphically depicts the steps that take place in a program. Flowchart
A _____ is a set of statements that execute in the order that they appear. Sequence Structure
A _____ is a sequence of characters that is used as data. String
A _____ is a storage location in memory that is represented by a name. Variable
A _____ is any hypothetical person that is using a program and providing input for it. User
A _____ is a message that tells (or asks) the user to enter a specific value. Prompt
An _____ sets a variable to a specified value. Assignment Statement
In the expression 12 + 7, the values on the right and left of the "+" symbol are called _____. Operands
An _____ operator raises a number to a power. Exponent (^ / **)
A _____ operator performs division, but instead of returning the quotient it returns the remainder. Modulus (MOD / %)
A _____ specifies a variable's name and data type. Variable Declaration
Assigning a value to a variable in a declaration statement is called _____. Initialization
An _____ variable is one that has been declared, but has not been initialized or assigned a value. Uninitialized
A _____ is a variable whose content has a value that is read only and cannot be changed during the program's execution. Named Constant
A debugging process in which you imagine that you are the computer executing a program is called _____. Hand Tracing (Desk Checking)
Short notes placed in different parts of a program, explaining how those parts of the program work, are called _____. Comments
The term _____ means to find and correct the code that is causing logic errors. Debug
True/False: The Program Development Cycle repeats only 3 times. False -- The cycle repeats until no errors can be found in the program.
List the five steps of the Program Development Cycle. Design the program, Write the code, Correct syntax errors, Test the executable code, and Debug the code.
What two steps summarize the process of designing a program? Understand the task that the program is to perform. / Determine the steps that must be taken to perform the task.
What is the term used to describe the person, group, or organization that is asking you to write a program? Customer
In a flowchart, what are the ovals that appear at the top and bottom of a flowchart called? What do they represent? Terminal Symbols (The top oval is the Start terminal and the bottom oval is the End terminal.) The top terminal represents the program's starting point and the bottom terminal represents the program's ending point.
In a flowchart, what are the parallelograms known as? What do they represent? Input Symbols + Output Symbols Represents a step in the program where data is either inputted/outputted.
In a flowchart, what are the rectangles known as? What do they represent? Processing Symbols Represents a step in the program where data is processed.
True/False: The disadvantage of drawing flowcharts by hand is that mistakes have to be manually erased which means that the programmer might have to redraw the entire page. True
In a flowchart, what symbol is a circle with a letter or number written inside it? What does it represent? Connector Symbol Represents a bridge between two separate flowcharts that work in tangent.
In a flowchart, what is the "home plate" shaped symbol called? What does it do? Off-Page Connector Symbol Connects pieces of a flowchart that is too big to fit on a single page.
Computer programs typically perform three operations. What are they? Input, Process, and Output
A logical design that controls the order in which a set of statements executes is known as a _____. Control Structure (Structure)
A string that appears in the actual code of a program/pseudocode is known as a _____. String Literal
True/False: Variable names can contain spaces. False: Variable names must be one word and cannot contain spaces.
True/False: In most languages, punctuation characters can't be used in variable names. True: It's best to only use alphabetic letters and numbers for variable names.
True/False: In most languages, the first character of a variable name can't be a number. True
When writing a variable name, you can use the _____ naming convention. The first word is written with lowercase letters and then (without spaces in between) the first character of the following words are written in uppercase. camelCase
What are the two steps for getting keyboard input from the user? Display a prompt on the screen. / Read a value from the keyboard.
The term _____ is commonly used in the software business to describe programs that are easy to use. User-Friendly
A string literal is usually enclosed inside a set of what characters? Quotation Marks (" or ')
A chart, or table, that describes a program's input, processing, and output is known as an _____. IPO Chart
True/False: A variable can hold multiple values at a time. False: A variable can only hold one value at a time.
True/False: When you store a value in a variable, that value replaces the previous value that was in the variable. True
A programmer's tools for performing calculations are called _____. Math Operators
A _____ performs a calculation and gives a value. Math Expression
What is the order of operations? Parentheses, Exponents, Multiplication / Division / Modulus (as appeared from left to right), Addition / Subtraction (as appeared from left to right)
Most programming languages require that you _____ all of the variables that you intend to use in a program. Declare
A variable's _____ is the type of data that the variable will hold. Data Type
True/False: You have to write a variable's declaration statement after any other statements in the program that use the variable. False: The variable's declaration statement must be written before any other statements that use the the variable.
True/False: A blank line in a program doesn't affect the way a program works. True: Most compilers and interpreters ignore blank lines.
Conventions such as specific uses of blank lines and indents define a programmer's _____. Programming Style (Style)
True/False: As a rule to avoid logic errors, you should initialize variables with their correct value when declaring them. True
True/False: You should assign a correct value to a variable with an assignment statement before it is used. True
A number that is written into a program's code is called a _____. Numeric Literal
True/False: If a numeric literal is written with a decimal point, it will be stored in the computer's memory as a real number. True
In most programming languages, when an integer is divided by an integer the result will also be an integer. This is known as _____. Integer Division
Throwing away the fractional part of a number is called _____.) Truncation
When hand tracing a program, you step through each statement, observe the operation that is taking place, and then record the value that each variable will hold _____ the statement executes. After
This type of documentation is typically designed for the user. It consists of documents such as a reference guide that describes the program's features, and tutorials that teach the user how to operate the program. External Documentation
The type of documentation that uses comments is known as _____. Internal Documentation
_____ are a type of comment that take up several lines and are used when lengthy explanations are required. Block Comments
_____ are a type of comment that occupy a single line, and explain a short section of the program. Line Comments
What are the two general types of comments that programmers write in a program's code? Line Comments + Block Comments
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

TOEFL English Vocab (A - M)
Ali Kane
Random German A-level Vocab
Libby Shaw
Vocabulary Words
Jenna Trost
TOEFL English Vocabulary (N - Z)
Ali Kane
L'environnement
Bryony Whitehead
TOEFL Vocabulary
aliking
French 1A Vocab
Jade Allatt
10 animals in spanish
Jlaal Mohammed
TOEFL Vocabulary Test
Ali Kane
French 1B Vocab (numbers)
Jade Allatt
French 1D Vocab
Jade Allatt