Algorithms and Programs Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Algorithm

A

A step-by-step procedure for solving a problem

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

Pseudocode

A

Code that resembles a programming language but uses less strict syntax to express an algorithm and is INDEPENDENT of any real programming language.

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

Identifier

A

Is a user-defined name e.g. a variable or sub routine name

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

Parameter

A

A parameter or “argument” is a value that is passed into a function or procedure

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

Bubble sort

A

A pass is made through the data comparing each value with the following one and swapping if necessary. A number of passes are made until the data is in order

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

Insertion Sort

A

Removes one element from the input data, finds the location it belongs within the sorted list, and inserts it there. It repeats until no input elements remain

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

Linear search

A

Each element in the search space is examined in order starting at the first element. When a match is found with the search term (or no match is found) the operation is complete

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

Binary search

A

Repeatedly divides an ordered search space in half according to how the required (key) value compares with the middle element.

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

Rogue value

A

A value that can be recognized as a termination value in a loop

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

Source code

A

The code listing of commands to be compiled or assembled into an executable program.

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

Assignment

statement

A

It copies a value (or result of a calculation) into the variable

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

Iteration

A

Other word for LOOP

Repeatedly execute a block of code until a condition has been met

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

Selection

A

Other word for IF statement or CASE statement

Execute a block of code only when a certain condition has been met.

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

Sequence

A

Instructions that will executed one after another

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

MOD operator

A

Finds the remainder after division of one number by another

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

DIV operator

A

Calculates the integer part of an integer division without consideration of any remainder

17
Q

Modular

programming

A

Prewritten routines provided by the IDE software house that can be called and reused when writing a program.

18
Q

Sub programs

A

A subroutine a block of code custom written by the programmer