Computer Science Flashcards

1
Q

Define Abstraction

A

Abstraction is removing all the unnecessary detail and only keeping what is needed.

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

Define Decomposition

A

Decomposition is the breaking down a complex problem into smaller tasks to solve it more efficiently.

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

What is AND gate

A

AND gates output 1 ONLY if both inputs are 1

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

What is OR gate

A

OR gates output 1 if EITHER or BOTH inputs are 1

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

What is NOT gate

A

NOT gates invert the input
for example if a one is inputted a 0 will be outputted
(the opposite)

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

What are the 3 programming constructs?

A

Iteration
Selection
Sequence

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

Define Iteration

A

Iteration is the repeated execution of a section of code when a program is running.

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

Define Selection

A

Selection determines which path a program takes when it is running.

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

Define Sequence

A

Sequence is the order in which instructions occuur and are processed.

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

What are the 2 types of iteration?

A

Count-controlled Iteration
Condition-controlled Iteration

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

Define Count-controlled iteration

A

Count-controlled iteration is repeatedly executes a section of code a fixed number of predetermined times.

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

Define Condition-controlled iteration

A

Condition-controlled iteration is the 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
13
Q

What are examples of high level language?

A

HTML
PHP
Typescript
Kotlin
Rust

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

What are the 3 language translators?

A

Compiler
Interpreter
Assembler

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

Define Assemble

A

Assembler translates assembly code to machine code.

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

Define Interpreter

A

Interpreter translates code line by line slower but more flexible.

17
Q

Define Compiler

A

Compiler is a high level language translated/ compile all as one.

18
Q

What are the differences between complier and Interpreter?

A

Compiler is faster more efficient and consumes less time compared to an interpreter.

19
Q

What does IDE stand for?

A

Intergrated development environments

20
Q

What do IDES do?

A

Allows you to write code
Auto finds the syntax error
customise your code
helps with keyboard syntax

21
Q

What are SQLs used for

A

SQL is used to create or delete or modify or manipulate records in a database

22
Q

What are the 3 basic commands of SQL

A

SELECT
FROM
WHERE

23
Q

Define SELECT

A

SELECT chooses all fields

24
Q

Define FROM

A

FROM - which table database can have multiple tasks

25
Define WHERE
WHERE - uused to set criteria
26
What are the standard Algorithms?
Binary Search Linear Search Bubble Sort Merge Sort Iteration Sort
27
What is the oval shape for in flowcharts?
Oval shapes represents the start or the end.
28
What is the rectangle shape for in flowcharts?
Rectangle shapes are for processes.
29
What is the diamond shape for in flowcharts?
Diamond shapes are for the decisions.
30
What is the Paralellorgram shape for in flowcharts?
Paralelogram shape is used for input and outputs