Chapter 1 Introductions to Computers and Programming Flashcards

1
Q

A(n) ___ is a set of instructions that a computer follows to perform a task.

a. compiler
b. program
c. interpreter
d. programming language

A

program

Chapter 1 (page 1)

A program is a set of instructions that a computer follows to perform a task. Programs are commonly referred to as software. Software is essential to a computer because it controls everything the computer does.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The physical devices that a computer is made of are referred to as ___.

a. hardware
b. software
c. the operating system
d. tools

A

hardware

Chapter 1 (page )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The part of a computer that runs programs is called ___.

a. RAM
b. secondary storage
c. main memory
d. the CPU

A

Chapter 1 (page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Today, CPUs are small chips known as ___.

a. ENIACs
b. microprocessors
c. memory chips
d. operating systemes

A

CPU

Chapter 1 (page )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The computer stores a program while the program is running, as well as the data that the program is working with, in ___.

a. secondary storage
b. the CPU
c. main memory
d. the microprocessor

A

Chapter 1 (page)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

This is a volatile type of memory that is used for temporary storage while a program is running.

a. RAM
b. secondary storage
c. the disk drive
d. the USB drive

A

RAM

Chapter 1 (page )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A type of memory that can hold data for long periods of time, even when there is no power to the computer, is called ___.

a. RAM
b. main memory
c. secondary storage
d. CPU storage

A

secondary storage

Chapter 1 (page# 5 )

Programs are normally stored in secondary memory and loaded into main memory as needed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A component that collects data from people or other devices and sends it to the computer is called ___.

a. an output device
b. an input device
c. a secondary storage device
d. main memory

A

an input device

Chapter 1 (page 6)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A video display is a(n) ___ device.

a. output
b. input
c. secondary storage
d. main memory

A

output

Chapter 1 (page 6 )

Common output devices are video displays and printers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A ___ is enough memory to store a letter of the alphabet or a small number.

a. byte
b. bit
c. switch
d. transistor

A

byte

Chapter 1 (page 7)

A computer’s memory is divided into tiny storage locations known as bytes. One byte is only enough memory to store a letter of the alphabet or a small number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A byte is made up of eight ___.

a. CPUs
b. instructions
c. variables
d. bits

A

bits

Chapter 1 (page 7)

Each byte is divided into smaller storage locations known as bits. The term bit stands for binary digit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In the ___ numbering system, all numeric values are written as sequences of 0s and 1s.

a. hexadecimal
b. binary
c. octal
d. decimal

A

binary

Chapter 1 (page 8)

In the binary numbering system (or binary, as it is usually called), all numeric values are written as sequences of 0s and 1s.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A bit that is turned off represents the following value: ___ .

a. 1
b. -1
c. 0
d. “no”

A

0

Chapter 1 (page 8)

In computer systems, a bit that is turned off represents the number 0, and a bit that is turned on represents the number 1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A set of 128 numeric codes that represents the English letters, various punctuation marks, and other characters is ___.

a. binary numbering
b. ASCII
c. Unicode
d. ENIAC

A

ASCII

Chapter 1 (page 11)

ASCII which stands for American Standard Code for Information Interchange is a set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

An extensive coding scheme that can represent characters for many languages in the world is ___.

a. binary numbering
b. ASCII
c. Unicode
d. ENIAC

A

Unicode

Chapter 1 (page 11)

Unicode is an extensive encoding scheme that is compatible with ASCII, but can also represent characters for many of the languages in the world. Today, Unicode is quickly becoming the standard character set used in the computer industry.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Negative numbers are encoded using the ___ technique.

a. two’s complement
b. floating point
c. ASCII
d. Unicode

A

two’s complement

Chapter 1 (page# 11 )

Negative numbers are encoded using a technique known as two’s complement, and real numbers are encoded in floating-point notation.

17
Q

Real numbers are encoded using the ___ technique.

a. two’s complement
b. floating point
c. ASCII
d. Unicode

A

floating-point

Chapter 1 (page# 11)

Negative numbers are encoded using a technique known as two’s complement, and real numbers are encoded in floating-point notation.

18
Q

The tiny dots of color that digital images are composed of are called ___.

a. bits
b. bytes
c. color packets
d. pixels

A

pixels

Chapter 1 (page 12)

The term pixel stands for picture element.

19
Q

If you were to look at a machine language program, you would see ___.

a. Python code
b. a stream of binary numbers
c. English words
d. circuits

A

a stream of binary numbers

Chapter 1 (page 13)

It is written in 0s and 1s because CPUs only understand instructions that are written in machine language, and machine language instructions always have an underlying binary structure.

20
Q

In the ___ part of the fetch-decode-execute cycle, the CPU determines which operation is should perform.

a. fetch
b. decode
c. execute
d. deconstruct

A

decode

Chapter 1 (page 14)

Fetch - a program is a long sequence of machine language instructions. The first step of the the cycle is to fetch, or read, the next instruction from memory into the CPU.

Decode - a machine language instruction is a binary number that represents a command that tells the CPU to perform an operation. In this step, the CPU decodes the instruction that was just fetched from memory, to determine which operation it should perform.

Execute - The last step in the cycle is to execute, or perform, the operation.

21
Q

Computers can only execute programs that are written in ___.

a. Java
b. assembly language
c. machine language
d. Python

A

machine language

Chapter 1 (page 15)

Computers can only execute programs that are written in machine language. It is impractical for people to write programs in machine language, for this reason, assembly language was created in early days of computing.

22
Q

The ___ translates an assembly language program to a machine language program.

a. assembler
b. compiler
c. translator
d. interpreter

A

assembler

Chapter 1 (page 15)

A special program known as an assembler is used to translate an assembly language program to a machine language program.

23
Q

The words that make up a high-level programming language are called ___.

a. binary instructions
b. mnemonics
c. commands
d. key words

A

key words

Chapter 1 (page 16)

Each high-level language has its own set of predefined words that the programmer must use to write a program. the words that make up a high-level programming language are known as keywords or reserved words. Each key word has a specific meaning, and cannot be used for any other purpose.

24
Q

The rules that must be followed when writing a program are called ___.

a. syntax
b. punctuation
c. key words
d. operators

A

syntax

Chapter 1 (page# 18 )

Each language also has its own syntax, which is a set of rules that must be strictly followed when writing a program. The syntax rules dictate how key words, operators, and various punctuation characters must be used in a program..

25
Q

A(n) ___ program translates a high-level language program into a separate machine language program.

a. assembler
b. compiler
c. translator
d. utility

A

compiler

Chapter 1 (page 18)

A compiler is a program that translates a high-level language program into a separate machine language program. The machine language program can then be executed any time it is needed.

26
Q

Select all that apply. To create a python program you use:

a. Excel
b. a word processor if you save your file as a .docx
c. a text editor
d. IDLE

A

a text editor
IDLE

Chapter 1 Q

27
Q

The encoding technique used to store negative numbers in the computer’s memory is called

a. floating-point notation
b. Unicode
c. two’s complement
d. ASCII

A

two’s complement

Chapter 1 Q

28
Q

Which language is referred to as a low-level language?

a. Assembly language
b. C++
c. Python
d. Java

A

Assembly language

Chapter 1 Q

29
Q

A bit that is turned off is represented by the value -1. True or False?

A

False

Chapter 1 Q

30
Q

Which computer language uses short words known as mnemonics for writing programs?

a. Assembly
b. Visual Basic
c. Java
d. Pascal

A

Assembly

Chapter 1 Q

31
Q

The disk drive is a secondary device that stores data by ___ encoding it onto a spinning circular disk.

a. optically
b. digitally
c. magnetically
d. electrically

A

magnetically

Chapter 1 Q

32
Q

The main reason to use storage is to hold data for long period of time, even when the power supply to the computer is turned off. True or false?

A

True

Chapter 1 Q

33
Q

Which of the following is not a microprocessor manufacturing company?

a. Intel
b. Dell
c. AMD
c. Motorola

A

Dell

Chapter 1 Q

34
Q

Which of the following is considered to be the world’s first programmable electronic computer?

a. Dell
b. IBM
c. ENIAC
d. Gateway

A

ENIAC

Chapter 1 Q

35
Q

Which type of error prevents the program from running?

a. grammatical
b. logical
c. syntax
d. human

A

syntax

Chapter 1 Q