TG C++ Chapter 1 Practice

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

True/False: In programming, the terms "line" and "statement" always mean the same thing.

False

True/False: Pseudocode is a form of program statement that will always evaluate to "false."

False

True/False: A CPU really only understands instructions that are written in machine language.

True

True/False: In C++, key words are written in all lowercase letters.

True

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

True

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

True

True/False: The term "bit" stands for binary digit.

True

Which of the following is a preprocessor directive?

a. #include <iostream>

What statement best describes a variable and its primary purpose?

a. A variable is a named storage location in the computer's memory used for holding a piece of information

Which of the following is a common input device?

a. Keyboard b. Mouse c. Scanner d. Microphone e. All of these

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

a. Secondary storage

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

a. Syntax

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

b. Punctuation

What does the term hardware refer to?

b. The physical components that a computer is made of

Programmer-defined names of memory locations that may hold data are:

b. Variables

A ________ is a diagram that shows the logical flow of a program.

b. flowchart

A ________ is the most fundamental set of programs on a computer.

b. operating system

________ are used to translate each source code instruction into the appropriate machine language instruction.

c. Compilers

The programming process consists of several steps, which include:

c. Design, Creation, Testing, and Debugging

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

c. Desk Checking

Three primary activities of a program are:

c. Input, Processing, and Output

Words that have a special meaning and may be used only for their intended purpose are known as:

c. Key Words

An example of a secondary storage device is:

d. The disk drive

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

d. Variable

During which stage does the central processing unit retrieve from main memory the next instruction in the sequence of program instructions?

d. fetch

True/False: Programs are commonly referred to as hardware.

False

True/False: The preprocessor executes after the compiler.

False

Computer programs are also known as:

c. software

Which of the following best describes an operator?

e. An operator allows you to perform operations on one or more pieces of data.

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

e. Preprocessor

True/False: Machine language is an example of a high-level language.

False

The ________ decodes an instruction and generates electrical signals.

d. Control Unit

The purpose of a memory address is:

a. To identify the location of a byte in memory

In a broad sense, the two primary categories of programming languages are:

c. Low-level and High-level

Characters or symbols that perform operations on one or more operands are:

c. Operators

An Integrated Development Environment typically consists of:

a. A text editor b. A compiler c. A debugger d. All of these

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 these

The programmer usually enters source code into a computer using:

b. A text editor

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

b. Algorithm

This step will uncover any syntax errors in your program.

b. Compiling

Mistakes that cause a running program to produce incorrect results are called:

b. Logic errors

This is a complete instruction that causes the computer to perform some action.

b. Statement

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

c. Program

The computer's main memory is commonly known as:

c. RAM

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

c. RAM

The statements written by the programmer are called:

c. Source code

Internally, the CPU consists of two parts:

c. The Control Unit and the Arithmetic and Logic Unit

During which stage does the central processing unit analyze the instruction and encode it in the form of a number, and then generate an electronic signal?

c. decode

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

In the process of translating a source file into an executable file, which of the following is the correct sequence?

e. Source code, preprocessor, modified source code, compiler, object code, linker, executable code


Set pelajaran terkait

Chapter 26 Quiz - Soft-Tissue Injuries

View Set

block 09 Landing Gear Systems Quiz 1

View Set

HUMAN BIOLOGY: THE SPECIAL SENSES (CH. 15)

View Set

HA 477 Gambling and Casino Management

View Set

Overview of Genetics and Genomics

View Set