Hogan chapter 1

Ace your homework & exams now with Quizwiz!

This step will uncover any syntax errors in your program. Editing Compiling Linking Executing

Compiling

_________ is/are used in a program to mark the beginning or ending of a statement, or separate items in a list. Separators Punctuation Operators Key Words

Punctuation

A variable declaration includes the name of a variable that will be used in a program, as well as: The type of data it will be used to hold The operators that will be used on it The number of times it will be used in the program The area of the code in which it will be used

The type of data it will be used to hold

A CPU really only understands instructions that are written in machine language. True False

True

In C++, key words are written in all lowercase letters. True False

True

Programmer-defined names of memory locations that may hold data are called: Operators Variables Syntax Operands

Variables

A set of well-defined steps for performing a task or solving a problem is known as a(n): Hierarchy Algorithm Central Processing Unit Encoded instruction

Algorithm

Three primary activities of a program are: Variables, Operators, and Key Words Lines, Statements, and Punctuation Input, Processing, and Output Integer, Floating-point and Character

Input, Processing, and Output

Which of the following is a preprocessor directive? pay = hours * rate; cin >> rate; // This program calculates the user's pay. int main() #include <iostream>

#include <iostream>

_______________ are used to translate each source code instruction into the appropriate machine language instruction. Modules Library routines Compilers Preprocessor directives

Compilers

What statement best describes a variable and its primary purpose? A) A variable is a structured, general-purpose language designed primarily for teaching programming. B) A variable is a collection of eight bits. C) A variable is a word that has a special meaning to the compiler. D) A variable is a named storage location in the computer's memory used for holding a piece of information. E) A variable is a "line" of code in the body of a program that may change.

D

Words that have a special meaning and may be used only for their intended purpose are known as: Operators Programmer Defined Words Key Words Syntax

Key Words

Mistakes that cause a running program to produce incorrect results are called: Syntax errors Logic errors Compiler errors Linker errors

Logic errors

Characters or symbols that perform operations on one or more operands are called: Syntax Op codes Operators Program ops

Operators

A(n) ____________ is a set of instructions that the computer follows to solve a problem. Compiler Linker Program Operator

Program


Related study sets

Advanced Accounting: Consolidated Financial Statements Chp 4

View Set

Health Assessment Exam One NCLEX questions

View Set

Property and casualty Missed practice exam questions

View Set

RN Pediatric Nursing Online Practice 2023 B

View Set

CNA Lying Positions for Residents

View Set