Programming Fundamentals Flashcards

1
Q

String

A

Text - “Hello”

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

Integer

A

Whole number e.g. 32

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

Float/Real

A

Decimal number e.g. 12.1

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

Boolean

A

True or False

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

Charecter

A

A single charecter e.g. b

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

Casting

A

is when you want to change between data types

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

Variable

A

can be assigned value during the program

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

Local Variable

A

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

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

Global Variable

A

a variable that can be used in any part of the code

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

Constant

A

A value that can not be altered whilst the program is running

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

Assignments

A

A statement that sets a value to a variable

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

Exponentiation

A

Raises a number to a power

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

Quotient/DIV

A

Give a whole number after a division

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

Remainder/MOD

A

gives the remainder part of a division

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

==

A

is equal to

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

! <>

A

is not equal to

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

<

A

is less than

18
Q

>

A

is more than

19
Q

> =

A

is more than or equal to

20
Q

<=

A

is less than or equal to

21
Q

What are the boolean operators

A

AND, OR and NOT

22
Q

One dimension array

A

like a list
examples:
array students [3]
students [0] = “Bob”
students [1] = “Dave”
students [2] = “Bob”

print (students[1])

23
Q

Two dimension array

A

These are lists within lists like a table.

24
Q

Sequence

A

Programs is completed in steps one after the other.

25
Selection
where there are different paths in your code e.g. elif, if, else
26
Iteration
When there is repetition in code for example a WHILE loop
27
Function x.length
Give the lengths of the string
28
Function x.upper
Changes it to upper case
29
Function x.lower
Changes it to lower case
30
Function x[i]
Give the charecter in position i
31
Function x.substring(a,b)
give the characters from position a with the length b
32
Function +
joins to strings together
33
File Handling - Myfile=openRead(“myfile.text”)
Opens a file in read mode
34
File Handling -Myfile=openWrite(“myfile.text”)
Opens the file in write mode
35
File Handling - Myfile.writeLine (“Hello”)
Writes a line to the file
36
File Handling - Line1=myfile.readLine()
Reads one line of the file
37
File Handling - Myfile.close()
Closes the file
38
File Handling - endOfFile()
Used to determine the end of the file
39
Procedures
a set of instructions stored under a name so that you can call the procedure to run the whole set of instructions.
40
Parameters
variables used to pass values into a function or procedure.