Skip to main content

Coding Worksheet - GCSE - Intermediate

Coding worksheet for Key Stage 4 / GCSE (Ages 14-16). Intermediate level computing practice, aligned to the UK National Curriculum. Print-ready with answer key included.

ComputingKey Stage 4 / GCSE (Ages 14-16)Codingintermediate
0 views
0 downloads

Intermediate Coding Concepts

Key Stage 4 / GCSE (Ages 14-16) - Intermediate Level

Name:
Date:
Score:
/8

Instructions: This worksheet is designed to enhance your understanding of coding concepts relevant to the GCSE Computing curriculum. Each activity focuses on a different aspect of coding, from data representation to programming logic. Work through each activity carefully, ensuring you understand the underlying principles.

1

Binary and Hexadecimal Conversion

Convert the following numbers between binary, denary, and hexadecimal. Show all working clearly.

1. Convert 101101 (binary) to denary and hexadecimal.

2. Convert 45 (denary) to binary and hexadecimal.

3. Convert 2A (hexadecimal) to binary and denary.

2

Boolean Algebra Simplification

Simplify the following Boolean expressions using Boolean algebra rules. Show each step clearly.

1. A + AB

2. A(B + C) + AB

3. (A + B)(A + C)

3

Truth Tables

Complete the truth tables for the following logic expressions. Fill in the outputs for each combination of inputs.

ABCOutput
ABC0
00
A
BC00
1
AB

Expression: (A AND B) OR C

4

Python Programming: Selection

Write a Python program that takes an input number and prints 'Even' if the number is even and 'Odd' if the number is odd. Use if-else statements.

Write your Python code below:

5

Data Structures: Arrays

Consider the following array: [3, 5, 7, 9, 11]. Write a Python function to find the sum of all elements in the array.

Write your Python function below:

6

Algorithm Analysis

Analyse the following pseudocode and determine its time complexity. Explain your reasoning.

Pseudocode:

1. FOR i FROM 1 TO n

2. FOR j FROM 1 TO n

3. PRINT i, j

What is the time complexity?

7

File Handling in Python

Write a Python script that reads a text file and counts the number of words in it. Assume the file is named 'document.txt'.

Write your Python script below:

8

Extended Writing: The Role of Algorithms

Write a detailed essay discussing the importance of algorithms in computer science. Include examples of different types of algorithms and their applications.

Discuss the role of algorithms in computer science, providing examples of search and sort algorithms and their real-world applications. [12 marks]

Answer Key

Activity 1: 45 ; 2D ; 101010 ; 69

Activity 2: A ; A + B ; A + B

Activity 3: 0 ; 1 ; 0 ; 1 ; 0 ; 1 ; 1 ; 1

Activity 4: Code should check if number % 2 == 0

Activity 5: Sum = 35

Activity 6: O(n^2)

Activity 7: Code should open file, read lines, split words, count

Activity 8: Essay should cover algorithm importance, examples like binary search, bubble sort

Want a customised worksheet?

Create your own AI-generated worksheet tailored to your exact needs.