0% found this document useful (0 votes)
56 views7 pages

Class 4 Computer Midterm Solutions

The document provides solutions for Class 4 midterm computer papers for two groups, detailing answers to questions on algorithms, loops, software, and hardware. It includes multiple-choice, true/false, and descriptive questions with clear explanations and examples. Additionally, it offers resources for further teaching and practice materials.

Uploaded by

Salimshah Ayoubi
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)
56 views7 pages

Class 4 Computer Midterm Solutions

The document provides solutions for Class 4 midterm computer papers for two groups, detailing answers to questions on algorithms, loops, software, and hardware. It includes multiple-choice, true/false, and descriptive questions with clear explanations and examples. Additionally, it offers resources for further teaching and practice materials.

Uploaded by

Salimshah Ayoubi
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

Here are clear, correct, Class 4 level solutions for both Group A and Group B midterm computer papers:

---

🩶 GROUP A SOLUTIONS

SECTION A

Question 1.1 (Choose the correct option)

1. Which loop is called a nested loop?

✅ b: The smaller loop

2. Instructions can be presented in ____ ways.

✅ b: Two

3. Another name for a loop is:

✅ c: Iteration

4. Efficient algorithms are:

✅ d: a and b
---

Question 1.2 (True / False)

Statements True False

Count-controlled loops repeat forever. ✅

All algorithms are linear. ✅

Cooking instructions are an example of a linear algorithm. ✅

To correct means to make a program work. ✅

---

SECTION B

Question 2: Define linear algorithm and give example.

A linear algorithm is a set of steps that are followed in order, one after the other, without using loops.

Example: Making tea by adding water, tea, sugar, and boiling.

---

Question 3: Which algorithm is better efficient or inefficient and why?

Efficient algorithms are better because they solve problems quickly and with fewer steps, saving time
and computer memory.
---

Question 4: Difference between a count-controlled loop and forever loop.

Count-controlled loop: Repeats a specific number of times.

Forever loop: Repeats without stopping until the program ends or is stopped.

---

Question 5: Do we indent the codes in linear algorithms?

No, we do not indent in linear algorithms because steps are in order. We indent in loops to show which
part of the code is inside the loop.

---

Question 6: Define software and hardware with example.

Software: Instructions that tell the computer what to do. Example: MS Word.

Hardware: Physical parts of a computer. Example: Keyboard, mouse.


---

🩶 GROUP B SOLUTIONS

SECTION A

Question 1.1 (Choose the correct option)

1. Debug means:

✅ c: Both

2. Another name for forever loop is:

✅ b: Indefinite

3. Which loops are the most common?

✅ b: Count-controlled

4. Indefinite loops repeat:

✅ c: Forever

---
Question 1.2 (True / False)

Statements True False

When using loops we might indent the codes. ✅

Algorithm is a set of instructions. ✅

The bigger loop is called nested loop. ✅

Iteration is another name for a loop. ✅

---

SECTION B

Question 2: Why do programmers use loops?

Programmers use loops to repeat actions easily, reducing the need to write the same code many times,
making programs short and efficient.

---

Question 3: Define nested loops and inefficient algorithms.

Nested loops: A loop inside another loop, like when we need to repeat actions within repeated actions.

Inefficient algorithms: Algorithms that take more steps or time to solve a problem.
---

Question 4: What is a count-controlled loop, with example?

A count-controlled loop repeats for a specific number of times.

Example: Printing numbers from 1 to 5 using a loop.

---

Question 5: Which algorithm is easier to edit if an error occurs?

Linear algorithms are easier to edit and correct because the steps are simple and in order, unlike loops
which can be more complex.

---

Question 6: What is a computer, and name input/output devices.

A computer is an electronic machine that processes data.

Input devices: Keyboard, Mouse.

Output devices: Monitor, Printer.


---

If you need: ✅ Clean Word or printable PDF for these answers

✅ Oral test preparation based on these questions

✅ Class activities and homework questions from this paper for practice

let me know, and I will prepare them for your Class 4 computer teaching and checking needs.

You might also like