Section 11 - Programming Techniques Flashcards

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

What is coding in sequence?

A

Coding line after line

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

What is coding in iteration?

A

Coding looping sections of code

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

What is coding in branching?

A

More than one possible code …

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

Subroutines and Recursion

What is recursion?

A

Calls itself until the base case is met

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

Use of an IDE

What are the features of an IDE (Integrated Dev Environment)?

A
  • Prettyprinting
  • Syntax checking
  • Translators
  • Runtime environment
  • Debugging tools

process of converting/presenting source code in a legible/attractive way

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

Use of Object-Oriented Techniques

What is instantiation/initialisation?

Instantiation = Initialisation

A

Creation of an object

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

Use of Object-Oriented Techniques

What is polymorphism?

A

A method in a child class overwriting parent class methods

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

Use of Object-Oriented Techniques

What is encapsulation?

A

The use of different techniques (e.g. privating attributes) to ensure that data can only be accessed within a class

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

What is the difference between global variables and local variables?

A

Global variables can be accessed from anywhere in the program
Local variables can only be accessed within their module

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

Use of Object-Oriented Techniques

What is a class?

A

A template for the methods and attributes of an object

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

Use of Object-Oriented Techniques

What is an attribute?

A

A piece of data that an object has

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

Use of Object-Oriented Techniques

What is a method?

A

A subroutine in a class that defines the object’s behaviour

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

Subroutines and Recursion

What is the difference between passing a parameter by value and by reference?

A

By value
* actual value passed in
* treated as local variable - original will not be affected

By reference
* address of the parameter passed in
* treated as global variable - original will be affected

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