extra Flashcards

1
Q

What is a device driver?

A

A device driver is a program that controls the operation of a specific type of device (e.g. printer, keyboard, mouse, etc.) that is part of a computer system. Examples is a printer driver software that allows for printing.

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

When do the passes in a bubble sort continue until?

A

The passes continue until no swaps are made and the data is sorted.

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

Pseudocode for an enqueue procedure

A

procedure enqueue(newItem)
if tailPointer == myQueue.length
print(“Queue is full”)
else
myQueue[tailPointer] = newItem
tailPointer = tailPointer + 1
endIf
endProcedure

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

Pseudocode for writing a line to a file?

A

myFile = openWrite(“sample.txt”)
myFile.writeLine(“Hello World”)
myFile.close()

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

What is encapsulation?

A

All of the object’s attributes are contained and hidden in the object by giving them the private access modifier. They are accessed through public getter and setter methods.

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

What is BRA?

A

Branch always

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

What is BRP

A

Branch if the value is 0 or above

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

Why are protocols important?

A

So they interpret data/signals in the same way

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