programming Flashcards

1
Q

A class describes…

A

A class describes a kind of object.

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

What does a class specify?

A

Classes specify different types of attributes, e.g. colours, designs, location

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

Define an algorithm

A

a set of instructions that are followed in order to complete a task or solve a problem

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

Pseudocode

A

a human-readable way to write algorithms
using exactly these features

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

What is an array?

A

a data structure that stores related data in a collection that are all the same size or type.

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

Name 4 different control structures

A
  1. Direct Sequencing
  2. Conditional Sequencing
  3. Bounded iteration
  4. Conditional Iteration
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define direct sequencing

A

the order in which steps are executed in an algorithm or program

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

Define conditional sequencing

A

a way to control the order in which lines of code are executed by a computer

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

for-loop

A

a control flow statement that is used to repeatedly execute a group of statements as long as the condition is satisfied

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

Define Bounded iteration

A

where a loop executes a fixed, predetermined number of times.

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

Define Conditional iteration

A

repeatedly executes. a section of code until a condition is met - or no longer met.

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

while-loop

A

a control flow statement that allows code to be executed repeatedly based on a given Boolean condition.

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

What are the main ArrayList methods?

A

add, get, remove, size

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