Paper1: 3.2 Programming Flashcards

1
Q

What is a data type?

A

A particular type of data item, dependant on the features of it

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

The five most common data types are:

  • _______
  • _______
  • _______
  • _______
  • _______
A
String
Integer
Boolean
Float
Charachter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How is variable declaration used in a program?

A

Used to set a value which will change in the program

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

How is constant declaration used in a program?

A

Used to set a value which will stay the same throughout the program

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

How is assignment used in a program?

A

Used to assign a value to a variable or constant

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

How is iteration used in a program?

A

To repeat a piece of code a set amount of times

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

How is selection used in a program?

A

It is when the code offers the user a choice of options

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

How are subroutines used in a program?

A

The user writes them so that the code within can be used multiple times

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

How are arithmetic operations used in a program?

A

They are used to perform maths in the code

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

How are relational operations used in a program?

A

They are used to compare values or variables

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

How are boolean operations used in a program?

A

They are used in loops and giving variables boolean value

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

Describe data structure

A

A data structure is a specialized format for organizing and storing data

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