Chapter 8 - Programming Flashcards

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

What is a variable

A

Named data store that may change the execution of a program

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

What is a constant

A

Named data store that contains a value that does not change during the execution of a program

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

What are the 5 basic concepts of programming

A

Data use
Iteration
Sequence
Selection
Operator use

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

What is data use

A

Variables, constants and arrays

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

What is sequence

A

The order of steps in a task

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

What is selection

A

Choosing a path through a program

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

What is iteration

A

Repitition of a sequence of steps in a program

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

What is operator use

A

Arithmetic for calculations
Logical and boolean for decisions

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

What does the different data types enable(3)

A

Data to be stored appropriately
Data to be effectively manipulated
Automatic validation

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

What are the 5 basic data types

A

Integer
Real
Char
String
Boolean

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

What is boolean

A

A variable constant that can only have 2 values
TRUE or FALSE

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

What is a string

A

A variable/constant that is several characters in length or has no characters which is an empty string

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

What does it mean if a number is stored in a string

A

The number cannot be used ofr calculations

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

What is a char

A

A variable/constant that is a single character

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

What are the basic concepts to be used when solving a problem (6)

A

Sequence.
Selection.
Iteration.
Counting and totalling.
String handling.
Use of operators.

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

Declare

A

To define the value and data type of a variable or constant

17
Q

Iteration

A

Section of programming code that can be repeated under certain conditions

18
Q

Operator

A

Special character/word in a programming language that identifies an action to be performed

19
Q

Arithmetic operator

A

An operator that is used to perform calculations

20
Q

Logical operator

A

Operator that is used to decide the path to take through a program if the expression formed is true or false

21
Q

Boolean operator

A

Operator that is used with logical operators to form more complex expressions

22
Q

Nesting

A

The inclusion of one type of code construct inside another

23
Q

Procedure

A

Set of programming statements grouped together under a single name which can be called to perform a task in a program rather than including a copy of the code every time the task is performed

24
Q

Function

A

Set of programming statements grouped together under a single name which can be called to perform a task in a program rather than including a copy of the code every time the task is performed and returns a variable back to the main program

25
Q

Global variable

A

variable that is declared outside a user defined function

26
Q

Local variable

A

variable declared inside a user defined function