0% found this document useful (0 votes)
21 views5 pages

Grade 8 Comp

The document contains a review with multiple choice questions, matching questions, true or false statements, definitions, and practical questions related to pseudocode and algorithms. It assesses knowledge on topics such as searching algorithms, conditional statements, and data types. The review is structured to evaluate understanding through various question formats.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views5 pages

Grade 8 Comp

The document contains a review with multiple choice questions, matching questions, true or false statements, definitions, and practical questions related to pseudocode and algorithms. It assesses knowledge on topics such as searching algorithms, conditional statements, and data types. The review is structured to evaluate understanding through various question formats.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

REVIEW

1. Multiple Choice Questions (10)

(Choose the correct answer)

1. What is pseudocode?
a) A real programming language
b) A set of symbols used in coding
c) A way to write algorithms using simple English-like statements
d) A type of encryption

2. Which keyword is used in pseudocode for decision-making?


a) LOOP
b) IF
c) PRINT
d) DECLARE

3. Which of the following is a searching algorithm?


a) Bubble Sort
b) Binary Search
c) Merge Sort
d) Repeat Loop

4. What does an IF-ELSE statement do in pseudocode?


a) Loops continuously
b) Checks a condition and executes different actions
c) Defines a function
d) Outputs text on the screen

5. In a linear search algorithm, how does the program find a number in a list?
a) By dividing the list into two halves
b) By searching each element one by one
c) By sorting the list first
d) By skipping elements

Felix P M feb/Mar F/MT 2025


6. Which of the following is a conditional statement?
a) IF-THEN
b) WHILE
c) FOR
d) PRINT

7. What is the correct way to declare a variable in pseudocode?


a) var name = "John"
b) DECLARE name AS STRING
c) LET name = "John"
d) INPUT name

8. What is a characteristic of binary search?


a) It only works on sorted lists
b) It searches randomly
c) It always starts from the last element
d) It checks every element

9. What type of data is "Hello World"?


a) Integer
b) Boolean
c) String
d) Float

10. In text-based programming, which data type holds only true or false values?
a) Integer
b) Boolean
c) String
d) Float

2. Matching Questions (10)

Match the term in Column A with the correct definition in Column B. write your answer in
the blanks

Column A Column B

______1 Pseudocode A. A method for making decisions in programming

______2 Linear Search B. Finds an item by checking each element in order


Felix P M feb/Mar F/MT 2025
Column A Column B

______3 Binary Search C. A structured way of writing an algorithm

______4 IF-ELSE D. A data type storing whole numbers

______5 Boolean E. Divides a sorted list in half repeatedly to search

______6 Variable F. A data type with values "true" or "false"

______7 String G. A placeholder for storing values in a program

______8 Algorithm H. A step-by-step set of instructions

______9 Conditional Statement I. A way to write logic-based decisions

______10Data J. Information that can be stored and processed

3. True or False (10)

1. Pseudocode is written using the exact syntax of a programming language. (True, False)

2. A binary search is more efficient than a linear search on a sorted list. (True, False)

3. An IF-ELSE statement allows multiple choices in decision-making. (True, False)

4. Pseudocode must be written in Java or Python syntax. (True, False)

5. A variable is used to store values in a program. (True, false)

6. A Boolean variable can only hold "true" or "false". (True, False)

7. A linear search checks every item in the list one by one. (True, False)

8. The binary search works on both sorted and unsorted lists. (True, False)

9. Data types in programming help define what kind of values a variable can hold. (True, False)

10. A conditional statement is used for repeating loops. (True, False)

4. Define the Following Terms [10]

Felix P M feb/Mar F/MT 2025


1. Pseudocode
_________________________________________________________________________
_________________________________________________________________________

2. Selection in Pseudocode
_________________________________________________________________________
_________________________________________________________________________

3. Searching Algorithm
_________________________________________________________________________
_________________________________________________________________________

4. Binary Search
_________________________________________________________________________
_________________________________________________________________________

5. Linear Search
_________________________________________________________________________
_________________________________________________________________________

6. Conditional Statement
_________________________________________________________________________
_________________________________________________________________________

7. Boolean Data Type


_________________________________________________________________________
_________________________________________________________________________

8. Algorithm
_________________________________________________________________________
_________________________________________________________________________

9. Variable
_________________________________________________________________________
_________________________________________________________________________

10. Data in Programming


_________________________________________________________________________
_________________________________________________________________________

Felix P M feb/Mar F/MT 2025


5. Practical Questions [10].

Answer any two questions from the following. Put your answers behind on the attached
papers.

1. Write a pseudocode to check if a number is positive, negative, or zero.

2. Create a simple pseudocode to find the largest of three numbers using IF statements.

3. Write a Python program using an IF-ELSE statement that checks if a number is even or
odd.

4. Write a pseudocode to store a user's name and age, then print "You are an adult" if the age
is 18 or above.

Felix P M feb/Mar F/MT 2025

You might also like