Ch.1 Flashcards
A byte consists of how many bits?
8
The anagram CPU stands for
Central Processing Unit
The physical machines that make up a computer is called the
hardware
A memory address is
where a variable is stored
Who was the programmer for Charles Babbage’s analytical engine?
Ada Lovelace
What does the following code print to the screen?
cout ≤≤ “hello”;
hello
Who designed the first programmable computer?
Babbage
Who developed C++?
Bjarne Stroustrup
What does the following print to the screen?
cout ≤≤ “Hello Students/n”;
Hello Students
What is wrong with the following statement?
cout ≤≤ “Hello to everyone\n;
missing a “
C++ is an example of a
high-level language
The set of instructions that a computer will follow is known as
program
Which of the following is not part of the Software Life Cycle? A) design B) analysis C) testing D) implementation E) data entry
data entry
Which of the following is not a phase of the program-design process?
A) marketing the final program
B) implementation
C) problem-solving
marketing the final program
What does the following line of code display to the screen?
cout ≤≤ “This is the computer\n programming book\n”;
This is the computer programming book
A finite sequence of precise instructions that leads to a problem solution is
an algorithm
The term OS stands for
Operating System
cin»_space; number; is
an input statement
include ≤iostream> is
an include directive
int number; is
a variable declaration
A ________ is the program that translates a program written in C++ into machine language. 21) ____________
Compiler
List at least two input devices
keyboard and mouse
The part of the computer that controls and executes programs is called the
CPU
Errors in a program can be classified into three types, list them
Syntax error, Run-time error, Logic error
A variable that can hold a whole number is called a(n)
Integer
What punctuation signifies the end of a C++ statement?
; semicolon
What does the following statement in C++ print to the screen?
cout ≤≤ “Hello students\n”;
Hello students
The collection of programs used by the computer is known as
a computer software
A set of instructions that the computer will follow is called a
a computer program
If your program compiles and runs, but gives an incorrect output, this is known as a ________ error
logic error
Grace Hopper discovered the first documented computer bug
TRUE
An algorithm is always written in C++
FALSE
The following statement is legal:cout »_space; “Hello, my name is Bill\n”;
FALSE
You should write your program before you write the algorithm.
FALSE
C++ is a low-level language
FALSE
There are 8 bytes in one bit
FALSE
Main memory holds its data if the computer is turned off.
FALSE