CS 120 Quiz 1

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

_______________ converts programs written in assembly language into machine instructions. Select one: a. Converter b. Interpreter c. Assembler d. Machine compiler

c. Assembler (Correct)

Which of the following languages uses English-like mnemonics such as MOVE, ADD, and SUB? Select one: a. Java b. C c. Assembly languages d. Machine languages

c. Assembly languages (Correct)

The ALU makes use of _______________ to store intermediate results. Select one: a. Stack b. Transistors c. Registers d. Heap e. Accumulators

c. Registers (Correct)

A byte is made up of eight _______________. Select one: a. switch b. bytes c. bits d. transistor e. nibble

c. bits (Correct)

Which of the following pairs of steps in the programming process is in the correct order? Select one: a. code the program, plan the logic b. put the program into production, understand the problem c. code the program, translate it into machine language d. test the program, translate it into machine language

c. code the program, translate it into machine language (Correct)

The ALU, registers, and the interconnection between them are collectively referred to as _______________. Select one: a. data bus b. memory bus c. data path d. information path

c. data path (Correct)

The physical devices that a computer is made of are referred to as _______________. Select one: a. the operating system b. software c. hardware d. tools

c. hardware (Correct)

The major operations performed by a computer include _______________. Select one: a. web browsing, word processing, spreadsheet processing b. hardware and software c. input, processing, and output d. sequence and looping

c. input, processing, and output (Correct)

Computers can only execute programs that are written in _______________. Select one: a. assembly language b. mnemonics c. machine language d. key words e. commands

c. machine language (Correct)

Every C or C++ program must have a function named _______________. Select one: a. Begin b. Main c. main d. begin

c. main (Correct)

English-like mnemonics in an assembly language such as MOVE, ADD, and SUB are called _______________. Select one: a. commands b. operators c. operation codes or opcodes d. instructions

c. operation codes or opcodes (Correct)

A video display is a(n) _______________. Select one: a. secondary storage device b. input device c. output device d. main memory

c. output device (Correct)

The part of a computer that runs programs is called _______________. Select one: a. RAM b. secondary storage c. the CPU d. main memor

c. the CPU (Correct)

A set of 128 numeric codes that represent the Latin letters a through z and A through Z, digits 0 through 9, various punctuation marks, and other character is _______________. Select one: a. ENIAC b. ASCII c. Unicode d. binary numbers

b. ASCII (Correct)

The C language was designed by _______________________. Select one: a. James Gosling b. Dennis Ritchie c. Brian Kernighan d. Ken Thompson e. Bjarne Stroustrup

b. Dennis Ritchie (Correct)

Assembly language is considered as a high-level programming language. Select one: a. TRUE b. FALSE

b. FALSE (Correct)

After translating a source program into an executable program, the compiler will store the executable program in _______________. Select one: a. RAM b. Hard drive c. Register d. Main memory

b. Hard drive (Correct)

Which of the following translates and executes program code line by line rather than translating the entire program in one step? Select one: a. Compiler b. Interpreter c. Assembler d. Translator

b. Interpreter (Correct)

This is a volatile type of memory that is used only for temporary storage while a program is running. Select one: a. USB drive b. RAM c. the secondary storage d. registers e. hard drive

b. RAM (Correct)

Any data that is stored in a computer's memory must be stored as a binary number. Select one: a. FALSE b. TRUE

b. TRUE (Correct)

Floating-point numbers are approximations of real numbers and therefore cause issues related to numerical precision in computing. Select one: a. FALSE b. TRUE

b. TRUE (Correct)

For interpreted programs, the source code is required every time a program is to be executed. Select one: a. FALSE b. TRUE

b. TRUE (Correct)

Java programs are first compiled to an interpreted form, then interpreted by a virtual machine. Select one: a. FALSE b. TRUE

b. TRUE (Correct)

A component that collects data from users or other devices and sends it to the computer is called _______________. Select one: a. ALU b. an input device c. data path d. an output device

b. an input device (Correct)

In a _______________ numbering system, all numeric values are written as sequences of digits 0s and 1s. Select one: a. octal b. binary c. decimal d. hexadecimal

b. binary (Correct)

A _______________ program translates a source program written in a high-level language into a separate machine language program. Select one: a. assembler b. compiler c. translator d. linker

b. compiler (Correct)

In the stored-program concept, both the instructions and the data operated on by these instructions are stored in _______________. Select one: a. registers b. main memory c. CPU d. secondary storage e. ALU

b. main memory (Correct)

Which of the following is temporary, internal storage? Select one: a. CPU b. memory c. hard drive d. keyboard

b. memory (Correct)

Python, C, C++, and R are all examples of computer _______________. Select one: a. machine languages b. programming languages c. hardware d. operating systems

b. programming languages (Correct)

Computer programs are also known as _______________. Select one: a. data b. software c. information d. hardware

b. software (Correct)

A programming language's rules are its _______________. Select one: a. logic b. syntax c. options d. format e. semantics

b. syntax (Correct)

Which of the following programming languages is an interpreted language? Select one: a. C b. COBOL c. FORTRAN d. Python e. C++

d. Python (Correct)

The CPU determines which operation should be performed during the _______________ part of the fetch-decode-execute cycle. Select one: a. fetch b. execute c. immediately after the instruction is executed d. decode

d. decode (Correct)

A _______________ is a set of instructions that a computer follows to perform a task. Select one: a. interpreter b. compiler c. programming language d. program

d. program (Correct)

If you peeked inside a machine language executable program, you would see _______________. Select one: a. assembly code b. source code c. object code d. stream of base 2 numbers

d. stream of base 2 numbers (Correct)

A _______________ is a storage location in memory that is represented by name. Select one: a. byte b. constant c. RAM slot d. variable

d. variable (Correct)

A bit that is turned off represents the following numerical value: _______________. Select one: a. ON b. 1 c. OFF d. -1 e. 0

e. 0 (Correct)

The utility operating system program that is used to transfer an executable program into memory for execution is _______________. Select one: a. Archiver b. Extractor c. Fetcher d. Linker e. Loader

e. Loader (Correct)

Machine instructions are represented using numbers. Select one: a. FALSE b. TRUE

b. TRUE (Correct)

The Unix operating system was written in _______________. Select one: a. C b. B c. C++ d. Java e. ALGOL

a. C (Correct)

In general, interpreted programs have execution times faster than compiled programs. Select one: a. FALSE b. TRUE

a. FALSE (Correct)

Digital machines encode mathematical real numbers using the _______________ technique. Select one: a. IEEE 754 format b. sign-magnitude c. two's complement d. Unicode

a. IEEE 754 format (Correct)

Main memory is also known as RAM. Select one: a. TRUE b. FALSE

a. TRUE (Correct)

Once a source program is compiled, the source code is not required for executing the code. Select one: a. TRUE b. FALSE

a. TRUE (Correct)

An extensive encoding scheme that can represent the characters of many of the languages in the world is _______________. Select one: a. Unicode b. ASCII c. binary numbers d. ENIAC

a. Unicode (Correct)

Writing a program in a language such as Java, C#, or C is known as _______________ the program. Select one: a. coding b. compiling c. translating d. interpreting

a. coding (Correct)

An English-like programming language such as Java or Python is a _______________ programming language. Select one: a. high-level b. low-level c. machine-level d. binary-level

a. high-level (Correct)

A type of memory that can hold data for long periods of time - even when no power is supplied to the computer - is called _______________. Select one: a. secondary storage b. main memory c. RAM d. CPU register

a. secondary storage (Correct)

The most important task of a compiler or interpreter is to _______________. Select one: a. translate programming language statements into machine language b. create the rules for a programming language c. translate English-like statements into a language such as Java d. execute machine language programs to perform useful tasks

a. translate programming language statements into machine language (Correct)

Digital machines encode negative integral numbers using the _______________ technique. Select one: a. two's complement b. ASCII c. Unicode d. IEEE 754 format

a. two's complement (Correct)


Ensembles d'études connexes

human growth and development week 7

View Set

Insurance Exam Practice Chapter 2

View Set

Chemo Drugs and Biologic and Immune Modifiers -Pharm Exam 2

View Set