Chapter 1 - CS 225

Ace your homework & exams now with Quizwiz!

Which of the following performs the square root of 4? a. square root (4); b. pow(4, ½); c. sqt(4); d. all of the above;

b. pow(4, ½);

The following C++ statement increments variable age by ____ (enter the numeric value) ++age;

1

The following C++ statement increments variable age by ____ (enter the numeric value) age += 1;

1

The following C++ statement increments variable age by ____ (enter the numeric value) age++;

1

The following C++ statement increments variable age by ____ (enter the numeric value) age = age + 2;

2

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

bit

A sequence of eight bits is called a ____.

byte

____ programs perform a specific task.

Application

The programming language C++ evolved from ____.

C

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

CPU

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

linker

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

loader

When the power is switched off, everything in ____ is lost.

main memory

Several categories of computers exist, such as ____.

mainframe, midsize, and micro

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

memory cells

A(n) ____ consists of data and the operation of those data.

object

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

operating system

Main memory is called ____.

random access memory

A data type is called ____ if the variable or named constant of that type can store only one value at a time.

simple

Dividing a problem into smaller subproblems is called ____ design.

structured

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

sum = 15

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

Digital signals

A comma is also called a statement terminator.

False

An operator that has only one operand is called a unique operator.

False

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

False

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

algorithm

To develop a program to solve a problem, you start by ____.

analyzing the problem

Suppose a = 5. After the execution of the statement ++a; the value of a is 6.

True

Information stores in main memory must be transferred to some other device for permanent storage.

True

Main memory is directly connected to the CPU.

True

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

compiler

Consider the following C++ program. #include <iostream> using namespace std; int main () { cout << "Hello World" return 0; } In the court statement, the missing semicolon in the code above will be caught by the ____.

compiler

An example of a floating point data type is ____.

double

The term GB refers to ____.

gigabyte

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

input

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

input, output, storage


Related study sets

Chapter 19- Effective Communication and Conflict Resolution

View Set

PHARMACLGY HLTHCARE PROF - EXAM 1- PRACTICE QS FROM QUIZZES

View Set

Combo with Art Appreciation 1560 Chapter 3.1 and 2 others

View Set

Chapter 8: MA Office Equipment and Supplies Homework

View Set

Ch 19: Kidney Disorders and Therapeutic Management

View Set

Fed Gov Chapter 7: Political Participation: Activating the Popular Will

View Set