Computer Science Test 3 (Chapters 7,8,9,10)

5.0(1)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/164

encourage image

There's no tags or description

Looks like no tags are added yet.

165 Terms

1
New cards

Polya’s How to Solve It List

List for problem-solving process

2
New cards

Simple type

non-composite data type

3
New cards

composite type

date type made up of multiple simple types

4
New cards

recursive problem

problem that can be solved by calling the same function

5
New cards

arrays

as data is being read into it, a counter is updated so that we always know how many data items were stored

6
New cards

List

if an array is called list we are working with:

list[0] to list[length-1] or

list[0]..list[length-1]

7
New cards

unsorted array

array without a specific order

8
New cards

sorted array

array with elements arranged in a specific order

9
New cards

selection sort

sorting algorithm that selects the smallest element and swaps it with the first unsorted element

10
New cards

insertion sort

sorting algorithm that inserts each element into its correct position in sorted subarray

11
New cards

quicksort algorithm

sorting algorithm that uses a splitting value to divide the array into smaller subarrays

12
New cards

binary search

search algorithm that finds the position of a target value in a sorted array

13
New cards

records

heterogeneous collection of items accessed by name

14
New cards

arrays

homogeneous collection of items accessed by index

15
New cards

subprogram

section of code with a name that can be called from another part of the program

16
New cards

recursion

ability of a subprogram to call itself

17
New cards

information hiding

practice of hiding module details to control access

18
New cards

abstraction

model of a complex system that includes only essential details

19
New cards

data abstraction

separation of logical view of data from implementation

20
New cards

procedural abstraction

separation of logical view of actions from implementation

21
New cards

control abstraction

separation of logical view of control structure from implementation

22
New cards

identifiers

names gives to data and actions

23
New cards

open-source software

software with source code that is freely available to the public

24
New cards

rosetta stone

key to translating ancient Egyptian hieroglyphs

25
New cards

National Intellectual Property Rights Coordination Center

organization warning about intellectual property rights violations

26
New cards

piggybacking

using someone else’s wireless network without permission

27
New cards

philosophy

study of fundamental questions about existence, knowledge, values, reason, and more

28
New cards

algorithm

a set of unambiguous instructions for solving a problem of subproblem in a finite amount of time using a finite amount of data

29
New cards

abstract step

an algorithmic step containing unspecified details

30
New cards

concrete step

an algorithm step in which all details are specified

31
New cards

top-down design

focuses on the tasks to be done

32
New cards

object-oriented design

focuses on the data involved in the solution

33
New cards

control structure

an instruction that determines the order in which other instructions in a program are executed

34
New cards

The functionality of psuedocode

pseudocode serves as a bridge between human understanding and computer programming; allows developers and stakeholders to communicate and understand the logic of an algorithm without getting bogged down in specific programming language syntax

35
New cards

Is the statement “Enter temperature“ concrete or abstraction

it is abstract; it describes the action to be taken but doesn’t specify how the temperature is actually entered

36
New cards

Is “Read temperature“ concrete or abstract

concrete; it specifies a clear and specific action to be taken

37
New cards

Is “Determine Dress“ concrete or abstract

abstract; while it outlines the goal of the algorithm it does not provide specific details on how this determination is made

38
New cards

sequential search

examines each item in turn and compares it to the one we are searching for; if it matches, we have found the item; if not, we look at the next item in the array

39
New cards

abstract data type

a date type with specified properties and operations

40
New cards

abstraction

the most powerful tool for managing complexity

41
New cards

application level

view of data within a specific problem

42
New cards

logical level

abstract view of data and operations to manipulate them

43
New cards

implementation level

specific representation of data structure and operations in a programming language

44
New cards

composite data type

a named collection of data values

45
New cards

data structures

implementation of composite data fields in an abstract data type

46
New cards

containers

objects that hold and manipulated other objects

47
New cards

array-based implementation

container with objects kept in an array

48
New cards

linked-based implementation

container with objects not physically together, but linked

49
New cards

stack

abstract data type with LIFO access and push/pop operations

50
New cards

3 everyday stack structures

stack of books, stack of trays, stack of plates

51
New cards

queue

abstract data type with FIFO access and enqueue/dequeue operations

52
New cards

3 everyday structures that are queues

market checkout line, bus top line, print line

53
New cards

list

container of items with operations like add, remove, get next, and check for more items

54
New cards

trees

structures such as lists, stacks, and queues are linear in nature; only one relationship is being modeled

55
New cards

3 complex relationships

Graphs, trees, databases

56
New cards

binary tree

linked container with a root and each node having two child nodes

57
New cards

binary search tree(BST)

binary tree with values satisfying a specific property

58
New cards

graph

data structure with nodes and edges that relate them

59
New cards

undirected graph

graph with edges having no direction

60
New cards

directed graph(Digraph)

graph with directed edges

61
New cards

depth-first searching algorithm

algorithm that explores paths form a starting vertex to the deepest branch

62
New cards

breadth-first search

algorithm that examines vertices adjacent to the staring vertex before moving to deeper levels

63
New cards

subprogram statements

section of code with a name that can be used as a statement in another part of the program

64
New cards

value parameter

parameter that expects a copy of its argument to be passed

65
New cards

reference parameter

parameter that expects the address of its argument to be passed

66
New cards

subprogram

a name given to a collection to a sequence; divide and conquer

67
New cards

subprogram statements

a statement that represents a section of code in another part of the program

68
New cards

parameters

identifiers listed in parentheses beside the subprogram declaration

69
New cards

arguments

identifiers listed in parentheses on the subprogram call; actual parameters

70
New cards

object

a thing or entity that makes sense within the context of the problem

71
New cards

problems are solved by

isolating the objects, determining their properties and actions, and letting the objects collaborate to solve a problem

72
New cards

class

a description of a group of similar objects

73
New cards

classes

contain fields that represent properties and behaviors

74
New cards

method

a named algorithm that defines behavior

75
New cards

top-down design

decomposes problems into tasks

76
New cards

steps for object-oriented design

isolate, abstract, determine

77
New cards

4 stages to the decomposition process

brainstorming to locate possible classes, filtering duplicates, scenarios to make sure you understand, responsibility algorithms for actions that classes must exhibit

78
New cards

scenarios

assign responsibilities to each class, knowledge, and behavior

79
New cards

encapsulation

the bundling of data and actions in a way into a single object class

80
New cards

responsibility algorithms

knowledge returns, actions manipulate it

81
New cards

CRC cards

notational device to record information about a class, what it must do, and with whom it must collaborate

82
New cards

translation process

a program written in a high level language must be translated into machine code

83
New cards

high level language

a language the proves a higher(very formal, English like) set of instructions

84
New cards

compiler

a program that translates a high level language(source code) into machine language

85
New cards

byte code

doesn’t care with it is running on

86
New cards

interpreter

a translating program that translates and executes the statements in a sequence

87
New cards

portability

the ability of a program to be run on different machines

88
New cards

compiler portability

a program in a standardized language can be compiled and run on any machine that has the appropriate compiler

89
New cards

bytecode portability

can be run on any machine that has a JVM

90
New cards

Java portability

portability was of primary importance, is compiled into Bytecode, a software interpreter called the JVM takes the byte code program and executes it

91
New cards

imperative paradigm

program describes the processing, Procedural and Object Oriented Model

92
New cards

Declarative paradigm

program describes the results

93
New cards

C++

a procedural language with some object-oriented features

94
New cards

Java

an object-oriented language with some procedural features

95
New cards

Declarative

functional, which is based on the mathematical concept, and logic; used on principles of symbolic logic

96
New cards

scheme

form of lists, lots of parentheses and nested operations

97
New cards

prolog

followed by a series of questions, nonprocedural

98
New cards

functionality of a language

is power of a language, 2 parts, syntax

99
New cards

sequence

executing statements until an instruction is encountered that changes

100
New cards

selection

deciding which action to take