Computer Science Flashcards

1
Q

High level languages
Low level languages

A

Python, C#, Java
Machine code, assembly code

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

What are the two types of translator

A

Compilers
Interpreters

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

what is compiling

A

taking the whole code at the same time

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

what is interpreting

A

takes code line by line

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

what’s an IDE

A

the program that allows you to code in high level languages

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

features of IDEs

A

source code editors
interpreters
automation tools
debugger
compiler
auto-documentation

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

Discuss the suitability of the different types of translator for a programmer during development and after development. [5]

A

During development, its essential that errors are quickly spotted. Interpreters highlight errors line by line. However a compiler would be better suited to nearer to the end due to it being able to execute it all in one go

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

What is a transistor?

A

microscopic devices that switch on and off the electrical signals or power (1 and 0)

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

What is the output of (NOT(1 AND 0)) AND 1

A

1

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

How many rows in a truth table of 3 inputs (for AND and OR)

A

2^3 = 8

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

what is input sanitation

A

removing unwanted characters and making sure everything is checked, prevents any issues

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

define whitelist

A

a list of data that tells the program what to accept, everything else is rejected

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

define blacklist

A

a list of data telling the program what NOT to accept, it accepts everything else (less secure)

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

define authentication

A

a defence strategy (using whitelist) only allows specific users to use the account

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

what is iterative testing

A

testing the code line by line

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

what is terminal/final testing

A

the final check to see a program is working properly

17
Q

what is a syntax error

A

mistakes in the way a code is written

18
Q

what is a logic error

A

a bug in the program that causes it to operate incorrectly

19
Q

normal data

A

correct data

20
Q

boundary data

A

data the is the min/max

21
Q

invalid data

A

values higher or lower than the expected range

22
Q

erroneous data

A

values that the program cant accept

23
Q

what is DNS

A

servers share the task of keeping track of all the IP domain names

24
Q

what is HTTP(S)

A

hypertext transfer protocol (secure) for retrieving info from servers across the world wide web

25
what is FTP
File transfer protocol is a method of transferring files across the internet
26
explain SMTP
simple mail transfer protocol used for sending emails
27
explain POP
post office protocol is responsible for retrieving emails from the email server and then after reading it deletes it off the server
28
explain IMAP
another email protocol responsible for retrieving emails from servers, IMAP leaves the email in the server (different from POP)
29
what is an IP address
your unique access address for accessing the web
30
what is a MAC address
device address