Ch 1 Quiz

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

b. Variables

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

d. Control Unit

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

c. RAM

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

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

b. flowchart

A ________ 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

c. Program

A ________ 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. Low-level and High-level

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. Source code

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

b. Algorithm

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

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

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

b. operating system

ANo ________ 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

d. The disk drive

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. All of these

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

c. Operators

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. software

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

c. decode

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. execute b. portability stage c. decode d. fetch

d. fetch

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. execute c. decode d. fetch

a. Secondary storage

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. Source code, preprocessor, modified source code, compiler, object code, linker, executable code.

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, compiler, object code, linker, executable code. b. Source code, compiler, modified source code, preprocessor, object code, linker, executable code. c. Source code, preprocessor, modified source code, linker, object code, compiler, executable code. d. Preprocessor, source code, compiler, executable code, linker, modified source code, object code. e. Source code, linker, object code, compiler, modified source code, preprocessor, executable code.

c. The Control Unit and the Arithmetic and Logic Unit

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

b. Logic errors

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

d. Variable

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

b. A text editor

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

c. Design, Creation, Testing, and Debugging

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

a. To identify the location of a byte in memory

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

b. Statement

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

e. Syntax

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

c. RAM

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

b. Punctuation

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. Compiling

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

c. Desk Checking

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. Input, Processing, and Output

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

b. The physical components that a computer is made o

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.

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

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 structured, general-purpose language designed primarily for teaching programming. c. A variable is a collection of eight bits. d. A variable is a word that has a special meaning to the compiler. e. A variable is a named storage location in the computer's memory used for holding a piece of information.

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

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

e. All of these

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

d. #include <iostream>

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

c. Preprocessor

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

c. Key Words

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. Compilers

________ 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


Set pelajaran terkait

Performing Calculations (Excel 2016)

View Set

Immediate vs. Deferred Annuities

View Set

WSU: PS-1010 (American Government) - Chapter One

View Set

Ancient Rome and the Empire-Test 1

View Set

Chapter 21: Missouri Compromise and other Compromises

View Set

Biens et prescription - Cours 4 - POSSESION & PRESCRIPTION

View Set