100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
ocr GCSE Computer Science Paper 2 Question Paper May2024 J277/02: Computational thinking, algorithms and programming $15.49   Add to cart

Exam (elaborations)

ocr GCSE Computer Science Paper 2 Question Paper May2024 J277/02: Computational thinking, algorithms and programming

 1 view  0 purchase
  • Course
  • GCSE Computer Science QP
  • Institution
  • GCSE Computer Science QP

ocr GCSE Computer Science Paper 2 Question Paper May2024 J277/02: Computational thinking, algorithms and programming

Preview 3 out of 21  pages

  • September 11, 2024
  • 21
  • 2024/2025
  • Exam (elaborations)
  • Only questions
  • j27702 qp
  • j27702 gcse computer
  • GCSE Computer Science QP
  • GCSE Computer Science QP
avatar-seller
brittanyhays65
ocr
Tuesday 21 May 2024 – Afternoon
GCSE (9–1) Computer Science
J277/02 Computational thinking, algorithms and programming
Time allowed: 1 hour 30 minutes

Do not use:
a calculator




Please write clearly in black ink. Do not write in the barcodes.

Centre number Candidate number


First name(s)

Last name


INSTRUCTIONS
• Use black ink.
• Write your answer to each question in the space provided. If you need extra space use
the lined pages at the end of this booklet. The question numbers must be clearly shown.
• Answer all the questions.

INFORMATION
• The total mark for this paper is 80.
• The marks for each question are shown in brackets [ ].
• This document has 20 pages.

ADVICE
• Read each question carefully before you start your answer.
• We advise you to spend approximately 50 minutes on Section A and
approximately 40 minutes on Section B.


Turn over




final

, 2
SECTION A

We advise you to spend approximately 50 minutes on Section A.

1 Tick (✓) one box in each row to identify the programming construct where each keyword is used.

Programming construct
Keyword
Selection Iteration
if
for
while
[3]


2 An algorithm decides if a number is odd or even.
An odd number divided by 2 will give the remainder 1.

The flowchart statements have been written for the algorithm, but the flowchart is incomplete.

Complete the flowchart.

Start




INPUT num




if num MOD 2 == 0 OUTPUT "Odd"




OUTPUT "Even"




End


[4]
final

, 3
3
(a) State what is meant by the term syntax error. Give one example of a syntax error in a program.

Definition ..........................................................................................................................................

..........................................................................................................................................................

Example ...........................................................................................................................................

..........................................................................................................................................................
[2]

(b) A student writes an algorithm to input two numbers and add them together to create a total.

If the total is between 10 and 20 inclusive, "success" is output.

If the total is not between 10 and 20 inclusive, "warning" is output.


01 num1 = input("Enter a number")
02 num2 = input("Enter a number")
03 total = num1 + num1
04 if total >= 10 then
05 print("success")
06 else
07 print("warning")
08 endif


The algorithm does not work correctly.

Identify the line number of the two logic errors in the algorithm and refine the code to correct
each logic error.

Line number .....................................................................................................................................

Correction .........................................................................................................................................

..........................................................................................................................................................

Line number ......................................................................................................................................

Correction .........................................................................................................................................

..........................................................................................................................................................
[4]




final Turn over

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller brittanyhays65. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $15.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77016 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$15.49
  • (0)
  Add to cart