CSI-117 midterm Flashcards


Set Details Share
created 12 years ago by Jahumaca
11,136 views
Grade levels:
College: Second year
show moreless
Page to share:
Embed this setcancel
COPY
code changes based on your size selection
Size:
X
Show:

1

A _______ is a set of instructions that a computer follows to perform a task

program

2

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

hardware

3

The part of a computer that runs programs is called _________

the CPU

4

Today, CPUs are small chips known as __________`

microprocessors

5

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

main memory

6

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

RAM

7

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

Secondary storage

8

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

input device

9

a video display is an __________

output device

10

a __________ is enough memory to store a letter of the alphabet or a small number

byte

11

a byte is made up of 8 _____

bits

12

In a __________ numbering system, all numeric values are written as sequences of 0s and 1s

binary

13

a bit that is turned off represents the following value: ________

0

14

A set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters is _________

ASCII

15

An extensive encoding scheme that can represent the characters of many of the languages in the world is ____________

Unicode

16

Negative numbers are encoded using the ________ method

two's complement

17

Real numbers are encoded using the _______ technique

floating-point

18

The tiny dots of color that digital images are composed of are called _________

pixels

19

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

a stream of binary numbers

20

In the _________ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform

decode

21

Computers can only execute code written in _________

machine language

22

The ______ translates an assembly language into a machine language program

assembler

23

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

mnemonics

24

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

syntax

25

A__________ program translates a high-level language program into a separate machine language program

compiler

26

Today, CPUs are huge devices made of electrical and mechanical components such as vacuum tubes and switches

False

27

Main Memory is aka RAM

True

28

Any piece of data that is stored in a computer's memory must be stored as a binary number

True

29

Images, like the ones you make with a digital camera, cannot be stored as a binary number

False

30

Machine language is the only language that the CPU understands

True

31

Assembly language is considered a high-level language

False

32

An interpreter is a program that both translates and executes the instructions in a high-level language program

true

33

A syntax error does not prevent a program from being compiled and executed

False

34

Windows Vista, Linux, and Mac OS X are all examples of application software

False

35

Word processing programs, spreadsheet programs, email programs, web browsers, and games are all examples of utility programs

False

36

A ________ error does not prevent the program from running, but causes it to produce incorrect results

logic

37

A _________ is a single function that the program must perform in order to satisfy the customer

software requirement

38

an _________ is a set of well-defined logical steps that must be taken to perform a task

algorithm

39

An informal language that has no syntax rules, and is not meant to be compiled or executed is called ________

psuedocode

40

A _________ is a diagram that graphically depicts the steps that take place in a program

flowchart

41

a ________ is a set of statements that execute in the order that they appear

sequence structure

42

a _________ is a sequence of characters that is used as data

string

43

a ___________ is a storage location in memory that is represented by a name

variable

44

a _______ is any hypothetical person that is using a program and providing input for it

user

45

a __________ is a message that tells or asks the user to enter a specific value

prompt

46

an __________ sets a variable to a specific value

assignment statement

47

in the expression 12 + 7, the values on the right and left of the + symbol are _____________

operands

48

an _________ operator raises a number to a power

exponent

49

a _________ operator performs division, but instead of returning the quotient it returns the remainder

modulus

50

a __________ specifies a variable's name and data type

variable declaration

51

assigning a value to a variable in a declaration statement is called ______________

initialization

52

an ______________ variable is one that has been declared, but has not been initialized or assigned a value

uninitialized

53

a _____________ is a variable whose content has a value that is read only and cannot be changed during the programs execution

named constant

54

a debugging process in which you imagine that you are the computer executing a program is called ___________

hand tracing

55

Short notes placed in different parts of a program, explaining how these parts of the program work, are called ____________

comments

56

Programmers must be careful not to make syntax errors when writing psuedocode

False

57

In a math expression, multiplication and division takes place before addition and subtraction.

True

58

Variable names can have spaces

False

59

In most languages, the first character of a variable name cannot be a number

True

60

The name gross_pay is written in the camelCase convention

False

61

in languages that require variable declarations, a variable's declaration must appear before any other statements that use the variable

True

62

Uninitialized variables are a common cause of errors

True

63

The value of a named constant cannot be changed during the programs execution

True

64

Hand Tracing is the process of translating a psuedocode program into machine language by hand

False

65

Internal documentation refers to books and manuals that document a program, and are intended for use within a company's programming department

False

66

A group of statements that exist within a program for the purpose of performing a specific task is a ___________

module

67

A benefit of using modules that helps to reduce the duplication of code within a program is __________

code reuse

68

The first line of a module definition is known as the ________

header

69

You ________ a module to execute it

call

70

a _________ point is a memory address of the location in the program that the computer will return to when a module ends

return

71

A design technique that programmers use to break down an algorithm into modules is known as _____________

top-down design

72

a __________ is a diagram that gives a visual representation of the relationships between modules in a program

hierarchy chart

73

A _________ is a variable that is declared inside a module

local variable

74

a ______ is the part of the program in which a variable may be accessed

scope

75

an _______ is a piece of data that is sent into a module

argument

76

a _______ is a special variable that receives a piece of data when a module is called

parameter

77

when __________, only a copy of the argument's value is passed into the parameter variable.

passing an argument by value

78

when ___________, the module can modify the argument in the calling part of the program

passing an argument by reference

79

A variable that is visible to every module in the program is a ___________

global variable

80

When possible, you should avoid using ________ variables in a program

global

81

The phrase "divide and conquer" means that all of the programmers on a team should be divided and work in isolation

False

82

Modules make it easier for programmers to work in teams

True

83

Module names should be as short as possible

False

84

Calling a module and defining a module mean the same thing

False

85

A flowchart shows the hierarchical relationships between modules in a program

False

86

A Hierarchy chart does not show the steps that are taken inside a module

True

87

A statement in one module can access a local variable in another module

False

88

In most programming languages, you cannot have two variables of the same name in the same scope

True

89

Programming languages typically require that arguments be of the same data type as the parameters they are passed through

True

90

Most languages do not allow you to write modules that accept multiple arguments

False

91

When an argument is passed by reference, the module can modify the argument in the calling part of the program

True

92

Passing an argument by value is a means of establishing two-way communication between modules

False

93

A _________ structure can execute a set of statements only under certain circumstances

decision

94

A ______ structure provides one alternative path of execution

single alternative decision

95

In pseudocode, the If-Then statement is an example of _________

decision structure

96

a __________ expression has a value of either true or false

Boolean

97

The symbols >, <, and == are all ________ operators

relational

98

a _____________ structure tests a condition and then takes one path is the condition is true, or another path if the condition is false

dual alternative decision

99

You use a __________ statement in pseudocode to write a single alternative decision structure

If-Then

100

You use a __________ statement in pseudocode to write a dual alternative decision structure

If-Then-Else

101

a ___________ structure allows you to test the value of a variable or an expression then use that value to determine which statement or set of statements to execture

multiple alternative decision

102

A __________ section of a Select Case statement is branched to if non of the case values match the expression listed after the Select statement

Default

103

AND, OR, and Not are _________ operators

logical

104

A compound Boolean expression created with the ____________ operator is true only if both it's subexpressions are true

AND

105

A compound Boolean expression created with the _______ operator is true if either of its subexpressions are true

OR

106

The _________ operator takes a Boolean expression as its operand and reverses it's logical value

NOT

107

A ___________ is a Boolean variable that signals when some condition exists in the program

Flag

108

You can write program using only sequence structures

False

109

A program can be made of only one type of control structure. You cannot combine structure

False

110

A single alternative decision structure tests a condition and then takes one path if the condition is true, or another path if it is false

False

111

A decision structure can be nested inside another decision structure

True

112

A compound Boolean expression created with the AND operator is true only when both subexpressions are true

True