Fundamental Programming Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

integer

A

a value which is a whole number

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

real

A

a value which is a number containing a decimal point

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

Boolean

A

a value which can be TRUE or FALSE

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

Character

A

A value which contains a single character-(letter , symbol or digit)

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

String

A

A value which contains a sequence of characters

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

Variable

A

Variables contain values which CAN change

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

Constant

A

A constant value CANNOT be changed once assigned

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

Declare/Declaration

A

The process of informing the computer of a new variable and the type of data it will contain

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

Assign/Assignment

A

The process of giving a value to a variable

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

Execute

A

The process of a computer carrying out an instruction

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

Statement

A

An instruction for a computer programme to execute

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

Condition

A

A statement which will either evaluate to TRUE or FALSE

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

Iteration

A

Where code repeats-also known as a loop

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

Definite Iteration

A

Also known as count controlled iteration- where a loop repeats code a specific number of pre-determined times, often in a FOR loop

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

Indefinite iteration

A

Also known as condition controlled iteration- where a loop repeats until a condition is no longer met, often in a WHILE loop

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

Selection

A

The program preforms a check list against a condition and responds accordingly, often in an IF loop

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

Nested

A

Where a statement is contained within another statement(nested loop, nested selection loop)

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

Subroutine

A

Programmers create these to prefrom a specific job

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

Procedure

A

A type of subroutine that executes code that does a specific job.

20
Q

Function

A

A type of subroutine which returns a value when finished

21
Q

Subroutine Interface

A

Consists of the subroutine identifier, any parameter, and the return value

22
Q

Random Numbers

A

Numbers are generated using a built in algorithm and are not truly random numbers

23
Q

Data Structures

A

Data Structures enable multiple pieces of data to be held together. they can include arrays and records

24
Q

Array

A

A 1d array is a list. A 2D array is a table. All data must be the same data type

25
Q

Record

A

A record allows a programming to group many variables together in a single descriptive varaible.

26
Q

Compiler

A

Takes the entire source code and converts it in to machine code, meaning the source code does not need to be destributed.

27
Q

Interpreter

A

translates the source code one line at a time. slower than a compiler but allows faster changes to be made

28
Q

Assembler

A

Translates assembly language in to a machine code.

29
Q

Machine Code

A

The binary patterns interpreted by a CU

30
Q

Source Code

A

The written code produced by a programmer

31
Q

Low Level Language

A

Assembly is a low level language which gives the programmer more control over the CPU and memory

32
Q

High Level Language

A

Examples include visual basic. easy for humans to use, but needs compiled to machine code for computer to execute

33
Q

Length

A

Finds the length of a string(or array)

34
Q

Position

A

Finds the index within a string

35
Q

Substring

A

Returns a part of a string, from beginning ,middle, or end.

36
Q

Concatenation

A

Join two strings together to form a new string

37
Q

Global Scope

A

Variables that can exist throughout the entire computer program

38
Q

Local Scope

A

Variables that only exist in specific code block and are deleted when the code being executed moves outside the code block

39
Q

Increment

A

Increase by 1

40
Q

Decrement

A

Decrease by 1

41
Q

Defensive Programming

A

Planning for errors to occur by trying to predict and handle them with selection or iteration

42
Q

Robust

A

Code that does not cause run time errors

43
Q

Run Time Errors

A

A code error that causes whilst a computer program is executing ,possibly causing it to crash

44
Q

Syntax Error

A

A human mistake with the structure of the programming code meaning a high level language cannot compile

45
Q

Logic Error

A

Code which is correct in the view of the computer, but does not execute as expected

46
Q

Sequence

A

The order of actions and instructions