Introduction To Programming Activities For Y10-01-Ct1: Activity 1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

TOPIC 1: COMPUTATIONAL THINKING

Introduction to programming

ACTIVITIES FOR Y10-01-CT1

Name ____________________________________________ Date __________________

Activity 1
Write a program to print out ‘Hello World’.

…………………………………………………………………………………………………..

Activity 2
Write a program that writes your name on the screen.

…………………………………………………………………………………………………..

Activity 3
Complete the table below. Predict what the code snippet will output, then write what happens
when you type the code into the interpreter.

Code Prediction Actual output

Activity 4
 Copy and run this code:

© Pearson Education Ltd 2020. Copying permitted for purchasing institution only. This material is not copyright free.
1
TOPIC 1: COMPUTATIONAL THINKING

Introduction to programming

 Amend this code to:


o output the result of the calculation
o include a variable for the depth of the shape
o calculate the volume of the shape (area * depth)
Note: volume = height × width × depth.

……………………………………………………………………………………………….................

……………………………………………………………………………………………….................

……………………………………………………………………………………………….................

……………………………………………………………………………………………….................

……………………………………………………………………………………………….................

……………………………………………………………………………………………….................

……………………………………………………………………………………………….................

……………………………………………………………………………………………….................

……………………………………………………………………………………………….................

……………………………………………………………………………………………….................

© Pearson Education Ltd 2020. Copying permitted for purchasing institution only. This material is not copyright free.
2

You might also like