Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

A-level COMPUTER SCIENCE Paper

Rating
-
Sold
-
Pages
25
Grade
A+
Uploaded on
11-01-2022
Written in
2020/2021

You are advised to spend no longer than 45 minutes on this section. Type your answers to Section A in your Electronic Answer Document. You must save this document at regular intervals. Figure 1 shows two vectors a and b and the angle between them, . Figure 1 a = [4, 3] b = [4, 0] The magnitude of a vector, represented as an arrow, is the length of the arrow. The magnitude of vector a is 5 because �42+32 = 5 . What is the magnitude of vector b? [1 mark] . Calculate the dot product of vectors a and b. You should show your working. [2 marks] The angle between two vectors cannot be larger than 180o. If the angle is measured as being greater than 180o then this angle is subtracted from 360o to find the actual angle between the two vectors. Example: if an angle between two vectors represented as arrows is measured as being 240o then the angle between the two vectors is 360o – 240o = 120o . Describe what will happen to the angle and the magnitude of vector a when vector a is multiplied by the scalar 2 [2 marks] . Describe what will happen to the angle and the magnitude of vector a when vector a is multiplied by the scalar -1 [2 marks] Turn over for the next question Turn over ► A regular language is a language that can be defined by a regular expression. . Complete the unshaded cells of Table 1 to show which of the statements about regular languages are true and which are false. Table 1 Statement True or False? All regular languages can be represented using a finite state machine without outputs. The set of strings defined by a regular language is always finite in size. There are some languages which can be represented in Backus- Naur Form (BNF) that are not regular languages. Copy the contents of the unshaded cells in Table 1 into the table in your Electronic Answer Document. [2 marks] Figure 2 shows a set of Backus-Naur Form (BNF) rules that are used to define a language. Figure 2 sentence ::= npv sentence ::= vnp np ::= dn n ::= human | dog | cat | baby d ::= a | the v ::= ate | slept | drank | cuddle c ::= and | but | or . There are two rules in Figure 2 with sentence on the left-hand side that are used to define what a valid sentence is in the language. Write a single rule that could replace these two rules. Your new rule must not change what a valid sentence is. [1 mark]

Show more Read less
Institution
Course

Content preview

A-level
COMPUTER SCIENCE
Paper 1


Monday 1 June 2020 Morning Time allowed: 2 hours 30
minutes
Materials
For this paper you must have:
 a computer
 a printer
 appropriate software
 the Electronic Answer Document
 an electronic version and a hard copy of the Skeleton Program
 an electronic version and a hard copy of the Preliminary
Material. You must not use a calculator.

Instructions
 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 Candidate Number are shown clearly in the footer of every page (also at
the top of the front cover) of your Electronic Answer Document.
 Enter your answers into the Electronic Answer Document.
 Answer all questions.
 Save your work at regular intervals.

Information
 The marks for questions are shown in brackets.
 The maximum mark for this paper is 100.
 No extra time is allowed for printing and collating.
 The question paper is divided into four sections.

Advice
You are advised to allocate time to each section as follows:
Section A – 45 minutes; Section B – 20 minutes; Section C – 15 minutes; Section D – 70
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/G/Jun20/
E15
7517/1

,IB/G/Jun20/
E15
7517/1

, ccccccccccccc



Section A

You are advised to spend no longer than 45 minutes on this

section. Type your answers to Section A in your Electronic

Answer Document.

You must save this document at regular intervals.


0 1 Figure 1 shows two vectors a and b and the angle between them, .

Figure 1




a = [4, 3]
b = [4, 0]


The magnitude of a vector, represented as an arrow, is the length of the
arrow. The magnitude of vector a is 5 because �42+32 = 5

0 1 .1 What is the magnitude of vector b?
[1 mark]


0 1 .2 Calculate the dot product of vectors a and b. You should show your working.
[2 marks]




IB/G/
Jun20/7517/1

Written for

Course

Document information

Uploaded on
January 11, 2022
Number of pages
25
Written in
2020/2021
Type
Exam (elaborations)
Contains
Answers

Subjects

$9.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
teachertestbank Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
349
Member since
4 year
Number of followers
183
Documents
1623
Last sold
2 days ago

4.3

70 reviews

5
43
4
11
3
11
2
4
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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions