Computer Science Flashcards
Define Plaintext
Plaintext is what a computer scientist would use to describe the input message
Define Argc
The number of command line arguments, how many words did you type at the prompt
Define Argv
An array, a contigious block of memory, inside of which are all the things you typed in the prompt.
Define Recursive Calls
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
What are the five layers of memory?
Enviromental variables Stack & Heap Unitialized data Initialised data Text
What is Val Grind?
A bug spotter for memory mistakes
What does a binary search tree look like?
Every node in this tree is going to have 0,1 or 2 children.
What is a segmentation fault?
A memory related problem in your programme.
Define Compression
The art of making things smaller, ideally without losing information.
What is an IP address?
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
Define a DNS
Domain Name System, converts IP addresses to pretty nice domains like google.com
Cables that power the internet…
- 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
What is Javascript?
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.
What are callbacks?
These are just functions which have been configured to be called back at a certain point of time when something happens.
Define Ajax
Query from a browser to a server to get more data even after the original browser has been loaded.