Quiz

Quiz: Preconditions and Postconditions in a Solution

OCR H446 Computer Science Specification

Ready to start this lesson?

Sign in to track your progress. 11 steps including 9 interactive questions.

Sign In to Start Learning
11 Steps9 Questions

Students also studied

Browse all

Steps in this lesson (11)

1
Text

Building on what you've learned about computational thinking, let's test your knowledge of preconditions and postconditions in solutions!

2
Multiple ChoiceInteractive

What is a precondition in computational terms?

Start the lesson to answer this multiple choice question

3
Multi-SelectInteractive

Which of the following are examples of preconditions? (Select all that apply)

Start the lesson to answer this multi-select question

4
Fill in the BlankInteractive

A {{blank0}} is a requirement that must be true after an algorithm finishes execution.

Start the lesson to answer this fill in the blank question

5
MatchingInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this matching question

6
Math EquationInteractive

If a program requires input x > 0 as a precondition, what is the output if x = 5 and the algorithm adds 3?

Start the lesson to answer this math equation question

7
Code CompletionInteractive

Match the items on the left with their correct pairs on the right

Start the lesson to answer this code completion question

8
typedAnswer

Match the items on the left with their correct pairs on the right

9
Multiple ChoiceInteractive

What happens if a postcondition is not met after execution?

Start the lesson to answer this multiple choice question

10
Multi-SelectInteractive

Which statements about postconditions are true? (Select all that apply)

Start the lesson to answer this multi-select question

11
Fill in the BlankInteractive

In computational thinking, preconditions and postconditions help ensure {{blank0}} and {{blank1}}.

Start the lesson to answer this fill in the blank question

Want to Learn More?

Get personalised lessons, quizzes, and instant feedback from your AI tutor.

Explore More Topics