Which of the following are not stored in binary in the computer?
Before the things we call computers were invented, the word computer
Which of these is not an encoding for colors?
In ASCII, characters are 8 bits, but the first bit is always 0. How many characters can be represented in ASCII?
Which of these is not a power of 2?
Which is a larger number, 0x111 or 0b111? (By larger, I mean greater in magnitude)
There are ___ bits in a byte
How many symbols are used in the binary number system?
0111 1010 0001 1110 0000 0010 is a
Which of these is not a likely problem with numbers in computers?
overflowand the result will be incorrect.
floatslike 0.1), you may get an incorrect result due to roundoff error.
Moore’s law says that “Microchips have their ___ every two years.“
The following truth table is for what operation?
| A | B | result |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
How many bytes are in a megabyte?
Which of these is biggest?
Which of these is smallest?
What is not a difference between memory (RAM) and storage (SSD/HDD)?
The ___ is made up of the ___ and the ___
___ are made of ___
The ___ the transistors the ___ the computer.
Consider a circuit with the following components:
If A and C are 1 and B is 0, what is the output of this circuit?
Which of the following is true?
What part of the following description of a computer program (written in a human-targeted pseudo-code, not in a programming language) is an example of variables?
How to take INFO 102:
Do the following every week:
1. Attend Monday lecture
2. If you have a Tuesday lab, attend lab
3. Attend Wednesday lecture
4. If you have a Wednesday or Thursday lab, attend lab
5. Do the homework
6. If this is a quiz week, take the quiz
Otherwise, attend Friday lecture
Do the following every semester:
If your already took INFO 102, do not take INFO 102
Otherwise, if your minor is Informatics, take INFO 102
Otherwise, if INFO 102 sounds interesting, take INFO 102
Otherwise, do not take INFO 102
how to xand the indented lines after that.
you/
your.
if/
otherwise.
do the following every xand the indented lines after that.
take INFO 102.
What part of the following description of a computer program (written in a human-targeted pseudo-code, not in a programming language) is an example of repetition?
How to take INFO 102:
Do the following every week:
1. Attend Monday lecture
2. If you have a Tuesday lab, attend lab
3. Attend Wednesday lecture
4. If you have a Wednesday or Thursday lab, attend lab
5. Do the homework
6. If this is a quiz week, take the quiz
Otherwise, attend Friday lecture
Do the following every semester:
If your already took INFO 102, do not take INFO 102
Otherwise, if your minor is Informatics, take INFO 102
Otherwise, if INFO 102 sounds interesting, take INFO 102
Otherwise, do not take INFO 102
how to xand the indented lines after that.
you/
your.
if/
otherwise.
do the following every xand the indented lines after that.
take INFO 102.
What part of the following description of a computer program (written in a human-targeted pseudo-code, not in a programming language) is an example of selection?
How to take INFO 102:
Do the following every week:
1. Attend Monday lecture
2. If you have a Tuesday lab, attend lab
3. Attend Wednesday lecture
4. If you have a Wednesday or Thursday lab, attend lab
5. Do the homework
6. If this is a quiz week, take the quiz
Otherwise, attend Friday lecture
Do the following every semester:
If your already took INFO 102, do not take INFO 102
Otherwise, if your minor is Informatics, take INFO 102
Otherwise, if INFO 102 sounds interesting, take INFO 102
Otherwise, do not take INFO 102
how to xand the indented lines after that.
you/
your.
if/
otherwise.
do the following every xand the indented lines after that.
take INFO 102.
What part of the following description of a computer program (written in a human-targeted pseudo-code, not in a programming language) is an example of function definition?
How to take INFO 102:
Do the following every week:
1. Attend Monday lecture
2. If you have a Tuesday lab, attend lab
3. Attend Wednesday lecture
4. If you have a Wednesday or Thursday lab, attend lab
5. Do the homework
6. If this is a quiz week, take the quiz
Otherwise, attend Friday lecture
Do the following every semester:
If your already took INFO 102, do not take INFO 102
Otherwise, if your minor is Informatics, take INFO 102
Otherwise, if INFO 102 sounds interesting, take INFO 102
Otherwise, do not take INFO 102
how to xand the indented lines after that.
you/
your.
if/
otherwise.
do the following every xand the indented lines after that.
take INFO 102.
What part of the following description of a computer program (written in a human-targeted pseudo-code, not in a programming language) is an example of function invocation?
How to take INFO 102:
Do the following every week:
1. Attend Monday lecture
2. If you have a Tuesday lab, attend lab
3. Attend Wednesday lecture
4. If you have a Wednesday or Thursday lab, attend lab
5. Do the homework
6. If this is a quiz week, take the quiz
Otherwise, attend Friday lecture
Do the following every semester:
If your already took INFO 102, do not take INFO 102
Otherwise, if your minor is Informatics, take INFO 102
Otherwise, if INFO 102 sounds interesting, take INFO 102
Otherwise, do not take INFO 102
how to xand the indented lines after that.
you/
your.
if/
otherwise.
do the following every xand the indented lines after that.
take INFO 102.
In response to a class question and on text we mentioned JSON, which is a computer language but not a programming language. JSON is not a programming language because
The C language is the only language we discussed in the lectures comparing programming languages that is not memory-managed. We noted that lacking memory management makes it
The C language is the only language we discussed in the lectures comparing programming languages that is compiled with no interpreter. We noted that being compiled makes its programs
Why is it wise to pick a popular programming language?
Which of the following is an example of the detail removal form of abstraction?
walkwithout describing how to walk.
Which of the following is an example of the generalization form of abstraction?
walkwithout describing how to walk.
Where does the name algorithm
come from?
alga, the same root as
algebraand
algae, meaning
to putrify, rot;in this case referring to how algorithms rot away the complexity of the problem until only the answer remains.
Which of the following best defines the word algorithm
?
Intractable
is a property of
Intractable
generally pairs with which runtime?
Which runtime suggests that only a few of the inputs are even looked at?
There is a famous, unsolved question of whether P = NP or P ≠ NP.
Much of modern computing is based on the assumption that
There is a famous, unsolved question of whether P = NP or P ≠ NP.
One way of framing this question is
If a software developer tells you that your problem is NP-complete or NP-hard, but you need it for your application, you should
no problem,you’re good to go.
not possible,your application can’t be done at all.
If a software developer tells you that your problem is Undecidable, but you need it for your application, you should
If I have a reduction from A to B, or equivalently if I say that A reduces to B, that means:
solve Bas a function call inside it
solve Aas a function call inside it
Convert this decimal number to binary: 137
Convert this decimal number to binary: 117
Convert this number into decimal: 0b100111
Convert this number into decimal: 0b11100
Convert this number into binary: 0xb0ba
Convert this number into binary: 0xdead
How many values can be represented by five bits?
How many values can be represented by seven bits?
Find C and D when A and B are 1 and 1
_____
A -+------| |
| | XOR |--------- C
B-----+---|_____|
| |
| | _____
| +---------| |
| _____ | |
| | | | AND |--- D
+-| NOT |----| |
|_____| |_____|
Find C when A and B are 0 and 0
_____
A -----| |
| AND |--+
B--+---|_____| |
| | _____
| +---| |
| _____ | |
| | | | OR |--- C
+-| NOT |--------| |
|_____| |_____|
How many gigabytes are there in a terabyte?
How many megabytes are in a petabyte?
Order from the fastest language to the slowest language:
Which of these languages are Turing Complete?
What are at least four factors you should consider when choosing a programming language?
What is an algorithm?
How do heuristics differ from other algorithms?
How does data differ from information?
What are some important characteristics that people should think about when choosing between different algorithms?
What is the definition of intractable?
What time complexity is always considered intractable?
Draw a graph that represents these 4 cities and the distances between them. The nodes should represent the cities. The edges should represent the distance between the cities.
| and Bloomington | and Peoria | and Springfield | |
|---|---|---|---|
| Between Urbana | 54 miles | 93 miles | 92 miles |
| Between Bloomington | 38 miles | 68 miles | |
| Between Peoria | 74 miles |
What is the time complexity of the Traveling Salesman problem?