Week 6: Data Communication and Programming Language Fundamentals Flashcards
What’s the difference between simplex, half-duplex and full-duplex communication models?
The direction that they can transfer data and when they can do so.
What are the differences between serial and parallel data transfer?
Both are quite fast, parallel takes more ports and is more expensive with more interference as well.
Serial has less cross-interference, is cheaper and good in both long and short distances.
What are the trade-offs between serial and parallel?
Serial is more flexible than parallel data transfer and is preferred because of this
What is USB acknowledged as? (Serial or parallel)
A serial data transfer protocol
How can you differentiate between high and low level programming languages?
Their level of abstraction. The more abstraction they have, the more human-readable and they are less like what the computer is actually doing.
What is the process in compilation?
Preprocessor, compiler, assembler and then linker
Compiler
Responsible for converting source code into assembly code
Assembler
Responsible for converting assembly code into machine code by first producing an object file
Linker
Responsible for bringing in any final libraries that may be needed for the program to run
What is machine code?
The lowest level of programming language and is literally what the computer is dealing with
How is machine code different to assembly code?
They are both quite similar, but assembly code is more human-readable than machine code.
What is the process that code is transformed into?
It goes from source file (.html) to assembly code through the compiler and then turned into machine code by the assembler.
How many lines is USB made of?
4 lines
Why are there 4 lines in USB?
The values on - and D+ are mirrored onto + and D- so that if there is interference they cancel out and don’t cause any issues.
Data just doesn’t go through so you can detect the error from there
How do you know if there’s an issue using parity?
If the agreed form is even parity then it’s expected that the number of 1 bits should be even.
If not even, there’s been an error somewhere