Ch.1 Flashcards
(37 cards)
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