Deck 1: Introduction to Computer and C++ Programming

Full screen (f)
exit full mode
Question
A memory address is

A) Where a variable is stored
B) Where the computer is located
C) A step in the program.
D) Where the CPU is stored.
Use Space or
up arrow
down arrow
to flip the card.
Question
A set of instructions that the computer will follow is called a _____________.
Question
The physical machines that make up a computer is called the

A) Software
B) Network
C) Devices
D) CPU
E) Hardware
Question
A mistake in a computer program is called a ______________.
Question
If your program compiles and runs, but gives an incorrect output, this is known as a _________ error.
Question
A digit that can hold a zero or a one is known as a ___________.
Question
An algorithm is

A) The inputs and outputs of a program
B) The part of the computer that does the processing
C) A finite set of steps to solve a problem
D) A complete computer program
Question
Computers that are interconnected are known as a _____________.
Question
The part of the computer that controls and executes programs is called the _______.
Question
What punctuation signifies the end of a C++ statement? _____________
Question
A computer that is normally used by only one person at a time is called a

A) Server
B) Mainframe
C) Personal Computer
D) Network
Question
A mistake that is a direct violation of the syntax rules will generate a compiler ________.
Question
Errors in a program can be classified into three types, list them
Question
A variable that can hold a whole number is called an) ____________.
Question
A __________ is the program that translates a program written in C++ into machine language.
Question
The collection of programs used by the computer is known as ______________.
Question
What does the following statement in C++ print to the screen?
cout << "Hello students\n";
Question
Who was the programmer for Charles Babbage's analytical engine?

A) Grace Hopper
B) Ada Lovelace
C) Lord Bryan
D) Walter Savitch
Question
List at least two input devices ____________ _________________.
Question
List at least two output devices ______________ _____________.
Question
Who designed the first programmable computer?

A) IBM
B) Microsoft
C) Intel
D) Babbage
E) Dell
Question
The term OS stands for

A) Operating System
B) Oscillating System
C) Operations Services
D) Nothing
Question
What does the following line of code display to the screen?
Cout << "This is the computer\n programming book\n";

A) This is the computern programming book
B) This is the computer
C) Nothing
D) This is the computer programming book
Question
cin >> number;

A) is an output statement
B) is an input statement
C) is a variable declaration
D) is a program
Question
Which of the following is not an example of a program bug?

A) Run-time error
B) Operator error
C) Syntax error
D) Logic error
Question
C++ statements end with a

A) Period
B) Comma
C) Semicolon
D) Nothing
Question
#include

A) is a variable declaration
B) an executable statement
C) an include directive
D) illegal code
Question
A finite sequence of precise instructions that leads to a problem solution is

A) A program
B) The CPU
C) A List of Inputs and Outputs
D) An Algorithm
Question
Which of the following is not part of the Software Life Cycle?

A) Analysis
B) Design
C) Data Entry
D) Implementation
E) Testing
Question
The set of instructions that a computer will follow is known as:

A) Hardware
B) Algorithm
C) Program
D) CPU
Question
The anagram CPU stands for

A) Computer Programming Unit
B) Central Processing Unit
C) Central Program User
D) Computer Paper User
Question
int number;

A) is an output statement
B) is an input statement
C) is a variable declaration
D) is a program
Question
What does the following code print to the screen?
Cout << "hello";

A) Hello
B) hello
C) HELLO
D) Nothing
Question
The output of the compiler is called

A) The program
B) Source code
C) Linked code
D) Object code
Question
One of the biggest difference between C and C++ is:

A) C is object-oriented
B) C++ is object-oriented
C) All C++ programs are also C programs
D) C only runs on UNIX computers
Question
From which language did C++ directly evolve?

A) A
B) Ada
C) C
D) C+
E) C-
Question
Which of the following is not a phase of the program-design process?

A) Problem-solving
B) Implementation
C) Marketing the final program
Question
Who developed C++?

A) Bjarne Stroustrup
B) Ken Thompson
C) Charles Babbage
D) Ada Lovelace
Question
What does the following print to the screen?
Cout << "Hello Students/n";

A) Hello Students
B) hello Students
C) HELLO STUDENTS
D) Hello Students/n
Question
cout << "How many items would you want?\n";

A) is an output statement
B) is an input statement
C) is a variable declaration
D) is a program
Question
It is considered better style to put the braces {}) on separate lines.
Question
What is wrong with the following statement?
Cout << "Hello to everyone\n"

A) cout should be count
B) missing a semicolon
C) missing a "
D) missing a
Question
The printer is an example of an input device.
Question
A byte consists of how many bits?

A) 6
B) 7
C) 8
D) 9
E) 10
Question
C++ is a low-level language.
Question
Grace Hopper discovered the first documented computer bug.
Question
An algorithm is always written in C++
Question
The following statement is legal:
cout >> "Hello, my name is Bill\n";
Question
There are 8 bytes in one bit.
Question
The most recent standardized version of C++ is called:

A) ANSI C++
B) C++03
C) C++11
D) ISO C++
Question
What is wrong with the following statement?
Cout << "Hello to everyone\n;

A) cout should be count
B) missing a semicolon
C) missing a "
D) missing a
Question
You should write your program before you write the algorithm.
Question
C++ is an example of a

A) Machine language
B) High-level language
C) Low-level language
D) Assembly language
Question
The compiler will catch all your programming mistakes.
Question
RAM stands for

A) Read access memory
B) Random access memory
C) Really atrocious memory
D) A hard drive
Question
Main memory holds its data if the computer is turned off
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/56
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 1: Introduction to Computer and C++ Programming
1
A memory address is

A) Where a variable is stored
B) Where the computer is located
C) A step in the program.
D) Where the CPU is stored.
A
2
A set of instructions that the computer will follow is called a _____________.
program
3
The physical machines that make up a computer is called the

A) Software
B) Network
C) Devices
D) CPU
E) Hardware
E
4
A mistake in a computer program is called a ______________.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
5
If your program compiles and runs, but gives an incorrect output, this is known as a _________ error.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
6
A digit that can hold a zero or a one is known as a ___________.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
7
An algorithm is

A) The inputs and outputs of a program
B) The part of the computer that does the processing
C) A finite set of steps to solve a problem
D) A complete computer program
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
8
Computers that are interconnected are known as a _____________.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
9
The part of the computer that controls and executes programs is called the _______.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
10
What punctuation signifies the end of a C++ statement? _____________
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
11
A computer that is normally used by only one person at a time is called a

A) Server
B) Mainframe
C) Personal Computer
D) Network
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
12
A mistake that is a direct violation of the syntax rules will generate a compiler ________.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
13
Errors in a program can be classified into three types, list them
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
14
A variable that can hold a whole number is called an) ____________.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
15
A __________ is the program that translates a program written in C++ into machine language.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
16
The collection of programs used by the computer is known as ______________.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
17
What does the following statement in C++ print to the screen?
cout << "Hello students\n";
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
18
Who was the programmer for Charles Babbage's analytical engine?

A) Grace Hopper
B) Ada Lovelace
C) Lord Bryan
D) Walter Savitch
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
19
List at least two input devices ____________ _________________.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
20
List at least two output devices ______________ _____________.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
21
Who designed the first programmable computer?

A) IBM
B) Microsoft
C) Intel
D) Babbage
E) Dell
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
22
The term OS stands for

A) Operating System
B) Oscillating System
C) Operations Services
D) Nothing
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
23
What does the following line of code display to the screen?
Cout << "This is the computer\n programming book\n";

A) This is the computern programming book
B) This is the computer
C) Nothing
D) This is the computer programming book
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
24
cin >> number;

A) is an output statement
B) is an input statement
C) is a variable declaration
D) is a program
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following is not an example of a program bug?

A) Run-time error
B) Operator error
C) Syntax error
D) Logic error
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
26
C++ statements end with a

A) Period
B) Comma
C) Semicolon
D) Nothing
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
27
#include

A) is a variable declaration
B) an executable statement
C) an include directive
D) illegal code
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
28
A finite sequence of precise instructions that leads to a problem solution is

A) A program
B) The CPU
C) A List of Inputs and Outputs
D) An Algorithm
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
29
Which of the following is not part of the Software Life Cycle?

A) Analysis
B) Design
C) Data Entry
D) Implementation
E) Testing
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
30
The set of instructions that a computer will follow is known as:

A) Hardware
B) Algorithm
C) Program
D) CPU
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
31
The anagram CPU stands for

A) Computer Programming Unit
B) Central Processing Unit
C) Central Program User
D) Computer Paper User
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
32
int number;

A) is an output statement
B) is an input statement
C) is a variable declaration
D) is a program
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
33
What does the following code print to the screen?
Cout << "hello";

A) Hello
B) hello
C) HELLO
D) Nothing
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
34
The output of the compiler is called

A) The program
B) Source code
C) Linked code
D) Object code
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
35
One of the biggest difference between C and C++ is:

A) C is object-oriented
B) C++ is object-oriented
C) All C++ programs are also C programs
D) C only runs on UNIX computers
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
36
From which language did C++ directly evolve?

A) A
B) Ada
C) C
D) C+
E) C-
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
37
Which of the following is not a phase of the program-design process?

A) Problem-solving
B) Implementation
C) Marketing the final program
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
38
Who developed C++?

A) Bjarne Stroustrup
B) Ken Thompson
C) Charles Babbage
D) Ada Lovelace
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
39
What does the following print to the screen?
Cout << "Hello Students/n";

A) Hello Students
B) hello Students
C) HELLO STUDENTS
D) Hello Students/n
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
40
cout << "How many items would you want?\n";

A) is an output statement
B) is an input statement
C) is a variable declaration
D) is a program
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
41
It is considered better style to put the braces {}) on separate lines.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
42
What is wrong with the following statement?
Cout << "Hello to everyone\n"

A) cout should be count
B) missing a semicolon
C) missing a "
D) missing a
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
43
The printer is an example of an input device.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
44
A byte consists of how many bits?

A) 6
B) 7
C) 8
D) 9
E) 10
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
45
C++ is a low-level language.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
46
Grace Hopper discovered the first documented computer bug.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
47
An algorithm is always written in C++
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
48
The following statement is legal:
cout >> "Hello, my name is Bill\n";
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
49
There are 8 bytes in one bit.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
50
The most recent standardized version of C++ is called:

A) ANSI C++
B) C++03
C) C++11
D) ISO C++
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
51
What is wrong with the following statement?
Cout << "Hello to everyone\n;

A) cout should be count
B) missing a semicolon
C) missing a "
D) missing a
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
52
You should write your program before you write the algorithm.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
53
C++ is an example of a

A) Machine language
B) High-level language
C) Low-level language
D) Assembly language
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
54
The compiler will catch all your programming mistakes.
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
55
RAM stands for

A) Read access memory
B) Random access memory
C) Really atrocious memory
D) A hard drive
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
56
Main memory holds its data if the computer is turned off
Unlock Deck
Unlock for access to all 56 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 56 flashcards in this deck.