






















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
2024 AQA GCSE COMPUTER SCIENCE 8525/1C Paper 1 Computational thinking and programming skills – VB.NET Verified Question Paper with Marking Scheme Combined. June 2024 Materials • There are no additional materials required for this paper. • You must not use a calculator. Instructions • Use black ink or black ball-point pen. Use pencil only for drawing. • Answer all questions. • You must answer the questions in the spaces provided. • If you need extra space for your answer(s), use the lined pages at the end of 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 to be marked. • Questions that require a coded solution must be answered in VB.NET. • You should assume that all indexing in code starts at 0 unless stated otherwise. Information The total number of marks available for this paper is 90. Advice For Examiner’s Use Question Mark 1 2–3 4–5 6–7 8–9 10–11 12 13–14 15 TOTAL
Typology: Exams
1 / 94
This page cannot be seen from the preview
Don't miss anything!
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.
Materials
Instructions
book. Write the question number against your answer(s).
marked.
Information
The total number of marks available for this paper is 90.
Advice
For Examiner’s Use
Question Mark
1
2 – 3
4 – 5
6 – 7
8 – 9
10 – 11
12
13 – 14
15
TOTAL
Do not write
outside the
Answer all questions. box
Figure 1 shows an algorithm, represented using pseudo-code.
The algorithm assigns different values to two variables, then asks the user to input a
letter.
Figure 1
Shade one lozenge.
[1 mark]
string.
For example:
variables used in the algorithm in Figure 1.
Complete the pseudo-code statement to find the position of the first occurrence of the
[1 mark]
Do not write
outside the Turn over ►
Do not write
outside the
box
Write a VB.NET program that:
The output from the program must be on one line.
You should use meaningful variable name(s) and VB.NET syntax in your answer.
The answer grid below contains vertical lines to help you indent your code
accurately.
[2 marks]
Do not write
outside the
Turn over ►
Do not write
outside the
Figure 2 shows an algorithm, represented using pseudo-code.
Figure 2
The modulus operator is used to calculate the remainder after dividing one integer by
another.
For example:
box
. Where is a relational operator first used in the algorithm in Figure 2? Shade
one lozenge.
[1 mark]
A Line number 1
B Line number 2
C Line number 3
D Line number 6
Do not write
outside the Turn over ►
Do not write
outside the
Figure 3 shows an incomplete VB.NET program for a number guessing game.
Figure 3
box
Console.WriteLine("Invalid number")
userNumber = Console.ReadLine()
End While
Console.WriteLine("Valid number entered")
If randomNumber = userNumber Then
Console.WriteLine("Number guessed correctly")
. 1 The program should generate a random number between 1 and 100 (including 1 and 100).
This will be the number the user has to guess.
Write the VB.NET code that should be used on line 3 in Figure 3 to:
[2 marks]
Do not write
outside the Turn over ►
Do not write
outside the
[1 mark]
box
State the name for the process of breaking a problem down into sub-problems.
[1 mark]
Define the term abstraction.
Do not write
outside the
box 0 6 A university is writing a program to calculate a student’s total mark for three essays.
If any essays are handed in late, the total mark is reduced.
Write a VB.NET program to calculate the total mark.
have already been given values to represent the marks of the three essays.
The program should:
variable
o if only one essay is handed in late, the total mark is reduced by 10
o if more than one essay is handed in late, the total mark should be halved
o the total mark should not be less than 0
You should use meaningful variable name(s) and VB.NET syntax in your answer.
The answer grid below contains vertical lines to help you indent your code.
[7 marks]
Do not write
outside the
box
Turn over for the next question
Turn over ►
Do not write
outside the
box
Turn over for the next question
Turn over ►
Do not write
outside the
Figure 6 shows an algorithm, represented using pseudo-code.
Figure 6
Complete the trace table for the algorithm in Figure 6.
Part of the table has already been filled in.
You may not need to use all the rows in the table.
[6 marks]
box