SDD Unit Flashcards

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

What is a procedure?

A

Subprograms are often called procedures ( Which execute a set of commands). They break down the program to make your code modular, readable and therefore more maintainable. It is a subprogram which can be called from within its main program. They do not return values

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

What is a function?

A

A function is a subroutine/program which returns a value. In case of object-orientated programming languages (Such as Java) it is called ‘method’.

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

What is a compiler?

A

A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or “code” that a computer’s processor uses.

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

What is an interpreter?

A

An interpreter translates the program a line at a time into binary as the program is running.

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

What is stored in RAM?

A

Temporary data that is being used by any active application or active process on your computer, otherwise known as ‘Volatile memory’. If the computer is turned off, all volatile memory is lost.

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

Why would a programmer use a function?

A
  1. They allow us to conceive of our program as a bunch of sub-steps. (Each sub-step can be its own function. When any program seems too hard, just break the overall program into sub-steps!) 2. They allow us to reuse code instead of rewriting it. 3. Functions allow us to keep our variable namespace clean (local variables only “live” as long as the function does). In other words, function_1 can use a variable called i, and function_2 can also use a variable called i and there is no confusion. Each variable i only exists when the computer is executing the given function. 4. Functions allow us to test small parts of our program in isolation from the rest.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a translator?

A

A translator is a computer program which is designed to convert coding language - also known as high level languages - the computer cannot understand into a language the computer can understand without damaging the structure of the code.

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

What is a parameter?

A

A parameter is a special type of variable of arrays which can be used to set the range of numbers within a program. A parameter can be used within two different situations which are passing parameter by reference and are passing parameter by value.

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

What is passing a parameter by reference?

A

Parameter by reference is when the variable or array is passed into the sub-routine and changed, which means any changes there are to the formal parameter occuer to the actual parameter.

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

What is passing a parameter by value?

A

This is when the variable/array is passed into the sub-routine and not changed; meaning the variable is temporarily stored whilst the sub-program is running and discarded once finished executing.

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

What is input validation?

A

Input validation is a standard algorithim that involves avoiding input errors by repeatedly asking for data to be entered until it is an acceptable value.

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

What is a linear search?

A

A linear search is a standard algorithim that involves searching for a value at the first item in a list and it will continue searching through each item of the list in turn.

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

What is counting occurences?

A

Counting occurences is a standard algorithim that involves counting how often a value occurs in a list of items by setting a counter to zero, searching the list for the occurence of a search value and incrementing the counter by 1 each time the search value is found.

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

What is finding maximum?

A

Finding maximum is a standard algorithim that involves finding the maximum value in a list by putting the max variable to the first item in the list. Each item in the list is compared to the maximum value to see if it is biggerand every time the item in the list is bigger than the maximum value, the maximum value will be upgraded to that item.

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

What is finding the minimum?

A

Finding the minimum is a standard algorithim identical to the find maximum algorithim except each item in the list will be compared to minimum value to see if it is being smaller.

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