Computer science Flashcards

(14 cards)

1
Q

Computational thinking

A

Decomposition: Breaking a problem down into smaller manageable tasks
Abstraction: Removing unnecessary details from a problem
Algorithmic thinking: Creates a set of rules to automate instructions

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

Flowcharts

A

Rectangle with curved corners: Terminal
Rectangle: Process
Diamond: Decision
Parallelogram: Input/output

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

AND OR NOT Gates

A

^ : AND
v : OR
¬ : NOT

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

Bubble sort

A

Easy to code, Efficient for small lists, Slow for long lists

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

Merge sort

A

Efficient for large lists, Require lots of memory, Difficult to code

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

Insertion sort

A

Efficient for mostly sorted lists, Easy to code, Inefficient for long lists

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

Programming constructs

A

Sequence: Executing one instruction after another
Selection: Program branching based on a condition like an if statement
Iteration: Program looping based on a count or condition control loop

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

Defensive design considerations

A

Anticipating misuse: Predicts users will find ways to break program
Authentication
Input validation: Tyra proudly ran, leaping over foxes (format)

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

Maintainability

A

The ease with which code can be read and modified including:
Comments, Indentation, Subprograms, Suitable names

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

Iterative vs final testing

A

Iterative testing works on a small section of code whilst it is still being developed

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

Types of input

A

Normal, Boundary, Invalid, Erroneous

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

High level vs low level languages

A

Source code which is written in high level languages can be translated or compiled to machine code and executed. Low level languages like assembly code are translated to machine code using assemblers

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

IDEs

A

Software used for writing code including:
Editors (Colour codes, bracket matching, Auto complete)
Error diagnostics (Break points, syntax)
Runtime environment (Interpreter)
Navigation (Dedicated panels for files)

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

Ut

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