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
Q

Selection

A

where there are different paths in your code
e.g. elif, if, else

26
Q

Iteration

A

When there is repetition in code for example a WHILE loop

27
Q

Function x.length

A

Give the lengths of the string

28
Q

Function x.upper

A

Changes it to upper case

29
Q

Function x.lower

A

Changes it to lower case

30
Q

Function x[i]

A

Give the charecter in position i

31
Q

Function x.substring(a,b)

A

give the characters from position a with the length b

32
Q

Function +

A

joins to strings together

33
Q

File Handling - Myfile=openRead(“myfile.text”)

A

Opens a file in read mode

34
Q

File Handling -Myfile=openWrite(“myfile.text”)

A

Opens the file in write mode

35
Q

File Handling - Myfile.writeLine (“Hello”)

A

Writes a line to the file

36
Q

File Handling - Line1=myfile.readLine()

A

Reads one line of the file

37
Q

File Handling - Myfile.close()

A

Closes the file

38
Q

File Handling - endOfFile()

A

Used to determine the end of the file

39
Q

Procedures

A

a set of instructions stored under a name so that you
can call the procedure to run the whole set of instructions.

40
Q

Parameters

A

variables used to pass values into a function or procedure.