1. fundamentals of programming Flashcards

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

array

A

a data structure for storing a finite, ordered set of data of the same data type within a single identifier

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

boolean

A

a data type that can only store one of two possible values (true or false)

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

character

A

a data type for storing a letter, number or special character

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

real/float

A

a data type for storing numbers with decimal or fractional parts

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

integer

A

a data type for storing whole number values (positive or negative) with no decimal parts.

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

data type

A

an attribute of data that determines what sort of data is being stored that tells the compiler how it will be used in a program

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

date/time

A

a data type for storing date or time values in an identifiable format

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

records

A

a data structure that stores related data items in elements called fields, organised based on attributes

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

string

A

a data type for storing a sequence of alphanumeric characters or symbols within quotation marks

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

algorithm

A

is a set of rules or a sequence of steps specifying how to solve a problem

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

pseucode

A

a sort of half way house between english and program statements

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

comments

A

anything following # will be treated as a comment and will have no effect on the running of the program.

they can explain how any tricky bits of the program work.

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

user-defined data types

A

custom data types designed by the user by combining existing data types, for the bespoke needs of their program

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

aassignment

A

a statement in which a value is assigned to a variable

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

constant declaration

A

a statement for creating a constant in a program.

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

iteration

A

a programming structure where a set of statements are repeated a fixed number of time (definite iteration), or until a condition is met (indefinite iteration)

17
Q

indefinite iteration

A

where the iteration continues until some specified condition is met e.g. while loops

18
Q

definite iteration

A

where the number of times the loop is to be executed is decided in advance e.g. for loop

19
Q

nested iteration

A

a programming structure of placing selection statements within other selection statements

20
Q

selection

A

a programming structure for deciding which statements to perform next based on a certain condition or set of conditions

21
Q

subroutines

A

a named section/block of code that is written to perform a specific task within a program that can be called by using its name in a programming statement

22
Q

variable declaration

A

a statement for creating a variable in a program

23
Q

addition

A

an arithmetic operator that returns the sum of two numeric values

24
Q

arithmetic operator

A

an operator that takes two numeric values and performs some form of mathematical manipulation (adding, subtracting, multiplying, dividing) to return a numerical value

25
Q

exponentiation

A

an arithmetic operator that raises a numeric value to the power of another numeric value and returns the result

26
Q

integer division

A

an arithmetic operator that divides a numeric value (integer or float) by another but returns an integer quotient

27
Q

modulo

A

an arithmetic operator that divides a numeric value (integer or float) by another and returns the remainder

28
Q

multiplication

A

an arithmetic operator that returns the product of two numeric values (integer or float)

29
Q

real/float division

A

an arithmetic operator that divides a numeric value (integer or float) by another and returns a real/float

30
Q

rounding

A

an arithmetic operator that converts a real/float to a more approximate representation that reduces the number of digits, to represent the number by rounding up or down to a given number of decimal places