Programming Fundementals Flashcards

1
Q

Define real/float

A

Numbers that have a decimal point

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

Define Boolean

A

Can only take one of two values e.g true or false

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

Define character

A

A single letter,number or symbol

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

Define string

A

Represents text and is a collection of characters

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

Define casting

A

Changes the data type

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

Define arithmetic operators

A

Takes two values and performs a maths function on them

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

Define exponentiation

A

Used to raise a number to a power

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

Define DIV

A

Returns the whole number part of a division

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

Define MOD

A

Returns the remainder part of the division

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

Define assignment

A

Used to allocate values to variables

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

Define comparison operators

A

Compares the expression on the left with the one on the right and produces true or false

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

Define constant

A

Assigned a data value that cannot be changed as the program runs

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

Define variable

A

A location in memory that holds one or more values and has a name to identify it

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

Define string manipulation

A

Commands are used which gives you information about a string or allows you to alter the string

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

Define If statements (selection)

A

Allows you to check if a statement is true or false and then Carrie’s out different actions depending on the outcome

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

Define switch statements (selection)

A

Checks if a variable has a specific value

17
Q

Define for loop

A

Repeats the code a fixed number of times

18
Q

Define while loop

A

Controlled by a condition at the start of a loop which will keep going until the condition is true

19
Q

Define do…until loop

A

Controlled by a condition at the end of the loop which keeps going until it’s true

20
Q

Define Boolean operators

A

AND,OR,NOT which are used in selection and iteration statements

21
Q

Define random numbers

A

Most programming languages have a function to generate random numbers

22
Q

Define arrays

A

can store a collection of data values all under one name

23
Q

Define 2-D arrays

A

Each element is a 1-D array

24
Q

Define file handling

A

How a program can access and change data that is stored in an external file

25
Define records
Used to store a collection of data values which can be different data types
26
Define SQL
Used to search database table for specific data
27
Define sub-programs
Used to save time and simplify code that will usually carry out a specific task
28
Define procedures
Sets of instructions stored under one name. When they need to be carried out you can just call the name of the procedure
29
Define functions
Similar to procedures but these always return a value
30
Name 2 examples of iteration
While loops and for loops
31
Name an example of selection
If statement