Introduction to Programming and Computer Science

General
General
4 questions
~8 mins
0 views0 downloads

About This Worksheet

A medium difficulty Computer Science worksheet on programming for grade 7 students. Includes questions on Multiple Choice Questions, Fill in the Blanks, Matching Questions.

Worksheet Preview

Full preview • 4 questions

Introduction to Programming and Computer Science

Subject: GeneralGrade: General
Name:
Date:

Introduction to Programming and Computer Science

Instructions: Answer all questions carefully. Read each question thoroughly and choose or write your answers in the space provided. Use your coding skills where required and think logically for algorithm and debugging questions. You have 30 minutes to complete this worksheet.
A

Multiple Choice Questions

Select the best answer for each question.
1.
Which part of the computer is responsible for processing instructions?
[2 marks]
AHard Drive
BRAM
CGraphics Card
DCPU
2.
What does an algorithm provide in programming?
[2 marks]
AA random set of steps
BA step-by-step instruction
CA visual diagram
DA hardware component
3.
Which language is commonly used for web development?
[2 marks]
APython
BC++
CJavaScript
DJava
4.
In programming, what is a variable?
[2 marks]
AA fixed value
BA mathematical operation
CA type of function
DA container to store data
B

Fill in the Blanks

Complete the sentences with the correct words.
1.
The CPU is also known as the ____ of the computer.
[2 marks]
2.
A ____ is a sequence of instructions to perform a specific task.
[2 marks]
3.
In programming, ____ is used to repeat actions multiple times.
[2 marks]
4.
A ____ is used to store data temporarily during program execution.
[2 marks]
C

Matching Questions

Match each computer part to its function.
1.
Match the computer part to its function.
[3 marks]
1. CPU
2. RAM
3. Hard Drive
AA
BB
CC
D

Short Answer Questions

Answer the following questions briefly.
1.
What is an algorithm?
[2 marks]
2.
Name one programming language used for data analysis.
[2 marks]
3.
Why are debugging skills important in programming?
[2 marks]
4.
What does the 'print' function do in Python?
[2 marks]
E

Algorithm Tracing

Trace the given algorithm and determine the output.
1.
Trace the following algorithm and state the output: x = 5; x = x * 2; print(x)
[2 marks]
2.
Trace the algorithm: total = 0; for i in range(3): total += i; print(total)
[2 marks]
F

Coding Exercises

Write or analyze code snippets.
1.
Write a Python function to add two numbers.
[4 marks]
2.
Write a Python program to check if a number is even.
[4 marks]
G

Pseudocode Writing

Write pseudocode for the given task.
1.
Write pseudocode to find the largest number in a list.
[3 marks]
H

Debugging Code

Identify and fix errors in the code.
1.
The following code has a bug. Explain and fix it: for i in range(5) print(i)
[3 marks]
2.
Identify the error: total = 0; for i in range(5): print i
[3 marks]

Quick Actions

What is Remix?

Create a new worksheet based on this one. Change the grade level, topic, number of questions, or difficulty - then generate a fresh version.

  • • Change grade level (Grade 6 → Grade 7)
  • • Swap topics (Harry Potter → Macbeth)
  • • Add more questions (10 → 15)
  • • Adjust difficulty

Details

Created
10/5/2025
Updated
12/29/2025
Type
worksheet