Objective Questions
Objective Questions
A. ∨
1. Which of the following is the symbol for the AND logic gate?
B. ∧
D. ⊕
C. ¬
2. Which of the following logic gates produces an output of 1 only when both inputs
are 1?
A. OR
B. AND
C. NOT
D. XOR
3. What is the output of an OR gate when the inputs are 0 and 1?
A. 1
B. 0
C. Undefined
D. None of the above
4. Which of the following is true for the XOR gate?
A. It produces a 1 when both inputs are the same.
B. It produces a 1 when the inputs are different.
C. It always produces 0.
D. It never produces a 1.
5. What is the main purpose of an algorithm?
A. To create a flowchart
B. To organize data
C. To provide a set of steps for solving a problem
D. To store data
6. Which of the following flowchart symbols is used to represent a decision?
A. Rectangle
B. Parallelogram
C. Diamond
D. Circle
7. Which of these statements is the correct format of a basic algorithm?
A. Start → Input → Process → Output → End
B. Start → End → Input → Process → Output
C. Input → Start → Output → End
D. Process → End → Input → Output
8. Which of the following is a NOT a logical operation?
A. AND
B. OR
C. ADD
D. XOR
9. In a basic flowchart, which symbol is used to represent an action or process?
A. Parallelogram
B. Rectangle
C. Diamond
D. Oval
10. What does an algorithm primarily help a programmer to do?
A. Optimize the program code
B. Define a step-by-step solution to a problem
C. Test the program
D. Identify hardware requirements
✅ Theory Questions
1. Define a logic gate and explain the function of the AND gate with an example.
2. Draw the symbols for the following logic gates and explain their operation: AND,
OR, NOT.
3. What is a flowchart? Draw a flowchart that describes the process of checking if a
number is even or odd.
4. What is an algorithm? Write an algorithm to find the largest of three numbers.
5. Explain the differences between an AND gate and an OR gate in terms of their logic
operations.
6. Explain the following flowchart symbols and their uses: Rectangle, Diamond, and
Parallelogram.
7. Write an algorithm for finding the sum of the first 10 natural numbers.
Here are the answers to the Logic Gates, Flowchart, Algorithm, and Basic Computer
Concepts questions:
✅ Objective Questions
✅ B. ∧
1. Which of the following is the symbol for the AND logic gate?
2. Which of the following logic gates produces an output of 1 only when both inputs
are 1?
✅ B. AND
3. What is the output of an OR gate when the inputs are 0 and 1?
✅ A. 1
4. Which of the following is true for the XOR gate?
✅ B. It produces a 1 when the inputs are different.
5. What is the main purpose of an algorithm?
✅ C. To provide a set of steps for solving a problem
6. Which of the following flowchart symbols is used to represent a decision?
✅ C. Diamond
7. Which of these statements is the correct format of a basic algorithm?
✅ A. Start → Input → Process → Output → End
8. Which of the following is NOT a logical operation?
✅ C. ADD
9. In a basic flowchart, which symbol is used to represent an action or process?
✅ B. Rectangle
10. What does an algorithm primarily help a programmer to do?
✅ B. Define a step-by-step solution to a problem
✅ Theory Questions
1. Define a logic gate and explain the function of the AND gate with an example.
o Logic Gate: A logic gate is a basic electronic component that performs a logical
operation on one or more binary inputs to produce a single output.
o AND Gate: The AND gate produces an output of 1 only if all its inputs are 1.
Example: If the inputs are A = 1 and B = 1, then the output is 1. For A = 0 and B
= 1, the output is 0.
2. Draw the symbols for the following logic gates and explain their operation: AND,
OR, NOT.
o AND Gate:
Symbol: A flat-ended shape, where both inputs lead to the output.
Operation: The output is 1 only if all inputs are 1.
o OR Gate:
Symbol: A curved shape that points to the output.
Operation: The output is 1 if at least one of the inputs is 1.
o NOT Gate:
Symbol: A triangle with a circle at the output.
Operation: The output is the opposite of the input (inverts the signal).
3. What is a flowchart? Draw a flowchart that describes the process of checking if a
number is even or odd.
o Flowchart: A flowchart is a diagram that represents a process or algorithm, using
different symbols to depict the sequence of steps.
Flowchart for Checking Even or Odd Number:
Start → Input number → Is number mod 2 = 0? → Yes: Output
"Even" → End
→ No: Output "Odd" → End
4. What is an algorithm? Write an algorithm to find the largest of three numbers.
o Algorithm: An algorithm is a step-by-step procedure for solving a problem or
completing a task.
Algorithm to Find the Largest of Three Numbers:
1.Start
2.Input three numbers, A, B, and C
3.If A > B and A > C, then A is the largest
4.Else if B > A and B > C, then B is the largest
5.Else, C is the largest
6.Output the largest number
7.End
5. Explain the differences between an AND gate and an OR gate in terms of their logic
operations.
o AND Gate: The AND gate outputs 1 only if both inputs are 1.
Example: A = 1, B = 1 → Output = 1; A = 0, B = 1 → Output = 0.
o OR Gate: The OR gate outputs 1 if either input is 1.
Example: A = 1, B = 0 → Output = 1; A = 0, B = 0 → Output = 0.
6. Explain the following flowchart symbols and their uses: Rectangle, Diamond, and
Parallelogram.
o Rectangle: Used to represent a process or action step in the flowchart (e.g.,
calculations, assignments).
o Diamond: Used for decision-making, where the flow splits based on conditions
(e.g., Yes/No or True/False).
o Parallelogram: Represents input or output operations, such as taking user input
or displaying results.
7. Write an algorithm for finding the sum of the first 10 natural numbers.
Algorithm for Finding the Sum of the First 10 Natural Numbers:
1. Start
2. Initialize sum = 0
3. For i = 1 to 10, do:
Add i to sum
4. Output sum
5. End