top of page
Image by Alexander Grey

Pseudocode & Flowcharts

Unit 3 Summary - part 2

Image by Nareeta Martin
Image by Annie Spratt
Image by Kenrick Mills

Pseudocode Summary

Image by Scott Webb
Image by Alexander Grey

How Pseudocode works?

Image by Krystal Ng
Image by Adrian Infernus
Image by Alexander Grey

How to Write a Pseudocode?

Image by J Lee
Image by Pawel Czerwinski
Image by Pawel Czerwinski

IGCSE's Pseudocode

Image by Alexander Grey

Oxford AQA IGCSE Specimen Paper

Image by Kseniya Lapteva

09.

Figure 6 shows an algorithm expressed using pseudo-code.

Figure 6

Pseudocode1 AQA IGCSE.png

The variable Length contains the value 5, which is the number of items stored in array List.

The algorithm operates on an array called List. The current contents of array List are shown in Figure 7.

Figure 7

Pseudocode2 AQA IGCSE.png
Image by Pawel Czerwinski

09.1.

Complete the trace table below to show the execution of the algorithm in Figure 6 on the array contents in Figure 7.

 

The initial values of the variables, before the start of the FOR loop, have been written into the table to help you.

 

You may not need to write in all of the rows of the table. [6 marks]

Pseudocode3 AQA IGCSE.png

09.2.

Explain the purpose of the algorithm in Figure 6. [1 mark]

__________________________________________________________________________________

09.3

The algorithm makes an assumption about the data in the array List.

If this assumption is not met the algorithm will not work.

 

Explain what this assumption is. [1 mark]

__________________________________________________________________________________

Image by Alexander Grey

Oxford AQA IGCSE Mock Paper

Image by Pawel Czerwinski

 

03.

Figure 2 shows a standard search algorithm expressed using pseudocode.

 

Figure 2

Pseudocode1 AQA IGCSE Mock.png

The algorithm operates on an array called List. The current contents of array List are shown in Figure 3.

Figure 3

Pseudocode2 AQA IGCSE Mock.png
Image by Pawel Czerwinski

03.1.

Complete the trace table below to show the execution of the algorithm in Figure 2 on the array contents in Figure 3.

 

You may not need to write in all of the rows of the table. [4 marks]

Pseudocode3 AQA IGCSE Mock.png

03.2.

What is the name of the standard search algorithm shown in Figure 2? [1 mark]

__________________________________________________________________________________

03.3

The UNTIL loop will terminate if the condition B > E is true. Explain the purpose of this condition. [1 mark]

__________________________________________________________________________________

Image by Katie Rainbow 🏳️‍🌈
Visconsio Nekoland Logo.jpg
PT. Visconsio Kaya Jaya Masyhur

© 2020-2023 by Miana Kitty

bottom of page