CS - Induction Tasks
CS - Induction Tasks
24/25
Table of Contents
Q1.............................................................................................................5
Q2.............................................................................................................5
Q4.............................................................................................................6
Section 4 – Programming............................................................7
Programming Basics.................................................................................7
Programming Questions...........................................................................8
Q1.............................................................................................................8
Q2.............................................................................................................9
Q3...........................................................................................................10
Q4...........................................................................................................11
1
Section 1 – Research Tasks
Create a presentation that can be viewed by other students in the group. Your
presentation should include clear definitions with examples to explain the
concept clearly.
Compilation vs interpretation
2
Section 2 – Key terms
Control Unit
Register
Busses
Von Neuman
Architecture
Optical Storage
Operating System
3
Intermediate Code
Device Driver
Compiler
Assembly Language
Machine Code
Lossy Compression
Hashing
Normalisation
TCP/IP Stack
Packet Switching
ASCII
Problem
Decomposition
4
Sections 3 - Algorithms: from theory to
practice
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
Q3. Write out the steps of the linear search algorithm in simple-structured
English.
5
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
The algorithm should use an array called items which is pre-populated with the
following values: "Florida","Georgia","Delaware","Alabama","California“
The algorithm should ask the user to “Enter the state to find:”
If the algorithm locates the state entered by the user in the array it should report
back to the screen “Item found at position n”
If the algorithms can not locate the state entered by the user in the array it
should report back to the screen “Item not found”
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
6
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
__________________________________________________________________________________
_______
Section 4 – Programming
Programming Basics
Learning to “code” is a fun and essential part of A Level Computer Science. This
task is ideal if you haven't done the GCSE in Computer Science, or you simply
want a nice refresher ahead of starting your A Level course.
7
• Lists
• Basic Operators
• String Formatting
• Basic String Operations
• Conditions
• Loops
• Functions
Each section presents you with theory, code to run and exercises to try out.
If you want to practice writing your own python programs you can download and
install a simple python development tool here:
https://www.python.org/downloads/
Programming Questions
8
Answer – copy/screenshot your code below:
(hint: https://www.w3schools.com/python/python_while_loops.asp )
Extension: while loop to ensure user input is between 0 and 9999.
9
Answer – copy/screenshot your code below:
Q3. A thief has managed to find out the four digits for an online PIN code, but
doesn’t know the correct sequence needed to hack into the account.
Design and write a program that displays all the possible combinations for any
four numerical digits entered by the user.
The program should avoid displaying the same combination more than once.
Submit a fully detailed showcase for your program.
10
Q4. Caesar Cipher - Implement a Caesar cipher, both encoding and decoding.
The key is an integer from 1 to 25.
This cipher rotates the letters of the alphabet (A to Z).
The encoding replaces each letter with the 1st to 25th next letter in the alphabet
(wrapping Z to A). So key 2 encrypts “HI” to “JK”, but key 20 encrypts “HI” to
“BC”.
11
12