computer MCQs

9th • Chapter 07

50 Questions TextBook
1

Which of the following best describes computational thinking?

A
A problem-solving approach that employs systematic, algorithmic, and logical thinking.
B
A method of solving problems using mathematical calculations only.
C
A technique used exclusively in computer programming.
D
An approach that ignores real-world applications.
2

What is decomposition in computational thinking?

A
It simplifies problems by breaking them down into smaller, more manageable parts.
B
It complicates problems by adding more details.
C
It eliminates the need for solving the problem.
D
It is only useful for simple problems.
3

What does pattern recognition involve?

A
Finding and using similarities within problems.
B
Ignoring repetitive elements.
C
Breaking problems into smaller pieces.
D
Writing algorithms.
4

Which term refers to the process of ignoring irrelevant details to focus on the main idea?

A
Abstraction
B
Decomposition
C
Pattern recognition
D
Algorithm design
5

What is a fundamental principle of computational thinking?

A
Problem simplification
B
Ignoring problem understanding
C
Avoiding solution design
D
Implementing random solutions
6

What is an algorithm?

A
Step-by-step instructions for solving a problem.
B
Graphical representations.
C
Lists of data.
D
Repetitive patterns.
7

According to computational thinking, what is the first step in problem-solving?

A
Understanding the problem
B
Writing the solution
C
Designing a flowchart
D
Selecting a solution
8

What are flowcharts used for?

A
Representing algorithms graphically.
B
Coding a program.
C
Solving mathematical equations.
D
Identifying patterns.
9

What is pseudocode?

A
A high-level description of an algorithm using plain language.
B
A type of flowchart.
C
A programming language.
D
A debugging tool.
10

What does dry running a flowchart involve?

A
Testing the flowchart with sample data manually.
B
Writing the code in a programming language.
C
Converting the flowchart into pseudocode.
D
Ignoring the flowchart details.
11

Which of these is a key component of computational thinking?

A
Decomposition
B
Compilation
C
Execution
D
Integration
12

An algorithm is similar to what everyday example?

A
Following a recipe to bake a cake
B
Watching a movie
C
Reading a novel
D
Listening to music
13

What does LARP stand for?

A
Logic of Algorithms for Resolution of Problems
B
Logic and Resolution Programming
C
Logical Algorithm Resolution Practice
D
Language for Algorithm Resolution
14

What type of error occurs if you try to perform an impossible operation, such as dividing by zero?

A
Runtime Error
B
Syntax Error
C
Logical Error
D
Compilation Error
15

What is the primary purpose of abstraction?

A
To simplify complex problems by focusing on essential details.
B
To make a problem more complex.
C
To create a visual representation of the problem.
D
To find every possible error.
16

In a flowchart, what symbol is used to represent a decision point?

A
Diamond
B
Rectangle
C
Oval
D
Parallelogram
17

What does the rectangle symbol in a flowchart represent?

A
A process, task, or operation
B
The start or end of a process
C
A decision point
D
Data input or output
18

What does a parallelogram symbol in a flowchart represent?

A
Data input or output
B
A process or task
C
A decision point
D
The start or end
19

What is the main goal of debugging?

A
To find and fix errors in an algorithm or flowchart
B
To write an algorithm from scratch
C
To simplify a complex problem
D
To execute the code faster
20

Time complexity is a measure of what?

A
How fast or slow an algorithm performs as input size increases
B
The amount of memory an algorithm uses
C
The number of symbols in a flowchart
D
The clarity of pseudocode
21

What does space complexity measure?

A
The amount of memory an algorithm uses relative to input size
B
The time an algorithm takes to run
C
The number of steps in an algorithm
D
The number of errors in the code
22

A manual walk-through of an algorithm with sample data is called a?

A
Dry run
B
Simulation
C
Execution
D
Compilation
23

Using computer programs to model a real-world process is known as?

A
Simulation
B
Decomposition
C
Abstraction
D
Dry run
24

Which error is the hardest to find because the algorithm runs but produces incorrect results?

A
Logical Error
B
Syntax Error
C
Runtime Error
D
System Error
25

What is the first standardized flowchart symbols' development year?

A
1947
B
1957
C
1967
D
1977
26

The term 'debugging' originated from what?

A
An actual bug (a moth) found in an early computer
B
A software tool named 'Debugger'
C
A famous computer scientist named Deb Ug
D
A book about computer errors
27

What does the Oval symbol in a flowchart represent?

A
The start or end of a process
B
A decision
C
Input/Output
D
A process
28

Which of the following helps in understanding the logic of an algorithm without worrying about specific syntax?

A
Pseudocode
B
Flowchart
C
Compiler
D
Debugger
29

Breaking down the task of 'building a birdhouse' into smaller tasks is an example of what?

A
Decomposition
B
Pattern Recognition
C
Abstraction
D
Simulation
30

Identifying that the area of any square is the side length multiplied by itself is an example of?

A
Pattern Recognition
B
Decomposition
C
Abstraction
D
Debugging
31

Hiding complex details to focus on high-level steps, like in a recipe for tea, is an example of?

A
Abstraction
B
Algorithm
C
Pattern Recognition
D
Decomposition
32

What is the purpose of an 'IF...THEN...ELSE' statement in an algorithm?

A
To handle decision-making processes
B
To repeat a set of instructions
C
To read input from a user
D
To display output
33

In the LARP software, what does an 'Undefined Variable' error message indicate?

A
You are using a variable that hasn't been defined yet
B
You forgot to include an important step
C
You are trying to perform an invalid operation
D
There is a logical mistake in your algorithm
34

Big O notation, like O(n²), is used to express what?

A
Time complexity
B
Space complexity
C
The number of variables
D
The algorithm's accuracy
35

The login system flowchart in the book locks the account after how many failed attempts?

A
Five
B
Three
C
Four
D
Six
36

In the shop order flowchart, what is the first decision made after getting an order?

A
If the item is available
B
If the customer pays
C
If the customer rating is high
D
If the item can be packed
37

A prime number is a natural number greater than 1 that has no positive divisors other than...?

A
1 and itself
B
1 and 2
C
Only 2
D
Any even number
38

The pseudocode to check if a number is even uses what mathematical operator?

A
Modulo (%)
B
Addition (+)
C
Division (/)
D
Multiplication (*)
39

What is a key benefit of simulation?

A
It allows testing in a safe environment without real-world risk
B
It always gives a perfectly accurate result
C
It is faster than any other method
D
It requires no input data
40

Which of these is NOT a debugging technique mentioned in the text?

A
Consulting a colleague
B
Trace the Steps
C
Use Comments
D
Simplify the Problem
41

In the context of problem-solving, what did Albert Einstein suggest spending most of the time on?

A
Thinking about the problem
B
Thinking about the solutions
C
Writing the code
D
Testing the final product
42

Flowcharts and pseudocode are both tools used to do what?

A
Describe algorithms
B
Write executable code
C
Compile programs
D
Debug hardware
43

In the pseudocode example for checking credentials, what is the first thing the procedure checks?

A
if the username is valid
B
if the password is valid
C
if the user exists
D
if the system is online
44

What is the primary function of the arrows (Flowlines) in a flowchart?

A
To show the direction of flow and connect symbols
B
To represent calculations
C
To indicate the start
D
To store data
45

Which principle involves evaluating different approaches and selecting the most efficient one?

A
Solution Selection and Design
B
Problem Understanding
C
Problem Simplification
D
Decomposition
46

Meteorologists using computer models to predict weather is an example of what?

A
Simulation
B
Dry run
C
Abstraction
D
Decomposition
47

When drawing flowcharts in LARP, what do diamonds represent?

A
Decisions
B
Processes
C
Input/Output
D
Start/End
48

Which is a benefit of using pseudocode for planning?

A
It helps in understanding the logic without worrying about syntax.
B
It can be executed directly by the computer.
C
It provides a visual map of the process.
D
It automatically finds all logical errors.
49

The first step in dry running the flowchart for adding two numbers is?

A
Start
B
Input the first number
C
Add the two numbers
D
Display Sum
50

What is the output of the 'FindMax' pseudocode if the inputs are num1=10 and num2=15?

A
15
B
10
C
False
D
Error