0% found this document useful (0 votes)
93 views6 pages

Grade 4 Scratch

The document outlines the creation of a quiz program that begins by asking the user for their name. It introduces key programming concepts such as variables, logical tests, and conditional structures, explaining how to use if-then statements to control program flow based on user input. Additionally, it includes activities to reinforce understanding by asking users to complete programs based on age and comparison tests.

Uploaded by

navindhyakawindi
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)
93 views6 pages

Grade 4 Scratch

The document outlines the creation of a quiz program that begins by asking the user for their name. It introduces key programming concepts such as variables, logical tests, and conditional structures, explaining how to use if-then statements to control program flow based on user input. Additionally, it includes activities to reinforce understanding by asking users to complete programs based on age and comparison tests.

Uploaded by

navindhyakawindi
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/ 6

Computational Thinking: Making a quiz program

Create a program to Ask “what is your name?”

Variable Block

●​ Creating a program to ask a question and tell the answer.

Creating a new variable

1
Ask question & says answer

01.

02.

Logical test - Operators Block

2
Operators Meaning

= Equal to
< Less than
> Bigger than

Example - ​ 5>3 says ‘5 is bigger than 3’ — This test is true.

​ ​ What about the test 100<50? — ……………………………….

Conditional Structure

A logical test is used to control what the computer does.


●​ If the test is True, the computer does one thing.
●​ If the test is False, the computer does a different thing.

If and then block

Program Plan - Let’s see what happens if you give the right answer.

Input​ ​ ​ ​ ​ Processing ​ ​ ​ ​ ​ Output

3
If then and else Block

Program Plan - Let’s see what happens if you give the right answer and a wrong
answer.

Input​ ​ ​ ​ ​ Processing ​ ​ ​ ​ ​ Output

4
Activity -01

1.​ Complete the following incomplete program.


●​ A fairground ride is only for children older than 6
Here is the program plan.
Input Ask “ What is your age?”
Processing ?
Output Say “You can go on a fairground ride”

5
Hint for processing block —

2. Create the same program for making cat says “you can have a fairground ride”
and “you can't have a fairground ride”

3. Create a program based on following instructions.

Input Ask “Compare 40>10”


Processing 40>10
Output Say “You got it right!” / “You got it wrong!”

You might also like