Computer Science and Problem Solving
- 47Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
How can Computer Science be understood as a toolbox?
It is a collection of ideas and techniques used to solve real-life problems.
Or swipe the card
47 cards
How can Computer Science be understood as a toolbox?
It is a collection of ideas and techniques used to solve real-life problems.
What are the basic stages of computer-based problem solving?
Give the computer an input, let it process the input, and receive an output.
In the problem-solving model, what does the input represent?
The problem to be solved.
In the problem-solving model, what does the output represent?
The goal or result we want.
How do Computer Science and DSA contribute to problem solving?
They provide ideas and techniques that can be applied to a problem to generate a result.
What electronic component is described as a fundamental part of a computer?
A transistor.
How many transistors does a computer typically contain, according to the lesson?
Billions.
What two states can a transistor have at a given time?
ON or OFF.
What does an ON transistor indicate?
Current is flowing through it.
What does an OFF transistor indicate?
Current is not flowing through it.
How are a transistor's electrical states represented as binary digits?
ON, with current, is represented by 1; OFF, with no current, is represented by 0.
What is a bit in the transistor-based explanation?
A bit represents the state of one transistor: whether current is present or absent.
Why are computers said to understand zeros and ones?
Their transistors have two electrical states, ON and OFF, which are represented by 1 and 0.
What happens to the number of possible states when one more transistor is added?
The number of possibilities doubles.
How does the coin-flip example illustrate binary possibilities?
One coin has 2 outcomes, two coins have 4, and three coins have 8.
What does the prefix “bi-” indicate in the term “binary”?
Two; binary numbers use the two digits 0 and 1.
When listing binary combinations in order, where should you begin checking the bulbs?
At the rightmost bulb.
When advancing to the next binary combination, what do you do if the rightmost bulb is OFF?
Turn it ON.
When advancing a binary count, what happens if the rightmost bulb is ON?
Turn it OFF and carry the change to the bulb on its left; continue left if needed until an OFF bulb can be turned ON.
What should you do when every bulb in a binary representation is ON?
Add a new bulb to the left to represent more values.
When adding a new bulb after reaching an all-ON combination, how is the next starting state formed?
Turn the existing ON bulbs OFF, then add a new ON bulb on the left.
What binary combination represents zero with one bulb?
0
What binary combination represents one with one bulb?
1
What binary combination represents decimal 2?
10
What binary combination represents decimal 3?
11
What binary combination represents decimal 4?
100
What binary combination represents decimal 5?
101
What binary combination represents decimal 6?
110
What binary combination represents decimal 7?
111
What binary combination represents decimal 8?
1000
What binary combination represents decimal 9?
1001
What binary combination represents decimal 10?
1010
What binary combination represents decimal 11?
1011
What binary combination represents decimal 12?
1100
What binary combination represents decimal 13?
1101
What binary combination represents decimal 14?
1110
What binary combination represents decimal 15?
1111
How many combinations can be represented using n bulbs or bits?
2n combinations.
What is the largest value representable with n bits?
2n−1.
What values can be represented with three bits?
Values from 0 through 7, giving 8 total combinations.
What values can be represented with four bits?
Values from 0 through 15, giving 16 total combinations.
Why does adding one bit increase the number of possible combinations?
It doubles the number of combinations because the new bit can be either 0 or 1.
What is a compiler?
A software program that converts the code you write into machine code.
What is machine code in the lesson's explanation?
Code represented using zeros and ones.
Why is machine code suitable for a computer to understand?
It uses 0 and 1, which correspond to the computer's transistors being OFF or ON.
Does a programmer need to manually convert every written program into zeros and ones?
No. The compiler performs the conversion into machine code.
What role does the compiler play between a programmer and the computer?
It translates the programmer's code into machine code that the computer can understand.

Ask anything
We've read this whole study set, so questions about it get the best answers.