Chapter 19 Contemporary Trends In Software Development Flashcards

1
Q

What are the two GCSE programming paradigms?

A

Procedural paradigm and object-oriented paradigm.

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

Explain what Procedural programming is? (x3)

A

• Procedural programming languages provide features to help programmers design solutions using a top-down approach.

• Top-down design involves breaking a complex problem down into smaller sub-problems.

• Solutions for each sub-problem can be created and the code for the solutions can be written as functions (also called procedures or methods).

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

Explain what Object-oriented Programming is? (x3)

A

Object-oriented programming languages provide features to help programmers design solutions using objects.

Objects contain both the data (properties) and the functions (methods) to be used in the solution.

A class is like a template or blueprint for an object; it defines the properties and methods for a group of objects.

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

What is inheritance?

A

It allows programmers to build one class based on another class i.e one class can inherit the characteristics of another class. In this subclass only the differences between it and its parent class need to be coded.

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

What is encapsulation?

A

It ‘hides’ the data belonging to an object. The data can only be accessed through the methods associated with the object. Therefore the object-oriented approach creates more efficient, reusable code.

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

What is encapsulation?

A

It ‘hides’ the data belonging to an object. The data can only be accessed through the methods associated with the object. Therefore the object-oriented approach creates more efficient, reusable code.

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

What are the advantages and disadvantages of POP?

A

Advantage:
It needs less memory than OOP.

Disadvantage:
It’s less secure than OOP.

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

What are the advantages and disadvantages of OOP?

A

Advantage:
It is more secure than POP.

Disadvantage:
It needs more memory than POP.

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

What does SDE/IDE stand for and what is it?

A

It stands for Software Development Environment and is also known as an Integrated Development Environment.

Most programmers now write code in an SDE/IDE as they provide programmers with an integrated set of programming tools to build an application from coding through to testing.

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

What tools do SDE/IDEs provide? (x6)

A

An editing window that allows the programmer to enter and edit code; it also provides access to objects, methods, properties and events at design time.

A clipboard, used to copy and paste.

Colour, used throughout the coding window to aid readability for the programmer; the editor may use different colours for keywords and syntax errors may also be colour coded.

Collapsible code sections: programmers can collapse/expand selected sections of code to make viewing large programmes much easier.

Line numbering: helps programmers distinguish between lines in long programs, line numbering is also used by the compiler to reference the location of errors in the code.

Code completion tools: when writing code there is instant, automatic, context-sensitive help; as a statement is entered, its full syntax may be shown to the programmer. Code completion tools may provide a list of available functions, statements, constants or values that the programmer can choose from.

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

What is the source code?

A

It is the program written by the programmer.

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

What is the machine code?

A

Machine code is: instructions in binary format that can be executed directly by the computer.

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

What must happen to source code and why?

A

It must be translated via a compiler into machine code so that the computer can understand and execute the instructions.

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

What is a language compiler?

A

It is built into the SDE. It processes each statement in the source code and tries to translate the whole program into machine code, before executing it.

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

What passes will the compiler perform on the code?

A
  1. If the program uses libraries, the compiler will include the library code used in the program (this is called pre-processing).
  2. During lexical analysis, the compiler converts source code into fixed-length binary code items called ‘tokens and parsing’(or syntax analysis), which checks that the statements conform to the rules of grammar for the language.
  3. Syntax analysis will check the syntax of each statement. If the syntax is incorrect, the program won’t be executed. The programmer then has to correct the errors before attempting to compile the program again.
  4. Semantic analysis ensures that any variables used have been declared and data types are correctly matched.
  5. After these passes, the optimised machine code of the source code is generated and can be executed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does executing mean?

A

‘Executing’ or ‘running’ a program means that the machine code instructions are loaded into memory and the computer performs the instructions. These instructions cause simple actions in the computer.