Big Idea 3 (30-35%) Flashcards

1
Q

variable

A

an abstraction inside a program
that can hold a value.

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

list

A

an ordered sequence of elements
EX: [value1, value2, value3, …]

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

element

A

an individual value in a list that is
assigned a unique index.

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

index

A

a common method for referencing
the elements in a list or string using natural
numbers.

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

string

A

is an ordered sequence of characters. EX:
“Hello World” is a string of characters.

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

algorithm

A

a finite set of instructions that
accomplish a specific task.

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

sequencing

A

the application of each step of
an algorithm in the order in which the code
statements are given.

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

code statement

A

a part of program code
that expresses an action to be carried out.

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

expression

A

consist of a value, a variable,
an operator, or a procedure call that returns a
value.

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

string concatenation

A

joins together two or
more strings end-to-end to make a new string

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

substring

A

part of an existing string.

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

boolean value

A

either true or false.

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

selection

A

determines which parts of an
algorithm are executed based on a condition
being true or false.

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

conditional statements

A

“if-statements,”
affect the sequential flow of control by
executing different statements based on the
value of a Boolean expression.

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

nested conditional statements

A

consist of
conditional statements within conditional
statements.

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

iteration

A

a repeating portion of an algorithm.
Iteration repeats a specified number of times
or until a given condition is met.

17
Q

binary search algorithm

A

starts at the
middle of a sorted data set of numbers and
eliminates half of the data; this process repeat
until the desired value is found or all elements
have been eliminated.

18
Q

procedure

A

a named group of programming
instructions that may have parameters and
return values

19
Q

method / function

A

Procedures are referred to by different names,
such as method or function, depending on the
programming language.

20
Q

parameters

A

input variables of a procedure.

21
Q

arguments

A

specify the values of the
parameters when a procedure is called.

22
Q

modularity

A

subdivision of a computer program into
separate subprograms

23
Q

software library

A

contains procedures that
may be used in creating new programs.

24
Q

simulation

A

a representation that uses
varying sets of values to reflect the changing
state of a phenomenon. (EX: plane simulation: like flying a real plane but online)

25
Q

problem

A

a general description of a task
that can (or cannot) be solved algorithmically

26
Q

instance

A

a problem also includes specific
input

27
Q

decision problem

A

a problem with a yes/no
answer (e.g., is there a path from A to B?).

28
Q

optimization problem

A

a problem with the goal
of finding the “best” solution among many (e.g.,
what is the shortest path from A to B?).

29
Q

efficiency

A

an estimation of the amount of
computational resources used by an algorithm

30
Q

heuristic

A

an approach to a problem that
produces a solution that is not guaranteed to
be optimal but may be used when techniques
that are guaranteed to always find an optimal
solution are impractical.`

31
Q

decidable problem

A

a decision problem for
which an algorithm can be written to produce a
correct output for all inputs (e.g., “Is the number
even?”).

32
Q

undecidable problem

A

one for which no
algorithm can be constructed that is always
capable of providing a correct yes-or-no
answer.