2.2 Programming Fundamentals Flashcards

1
Q

Integer:

A

Whole number

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

Real/float:

A

Decimal numbers

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

Boolean:

A

1 of 2 values, true/false, yes/no, 0/1

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

Character:

A

Single letter, number or symbol

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

String:

A

Used to represent text, collection of characters

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

Casting:

A

Change data type

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

Arithmetic operators:

A

Take values and perform mathematical functions on them

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

Exponentiation:

A

Raise a number to a power. ^, or **

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

DIV:

A

Returns the whole number part of a division. // is used

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

MOD:

A

Returns the remainder part after division % is used

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

Assignment:

A

Allocate values to constants or variables

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

Comparison operators:

A

Compare the expression on left side with expression on right. Boolean value

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

Constant:

A

A constant is assigned a data value that can’t be changed as the program runs

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

Variable:

A

A location in memory that holds 1 or more values. Has a label to identify it and value can be changed as program runs

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

String manipulation:

A

Chars in a string numbered starting at 0. Can use commands giving info about the string or allows you to alter the string

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

Selection statements(if):

A

Check if a statement is true or false and carry out different actions depending on outcome

17
Q

Selection statements(switch):

A

Also known as case select statements, can check if a variable has a specific value

18
Q

Count controlled loop(for):

A

For loops will repeat the code in them a fixed number of times

19
Q

Condition controlled loop(while):

A

Controlled by a condition at loop start. Will keep going until condition is false

20
Q

Condition controlled loop(do):

A

A do…until loop is controlled by a condition at end of loop. Keep going until condition is true. Will always run the loop at least once

21
Q

Boolean operators:

A

And, or, not. Selection and iteration statements

22
Q

Random numbers:

A

Most languages have a function to generate random numbers. Useful for simple games

23
Q

Arrays:

A

Data structures that can store a collection of data values under one name. Each val called an element

24
Q

2D arrays:

A

Essentially a 1 dimensional array where each element is a 1 dimensional array

25
Q

File handling:

A

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

26
Q

Record:

A

Data structure that stores a collection of data values. Can store values with different data types

27
Q

SQL:

A

Structured Query Language can be used to search database tables for specific data

28
Q

Sub programs:

A

Save time and simplify code. Carry out a specific task

29
Q

Procedures:

A

Sets of instructions stored under 1 name. When you want the program to carry out these instructions you call procedure name

30
Q

Functions:

A

Similar to procedures but functions always return a value