extra Flashcards
What is a device driver?
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.
When do the passes in a bubble sort continue until?
The passes continue until no swaps are made and the data is sorted.
Pseudocode for an enqueue procedure
procedure enqueue(newItem)
if tailPointer == myQueue.length
print(“Queue is full”)
else
myQueue[tailPointer] = newItem
tailPointer = tailPointer + 1
endIf
endProcedure
Pseudocode for writing a line to a file?
myFile = openWrite(“sample.txt”)
myFile.writeLine(“Hello World”)
myFile.close()
What is encapsulation?
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.
What is BRA?
Branch always
What is BRP
Branch if the value is 0 or above
Why are protocols important?
So they interpret data/signals in the same way