computer science 2.1 Flashcards

1
Q

what is abstraction

A

removing unnecessary parts of a problem so your only left with the main problem

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

what is decomposition

A

breaking a problem down into smaller more manageable parts

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

what does imput/output symbol look like

A

leaning rectangle

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

what does process symbol look like

A

rectangle

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

what does terminal symbol look like (start/stop)

A

oval

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

what does subprogram look like

A

rectangle with one line on either side

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

describe binary search

A

only works for values in ascending order.

finds midpoint and depending if value is greater or less than value its looking for deletes all values above or below it them moves to new midpoint untill it finds the number its looking for

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

describe linear search

A

checks first value if not the value its looking for moves to next value and repeates this untill it finds the value its looking for

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

what are the three types of sorts

A

Bubble sort
Merge sort
Insertion sort

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

describe bubble sort

A

Look at the first number in the list.
Compare the current number with the next number.
Is the next number smaller than the current number? If so, swap the two numbers around. If not, do not swap.
Move to the next number along in the list and make this the current number.
Repeat from step 2 until the last number in the list has been reached.

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

give features of interpreter translator

A

translates code line by line

stops when it encounters an error

must always be present

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

give features of compiler translator

A

translates all code at once

displays any error at the end

produces an executable file

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

what is the purpose of translators

A

turns high level language into low level language so it can be understood by a computer

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

what are some common tools and facilities available in an Integrated
Development Environment (IDE)

A

editors

error diagnostics

translators

runtime environment

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

what is Iterative testing

A

testing something step by step or line by line

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

what is final testing

A

testing something after it has been made

17
Q

What is input validation

A

Input validation is code which is used to check that an input from a user is acceptable and that it matches the requirements of the program.

18
Q

things that effect maintainability

A

use of sub programs

naming conventions

indentation

commenting

19
Q

what is an integer

A

whole number

20
Q

what is a real

A

decimal number

21
Q

what is boolean

A

true/false values

22
Q

what is a string

A

a sequence of characters

23
Q

what is a character

A

an individual symbol

24
Q

what is casting

A

changing something from one data type to another

25
Q

what is Selection in coding

A

IF statements

26
Q

what is iteration in coding

A

Loops

27
Q

what is sequence in coding

A

programming statements are set out one after another.