100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

AQA GCSE COMPUTER SCIENCE-G-8525-1B-QUESTION PAPER 1 MAY 2023-Paper 1 Computational thinking and programming skills – Python

Rating
-
Sold
-
Pages
36
Grade
A+
Uploaded on
14-08-2023
Written in
2023/2024

0 1 Figure 1 shows an algorithm, represented using pseudo-code, which assigns a different value to four variables. Figure 1 country  'United States of America' state  'California' city  'San Francisco' landmark  'Alcatraz Island' 0 1 . 1 Define the term algorithm. [2 marks] 0 1 . 2 The variable x is assigned a value using the statement: x  LEN(state) Using Figure 1, what is the value of x? Shade one lozenge. [1 mark] A 1 B 5 C 10 D 12 3 *03* Turn over ► IB/G/Jun23/8525/1B Do not write outside the 0 1 . 3 What is the result of concatenating the contents of the variables city and box landmark in Figure 1? Shade one lozenge. [1 mark] A San Francisco Alcatraz Island B San Francisco,Alcatraz Island C San Francisco, Alcatraz Island D San FranciscoAlcatraz Island 0 1 . 4 The subroutine SUBSTRING extracts characters from a given string. For example, SUBSTRING(3, 5, 'Computing') would return put The variable y is assigned a value using the statement: y  SUBSTRING(4, 7, landmark) Using Figure 1, what is the value of y? Shade one lozenge. [1 mark] A Alca B Atra C land D traz Question 1 conti

Show more Read less
Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
August 14, 2023
Number of pages
36
Written in
2023/2024
Type
Exam (elaborations)
Contains
Only questions

Subjects

Content preview

AQA
Please write clearly in block capitals.

Centre number Candidate number


Surname

Forename(s)

Candidate signature
I declare this is my own work.



GCSE
COMPUTER SCIENCE
Paper 1 Computational thinking and programming skills – Python

Friday 19 May 2023 Afternoon Time allowed: 2 hours
Materials
• There are no additional materials required for this paper. For Examiner’s Use
• You must not use a calculator.
Question Mark
Instructions 1
• Use black ink or black ball-point pen. Use pencil only for drawing.
2–3
• Answer all questions.
• You must answer the questions in the spaces provided. 4–5
• If you need extra space for your answer(s), use the lined pages at the end of 6–7
this book. Write the question number against your answer(s).
• Do all rough work in this book. Cross through any work you do not want 8–9
to be marked. 10–11
• Questions that require a coded solution must be answered in Python. 12
• You should assume that all indexing in code starts at 0 unless stated otherwise.
13–14
15
Information
The total number of marks available for this paper is 90. 16

TOTAL
Advice
For the multiple-choice questions, completely fill in the lozenge alongside the appropriate answer.
CORRECT METHOD WRONG METHODS

If you want to change your answer you must cross out your original answer as shown.
If you wish to return to an answer previously crossed out, ring the answer you now wish to select as
shown.




*Jun2385251B01*
IB/G/Jun23/E11 8525/1B

, 2
Do not write
outside the
Answer all questions. box




0 1 Figure 1 shows an algorithm, represented using pseudo-code, which assigns a
different value to four variables.

Figure 1

country  'United States of America'
state  'California'
city  'San Francisco'
landmark  'Alcatraz Island'


0 1 . 1 Define the term algorithm.
[2 marks]




0 1 . 2 The variable x is assigned a value using the statement:

x  LEN(state)

Using Figure 1, what is the value of x?

Shade one lozenge.
[1 mark]


A 1

B 5

C 10

D 12




*02*
IB/G/Jun23/8525/1B

, 3

Do not write
outside the
0 1 . 3 What is the result of concatenating the contents of the variables city and box

landmark in Figure 1?

Shade one lozenge.
[1 mark]


A San Francisco Alcatraz Island

B San Francisco,Alcatraz Island

C San Francisco, Alcatraz Island

D San FranciscoAlcatraz Island



0 1 . 4 The subroutine SUBSTRING extracts characters from a given string.

For example, SUBSTRING(3, 5, 'Computing') would return put

The variable y is assigned a value using the statement:

y  SUBSTRING(4, 7, landmark)

Using Figure 1, what is the value of y?

Shade one lozenge.
[1 mark]


A Alca

B Atra

C land

D traz



Question 1 continues on the next page




Turn over ►


*03*
IB/G/Jun23/8525/1B

, 4
Do not write
outside the
Figure 1 has been included again below. box



Figure 1

country  'United States of America'
state  'California'
city  'San Francisco'
landmark  'Alcatraz Island'


0 1 . 5 The subroutine POSITION finds the first position of a character in a string.

For example, POSITION('Computing', 'p') would return 3

The variable z is assigned a value using the statement:

z  POSITION(landmark, 't')

Using Figure 1, what value is assigned to z?

Shade one lozenge.
[1 mark]


A –1

B 3

C 4

D 5 6




*04*
IB/G/Jun23/8525/1B
$14.89
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
revisionmaster111 Arizona State University
Follow You need to be logged in order to follow users or courses
Sold
36
Member since
2 year
Number of followers
24
Documents
454
Last sold
6 months ago

4.4

10 reviews

5
7
4
2
3
0
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions