CS Midterm 2023

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/113

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

114 Terms

1
New cards

program

set of instructions that a computer follows to perform a task

2
New cards

software

what programs are referred to as

3
New cards

programmer/software developer

a person with the skills necessary to design, creat, and test computer programs

4
New cards

Hardware

the physical components of a computer

5
New cards

Central Processing Unit

part of the computer that runs programs or software

6
New cards

microprocessors

tiny chips that are used as CPUs today

7
New cards

control unit

one of two parts of the CPU, coordinates all of the computer’s operations

8
New cards

logic unit (ALU)

one of two parts of CPU, designed to perform mathematical operations

9
New cards

Fetch

the CPU’s control unit fetches the next instruction in order from the main memory

10
New cards

Decode

The instruction is encoded as a number, the control unit decodes the instructions

11
New cards

Execute

the signal is routed to a component and the signal causes the component to perform an operation

12
New cards

Random Access Memory (RAM)

main memory, where the computer stores a program while it is running, usually volatile

13
New cards

Volatile Memory

only used for temporary storage while a program is running

14
New cards

bytes

what a computer’s memory is divided into

15
New cards

Bit

each byte is divided into 8 bits, standing for binary digit

16
New cards

Secondary Storage

type of memory that can hold data for long periods of time, where programs are usually stored

17
New cards

disk drive, solid-state drives

common secondary storage devices

18
New cards

memory cards, USB

external storage devices

19
New cards

CD, DVD

optical devices that are popular for data storage

20
New cards

Input

any data the computer receives from the outside world

21
New cards

input device

device that collects the information and sends it to the computer, keyboards, mouse, touch screen, scanner

22
New cards

Output

any information the computer sends to the outside world

23
New cards

Output Device

formats and presents output, computer screens, printers, speakers

24
New cards

Operating system

the most fundamental set of programs on a computer

25
New cards

Utility programs

performs a specialized task that enhances the computer’s operation data

26
New cards

Software development tools

the tools programmers use to creat, modify, and test software

27
New cards

application software

programs that make a computer useful for everyday tasks

28
New cards

Algorithm

set of well-defined steps for performing a task or solving a problem

29
New cards

machine language

sequence of binary numbers which the CPU interprets as commands

30
New cards

Programming languages

use words instead of numbers to program

31
New cards

low-level language

close to the level of the computer, resembles numeric language

32
New cards

high-level language

easiest language for people to understand

33
New cards

portability

can be written on one computer and run on many other types of systems

34
New cards

text editor

similar to a word processing program, used to write code

35
New cards

source code

statements written by the programmer

36
New cards

source file

file the code is saved in

37
New cards

preprocessor

reads the source code and looks for #

38
New cards

directives

cause the preprocessor to amend or process the source code in some way

39
New cards

compiler

steps through the preprocessed source code translating the source code instructions into the appropriate machine language instruction

40
New cards

syntax errors

illegal uses of key words, operators, punctuation, and other language elements

41
New cards

object code

translated machine language instructions

42
New cards

object file

where the object code is stored

43
New cards

run-time library

collection of code in C++ that contains hardware-specific code

44
New cards

linker

combines the object file with the necessary library routines

45
New cards

executable file

contains the machine language instructions and is ready to run on the computer

46
New cards

executable code

machine language instructions

47
New cards

Key Words

words that have special meaning and can only be used for their intended purpose

48
New cards

Programmer-Defined identifiers

words defined by the programmer

49
New cards

operators

perform operations on one or more operand

50
New cards

punctuation

mark the beginning or end of a statement or separate items in a list

51
New cards

Syntax

rules that must be followed when constructing a program

52
New cards

line

a single line as it appears in the body of a program

53
New cards

statement

complete instruction that causes the computer to perform some action

54
New cards

variable

a named storage location in the computer’s memory for holding a piece of data

55
New cards

variable definition

the type of variable along with its name

56
New cards

three-step process

gathering input, performing some process, producing output

57
New cards

top-down design

dividing your problems into small problems and solving them one by one

58
New cards

flowchart

a diagram that shows the logical flor of a program

59
New cards

Pseudocode

cross between human language and a programming language

60
New cards

Logic errors

mistakes that cause a program to produce incorrect results

61
New cards

desk-checking

the programmer starts reading the program and steps through each statement by hand

62
New cards

function

group of one or more programming statements that has a name

63
New cards

stream object

works with streams of data

64
New cards

stream-insertion operator

the item is inserted into the output stream

65
New cards

escape sequence

a backslash followed by a control character, used to control the way output is displayed

66
New cards

assignment statement

assigns a value to a variable

67
New cards

assignment operator

=

68
New cards

literal

a piece of data written directly into a program’s code

69
New cards

identifier

a programmer-defined name that represents some element of a program

70
New cards

Legal Identifiers

the first character must be A-Z, after that any letter, numbers or underscore can be used

71
New cards

short int

2 bytes

72
New cards

unsigned short int

2 bytes, positive only

73
New cards

int

4 bytes

74
New cards

unsigned int

4 bytes, positive only

75
New cards

long int

4 bytes

76
New cards

unsigned long int

4 bytes, positive only

77
New cards

long long int

8 bytes

78
New cards

unsigned long long int

8 bytes, positive only

79
New cards

float

4 bytes, single precision

80
New cards

double

8 bytes, double precision

81
New cards

long double

8 bytes, long double precision

82
New cards

null character or null terminator

marks the end of the string

83
New cards

boolean expressions

have a true or false value

84
New cards

true

1

85
New cards

false

0

86
New cards

scope

the part of the program a variable can be used

87
New cards

Unary operators

only require a single operand (-5)

88
New cards

negation operator

the minus sign when used in front of a number

89
New cards

binary operators

work with two operands

90
New cards

Ternary operators

require three operands

91
New cards

prompt

lets the user know that an input is expected

92
New cards

stream extraction operator

extras characters from the input stream so they can be used in the program

93
New cards

input/keyboard buffer

an area in memory where characters from the keyboard are temporarily placed

94
New cards

arguments

information being sent to a function

95
New cards

relational expression

expressions comparing two values

96
New cards

decision structure

allow statements to execute only under certain circumstances

97
New cards

conditionally executred

performed only when a certain condition exists

98
New cards

nested if

allows you to test more than one condition to determine which block of code should be executed

99
New cards

loop

control structure that causes a statement to repeat

100
New cards

pretest loop

tests its condition before each iteration