Filters
Question type

Study Flashcards

Which of the following is a preprocessor directive?


A) pay = hours * rate;
B) cin >> rate;
C) // This program calculates the user's pay.
D) int main()
E) #include <iostream>

F) B) and C)
G) A) and C)

Correct Answer

verifed

verified

Which of the following is not one of the five major components of a computer system?


A) Preprocessor
B) The CPU (central processing unit)
C) Main memory
D) Input/Output device
E) Secondary storage device

F) A) and D)
G) All of the above

Correct Answer

verifed

verified

A

Internally, the CPU consists of two parts:


A) The Output Device and the Input Device
B) The Software and the Hardware
C) The Control Unit and the Arithmetic and Logic Unit
D) The Single-task Device and the Multi-task Device
E) None of the above

F) B) and E)
G) D) and E)

Correct Answer

verifed

verified

A variable declaration announces the name of a variable that will be used in a program, as well as:


A) The type of data it will be used to hold
B) The operators that will be used on it
C) The number of times it will be used in the program
D) The area of the code in which it will be used
E) None of the above

F) B) and E)
G) All of the above

Correct Answer

verifed

verified

Computer programs are also known as:


A) hardware
B) firmware
C) software
D) silverware
E) None of the above

F) B) and D)
G) A) and E)

Correct Answer

verifed

verified

The CPU is the most important component in a computer because without it, the computer could not run software.

A) True
B) False

Correct Answer

verifed

verified

Even when there is no power to the computer, data can be held in:


A) Secondary storage
B) The Input Device
C) The Output Device
D) The Algorithm
E) None of the above

F) A) and C)
G) A) and B)

Correct Answer

verifed

verified

The name for a memory location that may hold data is:


A) Key Word
B) Syntax
C) Operator
D) Variable
E) None of the above

F) None of the above
G) A) and E)

Correct Answer

verifed

verified

This term refers to the programmer reading the program from the beginning and stepping through each statement.


A) Pseudocoding
B) Software Engineering
C) Desk Checking
D) Spot Checking
E) None of the above

F) A) and E)
G) B) and E)

Correct Answer

verifed

verified

A(n) ________ is a set of instructions that the computer follows to solve a problem.


A) Compiler
B) Linker
C) Program
D) Operator
E) None of the above

F) All of the above
G) A) and C)

Correct Answer

verifed

verified

The purpose of a memory address is:


A) To identify the location of a byte in memory
B) To prevent multitasking
C) To obtain an algorithm
D) To improve the effectiveness of high-level languages
E) None of the above

F) B) and C)
G) C) and D)

Correct Answer

verifed

verified

A set of well-defined steps for performing a task or solving a problem is known as a(n) :


A) Hierarchy
B) Algorithm
C) Central Processing Unit
D) Encoded instruction
E) None of the above

F) A) and B)
G) D) and E)

Correct Answer

verifed

verified

This is used in a program to mark the beginning or ending of a statement, or separate items in a list.


A) Separators
B) Punctuation
C) Operators
D) Key Words
E) None of the above

F) B) and C)
G) B) and E)

Correct Answer

verifed

verified

Software engineering is a field that encompasses designing, writing, testing, debugging, documenting, modifying, and maintaining computer programs.

A) True
B) False

Correct Answer

verifed

verified

This is a set of rules that must be followed when constructing a program.


A) Syntax
B) Punctuation
C) Portability
D) Operators
E) Key words

F) C) and D)
G) None of the above

Correct Answer

verifed

verified

At the heart of a computer is its central processing unit. The CPU's job is:


A) To fetch instructions
B) To carry out the operations commanded by the instructions
C) To produce some outcome or resultant information
D) All of the above
E) None of the above

F) B) and D)
G) A) and E)

Correct Answer

verifed

verified

The statements written by the programmer are called:


A) Syntax
B) Object code
C) Source code
D) Runtime libraries
E) None of the above

F) A) and B)
G) B) and E)

Correct Answer

verifed

verified

C

The preprocessor executes after the compiler.

A) True
B) False

Correct Answer

verifed

verified

This is a volatile type of memory, used for temporary storage.


A) Address
B) ALU
C) RAM
D) Disk drive
E) None of the above

F) B) and E)
G) A) and B)

Correct Answer

verifed

verified

C

The programming process consists of several steps, which include:


A) Input, Processing, and Output
B) Key Words, Operators, and Punctuation
C) Design, Creation, Testing, and Debugging
D) Syntax, Logic, and Error Handling
E) None of the above

F) B) and E)
G) B) and D)

Correct Answer

verifed

verified

Showing 1 - 20 of 50

Related Exams

Show Answer