0% found this document useful (0 votes)
30 views2 pages

Introduction To Programming Activities Solutions For Y10-01-Ct1

Uploaded by

mommie magic
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)
30 views2 pages

Introduction To Programming Activities Solutions For Y10-01-Ct1

Uploaded by

mommie magic
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

TOPIC 1: COMPUTATIONAL THINKING

Introduction to programming

ACTIVITIES SOLUTIONS FOR Y10-01-CT1

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

15

4.4

25

88

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