Flashcards
Chapter 2 (Input, Processing, and Output)
Flashcards do conjunto (64)
- 1A _____ is a mistake that doesn't prevent the program from running, but causes it to produce incorrect results.Logic Error
- 2A _____ is a single function that the program must perform in order to satisfy the customer.Software Requirement
- 3An _____ is a set of well-defined logical steps that must be taken to perform a task. The steps are also sequentially ordered.Algorithm
- 4An informal language that has no syntax rules, and is not meant to be compiled or executed is called _____.Pseudocode
- 5A _____ is a diagram that graphically depicts the steps that take place in a program.Flowchart
- 6A _____ is a set of statements that execute in the order that they appear.Sequence Structure
- 7A _____ is a sequence of characters that is used as data.String
- 8A _____ is a storage location in memory that is represented by a name.Variable
- 9A _____ is any hypothetical person that is using a program and providing input for it.User
- 10A _____ is a message that tells (or asks) the user to enter a specific value.Prompt
- 11An _____ sets a variable to a specified value.Assignment Statement
- 12In the expression 12 + 7, the values on the right and left of the "+" symbol are called _____.Operands
- 13An _____ operator raises a number to a power.Exponent (^ / **)
- 14A _____ operator performs division, but instead of returning the quotient it returns the remainder.Modulus (MOD / %)
- 15A _____ specifies a variable's name and data type.Variable Declaration
- 16Assigning a value to a variable in a declaration statement is called _____.Initialization
- 17An _____ variable is one that has been declared, but has not been initialized or assigned a value.Uninitialized
- 18A _____ is a variable whose content has a value that is read only and cannot be changed during the program's execution.Named Constant
- 19A debugging process in which you imagine that you are the computer executing a program is called _____.Hand Tracing (Desk Checking)
- 20Short notes placed in different parts of a program, explaining how those parts of the program work, are called _____.Comments
- 21The term _____ means to find and correct the code that is causing logic errors.Debug
- 22True/False: The Program Development Cycle repeats only 3 times.False -- The cycle repeats until no errors can be found in the program.
- 23List 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.
- 24What 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.
- 25What is the term used to describe the person, group, or organization that is asking you to write a program?Customer
- 26In 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. - 27In 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. - 28In a flowchart, what are the rectangles known as? What do they represent?Processing Symbols
Represents a step in the program where data is processed. - 29True/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
- 30In 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. - 31In 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. - 32Computer programs typically perform three operations. What are they?Input, Process, and Output
- 33A logical design that controls the order in which a set of statements executes is known as a _____.Control Structure (Structure)
- 34A string that appears in the actual code of a program/pseudocode is known as a _____.String Literal
- 35True/False: Variable names can contain spaces.False: Variable names must be one word and cannot contain spaces.
- 36True/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.
- 37True/False: In most languages, the first character of a variable name can't be a number.True
- 38When 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
- 39What are the two steps for getting keyboard input from the user?Display a prompt on the screen. / Read a value from the keyboard.
- 40The term _____ is commonly used in the software business to describe programs that are easy to use.User-Friendly
- 41A string literal is usually enclosed inside a set of what characters?Quotation Marks (" or ')
- 42A chart, or table, that describes a program's input, processing, and output is known as an _____.IPO Chart
- 43True/False: A variable can hold multiple values at a time.False: A variable can only hold one value at a time.
- 44True/False: When you store a value in a variable, that value replaces the previous value that was in the variable.True
- 45A programmer's tools for performing calculations are called _____.Math Operators
- 46A _____ performs a calculation and gives a value.Math Expression
- 47What is the order of operations?Parentheses, Exponents, Multiplication / Division / Modulus (as appeared from left to right), Addition / Subtraction (as appeared from left to right)
- 48Most programming languages require that you _____ all of the variables that you intend to use in a program.Declare
- 49A variable's _____ is the type of data that the variable will hold.Data Type
- 50True/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.
- 51True/False: A blank line in a program doesn't affect the way a program works.True: Most compilers and interpreters ignore blank lines.
- 52Conventions such as specific uses of blank lines and indents define a programmer's _____.Programming Style (Style)
- 53True/False: As a rule to avoid logic errors, you should initialize variables with their correct value when declaring them.True
- 54True/False: You should assign a correct value to a variable with an assignment statement before it is used.True
- 55A number that is written into a program's code is called a _____.Numeric Literal
- 56True/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
- 57In most programming languages, when an integer is divided by an integer the result will also be an integer. This is known as _____.Integer Division
- 58Throwing away the fractional part of a number is called _____.)Truncation
- 59When 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
- 60This 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
- 61The type of documentation that uses comments is known as _____.Internal Documentation
- 62_____ are a type of comment that take up several lines and are used when lengthy explanations are required.Block Comments
- 63_____ are a type of comment that occupy a single line, and explain a short section of the program.Line Comments
- 64What are the two general types of comments that programmers write in a program's code?Line Comments + Block Comments
Informações
- Descrição
- Flashcards to help understand the terminology of chapter 2 from the textbook, "Programming Logic and Design, 5th Edition".
- Criado por
- Usuário eliminado · jan 2021
- Atualizado
- 12 jan 2021
- Visualizações
- 33
- Tags
- Histórico
-
- Criado por Andrew Lewis · 13 dez 2020
- Copiado por Andrew Lewis · 12 jan 2021
- Avaliação