11.1 Programming Basics (3)

Resources | Revision Questions | Computer Science

Login to see all questions

Click on a question to view the answer

1.

Write pseudo-code statements to demonstrate the declaration and initialization of a constant named MAX_STUDENTS with a value of 30. Include a brief explanation of what a constant is and why it is useful.

2.

Question 2

Write pseudo-code statements for a program that takes a positive real number as input from the keyboard. The program should then check if the number is greater than 100. If it is, output "Greater than 100". Otherwise, output "Less than or equal to 100".

3.

Write pseudo-code statements to declare three integer variables: age, score, and attempts. Each variable should be assigned an initial value of 0.