4.3 Programming Languages Flashcards

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

What are the fundamental operations of a computer?

A

ADD
COMPARE
LOAD
SAVE

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

What are compound operations?

A

Compound operations usually require a number of stages and sub operations. Whilst fundamental ones are usually just one stage.

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

What are the two types of languages?

A

Natural and Computing

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

What is a natural language?

A

Has varying vocabulary
Ambiguous
Grammar and Syntax is inconsistent

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

What is a computing language?

A

Fixed vocabulary
Unambiguous
Grammar and Syntax is consistent

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

What are High Level Languages?

A

Similar to human languages, so that humans can understand.

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

What are Low Level Languages?

A

Close to binary so that computer can process instructions.

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

Why are high level languages important?

A

Speed for humans to program
Ease of understanding

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

Why is translation needed?

A

A computer to understand high level code.

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

What is a compiler?

A

Higher level language to lower level language in one go.

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

What is an Interpreter

A

Translates into intermediate code which can then be translated by CPU
Works line by line

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

What is an assembler?

A

Translates assembly language into machine code.

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

What is a virtual machine?

A

Installed onto a computer so java can run on many types of hardware.

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

Why are virtual machines crucial?

A

Because then the programmer can write one code that will work on all platforms.

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

How does a virtual machine work?

A

Matches the hardware of your device and then allows you to run program.

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

What are variables?

A

Storage locations for data with location, and name and data type that cannot be changed.

17
Q

What is a constant?

A

An identifier with a value that can’t be altered.

18
Q

What is an Operator?

A

A character/set of characters that represents an action e.g. AND, =, /

19
Q

What is an Object?

A

An instance of a class.

20
Q

What process to Objects utilise?

A

Abstraction.

21
Q

What are collections?

A

A linked list with an unknown size and length. With order not guaranteed.

22
Q

What are Lists?

A

Lists are useful for when you don’t know how many items need to be stored. Can be used for any data type.

23
Q

What is modular design?

A

Breaking parts into manageable tasks.
Distribute development in a team.
Code is reused
Easy to read.

24
Q

Why is modular programming good?

A

Usefulness or reusable code.
Ease of program organisation
Makes future maintenance easier.

25
Q

What is good about manageable tasks?

A

Individual tasks are easier to design, test and implement.

26
Q

What are the manageable tasks called?

A

These tasks are called modules which can then be combined to build the program.

27
Q

What is good about distributed development?

A

Shortens development time.

28
Q

What is good about code reusability?

A

Reduces redundant code.
Can be used in future projects
Not writing the same thing over and over again.

29
Q

What is good about readability?

A

Easy for users/other programmers the understand.