Computer Science Flashcards

1
Q

Define Plaintext

A

Plaintext is what a computer scientist would use to describe the input message

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

Define Argc

A

The number of command line arguments, how many words did you type at the prompt

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

Define Argv

A

An array, a contigious block of memory, inside of which are all the things you typed in the prompt.

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

Define Recursive Calls

A

A function to call itself, to use it’s own definition again and again, which is bad instinctively unless it keeps getting done on smaller and smaller problems

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

What are the five layers of memory?

A
Enviromental variables
Stack & Heap
Unitialized data 
Initialised data 
Text
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Val Grind?

A

A bug spotter for memory mistakes

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

What does a binary search tree look like?

A

Every node in this tree is going to have 0,1 or 2 children.

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

What is a segmentation fault?

A

A memory related problem in your programme.

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

Define Compression

A

The art of making things smaller, ideally without losing information.

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

What is an IP address?

A

This gives you the ability to talk to other people and receive messages to other people because you have an address where they can contact you

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

Define a DNS

A

Domain Name System, converts IP addresses to pretty nice domains like google.com

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

Cables that power the internet…

A
  • There are now over three hundred undersea cables stretching 555,000 miles
  • That’s enough to circle the earth 22 times
  • The longest cable hits thirty nine landing points from Germany to Korea spanning 24,000 miles
  • The cables are less than 3 inches thick (opter fibre)
  • They transmit 99% of the world’s data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Javascript?

A

This language is used within the client/the browser
It is executed client side, it is not executed on the server side (unless it’s Node JS)

If you want a user to go on a web page and then interact with it - you are going to want something like Javascript.
e.g. Facebook messenger can be open all day, a new row appears without the page having to refresh

You basically have a while loop constantly waiting saying “Did the server send me more data?…. Did the server send me more data? etc.”
IF SO, go ahead with an IF condition and write more text to Messenger, or G-Mail etc.

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

What are callbacks?

A

These are just functions which have been configured to be called back at a certain point of time when something happens.

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

Define Ajax

A

Query from a browser to a server to get more data even after the original browser has been loaded.

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

What is Bootstrap?

A

Helps make HTML and CSS look prettier

17
Q

What is more important than the syntax?

A

The goal is not to be able to rehearse all the syntax… it’s to understand the fundamental concepts.
He also talks about the power of googling around and using other people’s code.

18
Q

What is Local Storage?

A

Store the data inside the browser - this means that you don’t have to remember states on the server side

19
Q

What is J Query?

A

Super popular library. It means you don’t have to start writing specific code for Chrome, Safari, Firefox etc.

20
Q

Hack to analyse web pages?

A

Right click and use developer tools.

21
Q

What percentage of internet bandwidth does Netflix account for?

A

32%

22
Q

What are the three networks?

A
  • LAN - Local Area Network - All computers are in close distance to each other (e.g. In a house, school)

Really good for sharing for printers for example.

Usually connected by cables or wires.

  • MAN - Metropolitan Area Network

Bigger than LAN

Often span large cities or a county

Use - Two hospitals on the different side of the city, might want to interconnect computers and share information.

  • WAN - Wide Area Network

Across the USA

It needs to span larger than 30 miles. (Anything less is a MAN)

The most famous WAN is the internet.

They use satellite, fibre optic cable, old school copper cable etc in the slower areas

23
Q

What is the part of your computer that enables you to connect to the internet?

A

NIC - Network Interface Card

Made up of two halves, one that connects to your computer and the other that connects to a communications media (e.g. ethernet plug

24
Q

What is a protocol?

A

Protocols of guy chatting to a girl

One rule is that one person talks at a time

Second rule is that whenever the guy sends a message, it’s expected that she responds

Third protocol is it’s expected she responds accordingly

(E.g. if he says hello, you don’t want her to say bacon. You want her to say the correct thing)

Protocols are the expected norms of communication.

PROTOCOLS

Instead of a guy talking to a girl. We now have a MAC talking to a web server.

Mac will ask “Can I connect to you?”

If it’s a web server, it will say Yes (unless specified otherwise)

The Mac will then respond with GET files google.co.uk/html

25
Q

What is the ENIAC

A

Completed in 1946. World’s first general purpose electronic programmable computer. It could perform 1000 ten digit additions and subtractions per second.

It was operational for ten years, and it is estimated to have done more arithmetic than the entire human race up to that point.

26
Q

How big are computer transistors?

A

Computers use transistors that are smaller than 50 nanometers in size - for reference, a sheet of paper is roughly 100,000 nanometers thick.
They can switch states a million times per seconds and run for decades.

27
Q

How to represent numbers and letters with binary?

A

Each binary number is called a bit. It is also done on a scale or 1,2,4,8,16 etc.

If the number was 7, it would have 1 in the 1 collum, 1 in the 2 collum, and 1 in the 4 collum

The largest number a 64 bit can represent is 9.4 quintrillion

Unicode is now the universal one, for emoji’s to chineese. It solved the languge problem.

28
Q

What is an ALU?

A

Arithmetic and Logic Unit. The mathematical brain of a computer. It is the key to computers.

29
Q

What causes an overflow?

A

In general, an overflow occurs when the result of an addition is too large to be represented by the number of bits you are using. This can usually cause an error and unexpected behaviour.

Pacman overflow. After level 256 it would crash and make it impossible to complete as it was 8 bit based.

30
Q

What is the CPU?

A

The Central Processing Unit - its job is to execute programmes (e.g. Word, Chrome etc) - these programmes are made up of individual operations called INSTRUCTIONS - these instruct the computer what to do.

The CPU will talk to the memory to read or write articles.

31
Q

What is the clock?

A

It has the responsibility for keeping the CPU ticking along.

The computer you are watching the YT video on likely has a few Gigaherts. That is likely a few billion CPU cycles a second.

Overclocking Computer - This is when someone speeds up their clock to increase CPU processing speed.