# GCSE computer science 17th may exam

Watch
Announcements
#1
Can someone explain to me loops in pseudocode i find it really hard to add loops and if anyone has any predictions/recommendations for paper 2 computer science on 17th Thursday please feel free :3
0
3 years ago
#2
Most likely to be a whole lot of algorithms, probably some SQL in terms of big markers
0
3 years ago
#3
A loop uses counts; now there are iterative, count and variable loops. In the exam any can come up.

An iterative loop uses variables - which contains values as a parameter; take the variable for example and iterate through X to the variable i.e X = 10 [FOR i in X (do this) else terminate. It is quite simple once you think about it as the program just looks at every value and compares its value using the parameter. Make you understand that iteration is NOT the same as sequencing
0
3 years ago
#4
Paper 2 is more about the ethical part... legal issues,... networks, computer systems, cyber security, environmental impact...hexadecimal I think... that stuff... with I think assumed knowledge of the first chapters... it is not focused on algorithms though...
0
3 years ago
#5
(Original post by jakelpbooth)
Most likely to be a whole lot of algorithms, probably some SQL in terms of big markers
No... They are not called "algorithms" it is simply programming. An algorithm by its very meaning is a set of instructions with specific functions. Whereas programming is used as being generic.

It is like comparing a variable to a value... They are NOT the same.
0
3 years ago
#6
(Original post by qali23)
Paper 2 is more about the ethical part... legal issues,... networks, computer systems, cyber security, environmental impact...hexadecimal I think... that stuff... with I think assumed knowledge of the first chapters... it is not focused on algorithms though...
Paper 2 is literally algorithm based questions. It also includes binary addition, and binary/denary/hex conversions. There's a select few other things too. Everything you just listed is in paper 1.
0
3 years ago
#7
(Original post by inox)
Paper 2 is literally algorithm based questions. It also includes binary addition, and binary/denary/hex conversions. There's a select few other things too. Everything you just listed is in paper 1.
You missed out 7 other topics... Arrays, Table handling, Validation santilisation, SQL, Logic...
0
3 years ago
#8
(Original post by inox)
Paper 2 is literally algorithm based questions. It also includes binary addition, and binary/denary/hex conversions. There's a select few other things too. Everything you just listed is in paper 1.
Is it? check the specification...
http://filestore.aqa.org.uk/resource...20-SP-2016.PDF

Sos, can't get a link... it says chapters 3-7 are paper 2.... it does have the conversions though. But Algorithms is chapter 1.... but I think they will probably include a couple algorithm questions because you need assumed knowledge of the first few chapters in it too.
0
3 years ago
#9
(Original post by qali23)
Is it? check the specification...
http://filestore.aqa.org.uk/resource...20-SP-2016.PDF

Sos, can't get a link... it says chapters 3-7 are paper 2.... it does have the conversions though. But Algorithms is chapter 1.... but I think they will probably include a couple algorithm questions because you need assumed knowledge of the first few chapters in it too.
I think they're talking about OCR because that's how it's set out for that board.
0
3 years ago
#10
(Original post by Reversed Flash)
You missed out 7 other topics... Arrays, Table handling, Validation santilisation, SQL, Logic...
I also said "there's a few other things too". I don't have that good of a memory. Plus, the topics I mentioned are the main ones in the papers that I've taken, hence I remember them. I was just using them as an example, considering he listed the *wrong* ones.

I'd be surprised if some of those even come up in any detail. Logic only shows up in the form of one true/false table at the end.
0
#11
(Original post by qali23)
Is it? check the specification...
http://filestore.aqa.org.uk/resource...20-SP-2016.PDF

Sos, can't get a link... it says chapters 3-7 are paper 2.... it does have the conversions though. But Algorithms is chapter 1.... but I think they will probably include a couple algorithm questions because you need assumed knowledge of the first few chapters in it too.
Thats a 2016 one but paper 1 was a lot of "theory" but what im revising is algorithms, Programming techniques, Producing Robus programs, Computational logic, Translators and Data representations (which is hexadecimal parts), Btw thats aqa
0
3 years ago
#12
(Original post by qali23)
Is it? check the specification...
http://filestore.aqa.org.uk/resource...20-SP-2016.PDF
I take OCR papers. Is there an AQA paper 2 tomorrow as well?
0
3 years ago
#13
(Original post by inox)
I also said "there's a few other things too". I don't have that good of a memory. Plus, the topics I mentioned are the main ones in the papers that I've taken, hence I remember them. I was just using them as an example, considering he listed the *wrong* ones.

I'd be surprised if some of those even come up in any detail. Logic only shows up in the form of one true/false table at the end.
Yes hopefully but sometimes exam boards can be the contrary and add a few things that will catch people out.
0
3 years ago
#14
(Original post by Reversed Flash)
Yes hopefully but sometimes exam boards can be the contrary and add a few things that will catch people out.
I hope not lol! SQL and table handling is easy atleast.
0
3 years ago
#15
Loops in pseudocode are the same as loops in a programming language. It's all about being able to write a set of instructions, and get the computer to run those instructions repeatedly, hence why they're known as loops - i.e. the same instructions being repeated over and over in a "loop", although each time it repeats there's usually different data. A single 'pass' through the loop's instructions is sometimes known as an iteration.

A loop always compries of at least two things:
• One or more instructions (the "body" of the loop) - i.e. the instructions which are executed at each pass or iteration
• A conditional expression - i.e. a boolean expression which evaluates to true or false at each pass or iteration. The conditional expression decides whether the computer will 'break out' of the loop, or whether there will be another iteration.

Just to illustrate the concept, while loop is possibly the simplest to understand - e.g.
Code:
```WHILE ( Something is true )
Do instructions
END WHILE```
• The first thing a 'while' loop does is evaluate its expression for true or false.
• In nearly all loops, the expression involves a variable whose value could change inside the loop body.
• If the expression is true, it executes the body of the loop through a single pass.
• When the loop has finished, the expression is evaluated again for true or false.
• If the expression is still true, it executes the body of the loop through another single pass
• When the loop has finished, the expression is evaluated again for true or false.
• This keeps repeating until the expression finally evaluates to false - the program will 'break out' of the loop and carry on with the rest of the program.

Another way to express the while loop above would look like this:
Code:
```LABEL "start"

IF ( Something is false )
GOTO LABEL "end"
ELSE
Do instructions
GOTO LABEL "start"

LABEL "end"```
In a real programming language, a compiler would do something very similar to this. If you've studied CPU architecture, you might be familiar with a CPU register known as the Program Counter. The program counter keeps track of which line the CPU is going to execute next. CPUs have a "GOTO" instruction which allows a program to override the Program Counter. (Sometimes "GOTO" is known as "JUMP" or "BRANCH" - it's all the same thing though)

Compilers translate a while loop into machine code using "Goto" instructions to allow the CPU to keep repeating the same code - so when a while loop evaluates its condition as false, the CPU sees a GOTO instruction which move the program counter past the end of the loop to prevent it from being executed.

So that's how loops work in programming. Pseudocode is the same - you just need to imagine that there's a program counter somewhere, and remember that the loop is just modifying the program counter..
0
#16
(Original post by Reversed Flash)
A loop uses counts; now there are iterative, count and variable loops. In the exam any can come up.

An iterative loop uses variables - which contains values as a parameter; take the variable for example and iterate through X to the variable i.e X = 10 [FOR i in X (do this) else terminate. It is quite simple once you think about it as the program just looks at every value and compares its value using the parameter. Make you understand that iteration is NOT the same as sequencing
Thank you so much!
0
3 years ago
#17
(Original post by winterscoming)
Loops in pseudocode are the same as loops in a programming language. It's all about being able to write a set of instructions, and get the computer to run those instructions repeatedly, hence why they're known as loops - i.e. the same instructions being repeated over and over in a "loop", although each time it repeats there's usually different data. A single 'pass' through the loop's instructions is sometimes known as an iteration.

A loop always compries of at least two things:
• One or more instructions (the "body" of the loop) - i.e. the instructions which are executed at each pass or iteration
• A conditional expression - i.e. a boolean expression which evaluates to true or false at each pass or iteration. The conditional expression decides whether the computer will 'break out' of the loop, or whether there will be another iteration.

Just to illustrate the concept, while loop is possibly the simplest to understand - e.g.
Code:
```WHILE ( Something is true )
Do instructions
END WHILE```
• The first thing a 'while' loop does is evaluate its expression for true or false.
• In nearly all loops, the expression involves a variable whose value could change inside the loop body.
• If the expression is true, it executes the body of the loop through a single pass.
• When the loop has finished, the expression is evaluated again for true or false.
• If the expression is still true, it executes the body of the loop through another single pass
• When the loop has finished, the expression is evaluated again for true or false.
• This keeps repeating until the expression finally evaluates to false - the program will 'break out' of the loop and carry on with the rest of the program.

Another way to express the while loop above would look like this:
Code:
```LABEL "start"

IF ( Something is false )
GOTO LABEL "end"
ELSE
Do instructions
GOTO LABEL "start"

LABEL "end"```
In a real programming language, a compiler would do something very similar to this. If you've studied CPU architecture, you might be familiar with a CPU register known as the Program Counter. The program counter keeps track of which line the CPU is going to execute next. CPUs have a "GOTO" instruction which allows a program to override the Program Counter. (Sometimes "GOTO" is known as "JUMP" or "BRANCH" - it's all the same thing though)Programming languages use a "Goto" statement in machine code to allow the CPU to keep repeating the same code - so when a while loop evaluates its condition as false, it uses a GOTO statement to move the program counter past the end of the loop to prevent it from being executed. So that's how loops work in programming. Pseudocode is the same - you just need to imagine that there's a program counter somewhere, and remember that the loop is just modifying the program counter..
SO but everything you said said contains **** we don't need...
0
#18
(Original post by winterscoming)
Loops in pseudocode are the same as loops in a programming language. It's all about being able to write a set of instructions, and get the computer to run those instructions repeatedly, hence why they're known as loops - i.e. the same instructions being repeated over and over in a "loop", although each time it repeats there's usually different data. A single 'pass' through the loop's instructions is sometimes known as an iteration.

A loop always compries of at least two things:
• One or more instructions (the "body" of the loop) - i.e. the instructions which are executed at each pass or iteration
• A conditional expression - i.e. a boolean expression which evaluates to true or false at each pass or iteration. The conditional expression decides whether the computer will 'break out' of the loop, or whether there will be another iteration.

Just to illustrate the concept, while loop is possibly the simplest to understand - e.g.
Code:
```WHILE ( Something is true )
Do instructions
END WHILE```
• The first thing a 'while' loop does is evaluate its expression for true or false.
• In nearly all loops, the expression involves a variable whose value could change inside the loop body.
• If the expression is true, it executes the body of the loop through a single pass.
• When the loop has finished, the expression is evaluated again for true or false.
• If the expression is still true, it executes the body of the loop through another single pass
• When the loop has finished, the expression is evaluated again for true or false.
• This keeps repeating until the expression finally evaluates to false - the program will 'break out' of the loop and carry on with the rest of the program.

Another way to express the while loop above would look like this:
Code:
```LABEL "start"

IF ( Something is false )
GOTO LABEL "end"
ELSE
Do instructions
GOTO LABEL "start"

LABEL "end"```
In a real programming language, a compiler would do something very similar to this. If you've studied CPU architecture, you might be familiar with a CPU register known as the Program Counter. The program counter keeps track of which line the CPU is going to execute next. CPUs have a "GOTO" instruction which allows a program to override the Program Counter. (Sometimes "GOTO" is known as "JUMP" or "BRANCH" - it's all the same thing though)

Compilers translate a while loop into machine code using "Goto" instructions to allow the CPU to keep repeating the same code - so when a while loop evaluates its condition as false, the CPU sees a GOTO instruction which move the program counter past the end of the loop to prevent it from being executed.

So that's how loops work in programming. Pseudocode is the same - you just need to imagine that there's a program counter somewhere, and remember that the loop is just modifying the program counter..
OMG Thank you so much this was a really good explaination and i feel like understand it so much better now!!
0
3 years ago
#19
0
3 years ago
#20
(Original post by ShylaB14)
I think they're talking about OCR because that's how it's set out for that board.
Oh, it's OCR? That makes sense...
0
X

new posts
Back
to top
Latest
My Feed

### Oops, nobody has postedin the last few hours.

Why not re-start the conversation?

see more

### See more of what you like onThe Student Room

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

### Poll

Join the discussion

#### Have you ever considered or are you currently considering an apprenticeship?

Yes, I am actively considering an apprenticeship (79)
13.57%
I am actively considering an alternative to uni that isn't an apprenticeship (11)
1.89%
I have considered an apprenticeship but it's not for me (147)
25.26%
I am considering a degree apprenticeship (47)
8.08%
I haven't considered an apprenticeship (280)
48.11%
Something else (let us know in the thread!) (18)
3.09%