0% found this document useful (0 votes)
14 views7 pages

Block It Out - Merged

The document consists of a series of computing assignments for a Grade 6A student, focusing on programming concepts using Python. It includes questions on block-based and text-based programming languages, variables, arithmetic operators, and creating various Python programs. The assignments require the student to write code, debug existing programs, and create flowcharts based on given scenarios.

Uploaded by

koneruaira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views7 pages

Block It Out - Merged

The document consists of a series of computing assignments for a Grade 6A student, focusing on programming concepts using Python. It includes questions on block-based and text-based programming languages, variables, arithmetic operators, and creating various Python programs. The assignments require the student to write code, debug existing programs, and create flowcharts based on given scenarios.

Uploaded by

koneruaira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

NAME OF THE STUDENT: TOPIC: Block it out

GRADE: 6A DATE OF ISSUE: 18/7/24


SUBJECT: Computing DATE OF SUBMISSION: 19/7/24

Answer the following:


1. _________________ is an example of block-based programming language.
2. _________________ is an example of text-based programming language.
3. The name of the person who created Python is _______________.
4. _____________ is a diagram showing the sequence of actions in a computer program; a graphical
representation to show the steps to solve a problem.
5. ______________ is an example of arithmetic operator.
6. IDLE stands for ___________________________.
7. The ____________ statement is a Python command that outputs information onto the screen.
8. ____________ start with the # symbol in Python.
9. Once you have completed the code, you can run the program by selecting the _________ option in python.
10. Rewrite in Python the Scratch program shown below.

1
NAME OF THE STUDENT: TOPIC: Block it out
GRADE: 6A DATE OF ISSUE: 16/9/24
SUBJECT: Computing DATE OF SUBMISSION: 17/9/24

Answer the following:


1. GUI stands for _________________
2. The structure of the code used in a programming language_______________.
3. _____________ are used to store data in a program.
4. The ____________ command allow users to enter information into the program and store it in a variable.
5. IDLE stands for ___________________________.
6. Variables can hold different _____________.
7. Any number with a decimal point, such as 1.2 or 56.8 is called ________________.
8. Data that is made up of letters, numbers or any characters on the keyboard is called ________________
9. Create a new program in Python that: – asks the user to ‘Enter your name’ and stores it in a variable called name
– asks the user to ‘Enter a number between 1 and 10’ and stores it in a variable called number – uses print to
create an output that looks something like this when run.

10. A rabbit's age is approximately nine times the age of a human. Create a new program in Python using the
Scratch program solution below, which calculates the age of a rabbit in rabbit years:

1
NAME OF THE STUDENT: TOPIC: Block it out
GRADE: 6A DATE OF ISSUE: 19/9/24
SUBJECT: Computing DATE OF SUBMISSION: 21/9/24

Answer the following:


1. Create a new program in Python that: – asks the user to "Enter the length of one side of a square" and stores it
in a variable called length; this should be cast as an integer – calculates the area of the square (HINT: this is the
length multiplied by the length) – uses print to create an output; an example is given below:

2. Create a new program in Python that calculates the speed of a moving car. The program should: – ask the user
to enter the distance in meters; this should be cast to an integer – ask the user for the journey time in seconds;
this should be cast to an integer – calculate the speed; this is the distance divided by time – use print to output
the speed; an example is given below:

3. Using the correct symbols, create an algorithm using a flowchart that does the following: – Asks the user to
input two numbers – Adds the two numbers together and then divides by 2 to find the mean average – Outputs
the average.
4. Observe the below program

There are a number of errors in the code that prevent the program working. The program should: – ask the user
to enter a price and a quantity – calculate the cost (price multiplied by quantity) – display the overall cost. Work
through the code line by line to identify and debug the errors.
Write the correct program below:

1
2
NAME OF THE STUDENT: TOPIC: Block it out
GRADE: 6A DATE OF ISSUE: 21/9/24
SUBJECT: Computing DATE OF SUBMISSION: 22/9/24

Answer the following:


1. Write the program in python
• ask the user to input a number
• double the number entered
• then add six to it
• then halve it
• then subtract the number the user started with
• and finally display the result.

2. Write the program in python


• ask the user to input the total bill
• ask the user to input the number of people eating

1
• calculate the tip: 15% of the total bill
• calculate the total bill including the tip
• work out the amount each person has to pay (the total including the tip divided by the number of
people)
• display the amount each person has to pay.

3. Convert the following flowchart to python program:

2
4. Look at this Scratch example. When a number is squared (multiplied by itself), it is considered to be a 'Big
Number' if it is greater than 100. Create a flowchart for this program.

You might also like