What are 5 examples of a programming language?
Some Examples: Java, Python, Rust, C(#or++) Assembly, Ruby, Javascript
Used to convert from decimal to any other other notation. Uses / and remainders to find the value.
What is Repeated Division?
What is the difference between Analog and Digital Data?
Analog data: A continuous representation, similar to the actual information it represents.
Digital data: A discrete representation, breaking the information up into separate elements.
A gate that requires both values to be true/equal to 1.
What is an AND Gate?
Which would run faster: Python or Assembly and why?
Assembly because it is a low-level language and contains less data/work such as syntax, classes etc.
Who is the first Programmer?
Ada Lovelace
Used to Convert from any other notation into Decimal. Commonly seen using ^ or also known as a power value ending/starting with 0.
What is Positional Notation?
Add these two binary numbers: 10010+1111
Answer: 10 0001
Commonly used to represent text in America but is limited to only the english language.
What is ASCII?
Convert from Megabytes to kilobytes, and gigabytes: 150KB
kilobytes: 150000
gigabytes: 0.15
What invention replaced the Vacuum Tube?
The Transistor.
Convert to Decimal from Binary: 101011
Decimal: 43
What is the difference between a regular 8 bit value's range vs a 2's complement 8 bit value's range (aka not-signed vs signed)
Range for a non-signed 8 bit: 255 - 0
Range for signed bit: 127 - (-128)
Simplify the Following Boolean Algebra:(A*A')+C(B+D')+(AD)'
0 +CB+CD'+A'+D'
Reorder these components in terms of memory access speed (first is fastest, last is slowest): (A) RAM, (B) SSD, (C) CPU registers, (D) CPU cache
(Fastest)CPU Cache, CPU registers, RAM, SSD(slowest)
DCAB
Who helped solve the Enigma Code?
Alan Turing
Convert from Decimal to base 8: 263
Octal: 407
Subtract using 2's complement on the following 8-bit values: 58 - 36:
Answer: 22 or 0001 0110.
What are the three types of Encoding and what do they do? (Name at least 2)
Keyword: compresses certain/common words into symbols (such as @ ! &)
Run-length: compresses the same characters in a row that are at least 4 long (such as aaaa = *a4)
Huffman: converts characters into binary and have a letter assigned to a value (such as e = 101)
How many seconds will moving 45 megabytes take if the speed is 100 kilobytes/sec
450 seconds
What are the sections we use to model a computer
Convert from Hexadecimal to Binary: 2A4B
Binary: 0010 1010 0100 1011 or 10101001001011
How many values are stored in an 8-bit value?
256 different possible values.
Write the table of the input/outputs (you can use whatever letters you wish)
a | b | c | a*b| c' | x |
0 | 0 | 0 | 0 | 1 | 1 |
0 | 0 | 1 | 0 | 0 | 0 |
0 | 1 | 0 | 0 | 1 | 1 |
0 | 1 | 1 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 1 | 1 |
1 | 0 | 1 | 0 | 0 | 0 |
1 | 1 | 0 | 1 | 1 | 1 |
1 | 1 | 1 | 1 | 0 | 1 |
Folloing the Assembly below what will BX = ?
mov AX, 5
mov BX, 7
add AX, BX
mov CX, 3
sub AX, CX
add BX, AX
BX = 16