CSCI 1081 - Programming Fundamentals in C++ - Chapter 1 Quiz

¡Supera tus tareas y exámenes ahora con Quizwiz!

True/False: Machine language is an example of high-level language

False

True/False: The preprocessor executes after the compiler

False

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

True

A variable declaration announces the name of a variable that will be used in a program, as well as: a. the type of data it will be used to hold b. the operators that will be used on it c. the number of times it will be used in the program d. The area of the code in which it will be used e. none of these

a. the type of data it will be used to hold

The purpose of memory address is: a. to identify the location of a byte in memory b. to prevent multitasking c. to obtain an algorithm d. to improve the effectiveness of high-level languages e. none of these

a. to identify the location of a byte in memory

This step will uncover any syntax errors in your program. a. Editing b. Compiling c. Linking d. Executing e. None of these

b. Compiling

Programmer-defined names of memory locations that may hold data are: a. Operators b. Variables c. Syntax d. Operands e. None of these

b. Variables

A(n) ___ is a diagram that shows the logical flow of a program a. UML diagram b. flowchart c. hierarchy chart d. program schematic e. none of these

b. flowchart

Mistakes that cause a running program to produce incorrect results are called: a. Syntax errors b. Logic errors c. compiler errors d. linker errors e. none of these

b. logic errors

This is a complete instruction that causes the computer to perform some action: a. Line b. Statement c. Variable d. Key word e. none of these

b. statement

Three primary activities of a program are: a. Variables, Operators, and Key words b. Lines, statements, and punctuation c. Input, processing, and output d. Integer, floating point, and character e. none of these

c. Input, processing, and output

Computer programs are also known as: a. Hardware b. Firmware c. Software d. Silverware e. None of these

c. Software

_____ are used to translate each source code into the appropriate machine language instruction a. modules b. library routines c. compilers d. preprocessor directives e. none of these

c. compilers

Words that have a special meaning and may be used only for their intended purpose are known as: a. operators b. programmer defined words c. key words d. syntax e. none of these

c. key words

Character or symbols that perform operations on one or more operands are: a. syntax b. op codes c. operators d. program ops e. none of these

c. operators

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, which may change.

d. A variable is a named storage location in the computer's memory used for holding a piece of information

An integrated development environment typically consists of: a. A text editor b. A compiler c. A debugger d. All of these e. None of these

d. All of these

This is a set of rules that must be followed when constructing a program a. Operators b. Punctuation c. Key words d. Syntax e. Portability

d. Syntax

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

a. #include <iostream>

In the process of translating a source file into an executable file, which of the following is the correct sequence? a. Source code, preprocessor, modified source code, linker, object code, compiler, executable code. b. Source code, compiler, modified source code, preprocessor, object code, linker, executable code. c. Preprocessor, source code, compiler, executable code, linker modified source code, object code d. Source code, linker, object code, compiler, modified source code, preprocessor, executable code e. Source code, preprocessor, modified source code, compiler, object code, linker, executable code

e. Source code, preprocessor, modified source code, compiler, object code, linker, executable code


Conjuntos de estudio relacionados

Combining Forms Medical Terminology Test 2

View Set

Business Ethics Chapter 4 Exam Questions

View Set

ATI- At Risk and Vulnerable Populations

View Set

ACSM CPT prepU EXAM QUESTIONS w/ ANSWERS

View Set

The Healthcare System Chapters 1-6

View Set

Social Problems: CH14 The Environment

View Set