Implementation Flashcards

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

What is a global variable

A

A global variable is a variable which can be accessed by any part of the program

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

What is a local variable

A

A local variable is a variable in a sub program which can only be accessed in that sub program

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

What are the 3 types of Data Structures

A

Parallel 1D arrays
Records
Array of Records

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

Example of Array of Records

A

Record Player_Data():
ㅤㅤName = “ “
ㅤㅤScore = 0
ㅤㅤPets = False

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

Example of Parallel Arrays

A

Name = “ “
Score = 0
Pets = False

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

What are the Four standard algorithms

A

Finding Max
Finding Min
Linear Search
Counting Occurences in an array

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

What is Finding Max

A

Finding the Maximum value of a specific target

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

What is Finding Min

A

Finding the Minimum value of a specific thing

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

What is Linear Search

A

Searching for a specific target in an array

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

What is Counting Occurences in an array

A

Counting the amount of times a specific target has been found.

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

What are the three Predefined Functions in higher

A

Int
Char and Ord
Moduleus (%)

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

What is Char and Ord

A

The Conversion of character to Ascii or Ascii to Character

Char - From Ascii to a Character
Ord - Character to Ascii

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

What is Modulus

A

To find the remainder of dividing two values.

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

What are the scope variable

A

Local Variable
Global Variable

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

What is a function

A

When a subprogram outputs a single variable

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

What is a procedure

A

When a subprogram outputs multiple variables

17
Q

What are the Five things you can do to a file

A

Open
Create
Read
Write
Close

18
Q

What are the two Parameter passing

A

Formal
Actual

19
Q

What is an Actual Parameter

A

A variable that is passed from a subprogram to the main program.(The line calling subprogram from main program)

20
Q

What is a Formal Parameter

A

The variable on the first line of the subprogram