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
>=
“Greater than or equal to: A mathematical comparison operator which means ‘greater than or equal to.’”
26
NOT
“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.”
27
AND
“A logical operator used within a program. AND works by only returning TRUE if both values being compared are TRUE.”
28
OR
“A logical operator used within a program. OR works by returning TRUE as long as either value being compared is TRUE.”
29
XOR
“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
Variable
“A value that can change, depending on conditions or on information passed to the program.”
31
Constant
“A value that cannot be altered by the program during normal execution – i.e., the value is constant.”
32
String operation: Length
“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
String operation: Position
“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
String operation: Substring
“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
String operation: Concatenation
“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
String operation: Character è character code
“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
“Provided by a programming language as building blocks. E.g. char, integer, float, Boolean.”
Data type
38
“A data type used to store positive and negative whole numbers.”
Integer
39
“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.”
Real/float
40
“Used to store the logical conditions TRUE/FALSE. Often translated to On/Off, Yes/No, etc.”
Boolean
41
“A single alphanumeric character or symbol.”
Character
42
“A sequence of alphanumeric characters and or symbols – e.g., a word or sentence.”
String
43
“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.”
Date/time
44
“An object whose value refers or points to another value store elsewhere in the computer memory using its memory address.”
Pointer/reference
45
“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.”
Record
46
“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.”
Array/List
47
“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.”
User-defined data type
48
“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.”
Assignment
49
“A set of instructions designed to perform a frequently used operation within a program.”
Subroutine
50
“One of the three basic programming constructs. Instructions happen one after the other in sequence.”
Sequence
51
“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.”
Selection
52
“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.”
Iteration
53
“An iteration which loops a fixed number of times.”
Count-controlled loop
54
“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.”
Condition-controlled loop
55
“Division in which the fractional part (remainder) is discarded.”
Integer division
56
“Equal to: A mathematical comparison operator which means ‘the same as’, often referred to as ‘equality.’”
==
57
“Not equal to: A mathematical comparison operator which means ‘not equal to’ – sometimes <> is used instead.”
!=
58
“Less than: A mathematical comparison operator which means ‘less than.’”
59
“Greater than: A mathematical comparison operator which means ‘greater than.’”
60
“Less than or equal to: A mathematical comparison operator which means ‘less than or equal to.’”
<=
61
“Greater than or equal to: A mathematical comparison operator which means ‘greater than or equal to.’”
>=
62
“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.”
NOT
63
“A logical operator used within a program. AND works by only returning TRUE if both values being compared are TRUE.”
AND
64
“A logical operator used within a program. OR works by returning TRUE as long as either value being compared is TRUE.”
OR
65
“A logical operator used within a program. XOR stands for exclusive OR. It will return TRUE if the two items being compared are different.”
XOR
66
“A value that can change, depending on conditions or on information passed to the program.”
Variable
67
“A value that cannot be altered by the program during normal execution – i.e., the value is constant.”
Constant
68
“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.”
String operation: Length
69
“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.”
String operation: Position
70
“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.”
String operation: Substring
71
“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.”
String operation: Concatenation
72
“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).
String operation: Character è character code