Final Exam C++ Part 1

Ace your homework & exams now with Quizwiz!

byte

A sequence of eight bits is called a ____.

Double

An example of a floating point data type is____.

False

The command that does the linking on Visual C++ 2012 Express and Visual Studio 2012 is Make or Remake. True or False

False

The device that stores information permanently (unless the device becomes unusable or you change the information by rewriting it) is called primary storage. True or False

Input

The devices that feed data and programs into computers are called ____ devices.

Comments

____________________ can be used to identify the authors of the program, give the date when the program is written or modified, give a brief explanation of the program, and explain the meaning of key statements in a program.

Programming

____________________ is the process of planning and creating a program.

High-Level

____________________ languages include FORTRAN, COBOL, Pascal, C, C++, and Java.

Semantic

____________________ rules determine the meaning of instructions.

Preprocessor

In a C++ program, statements that begin with the symbol # are called ____________________ directives.

Objects

In object-oriented design, the first step in the problem-solving process is to identify the components called ____________________, which form the basis of the solution, and to determine how they interact with one another.

True

Information stored in main memory must be transferred to some other device for permanent storage. True or False

CPU

The ____ is the brain of the computer and the single most expensive piece of hardware in your personal computer.

False

A mixed arithmetic expression contains all operands of the same type. True or False

Linker

A program called a(n) ____ combines the object program with the programs from libraries.

Loader

A program that loads an executable program into main memory is called a(n) ____.

128

The ASCII data set consists of ____________________ characters.

C

The programming language C++ evolved from ____.

String

A _________ is a sequence of zero or more characters.

Variable

A __________ is a memory location whose contents can be changed.

Subprogram Function Module

A _____________ is a collection of statements, and when it is activated, or executed, it accomplishes something. (more than one correct answer)

False

A comma is also called a statement terminator. True or False

Mnemonics

Assembly language uses easy-to-remember instructions called ____________________.

False

C++ programs have always been portable from one compiler to another. True or False

Sunny Day

Choose the output of the following C++ statement: cout << "Sunny " << '\n' << "Day " << endl;

Insertion Point 1

Consider the following code. // Insertion Point 1 using namespace std; const float PI = 3.14; int main() { //Insertion Point 2 float r = 2.0; float area; area = PI * r * r; cout << "Area = " << area <<endl; return 0; } // Insertion Point 3 In this code, where does the include statement belong?

Structured

Dividing a problem into smaller subproblems is called ____ design.

Memory cells

Main memory is an ordered sequence of items, called ____.

Random Access Memory

Main memory is called ____.

True

Main memory is directly connected to the CPU. True or False

mainframe, midsize, and micro

Several categories of computers exist, such as ____.

beta = beta + 1; alpha = beta;

Suppose that alpha and beta are int variables. The statement alpha = ++beta; is equivalent to the statement(s) ____.

beta = beta - 1; alpha = beta;

Suppose that alpha and beta are int variables. The statement alpha = --beta; is equivalent to the statement(s) ____.

alpha = beta; beta = beta + 1;

Suppose that alpha and beta are int variables. The statement alpha = beta++; is equivalent to the statement(s) ____.

alpha = beta; beta = beta - 1;

Suppose that alpha and beta are int variables. The statement alpha = beta--; is equivalent to the statement(s) ____.

False

The escape sequence \r moves the insertion point to the beginning of the next line. True or False

13

The expression static_cast<int>(6.9) + static_cast<int>(7.9) evaluates to ____.

9

The expression static_cast<int>(9.9) evaluates to ____.

16

The length of the string "computer science" is ____.

Implicit

When a value of one data type is automatically changed to another data type, a(n) ____________________ type coercion is said to have occurred.

False

When the computer is turned off, everything in secondary memory is lost. True or False

char

Which of the following is a reserved word in C++?

Prompt lines

____ are executable statements that inform the user what to do.

2

Suppose that count is an int variable and count = 1. After the statement count++; executes, the value of count is ____.

sum = 15

Suppose that sum and num are int variables and sum = 5 and num = 10. After the statement sum += num executes, ____.

True

Suppose that sum is an int variable. The statement sum += 7; is equivalent to the statement sum = sum + 7; True or False

Object

A(n) ____ consists of data and the operations on those data

True

If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right. True or False

Class

In C++, the mechanism that allows you to combine data and operations on the data into a single unit is called a(n) ____________________.

Object-oriented

In ____________________ design, the final program is a collection of interacting objects.

White spaces

In a C++ program, ____________________ are used to separate special symbols, reserved words, and identifiers.

Operating System

The ____ monitors the overall activity of the computer and provides services.

Syntax

The ____ rules of a programming language tell you which statements are legal, or accepted by the programming language.

enumeration

The ____________________ type is C++ 's method for allowing programmers to create their own simple data types.

input, output, storage

The basic commands that a computer performs are ____, and performance of arithmetic and logical operations.

True

The basic commands that a computer performs are input (get data), output (display result), storage, and performance of arithmetic and logical operations. True or False

False

The devices that feed data and programs into computers are called output devices. True or False

Output

The devices that the computer uses to display results are called ____ devices.

True

The maximum number of significant digits in float values is up to 6 or 7. True or False

True

The maximum number of significant digits in values of the double type is 15. True or False

Precision

The maximum number of significant digits is called the ____________________.

Four

The memory allocated for a float value is ____ bytes.

Long Long

The memory space for a(n) ____________________ data value is 64 bits

3

The value of the expression 33/10, assuming both values are integral data types, is ____.

True

To develop a program to solve a problem, you start by analyzing the problem. True or False

Unicode

____ consists of 65,536 characters.

'A'

____ is a valid char value.

Application

____ programs perform a specific task.

Digital signals

____ represent information with a sequence of 0s and 1s.

Gigabyte

The term GB refers to ____.

int a,b,c;

The declaration int a, b, c; is equivalent to which of the following?

Token

The smallest individual unit of a program written in any language is called a(n) ____________________.

3

The value of the expression 17 % 7 is ____.

Bit

The digit 0 or 1 is called a binary digit, or ____.

Compiler

A program called a(n) ____ translates instructions written in high-level languages into machine code.

Algorithm

A step-by-step problem-solving process in which a solution is arrived at in a finite amount of time is called a(n) ____.

Digitals

____________________ signals represent information with a sequence of 0s and 1s


Related study sets

exam I (ch. 13, 11, 3, 1, 2, 4, 5)

View Set

Entrepreneurial Small Business 5th Edition; Chapter 15

View Set

UNE REVISION DES VERBES CONJUGUEZ LES VERBES SUIVANTS AU PRESENT

View Set

Pharm Exam 3 Practice NCLEX style questions

View Set

Computer Networks- Key Terms and Concepts

View Set

Quiz other coverages and options

View Set