You are Here: Home >< A-levels

# How to go about writing an algorithm in Computer Science exams? Watch

1. right.. so the question gives you a scenario and tells you to "Using pseuddocode write a program for a procedural language that bla bla bla"
or it might say
"Write an algorithm that bla bla bla"

What method.. so how would I go about it... like plan out my answer etc.. these questions are worth 6 - 8 + Marks..And often I find myself scribbling out lines and rewriting.. and then running out of space and cramming it in.. i just panic.. how to do pls help
2. bump.
3. Pseudocode usually begins with a START statement (and end with and END statement).

Then declare any variables you may need to execute the algorithm.

Think of your coding structures (IF, WHILE, DO, FOR). The evaluation is important, you may ignore less obvious results that breaks your algorithm so make sure if there are two arguments that you use OR or AND correctly. You may also need to consider using NOT.

Nesting correctly is important, make sure you end your structures if the following code should be out of them. (END IF, END WHILE etc..)

Pseudocode is meant to be read by anyone, so the language used doesn't have to be that specific, no more than the language i have used above be needed really, other things you may need to would be operators like DIV, MOD etc...

That's just some general info, is there anything specific you struggle with?
4. (Original post by Bobjim12)
Pseudocode usually begins with a START statement (and end with and END statement).

Then declare any variables you may need to execute the algorithm.

Think of your coding structures (IF, WHILE, DO, FOR). The evaluation is important, you may ignore less obvious results that breaks your algorithm so make sure if there are two arguments that you use OR or AND correctly. You may also need to consider using NOT.

Nesting correctly is important, make sure you end your structures if the following code should be out of them. (END IF, END WHILE etc..)

Pseudocode is meant to be read by anyone, so the language used doesn't have to be that specific, no more than the language i have used above be needed really, other things you may need to would be operators like DIV, MOD etc...

That's just some general info, is there anything specific you struggle with?
Okay, I guess I just need to practice it... Just one question... When they say write an algorithm... they do mean use Pseudocode right?
Okay, I guess I just need to practice it... Just one question... When they say write an algorithm... they do mean use Pseudocode right?
If the question just says "Write an algorithm" it is implied that it is pesudocode, however, questions sometimes say: ".. in a high level language". They will expect that you have been learning at least one as part of your course and therefore must write the algorithm in your choice of high-level language.

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: April 3, 2016
Today on TSR

### How to stand out in an Oxbridge interview

What makes you memorable?

### A pregnant woman visits me every night

Discussions on TSR

• Latest
• ## See more of what you like on The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

• Poll

## All the essentials

### Student life: what to expect

What it's really like going to uni

### Essay expert

Learn to write like a pro with our ultimate essay guide.

### Create a study plan

Get your head around what you need to do and when with the study planner tool.

### Resources by subject

Everything from mind maps to class notes.

### Study tips from A* students

Students who got top grades in their A-levels share their secrets

## Groups associated with this forum:

View associated groups
Discussions on TSR

• Latest
• ## See more of what you like on The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

• The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE