Ch.1 Flashcards

1
Q

A byte consists of how many bits?

A

8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The anagram CPU stands for

A

Central Processing Unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The physical machines that make up a computer is called the

A

hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A memory address is

A

where a variable is stored

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Who was the programmer for Charles Babbage’s analytical engine?

A

Ada Lovelace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the following code print to the screen?

cout ≤≤ “hello”;

A

hello

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Who designed the first programmable computer?

A

Babbage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Who developed C++?

A

Bjarne Stroustrup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the following print to the screen?

cout ≤≤ “Hello Students/n”;

A

Hello Students

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is wrong with the following statement?

cout ≤≤ “Hello to everyone\n;

A

missing a “

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

C++ is an example of a

A

high-level language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The set of instructions that a computer will follow is known as

A

program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
Which of the following is not part of the Software Life Cycle?
A) design 
B) analysis 
C) testing 
D) implementation 
E) data entry
A

data entry

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following is not a phase of the program-design process?
A) marketing the final program
B) implementation
C) problem-solving

A

marketing the final program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the following line of code display to the screen?

cout ≤≤ “This is the computer\n programming book\n”;

A

This is the computer programming book

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A finite sequence of precise instructions that leads to a problem solution is

A

an algorithm

17
Q

The term OS stands for

A

Operating System

18
Q

cin&raquo_space; number; is

A

an input statement

19
Q

include ≤iostream> is

A

an include directive

20
Q

int number; is

A

a variable declaration

21
Q

A ________ is the program that translates a program written in C++ into machine language. 21) ____________

A

Compiler

22
Q

List at least two input devices

A

keyboard and mouse

23
Q

The part of the computer that controls and executes programs is called the

A

CPU

24
Q

Errors in a program can be classified into three types, list them

A

Syntax error, Run-time error, Logic error

25
Q

A variable that can hold a whole number is called a(n)

A

Integer

26
Q

What punctuation signifies the end of a C++ statement?

A

; semicolon

27
Q

What does the following statement in C++ print to the screen?
cout ≤≤ “Hello students\n”;

A

Hello students

28
Q

The collection of programs used by the computer is known as

A

a computer software

29
Q

A set of instructions that the computer will follow is called a

A

a computer program

30
Q

If your program compiles and runs, but gives an incorrect output, this is known as a ________ error

A

logic error

31
Q

Grace Hopper discovered the first documented computer bug

A

TRUE

32
Q

An algorithm is always written in C++

A

FALSE

33
Q

The following statement is legal:cout &raquo_space; “Hello, my name is Bill\n”;

A

FALSE

34
Q

You should write your program before you write the algorithm.

A

FALSE

35
Q

C++ is a low-level language

A

FALSE

36
Q

There are 8 bytes in one bit

A

FALSE

37
Q

Main memory holds its data if the computer is turned off.

A

FALSE