Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

AQA GCSE COMPUTER SCIENCE-G-8525-1C-QUESTION PAPER 1-MAY2023-Paper 1 Computational thinking and programming skills – VB.NET

Beoordeling
-
Verkocht
-
Pagina's
40
Cijfer
A+
Geüpload op
14-08-2023
Geschreven 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/1C 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 4 *04* IB/G/Jun23/8525/1C Do not write outside the Figure 1 box has been included again below. 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 5 *05* Turn over ► IB/G/Jun23/8525/1C Do not write outside the Turn over for the next question box DO NOT WRITE ON THIS PAGE ANSWER IN THE SPACES PROVIDED 6 *06* IB/G/Jun23/8525/1C Do not write outside the 0 2 Figure 2 box shows an algorithm that uses integer division which has been represented using pseudo-code. • Line numbers are included but are not part of the algorithm. Figure 2 1 again  True 2 WHILE again = True 3 a  USERINPUT 4 IF a 0 THEN 5 counter  0 6 WHILE a 0 7 a  a DIV 3 8 counter  counter + 1 9 ENDWHILE 10 ELSE 11 again  False 12 ENDIF 13 OUTPUT a 14 ENDWHILE Integer division is the number of times one integer divides into another, with the remainder ignored. For example: • 14 DIV 5 evaluates to 2 • 25 DIV 3 evaluates to 8 0 2 . 1 Where is iteration first used in the algorithm in Figure 2? Shade one lozenge. [1 mark] A Line number 2 B Line number 4 C Line number 6 D Line number 1

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

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 – VB.NET

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 VB.NET. 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.




*Jun2385251C01*
IB/G/Jun23/E10 8525/1C

, 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/1C

, 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/1C

, 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/1C

Geschreven voor

Vak

Documentinformatie

Geüpload op
14 augustus 2023
Aantal pagina's
40
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Alleen vragen

Onderwerpen

$16.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
revisionmaster111 Arizona State University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
39
Lid sinds
2 jaar
Aantal volgers
24
Documenten
455
Laatst verkocht
2 maanden geleden

4.5

11 beoordelingen

5
8
4
2
3
0
2
0
1
1

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen