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

A-level COMPUTER SCIENCE Paper 1 June 2021

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
06-12-2022
Written in
2022/2023

Preliminary Material To be opened and issued to candidates on or after 1 September 2020, subject to the instructions given in the Teachers’ Notes (7517/1/TN). Note • The Preliminary Material and Skeleton Program are to be seen by candidates and their teachers only, for use during preparation for the examination on Tuesday 8 June 2021. It cannot be used by anyone else for any other purpose, other than that stated in the instructions issued, until after the examination date has passed. It must not be provided to third parties. Information • A Skeleton Program is provided separately by your teacher and must be read in conjunction with this Preliminary Material. • You are advised to familiarise yourselves with the Preliminary Material and Skeleton Program before the examination. • A copy of this Preliminary Material and the Skeleton Program will be made available to you in hard copy and electronically at the start of the examination. • You must not take any copy of the Preliminary Material, Skeleton Program or any other material into the examination room. A-level COMPUTER SCIENCE Paper 1 June 2021 2 IB/G/Jun21/7517/1/PM There is no Preliminary Material printed on this page 3 IB/G/Jun21/7517/1/PM Turn over ► INSTRUCTIONS FOR CANDIDATES Electronic Answer Document Answers for all questions, for all sections, must be entered into the word-processed document made available to you at the start of the examination and referred to in the question paper rubrics as the Electronic Answer Document. Preparation for the Examination You should ensure that you are familiar with the Preliminary Material and the Skeleton Program for your programming language. Data File A Data File named is supplied with the Skeleton Program. 4 IB/G/Jun21/7517/1/PM Hex Baron Hex Baron is a two-player game in which players issue commands to control pieces on a grid of hexagonal tiles. The winner is the player who has the most victory points (VPs) at the end of the game. When it is a player’s turn they give a series of three commands. Once all three commands have been given the program attempts to execute each command, in the order they were given. If an illegal command is given then that command will not be executed, but other commands given by the player will still be executed if they are legal. To successfully execute a command some of the resources in a player’s supply might need to be used (lumber, fuel and spare pieces). The five available commands are: • move, used to move a piece from one tile to another • upgrade, used to change a piece into another type of piece • spawn, used to create a new piece • saw, used to obtain lumber • dig, used to obtain fuel. Each tile: • has an ID • has a type of terrain • has (x, y, z) coordinates • is either empty or contains a piece. The different types of terrain are: • forest (represented by the # symbol) • peat bog (represented by the ~ symbol) • field (represented by a space). In the default game there is a grid size of 8, which means that there are 32 tiles in the grid. Each tile is stored in a list and the position (index) of the tile in the list is used to identify it. The coordinates of the tile are sometimes used by the program, for example, when calculating the distance between two tiles.

Show more Read less
Institution
Course
Computer Science

Content preview

A-level
COMPUTER SCIENCE
Paper 1
June 2021


Preliminary Material
To be opened and issued to candidates on or after 1 September 2020, subject to the
instructions given in the Teachers’ Notes (7517/1/TN).


Note

• The Preliminary Material and Skeleton Program are to be seen by candidates and their teachers
only, for use during preparation for the examination on Tuesday 8 June 2021. It cannot be used
by anyone else for any other purpose, other than that stated in the instructions issued, until after
the examination date has passed. It must not be provided to third parties.


Information

• A Skeleton Program is provided separately by your teacher and must be read in conjunction with
this Preliminary Material.

• You are advised to familiarise yourselves with the Preliminary Material and Skeleton Program
before the examination.

• A copy of this Preliminary Material and the Skeleton Program will be made available to you in hard
copy and electronically at the start of the examination.

• You must not take any copy of the Preliminary Material, Skeleton Program or any other material
into the examination room.




IB/G/Jun21/E7 7517/1/PM

, 2


There is no Preliminary Material printed on this page




IB/G/Jun21/7517/1/PM

Written for

Institution
Unknown
Course
Computer Science
School year
4

Document information

Uploaded on
December 6, 2022
Number of pages
8
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$5.89
Get access to the full document:

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

Get to know the seller
Seller avatar
UnlockSuccess
5.0
(1)

Get to know the seller

Seller avatar
UnlockSuccess Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
4
Member since
3 year
Number of followers
4
Documents
322
Last sold
1 year ago
House of Excellence Library

We offer questions and answers (graded A+, 100%, and approved) to help you revise and prepare for your assignment.

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

Trending documents

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