100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
AQA-7516-1-COMPUTER SCIENCE QUESTION PAPER 1-AS LEVEL-14May2024. $13.49   Add to cart

Exam (elaborations)

AQA-7516-1-COMPUTER SCIENCE QUESTION PAPER 1-AS LEVEL-14May2024.

 10 views  0 purchase
  • Course
  • Institution

AQA-7516-1-COMPUTER SCIENCE QUESTION PAPER 1-AS LEVEL-14May2024. 0 1 Figure 1 S1 ← "011101" S2 ← "001100" C ← "0" R ← "" FOR J = 0 TO 5 X ← 5 - J D1 ← S1[X] D2 ← S2[X] IF C = "0" THEN IF D1 = D2 THEN S ← "0" C ← D1 ELSE S ← "1" ENDIF EL...

[Show more]

Preview 3 out of 16  pages

  • October 14, 2024
  • 16
  • 2024/2025
  • Exam (elaborations)
  • Only questions
avatar-seller
000001




AQA
AS
COMPUTER SCIENCE
Paper 1


Tuesday 14 May 2024 Afternoon Time allowed: 1 hour 45 minutes




E
C
Materials
For this paper you must have:
• a computer




N
• a printer
• appropriate software




IE
• the Electronic Answer Document
• an electronic version and a hard copy of the Skeleton Program
SC
• an electronic version and a hard copy of the Preliminary Material
• an electronic version of the Data File SimulationData.txt
You must not use a calculator.

Instructions
R

• Type the information required on the front of your Electronic Answer Document.
• Before the start of the examination make sure your Centre Number, Candidate Name and
TE


Candidate Number are shown clearly in the footer of every page (not the front cover) of your
Electronic Answer Document.
• Enter your answers into the Electronic Answer Document.
• Answer all questions.
PU




• Save your work at regular intervals.

Information

M




The marks for questions are shown in brackets.
• The maximum mark for this paper is 75.
• No extra time is allowed for printing and collating.
O




• The question paper is divided into three sections.
C




Advice
You are advised to allocate time to each section as follows:
Section A – 20 minutes; Section B – 25 minutes; Section C – 60 minutes.

At the end of the examination
Tie together all your printed Electronic Answer Document pages and hand them to the Invigilator.

Warning
It may not be possible to issue a result for this paper if your details are not on every page of your
Electronic Answer Document.




IB/M/Jun24/G4001/E7 7516/1
Page 1 of 16

,000002

2


Section A

You are advised to spend no more than 20 minutes on this section.

Enter your answers to Section A in your Electronic Answer Document. You must save this
document at regular intervals.

Question 04 in this section asks you to write program code starting from a new
program/project/file.

You are advised to save your program at regular intervals.


0 1 Figure 1




E
S1 ← "011101"




C
S2 ← "001100"
C ← "0"




N
R ← ""
FOR J = 0 TO 5




IE
X ← 5 - J
D1 ← S1[X]
SC
D2 ← S2[X]
IF C = "0" THEN
IF D1 = D2 THEN
S ← "0"
R

C ← D1
ELSE
TE


S ← "1"
ENDIF
ELSE
PU




IF D1 = D2 THEN
S ← "1"
C ← D1
ELSE
M




S ← "0"
ENDIF
O




ENDIF
R ← CONCATENATE(S, R)
C




ENDFOR
OUTPUT R

The function CONCATENATE(X, Y) returns the string formed by concatenating the
string Y to the end of string X. For example, CONCATENATE("cat", "dog")
returns "catdog".

The strings are zero index based.




IB/M/Jun24/7516/1
Page 2 of 16

, 000003

3


Complete Table 1 by hand-tracing the algorithm in Figure 1.

You may not need to use all the rows in Table 1.

You do not need to indicate that C, D1, D2 and S are strings.

The first row of Table 1 has already been completed for you.


Table 1



S1 S2 C R J X D1 D2 S




E
"011101" "001100" "0" ""




C
N
IE
SC
R
TE
PU
M




OUTPUT:
O
C




Copy the contents of all the unshaded cells in Table 1 into your Electronic
Answer Document.
[5 marks]




Turn over ►
IB/M/Jun24/7516/1
Page 3 of 16

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 revisionmaster111. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 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
$13.49
  • (0)
  Add to cart