Week 6: Data Communication and Programming Language Fundamentals Flashcards

1
Q

What’s the difference between simplex, half-duplex and full-duplex communication models?

A

The direction that they can transfer data and when they can do so.

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

What are the differences between serial and parallel data transfer?

A

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.

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

What are the trade-offs between serial and parallel?

A

Serial is more flexible than parallel data transfer and is preferred because of this

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

What is USB acknowledged as? (Serial or parallel)

A

A serial data transfer protocol

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

How can you differentiate between high and low level programming languages?

A

Their level of abstraction. The more abstraction they have, the more human-readable and they are less like what the computer is actually doing.

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

What is the process in compilation?

A

Preprocessor, compiler, assembler and then linker

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

Compiler

A

Responsible for converting source code into assembly code

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

Assembler

A

Responsible for converting assembly code into machine code by first producing an object file

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

Linker

A

Responsible for bringing in any final libraries that may be needed for the program to run

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

What is machine code?

A

The lowest level of programming language and is literally what the computer is dealing with

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

How is machine code different to assembly code?

A

They are both quite similar, but assembly code is more human-readable than machine code.

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

What is the process that code is transformed into?

A

It goes from source file (.html) to assembly code through the compiler and then turned into machine code by the assembler.

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

How many lines is USB made of?

A

4 lines

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

Why are there 4 lines in USB?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you know if there’s an issue using parity?

A

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

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