4. Software Development
Programming Basics — Quiz
Test your understanding of programming basics with 5 practice questions.
Practice Questions
Question 1
Which of the following best describes the purpose of a variable in programming?
Question 2
What is the result of the following pseudocode? $ \text{DECLARE a : INTEGER} $ $ \text{SET a = 10} $ $ \text{SET a = a - 3} $ $$ \text{OUTPUT a} $$
Question 3
Which of the following is a correct example of a function definition in pseudocode?
Question 4
What will be the output of the following pseudocode? $ \text{DECLARE x : INTEGER} $ $ \text{SET x = 4} $ $ \text{IF x > 2} $ $ \quad \text{OUTPUT 'Greater'} $ $ \text{ELSE} $ $$ \quad \text{OUTPUT 'Smaller'} $$
Question 5
Which of the following best describes a 'loop' in programming?
