PROGRAMMING QUESTIONS & ANSWERS
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 - ANS-Answer: C
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. - ANS-Answer: A
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 - ANS-Answer: C
The physical machines that make up a computer is called the
a. Software
b. Network
c. Devices
d. CPU
e. Hardware - ANS-Answer: E
Which of the following is not a phase of the program-design process?
a. Problem-solving
b. Implementation
c. Marketing the final program - ANS-Answer: C
Which of the following is not part of the Software Life Cycle?
a. Analysis
b. Design
c. Data Entry
d. Implementation e. Testing - ANS-Answer: C
, From which language did C++ directly evolve?
a. A
b. Ada
c. C
d. C+
e. C - ANS-Answer: C
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 - ANS-Answer: D
C++ statements end with a
a. Period ( . )
b. Comma ( , )
c. Semicolon ( ; )
d. Nothing ( ) - ANS-Answer: C
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 - ANS-Answer: B
What does the following code print to the screen? cout << "hello";
a. Hello
b. hello
c. HELLO
d. Nothing - ANS-Answer: B
The set of instructions that a computer will follow is known as:
a. Hardware
b. Algorithm
c. Program
d. CPU - ANS-Answer: C
The anagram CPU stands for
a. Computer Programming Unit
b. Central Processing Unit
c. Central Program User
d. Computer Paper User - ANS-Answer: B
The term OS stands for
a. Operating System
b. Oscillating System
c. Operations Services