Midterm 1 Flashcards
What are the main components of a computer?
Memory: Main memory or RAM (volatile), secondary memory (non-volatile- examples are like flash memory and discs), cache memory (also volatile)
Processor (CPU): Arithmetic/logic circuits, timing/control circuits, registers, and cache memory
Input: keyboard, mouse, touchpad, cameras
Output units: printers, speakers
How do the different components of the computer communicate with one other.
Each component of a computer (memory, processor, input, and output) are connected through an interconnected network. A component that is missing could be internet connection if a computer wanted to access data from the internet
What is the smallest unit of memory?
A bit (or a binary digit)
A bit may be either a ________ or a _________
0, 1
What are the hardware devices that can store a bit called?
Also called bits
When you are writing a bit, you are overwriting it. Explain what this means.
When you overwrite a bit, it means the original bit that you have written, isn’t going to be there anymore. Meaning if you wrote a 1 before, and you write a 0 now, the new value of the bit is 0 and the 1 disappears.
True or False: The main memory of a computer system is where data information is kept.
True
Data can be many different types. Provide some examples:
Audio, visual, integer, character, float, etc.
Before you run a program (any program) where is it?
It will be located on the hard drive or disc
In order for any instruction of a program to execute, where does the instruction have to be? Where does the data for that instruction have to be?
In order for any instruction of a program to execute, the instruction as well as the data for that instruction should be in the computer’s memory.
Main memory is also referred to as what?
Random Access Memory or RAM
What happens when you shut down a machine? Explains what happens with the memory.
When you shut down a machine, due to memory technology, contents in the main memory disappear. We require power for certain machines, so not having the appropriate technology or power for your machine could result in the contents of the main memory disappearing
True or False: Processor gets information from input and output devices
True
To prevent overwriting and to retain the old bit, what must we do?
We must store the bit string as a new variable
What is an ordered sequence of 1 or more bits called?
A bit string
True or False: “10” and “01” are different bits strings.
True. It does NOT matter if the bit strings comprise of the same bits, the order matters. If they are in a different order, they are different bit strings
How do we store EVERYTHING as a bit string?
By encoding everything as a bit string. Encoding mean converting the meaning/value to a bit string that can be used to represent it
If given the bit string “01” and if you are asked what it represents, (not the value of a bit string) what should your answer be?
No idea. It is impossible to tell as it could have various meanings. More context must be provided
True or False: Memory is organize into a sequence or an array of words.
True
In the prior generation of hardware, a word was a string of 32 bits. How many bits is a word in this generation?
64 bits. However, there is no universal agreement on the definition or size of a word. Unless and otherwise stated, we will assume it is 64 bits.
A byte is ALWAYS defined as what?
A string of 8 bits. A byte is ALWAYS a string of 8 bits. This definition is universal
In this generation, a word would be how many bytes?
A word would be 8 bytes in this generation.
For unsigned binary numbers, how do we find the largest number that can be encoded for n number bits?
2^n-1
What is the smallest number that could be encoded for a bit string?
0