2.2 Programming Techniques Flashcards

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

What is a string?

A

Any text

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

What is an integer?

A

Whole number

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

What is a float/real number?

A

Decimal Number

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

What is a Boolean statement?

A

True/False statement

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

What is a character?

A

A single character?

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

What is an exponentiation function?

A

Raises a number to a power

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

What is the DIV function?

A

Gives the whole number with no remainder

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

What is the MOD function?

A

Gives the remainder not the whole number

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

What is the ! operator

A

Not equal to

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

What is a local variable?

A

A variable that can only be used within the structure they are declared in

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

What is a global variable?

A

A variable which can be used in any part of the code after they are declared

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

What is a sequence?

A

Where there are programming steps that are carried out one after another

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

What is selection?

A

Where there are different paths in your code - IF, ELIF, ELSE

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

What is iteration?

A

Where there is repetition in loops

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

What is a WHILE loop?

A

Doing something WHILE a condition is met

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

What is a FOR loop?

A

Count-controlled loop

17
Q

What is the difference between an array and a list?

A

List’s can’t handle arithmetic operations

An array is a static structure whilst a list is a dynamic structure

18
Q

What is a procedure?

A

Set of instructions under a name

19
Q

What is a function?

A

It is like a procedure but always returns a value?

20
Q

What are records?

A

Data structures used to store a collection of data

21
Q

What is a Field?

A

Each item in a record

22
Q

Why is SQL used?

A

It is used to search databases?