Computer Science and Problem Solving
- 38Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Which description best captures the content’s view of Computer Science?
Which description best captures the content’s view of Computer Science?
38 questions
- 1
Which description best captures the content’s view of Computer Science?
- A
A toolbox of ideas and techniques used to solve real-world problems
- B
A collection of computer parts used to store information
- C
A language that computers use to communicate with people
- D
A set of instructions for building electronic components
Correct answer
AA toolbox of ideas and techniques used to solve real-world problems
Explanation
Computer Science is described as a toolbox of ideas that people apply to solve real-life problems.
- A
- 2
In the problem-solving process described, what does the computer do after receiving an input?
- A
It processes the input using ideas and techniques, then produces an output
- B
It converts the input directly into a transistor without processing it
- C
It replaces the original problem with a different problem
- D
It stores the input unchanged and waits for a person to produce an output
Correct answer
AIt processes the input using ideas and techniques, then produces an output
Explanation
The described process is input, processing, and output: the computer acts on the input and produces a result.
- A
- 3
What does the input represent in the problem-solving model?
- A
The electrical state of the computer’s transistors
- B
The problem that is given to the computer
- C
The ideas the computer uses during processing
- D
The result that the computer produces
Correct answer
BThe problem that is given to the computer
Explanation
The content identifies the input as the problem provided to the computer.
- A
- 4
What does the output represent in the problem-solving model?
- A
The original problem before processing
- B
The goal or result that is wanted
- C
The collection of techniques used during processing
- D
The computer’s supply of electrical current
Correct answer
BThe goal or result that is wanted
Explanation
The output is the goal or result produced after processing.
- A
- 5
Which sequence best describes problem solving as presented?
- A
Start with computer hardware, generate an input, and avoid processing it
- B
Start with a problem, apply relevant ideas and techniques, and generate a result
- C
Start with a result, remove relevant ideas, and then identify a problem
- D
Start with a technique, treat it as the output, and discard the problem
Correct answer
BStart with a problem, apply relevant ideas and techniques, and generate a result
Explanation
Problem solving involves taking a problem, applying Computer Science and DSA ideas or techniques, and generating an output.
- A
- 6
What electronic component is identified as the basic component inside a computer?
- A
A binary digit
- B
A compiler
- C
A transistor
- D
A bulb
Correct answer
CA transistor
Explanation
The content identifies the transistor as an electronic component found in computers.
- A
- 7
What role does electrical current play in the description of a computer’s transistors?
- A
Current flowing through the transistors prevents the computer from processing input
- B
Current flowing through the transistors turns every bit into a compiler
- C
Current flowing through the transistors enables the computer to run
- D
Current flowing through the transistors makes each transistor have more than two states
Correct answer
CCurrent flowing through the transistors enables the computer to run
Explanation
The content explains that current flows through the computer’s transistors and enables the computer to run.
- A
- 8
What are the two possible states of a transistor in the model described?
- A
English and machine code
- B
Input and output
- C
Charged and compiled
- D
ON and OFF
Correct answer
DON and OFF
Explanation
A transistor is presented as having two states: ON or OFF.
- A
- 9
In the switch analogy, what does an ON transistor indicate?
- A
Current is allowed to pass
- B
Current is prevented from passing
- C
The transistor is translating human language
- D
The computer has produced its final output
Correct answer
ACurrent is allowed to pass
Explanation
Like an ON switch, an ON transistor lets current pass.
- A
- 10
How does the content represent a transistor with current flowing through it?
- A
With the word “output”
- B
With the word “input”
- C
With 0
- D
With 1
Correct answer
DWith 1
Explanation
The content uses 1 for the state in which current is present in a transistor.
- A
- 11
What does a bit represent in the explanation?
- A
The problem entered into a computer
- B
The result produced by a compiler
- C
Whether there is current in one transistor
- D
The number of transistors in the entire computer
Correct answer
CWhether there is current in one transistor
Explanation
A bit represents the state of one transistor: whether current is present or absent.
- A
- 12
Why does the content say computers understand zeros and ones?
- A
Their compilers prevent transistors from switching between states
- B
Computers translate every input into English before processing it
- C
Their transistors can store only the decimal numbers 0 and 1
- D
Their transistors have two states, which are represented by 0 and 1
Correct answer
DTheir transistors have two states, which are represented by 0 and 1
Explanation
A transistor is either ON or OFF, corresponding to current being present or absent; these states are represented by 1 and 0.
- A
- 13
If an OFF transistor is represented by 0 and an ON transistor by 1, what does the pattern 10 indicate?
- A
The left transistor is ON and the right transistor is OFF
- B
Both transistors are OFF
- C
Both transistors are ON
- D
The left transistor is OFF and the right transistor is ON
Correct answer
AThe left transistor is ON and the right transistor is OFF
Explanation
Each digit records one transistor’s state: the left digit 1 indicates ON, and the right digit 0 indicates OFF.
- A
- 14
Why can adding a transistor increase the number of possible patterns?
- A
The new transistor changes every existing OFF state into an ON state
- B
The new transistor allows the computer to use additional decimal digits
- C
The new transistor can independently be ON or OFF, doubling the combinations
- D
The new transistor converts the existing pattern directly into machine code
Correct answer
CThe new transistor can independently be ON or OFF, doubling the combinations
Explanation
Each transistor has two possible states. Adding one therefore doubles the number of possible state combinations.
- A
- 15
How many possible ON/OFF patterns can three transistors form?
- A
Three
- B
Six
- C
Eight
- D
Seven
Correct answer
CEight
Explanation
Each of the three transistors has two possible states, giving 23=8 patterns.
- A
- 16
What point does the coin analogy illustrate?
- A
Each added coin increases the number of combinations by exactly one
- B
Coins and transistors both have only one possible state at a time
- C
Each added two-sided item doubles the number of possible combinations
- D
Two coins can represent only the outcomes of one coin
Correct answer
CEach added two-sided item doubles the number of possible combinations
Explanation
One coin has two outcomes, two coins have four combinations, and three coins have eight; the number of combinations doubles with each added item.
- A
- 17
Why are combinations of 0 and 1 called binary?
- A
“Binary” means that each transistor has two different inputs
- B
“Binary” means that each combination contains exactly two digits
- C
“Bi” means computer, and the combinations are understood by computers
- D
“Bi” means two, and the combinations use two digits
Correct answer
D“Bi” means two, and the combinations use two digits
Explanation
The content explains that “bi” means two and that binary numbers use the two digits 0 and 1.
- A
- 18
In the bulb analogy, what does a glowing bulb represent?
- A
A compiler that has processed a program
- B
A computer that has received an output
- C
A transistor with no current, represented by 0
- D
A transistor with current present, represented by 1
Correct answer
DA transistor with current present, represented by 1
Explanation
A glowing bulb represents current being present, so its state is represented by 1.
- A
- 19
A computer needs to represent more values than a single transistor can distinguish. According to the content, what is the basic way to increase the number of representable patterns?
- A
Give the existing transistor a third state
- B
Turn off the computer’s current supply
- C
Add more transistors and combine their ON/OFF states
- D
Replace the binary digits with English letters
Correct answer
CAdd more transistors and combine their ON/OFF states
Explanation
A single transistor has two possibilities, so the content explains that more transistors are added to create more combinations.
- A
- 20
When counting upward through binary patterns, what should happen if the rightmost bit is 0?
- A
Change it to 1 and also reset every bit to its left
- B
Add a new bit on the left immediately
- C
Change it to 1
- D
Change it to 0 again and stop
Correct answer
CChange it to 1
Explanation
The counting rule starts at the rightmost bit and changes it from 0 to 1 to form the next pattern.
- A
- 21
When counting upward, what should happen if the rightmost bit is already 1?
- A
Change it to 0 and stop counting
- B
Change it to 0 and carry the change to the bit on its left
- C
Add a new bit to its right and leave it unchanged
- D
Leave it as 1 and change the bit on its right
Correct answer
BChange it to 0 and carry the change to the bit on its left
Explanation
A rightmost 1 is changed to 0, and the increment carries to the bit on its left.
- A
- 22
When an increment carries left across several consecutive 1s, what happens?
- A
Every bit becomes 1, regardless of its previous state
- B
The rightmost bit is removed, and the remaining bits stay unchanged
- C
Each carried-over 1 stays unchanged, and the first 0 to the left becomes 0
- D
Each carried-over 1 becomes 0, and the first 0 to the left becomes 1
Correct answer
DEach carried-over 1 becomes 0, and the first 0 to the left becomes 1
Explanation
The counting procedure turns consecutive rightmost 1s into 0s as the carry moves left, then turns the first 0 into 1.
- A
- 23
What should happen after all the available bits are 1 and another value must be represented?
- A
Remove the leftmost bit to make room for a new value
- B
Add a new bit on the left to create additional patterns
- C
Reuse the all-1s pattern for another value
- D
Add a new bit on the right and keep all existing bits unchanged
Correct answer
BAdd a new bit on the left to create additional patterns
Explanation
When every available bit is ON, all patterns at that width have been used; the content says to add another transistor on the left.
- A
- 24
What decimal value does the two-bit pattern 102 represent in the examples?
- A
3
- B
1
- C
2
- D
4
Correct answer
C2
Explanation
The content identifies the pattern 10 as the representation for 2.
- A
- 25
What decimal value does the two-bit pattern 112 represent?
- A
3
- B
4
- C
1
- D
2
Correct answer
A3
Explanation
After 102 represents 2, the next pattern 112 represents 3.
- A
- 26
Which statement correctly matches three-bit patterns to the values shown in the content?
- A
1002 represents 3, and 1112 represents 6
- B
1002 represents 4, and 1112 represents 7
- C
1002 represents 4, and 1112 represents 8
- D
1002 represents 5, and 1112 represents 8
Correct answer
B1002 represents 4, and 1112 represents 7
Explanation
The three-bit sequence begins with 1002=4 and ends with 1112=7.
- A
- 27
Which statement correctly matches the three-bit patterns 1012 and 1102 to their values?
- A
1012 represents 4, and 1102 represents 7
- B
1012 represents 7, and 1102 represents 4
- C
1012 represents 6, and 1102 represents 5
- D
1012 represents 5, and 1102 represents 6
Correct answer
D1012 represents 5, and 1102 represents 6
Explanation
The sequence shown assigns 5 to 1012 and 6 to 1102.
- A
- 28
Which pair correctly matches the four-bit patterns for 8 and 9?
- A
10002 represents 7, and 10012 represents 10
- B
10002 represents 8, and 10012 represents 9
- C
10002 represents 9, and 10012 represents 8
- D
10002 represents 8, and 10012 represents 10
Correct answer
B10002 represents 8, and 10012 represents 9
Explanation
The content begins its four-bit examples with 10002=8, followed by 10012=9.
- A
- 29
Which pair correctly matches the four-bit patterns for 10 and 11?
- A
10102 represents 11, and 10112 represents 10
- B
10102 represents 10, and 10112 represents 12
- C
10102 represents 10, and 10112 represents 11
- D
10102 represents 9, and 10112 represents 12
Correct answer
C10102 represents 10, and 10112 represents 11
Explanation
The examples identify 10102 as 10 and the next pattern, 10112, as 11.
- A
- 30
Which pair correctly matches the four-bit patterns for 12 and 13?
- A
11002 represents 12, and 11012 represents 14
- B
11002 represents 12, and 11012 represents 13
- C
11002 represents 13, and 11012 represents 12
- D
11002 represents 11, and 11012 represents 14
Correct answer
B11002 represents 12, and 11012 represents 13
Explanation
The four-bit sequence assigns 12 to 11002 and 13 to 11012.
- A
- 31
Which pair correctly matches the four-bit patterns for 14 and 15?
- A
11102 represents 15, and 11112 represents 14
- B
11102 represents 14, and 11112 represents 15
- C
11102 represents 14, and 11112 represents 16
- D
11102 represents 13, and 11112 represents 16
Correct answer
B11102 represents 14, and 11112 represents 15
Explanation
The final two four-bit patterns shown are 11102=14 and 11112=15.
- A
- 32
What is the greatest value representable with n bits in the counting scheme described?
- A
n2−1
- B
2n−1
- C
2n−1
- D
2n
Correct answer
B2n−1
Explanation
There are 2n possible patterns, starting at 0, so the greatest value is 2n−1.
- A
- 33
How many distinct patterns can four bits form, and what is the greatest value in the sequence that starts at 0?
- A
16 patterns, with a greatest value of 15
- B
16 patterns, with a greatest value of 16
- C
15 patterns, with a greatest value of 16
- D
8 patterns, with a greatest value of 7
Correct answer
A16 patterns, with a greatest value of 15
Explanation
Four bits form 24=16 patterns. Counting from 0 through 15 uses all sixteen patterns, making 15 the greatest value.
- A
- 34
What does the compiler do in the coding process described?
- A
It manually switches every transistor between ON and OFF
- B
It converts machine code into electrical current without using transistors
- C
It generates the problem that the code is meant to solve
- D
It converts the code a person writes into machine code
Correct answer
DIt converts the code a person writes into machine code
Explanation
A compiler is described as software that converts the code a person writes into machine code.
- A
- 35
What is machine code in the explanation?
- A
The set of bulbs used to demonstrate electrical states
- B
The collection of Computer Science ideas used to solve problems
- C
The human-readable problem supplied as input
- D
The code represented with zeros and ones that the computer understands
Correct answer
DThe code represented with zeros and ones that the computer understands
Explanation
The content calls the zeros-and-ones representation machine code, which the computer understands.
- A
- 36
According to the content, does a person writing code need to manually convert it into zeros and ones?
- A
No; code is processed without ever being converted into machine code
- B
Yes; every programmer must switch each transistor by hand
- C
No; the computer’s software process handles the conversion automatically
- D
Yes; the programmer must rewrite every line using only the digits 0 and 1
Correct answer
CNo; the computer’s software process handles the conversion automatically
Explanation
The content says programmers do not need to worry about converting their code to zeros and ones because the conversion happens automatically.
- A
- 37
Which relationship between code, a compiler, and machine code is correct?
- A
Machine code translates itself into the person’s code before compilation
- B
The person’s code and machine code are described as unrelated forms
- C
The compiler turns machine code into the original problem input
- D
The compiler translates the code a person writes into machine code
Correct answer
DThe compiler translates the code a person writes into machine code
Explanation
The compiler is the software program that converts the written code into machine code.
- A
- 38
Why is machine code suitable for the computer described in the content?
- A
It avoids representing electrical states inside the computer
- B
It gives each transistor a different decimal value
- C
It uses the zeros and ones that correspond to the transistors’ two states
- D
It uses English and Hindi, which the computer understands directly
Correct answer
CIt uses the zeros and ones that correspond to the transistors’ two states
Explanation
Machine code uses 0 and 1, corresponding to the OFF and ON states represented by the computer’s transistors.
- A

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