You are Here: Home >< A-levels

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

Announcements Posted on
TSR's new app is coming! Sign up here to try it first >> 17-10-2016
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.

## Register

Thanks for posting! You just need to create an account in order to submit the post
1. this can't be left blank
2. this can't be left blank
3. this can't be left blank

6 characters or longer with both numbers and letters is safer

4. this can't be left empty
1. Oops, you need to agree to our Ts&Cs to register

Updated: April 3, 2016
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:
Today on TSR

### How does exam reform affect you?

From GCSE to A level, it's all changing

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