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

Revision Evidence

Uploaded by

seongjun.sj.park
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)
6 views2 pages

Revision Evidence

Uploaded by

seongjun.sj.park
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/ 2

1) Write down how you would declare a constant in pseudocode.

CONSTANT Pi ← 3.141592

2) Write a simple program (in Pseudocode) that uses IF, THEN, ELSE.
START
INPUT Age
If Age >= 18 THEN
OUTPUT “You are able to vote.”
ELSE
OUTPUT “You are unable to vote.”
ENDIF
END

3) In Python, write a simple program that asks the user for a word and converts all the characters
to uppercase. The result is outputted.

4) Ask a user what the capital city of Wales is. If the correct answer is given, then output
“Correct!”. If the answer is wrong then print “try again!”. Generate this as a flowchart.
5) Writing in Pseudocode, how would you declare a PROCEDURE with no parameters?
PROCEDURE Greeting
OUTPUT “Hello, world!”
END PROCEDURE

6) Writing in Pseudocode, how would you declare a FUNCTION with no parameters?


FUNCTION Greeting RETURN STRING
RETURN “Hello, world!”
END FUNCTION

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy