COSC 1336 Chapter 1 Quiz

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

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 by the instructions c. to produce some outcome or resultant information d. All of these e. None of these

d. All of these

Computer Concepts: Computers can do many different jobs because they are . . . a. Programmable b. Electronic c. Digital d. Automated

a. Programmable

Programming: This is a complete instruction that causes the computer to perform some action: a. line b. statement c. variable d. key word e. None of these

b. statement

Programming Languages: The following statement is written in . . . 1011000 010100110 a. C++ b. Java c. Machine language d. Assembly

c. Machine language

Match the following components to their functions/definitions

Coordinates all the computer's operations such as where to go to get the next instruction -- 2. Control Unit Can hold data for long periods of time, even if the computer is turned off -- 5. Secondary Storage Performs mathematical operations -- 3. Arithmetic and Logic Unit Allows the outside world to provide information to the computer -- 6. Input devices The part of the computer that actually runs programs -- 1. CPU Volatile memory with fast access that stores running programs along with their data -- 4. RAM (Random Access Memory) Allows computers to provide information to the outside world -- 7. Output devices

Software: Programs that make a computer useful for everyday tasks are known as __________. a. Application Programs b. IDEs c. Operating Systems d. System Programs

a. Application Programs

Software: Which of the following is not an example of operating system software? a. Norton Virus Protection b. Mac OS X c. Microsoft Windows d. Linux

a. Norton Virus Protection

Programming: __________ is the term used for a set of rules that must be strictly followed when writing a program. a. Syntax b. Semantics c. Grammar d. Key words

a. Syntax

Program Languages: Which of the following statements is true? a. The instruction set for a microprocessor is unique and is typically understood by the microprocessors of the same brand. b. Assembly language is referred to as a high-level language because it is similar to C++ language and Python language. c. Programs that use an interpreter generally execute faster than compiled programs because they are already entirely translated into machine language when executed. d. A compiler is a program that translates a high-level language into a machine language program during runtime.

a. The instruction set for a microprocessor is unique and is typically understood by the microprocessors of the same brand.

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 speed of processing e. None of these

a. to identify the location of a byte in memory

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

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

Which step uncovers any syntax errors in your program? 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: a. syntax errors b. logic errors c. compiler errors d. linker errors e. None of these

b. logic errors

A computer monitor is a type of a. input device b. output device c. storage device d. software e. None of these

b. output device

________ are used to translate each source code instruction into the appropriate machine language instruction. a. modules b. runtime libraries c. compilers d. preprocessor directives e. None of these

c. compilers

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

c. decode

The CPU's control unit retrieves the next instruction in a sequence of program instructions from main memory in the ________ stage. a. portability b. execute c. fetch d. decode

c. fetch

Software: The operating system. . . a. provides virus protection for the entire computer b. is stored in read-only memory c. is a set of programs that manages the computer's hardware devices and controls their processes d. consists of programs that users use to solve specific problems or perform general operations

c. is a set of programs that manages the computer's hardware devices and controls their processes

Programming: A(n) ________ is a set of instructions that the computer follows to solve a problem. a. complier b. linker c. program d. operator e. None of these

c. program

Programs are normally stored in ________ and loaded into main memory as needed. a. the input device b. the output device c. secondary storage d. the CPU e. None of these

c. secondary storage

The two parts of the CPU are 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

Which of the following is NOT one of the major components of a computer system? a. input/output devices b. the CPU c. the preprocessor d. secondary storage e. main memory

c. the preprocessor

Software: An Integrated Development Environment (IDE) typically consists of a. a text editor b. a compiler c. a debugger d. All of these e. None of these

d. All of these

Programming Languages: Machine language instructions are. . . a. Created by a compiler from source code during run-time. b. Easy for programmers to code. c. Considered a high level language. d. Created by a compiler from source code prior to run-time.

d. Created by a compiler from source code prior to run-time.

Software: A(n) __________ is a software package that usually consists of a text editor, a compiler or interpreter, and tools to test and debug programs. a. Spreadsheet b. Database c. Programming Language Environment d. IDE (Integrated Development Environment)

d. IDE (Integrated Development Environment)

Programming: The statements that a programmer writes in a high-level language are called ... a. Binary code b. Processor code c. Pseudocode d. Source code

d. Source code

Computer Components (Memory): Which of the following statements is false? a. RAM is used by running applications so the data can be retrieved as fast as possible. b. Secondary memory does not lose its contents when power is turned off to the computer. c. RAM is volatile, which means its contents are erased when power is turned off to the computer. d. The main reason to use secondary storage is to hold application data during execution so it is not lost if the computer crashes.

d. The main reason to use secondary storage is to hold application data during execution so it is not lost if the computer crashes.

Computer concepts: The physical devices that make up a computer are its __________. a. hardware and includes the computer itself and its applications b. system components which include device drivers c. internal components including the CPU and storage devices d. hardware and includes the computer itself and its peripherals

d. hardware and includes the computer itself and its peripherals

Programming Languages: Which of the following functions does an interpreter perform with the instructions from a high-level language? a. It executes b. It complies and executes c. It translates and compiles d. It translates e. It compiles f. It translates and executes

f. It translates and executes


Ensembles d'études connexes

AHIP Part 3 - Medicare Part D: Prescription Drug Coverage 2020

View Set

The Study of Language: Word Formation Chapter 5

View Set

Marketing exam three 9-10, 12-13

View Set

Chapter 42: Assessment and Concepts of Care for Patients with Eye and Vision Problems

View Set