1.
What is an algorithm?
A
A computer program
B
A flowchart
C
A step-by-step solution to a problem
D
A programming language
2.
Which error occurs due to wrong logic?
A
Syntax error
B
Logical error
C
Hardware error
D
Network error
3.
An error in the grammar or spelling rules of a programming language is called a:
A
Logical Error
B
Syntax Error
C
Runtime Error
D
Human Error
4.
Which of the following is an example of logical reasoning?
A
Guessing
B
Random selection
C
If-then decision making
D
Copying data
5.
Which principle helps in solving basic counting problems?
A
Logical fallacy
B
Counting principle
C
Flowchart principle
D
Debugging principle
6.
Which is a standard algorithm?
A
Bubble sort
B
Personal plan
C
Random guess
D
Trial and error
7.
Which is the final step of problem solving?
A
Understanding
B
Designing
C
Testing and evaluation
D
Abstraction
8.
What is a computing problem?
A
A problem that can be solved using a computer
B
A problem related only to hardware
C
A problem without any solution
D
A mathematical equation only
9.
What is the main purpose of performing a dry run on an algorithm?
A
To check the algorithm's logic for errors
B
To write the code in a programming language
C
To make the algorithm run faster
D
To hide the complex details
10.
What is the first and most important step in solving a computational problem?
A
Writing the code
B
Testing the algorithm
C
Designing the algorithm
D
Understanding and defining the problem
11.
Which concept improves program readability?
A
Errors
B
Modular design
C
Counting
D
Randomization
12.
Counting problems are mainly used to:
A
Store data
B
Calculate the number of possible outcomes
C
Design hardware
D
Write algorithms
13.
An error that causes the program to produce an incorrect result, but does not stop it from running, is called a:
A
Logical Error
B
Syntax Error
C
Runtime Error
D
Compilation Error
14.
A well-defined, step-by-step procedure to solve a specific problem is called:
A
A flowchart
B
A program
C
An algorithm
D
A dry run
15.
Which of the following is a standard searching algorithm that works efficiently on a sorted list?
A
Bubble Sort
B
Selection Sort
C
Binary Search
D
Linear Search
16.
Logical reasoning mainly deals with:
A
Facts and rules
B
Hardware
C
Memory
D
Storage devices
17.
What is an algorithm dry run?
A
Writing an algorithm
B
Executing algorithm step by step manually
C
Deleting algorithm
D
Compiling code
18.
Which topic focuses on identifying mistakes?
A
Abstraction
B
Errors
C
Counting principles
D
Modular design
19.
Algorithm dry run helps to:
A
Increase speed
B
Find logical errors
C
Decorate code
D
Store data
20.
What is the first step in solving a computational problem?
A
Writing code
B
Understanding the problem
C
Testing output
D
Debugging
21.
An error in an algorithm means:
A
Correct output
B
Unexpected or wrong result
C
Fast execution
D
Hardware failure
22.
Which approach focuses on solving a class of problems?
A
Specific solution
B
Generalized solution
C
Trial and error
D
Random solution
23.
Which concept hides implementation details?
A
Abstraction
B
Dry run
C
Error
D
Counting
24.
What is the process of hiding complex details and showing only the essential features of a problem?
A
Modular Design
B
Abstraction
C
Dry Run
D
Generalization
25.
Which of the following is NOT a step in algorithm design?
A
Understanding problem
B
Designing solution
C
Executing hardware
D
Testing
26.
Algorithms are independent of:
A
Problem
B
Programming language
C
Logic
D
Steps
27.
Debugging is the process of:
A
Creating errors
B
Removing errors
C
Ignoring errors
D
Copying programs
28.
Which tool is commonly used to represent algorithms?
A
Compiler
B
Flowchart
C
Database
D
Browser
29.
Which of the following is NOT a characteristic of an algorithm?
A
Finiteness
B
Clarity
C
Ambiguity
D
Effectiveness
30.
If a restaurant offers 4 types of main courses and 3 types of drinks, how many different meal combinations can be made?
31.
Which property ensures same output for same input?
A
Generality
B
Definiteness
C
Finiteness
D
Modularity
32.
Which of the following best describes computational thinking?
A
Thinking only about computers
B
Solving problems step by step logically
C
Writing long programs
D
Using calculators only
33.
Abstraction in computing means:
A
Adding extra details
B
Removing unnecessary details
C
Writing code
D
Testing software
34.
Which error prevents a program from running?
A
Logical error
B
Syntax error
C
Output error
D
Design error
35.
What is the process of hiding complex details and showing only the essential features called?
A
Modular Design
B
Abstraction
C
Dry Run
D
Logical Reasoning
36.
If a restaurant offers 3 types of bread and 4 types of fillings for a sandwich, how many different sandwiches can be made?
37.
Which feature helps reuse a solution for different inputs?
A
Hard coding
B
Generalization
C
Errors
D
Debugging
38.
What is the name of the process where you manually test an algorithm with sample data to check its logic?
A
Abstraction
B
Modular Design
C
Generalization
D
Dry Run
39.
The fundamental counting principle is used when:
A
Steps are independent
B
Steps are dependent
C
There is only one step
D
There is no solution
40.
Modular design refers to:
A
Designing a single large program
B
Dividing a problem into smaller modules
C
Ignoring problem parts
D
Hardware design
41.
Errors found during dry run are mostly:
A
Syntax errors
B
Logical errors
C
Hardware errors
D
Network errors
42.
Which of the following is NOT a characteristic of a good algorithm?
A
It must be finite and stop after some steps.
B
It must be clear and easy to understand.
C
It must be complex and difficult to follow.
D
It must be effective and doable.