SLR1 Programming basics Flashcards

1
Q

Data type

A

“Provided by a programming language as building blocks. E.g. char, integer, float, Boolean.”

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

Integer

A

“A data type used to store positive and negative whole numbers.”

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

Real/float

A

“A data type used to store an approximation of a real number in a way that can support a trade-off between range and precision. A number is, in general, represented approximately to a fixed number of significant digits and scaled using an exponent.”

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

Boolean

A

“Used to store the logical conditions TRUE/FALSE. Often translated to On/Off, Yes/No, etc.”

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

Character

A

“A single alphanumeric character or symbol.”

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

String

A

“A sequence of alphanumeric characters and or symbols – e.g., a word or sentence.”

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

Date/time

A

“A special data time used to store real dates. Behind the scenes, the date and time are actually represented by a single whole integer number which is the number of seconds since January 1st 1970 00:00:00. Also known as the computing epoch.”

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

Pointer/reference

A

“An object whose value refers or points to another value store elsewhere in the computer memory using its memory address.”

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

Record

A

“A data structure which consists of a collection of elements, typically in fixed number and sequence and typically indexed by names. The elements of records may also be called fields.”

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

Array/List

A

“A set of data items of the same type grouped using a single identifier. Each of the data items is addressed by the variable name and a subscript.”

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

User-defined data type

A

“A user-defined data type (UDT) is a data type that derived from an existing data type. You can use UDTs to extend the built-in types already available and create your own customised data types.”

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

Assignment

A

“An assignment statement sets or resets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. In most imperative programming languages, the assignment statement (or expression) is a fundamental construct.”

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

Subroutine

A

“A set of instructions designed to perform a frequently used operation within a program.”

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

Sequence

A

“One of the three basic programming constructs. Instructions happen one after the other in sequence.”

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

Selection

A

“One of the three basic programming constructs. Instructions which can evaluate a Boolean expression and then branch the code to one or more alternatives paths is branching/selection.”

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

Iteration

A

“One of the three basic programming constructs. A selection of code which can be repeated either a set number of times (count-controlled) or a variable number of times based on the evaluation of a Boolean expression (condition-controlled) is iteration.”

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

Count-controlled loop

A

“An iteration which loops a fixed number of times.”

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

Condition-controlled loop

A

“A way for computer programs to repeat one or more various steps depending on conditions set either by the programmer initially or real-time by the actual program.”

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

Integer division

A

“Division in which the fractional part (remainder) is discarded.”

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

==

A

“Equal to: A mathematical comparison operator which means ‘the same as’, often referred to as ‘equality.’”

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

!=

A

“Not equal to: A mathematical comparison operator which means ‘not equal to’ – sometimes <> is used instead.”

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

<

A

“Less than: A mathematical comparison operator which means ‘less than.’”

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

>

A

“Greater than: A mathematical comparison operator which means ‘greater than.’”

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

<=

A

“Less than or equal to: A mathematical comparison operator which means ‘less than or equal to.’”

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

> =

A

“Greater than or equal to: A mathematical comparison operator which means ‘greater than or equal to.’”

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

NOT

A

“A logical operator used within a program. NOT works by returning FALSE if the input is TRUE, and returning TRUE if the input is FALSE.”

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

AND

A

“A logical operator used within a program. AND works by only returning TRUE if both values being compared are TRUE.”

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

OR

A

“A logical operator used within a program. OR works by returning TRUE as long as either value being compared is TRUE.”

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

XOR

A

“A logical operator used within a program. XOR stands for exclusive OR. It will return TRUE if the two items being compared are different.”

30
Q

Variable

A

“A value that can change, depending on conditions or on information passed to the program.”

31
Q

Constant

A

“A value that cannot be altered by the program during normal execution – i.e., the value is constant.”

32
Q

String operation: Length

A

“An operation available in most programming languages which can be performed in a string data type; it returns the length of the string as an integer.”

33
Q

String operation: Position

A

“An operation available in most programming languages which can be performed in a string data type; it returns the position of a character you provide in another string you provide.”

34
Q

String operation: Substring

A

“An operation available in most programming languages which can be performed in a string data type; it returns a substring of the first argument starting at the position specified in the second argument and the length specified in the third argument.”

35
Q

String operation: Concatenation

A

“An operation available in most programming languages which can be performed in a string data type; it joins two separate string data types together into a single new string.”

36
Q

String operation: Character è character code

A

“An operation available in most programming languages which can be performed in a string data type; it takes in a single character such as the ASCII value ‘A’ and returns the relevant ASCII integer code (e.g., 65).

37
Q

“Provided by a programming language as building blocks. E.g. char, integer, float, Boolean.”

A

Data type

38
Q

“A data type used to store positive and negative whole numbers.”

A

Integer

39
Q

“A data type used to store an approximation of a real number in a way that can support a trade-off between range and precision. A number is, in general, represented approximately to a fixed number of significant digits and scaled using an exponent.”

A

Real/float

40
Q

“Used to store the logical conditions TRUE/FALSE. Often translated to On/Off, Yes/No, etc.”

A

Boolean

41
Q

“A single alphanumeric character or symbol.”

A

Character

42
Q

“A sequence of alphanumeric characters and or symbols – e.g., a word or sentence.”

A

String

43
Q

“A special data time used to store real dates. Behind the scenes, the date and time are actually represented by a single whole integer number which is the number of seconds since January 1st 1970 00:00:00. Also known as the computing epoch.”

A

Date/time

44
Q

“An object whose value refers or points to another value store elsewhere in the computer memory using its memory address.”

A

Pointer/reference

45
Q

“A data structure which consists of a collection of elements, typically in fixed number and sequence and typically indexed by names. The elements of records may also be called fields.”

A

Record

46
Q

“A set of data items of the same type grouped using a single identifier. Each of the data items is addressed by the variable name and a subscript.”

A

Array/List

47
Q

“A user-defined data type (UDT) is a data type that derived from an existing data type. You can use UDTs to extend the built-in types already available and create your own customised data types.”

A

User-defined data type

48
Q

“An assignment statement sets or resets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. In most imperative programming languages, the assignment statement (or expression) is a fundamental construct.”

A

Assignment

49
Q

“A set of instructions designed to perform a frequently used operation within a program.”

A

Subroutine

50
Q

“One of the three basic programming constructs. Instructions happen one after the other in sequence.”

A

Sequence

51
Q

“One of the three basic programming constructs. Instructions which can evaluate a Boolean expression and then branch the code to one or more alternatives paths is branching/selection.”

A

Selection

52
Q

“One of the three basic programming constructs. A selection of code which can be repeated either a set number of times (count-controlled) or a variable number of times based on the evaluation of a Boolean expression (condition-controlled) is iteration.”

A

Iteration

53
Q

“An iteration which loops a fixed number of times.”

A

Count-controlled loop

54
Q

“A way for computer programs to repeat one or more various steps depending on conditions set either by the programmer initially or real-time by the actual program.”

A

Condition-controlled loop

55
Q

“Division in which the fractional part (remainder) is discarded.”

A

Integer division

56
Q

“Equal to: A mathematical comparison operator which means ‘the same as’, often referred to as ‘equality.’”

A

==

57
Q

“Not equal to: A mathematical comparison operator which means ‘not equal to’ – sometimes <> is used instead.”

A

!=

58
Q

“Less than: A mathematical comparison operator which means ‘less than.’”

A

<

59
Q

“Greater than: A mathematical comparison operator which means ‘greater than.’”

A

>

60
Q

“Less than or equal to: A mathematical comparison operator which means ‘less than or equal to.’”

A

<=

61
Q

“Greater than or equal to: A mathematical comparison operator which means ‘greater than or equal to.’”

A

> =

62
Q

“A logical operator used within a program. NOT works by returning FALSE if the input is TRUE, and returning TRUE if the input is FALSE.”

A

NOT

63
Q

“A logical operator used within a program. AND works by only returning TRUE if both values being compared are TRUE.”

A

AND

64
Q

“A logical operator used within a program. OR works by returning TRUE as long as either value being compared is TRUE.”

A

OR

65
Q

“A logical operator used within a program. XOR stands for exclusive OR. It will return TRUE if the two items being compared are different.”

A

XOR

66
Q

“A value that can change, depending on conditions or on information passed to the program.”

A

Variable

67
Q

“A value that cannot be altered by the program during normal execution – i.e., the value is constant.”

A

Constant

68
Q

“An operation available in most programming languages which can be performed in a string data type; it returns the length of the string as an integer.”

A

String operation: Length

69
Q

“An operation available in most programming languages which can be performed in a string data type; it returns the position of a character you provide in another string you provide.”

A

String operation: Position

70
Q

“An operation available in most programming languages which can be performed in a string data type; it returns a substring of the first argument starting at the position specified in the second argument and the length specified in the third argument.”

A

String operation: Substring

71
Q

“An operation available in most programming languages which can be performed in a string data type; it joins two separate string data types together into a single new string.”

A

String operation: Concatenation

72
Q

“An operation available in most programming languages which can be performed in a string data type; it takes in a single character such as the ASCII value ‘A’ and returns the relevant ASCII integer code (e.g., 65).

A

String operation: Character è character code