Chapter 1 Quiz

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

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

True

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

True

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

True

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

False

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

False

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

False

A set of well-defined steps for performing a task or solving a problem is known as aNo: Select one: a. Hierarchy b. Algorithm c. Central Processing Unit d. Encoded instruction e. None of these

b. ( Algorithm )

The programmer usually enters source code into a computer using: Select one: a. Pseudocode b. A text editor c. A hierarchy chart d. A compiler e. None of these

b. (A text editor )

This step will uncover any syntax errors in your program. Select one: a. Editing b. Compiling c. Linking d. Executing e. None of these

b. (Compiling)

Mistakes that cause a running program to produce incorrect results are called: Select one: a. Syntax errors b. Logic errors c. Compiler errors d. Linker errors e. None of these

b. (Logic errors )

This is used in a program to mark the beginning or ending of a statement, or separate items in a list. Select one: a. Separators b. Punctuation c. Operators d. Key Words e. None of these

b. (Punctuation )

In the process of translating a source file into an executable file, which of the following is the correct sequence? Select one: a. Source code, preprocessor, modified source code, linker, object code, compiler, executable code. b. Source code, preprocessor, modified source code, compiler, object code, linker, executable code. c. Source code, linker, object code, compiler, modified source code, preprocessor, executable code. d. Preprocessor, source code, compiler, executable code, linker, modified source code, object code. e. Source code, compiler, modified source code, preprocessor, object code, linker, executable code.

b. (Source code, preprocessor, modified source code, compiler, object code, linker, executable code. )

Programmer-defined names of memory locations that may hold data are: Select one: a. Operators b. Variables c. Syntax d. Operands e. None of these

b. (Variables )

________ are used to translate each source code instruction into the appropriate machine language instruction. Select one: a. Modules b. Library routines c. Compilers d. Preprocessor directives e. None of these

c. (Compilers)

The programming process consists of several steps, which include: Select one: 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 these

c. (Design, Creation, Testing, and Debugging)

This term refers to the programmer reading the program from the beginning and stepping through each statement. Select one: a. Pseudocoding b. Software Engineering c. Desk Checking d. Spot Checking e. None of these

c. (Desk Checking)

Three primary activities of a program are: Select one: a. Variables, Operators, and Key Words b. Lines, Statements, and Punctuation c. Input, Processing, and Output d. Integer, Floating-point and Character e. None of these

c. (Input, Processing, and Output )

Words that have a special meaning and may be used only for their intended purpose are known as: Select one: a. Operators b. Programmer Defined Words c. Key Words d. Syntax e. None of these

c. (Key Words )

In a broad sense, the two primary categories of programming languages are: Select one: a. Mainframe and PC b. Hardware and Software c. Low-level and High-level d. COBOL and BASIC e. None of these

c. (Low-level and High-level)

During which stage does the central processing unit retrieve from main memory the next instruction in the sequence of program instructions? Select one: a. portability stage b. decode c. fetch d. execute

(Fetch is incorrect, I believe it is execute)

Even when there is no power to the computer, data can be held in: Select one: a. Secondary storage b. The Input Device c. The Output Device d. The Algorithm e. None of these

a. (Secondary storage )

Which of the following is a common input device? Select one: a. Keyboard b. Mouse c. Scanner d. Microphone e. All of these

e. (All of these)

Which of the following is a preprocessor directive? Select one: a. int main() b. pay = hours * rate; c. // This program calculates the user's pay. d. #include <iostream> e. cin >> rate;

d. (#include <iostream> )

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

false

True/False: The preprocessor executes after the compiler. Select one: True False

False

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

true

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

True

Which of the following best describes an operator? Select one: a. An operator allows you to perform operations on one or more pieces of data. b. An operator is a symbolic name that refers to a variable. c. An operator is a rule that must be followed when constructing a program. d. An operator is a word that has a special meaning. e. An operator marks the beginning or ending of a statement, or is used to separate items in a list.

a. ( An operator allows you to perform operations on one or more pieces of data. )

This is a complete instruction that causes the computer to perform some action. Select one: a. Line b. Statement c. Variable d. Key Word e. None of these

b. (Statement )

Which of the following is not one of the five major components of a computer system? Select one: a. Preprocessor b. The CPU (central processing unit) c. Secondary storage device d. Main memory e. Input/Output device

a. (Preprocessor)

A variable declaration announces the name of a variable that will be used in a program, as well as: Select one: 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 these

a. (The type of data it will be used to hold )

The purpose of a memory address is: Select one: 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 these

a. (To identify the location of a byte in memory )

A(n) ________ is a diagram that shows the logical flow of a program. Select one: a. UML diagram b. flowchart c. hierarchy chart d. program schematic e. None of these

b. (flowchart)

A(n) ________ is the most fundamental set of programs on a computer. Select one: a. compiler b. operating system c. application d. utility program e. None of these

b. (operating system)

What does the term hardware refer to? Select one: a. The relative difficulty of programming b. The physical components that a computer is made of c. The way a computer's storage space is organized d. The logical flow of instructions e. None of these.

b.( The physical components that a computer is made of )

This is a volatile type of memory, used for temporary storage. Select one: a. Address b. ALU c. RAM d. Disk drive e. None of these

c. ( RAM)

Characters or symbols that perform operations on one or more operands are: Select one: a. Syntax b. Op codes c. Operators d. Program ops e. None of these

c. (Operators )

ANo ________ is a set of instructions that the computer follows to solve a problem. Select one: a. Compiler b. Linker c. Program d. Operator e. None of these

c. (Program)

The computer's main memory is commonly known as: Select one: a. The hard disk b. The floppy disk c. RAM d. Secondary storage e. None of these

c. (RAM )

The statements written by the programmer are called: Select one: a. Syntax b. Object code c. Source code d. Runtime libraries e. None of these

c. (Source code)

Internally, the CPU consists of two parts: Select one: 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 these

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? Select one: a. fetch b. portability stage c. decode d. execute

c. (decode)

Computer programs are also known as: Select one: a. hardware b. firmware c. software d. silverware e. None of these

c. (software )

What statement best describes a variable and its primary purpose? Select one: a. A variable is a "line" of code in the body of a program, which may change. b. A variable is a word that has a special meaning to the compiler. c. A variable is a structured, general-purpose language designed primarily for teaching programming. d. A variable is a named storage location in the computer's memory used for holding a piece of information. e. A variable is a collection of eight bits.

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

At the heart of a computer is its central processing unit. The CPU's job is: Select one: 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 e. None of these

d. (All of these )

An Integrated Development Environment typically consists of: Select one: a. A text editor b. A compiler c. A debugger d. All of these e. None of these

d. (All of these)

The ________ decodes an instruction and generates electrical signals. Select one: a. Arithmetic and Logic Unit b. Main memory c. BIOS d. Control Unit e. None of these

d. (Control Unit)

This is a set of rules that must be followed when constructing a program. Select one: a. Operators b. Portability c. Key words d. Syntax e. Punctuation

d. (Syntax )

An example of a secondary storage device is: Select one: a. The computer's main memory b. The keyboard c. The monitor d. The disk drive e. None of these

d. (The disk drive )

The name for a memory location that may hold data is: Select one: a. Key Word b. Syntax c. Operator d. Variable e. None of these

d. (Variable )


Set pelajaran terkait

C207 Data Driven Decision Making

View Set

La famiglia cultura vero o falso

View Set

MKT-488-001 Test #3 JSU (Dr. Lee)

View Set

What was the Industrial Revolution?

View Set

Insurance Property and Causality

View Set

4th Amendment Reasonable Expectation of Privacy

View Set

ATI CAPSTONE MATERNAL-NEWBORN POST ASSESSMENT

View Set