Unit 4 - Chapter 1 Flashcards

1
Q

What is a program ?

A

A set of instructions that tells the computer to do things in a certain order to solve a particular problem

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

What are the two main programming paradigms ?

A

+ procedural paradigm

+ object-oriented paradigm

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

Explain the procedural paradigm

A

the program operates on data and is in self contained blocks called ‘procedures’. The programme is started by calling the procedures

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

Explain the object-oriented paradigm

A

The focus is on data, the data and the code that operate on the data are kept in a single object class.

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

What does procedural paradigm help to do ?

A

It helps to break large pieces of code into easier to manage chunks of code called procedures

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

What does inheritance allow the programmer to do ?

A

to build one class based on another class, (one class can inherit the properties of the other)

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

What does encapsulation help to do ?

A

‘hides’ the data belonging to an object

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

What are the advantages of object-oriented programming ?

A
  • the code for an object can be used in a different programme
  • access to the the objects data is hidden (due to encapsulation)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a software development environment ?

A

provides programmers with programming tools to build an application through coding and testing

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

What are syntax errors ?

A

An error in the code entered into the editor e.g spelling mistake

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

Name 5 features of an SDE

A
  • editing window
  • clipboard
  • syntax errors
  • line numbering
  • collapsible code section
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is machine code ?

A

instructions in binary format that can be executed by a computer

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

What is source code ?

A

The original code written by the programmer

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

What does a language compiler do ?

A

it processes each statement in the source code and tries to translate it into machine code, before executing it

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

What are the main steps in high-level language translation ?

A
  • first pass will check the syntax of each statement
  • the compiler converts source code into binary code
  • semantic analysis ensure that any variables used have been declared
  • the machine code is ready to be executed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly