Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
171 views
CAPE Computer Science P2
Computer Science
Uploaded by
jessica
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save CAPE Computer Science P2 For Later
Download
Save
Save CAPE Computer Science P2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
171 views
CAPE Computer Science P2
Computer Science
Uploaded by
jessica
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save CAPE Computer Science P2 For Later
Carousel Previous
Carousel Next
Save
Save CAPE Computer Science P2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 7
Search
Fullscreen
rest cope 02115020 FORM TP 2011163 C, MAY/SUNE 2011 CARIBBEAN EXAMINATIONS COUNCIL ADVANCED PROFICIENCY EXAMINATION COMPUTER SCIENCE UNIT 1: FUNDAMENTALS OF COMPUTER SCIENCE PAPER 02 24% hours 13 MAY 2011 (a.m. ‘This examination paper consists of THREE sectio Problem Solving with Computers and Programming. : Computer Architecture and Organisation, Each section consists of 2 questions ‘The maximum mark for each section is 50. ‘The maximum mark for this examination is 150, This examination consists of 7 printed pages. INSTRUCTIONS TO CANDIDATES 1, Do NOT open this examination paper until instructed to do so. 2. Answer ALL questions from the THREE sections. Copyright © 2009 Caribbean Examinations Council All rights reserved. 02115020/CAPE 2011SECTION A COMPUTER ARCHITECTURE AND ORGANISATION Answer BOTH questions, (a) ‘The following is the truth table of a certain circuit: z 1 1 0 0 Using only primary logic gates, design and draw the circuit [6 marks] (b) Write down the truth table (ic. list all possible input bit patterns and their corresponding outputs) for the circuit in Figure 1. Pp q Do Figure 1 ft [4 marks] (©) Explain what is meant by the terms: (@) — Flip-flop ‘4 {2 marks] (i) Multiplexor _ [2marks] GO ON TO THE NEXT PAGE@ e) @ @ (b) © @ © (i) Drawa clearly labelled block diagram of a 2-to-4 line decoder. [3 marks] (ii) A circuit is required for a television game show. The circuit must control four light bulbs, BI, B2, B3, and B4, Only ONE of the light bulbs can be on at any time, State how a 2-to-4 line decoder can be used in the circuit and explain how the bulbs are switched on, [3 marks] Find the 4-bit two’s complement of -6. [2 marks} Consider the following floating point representation: 1-bit sign, 3-bit exponent, S— mantissa, Calculate the decimal representation of 001000101 (Show all working.) [3 marks} ‘Total 25 marks Name and state the function of THREE registers found in the Central Processing Unit (CPU). [6 marks] ‘Compare main memory and TWO storage devices in terms of capacity and access speed cae - [6 marks} Besides registers, name TWO other components in the CPU and state the function of EACH, [4 marks] Define the term ‘cache memory’ and explain how it increases the efficiency of data retrieval, [4 marks] (® State what is an ‘instruction format’ [1 mark } Gi) Name and describe TWO addressing modes. [4 marks] Total 25 marks GO ON TO THE NEXT PAGE-4- SECTION B PROBLEM SOLVING WITH COMPUTERS Answer BOTH questions, (a) Describe any THREE stages in the problem solving process. [6 marks} (b) The algorithm below finds the average age of a set of students. Construct a flowchart to represent the algorithm, Algorithm) AverageAge Sum =0 Counter = Read Age While Age !=0 ‘Sum = Sum + Age Counter = Counter + 1 Read Age End while avertige ='Sum/Counter Print Average End [11 marks} (©) The algorithm betow is designed to print a table of squares of all the even numbers between | and 100 (inclusive). However, there are errors in the algorithm. jel while j < 100 print “Even Number Square” NOV eepe end while print j, square By referring to the specific line number, identify and correct the errors in the algorithm so that it will achieve its obj [8 marks] Total 25 marks GO ON TO THE NEXT PAGE4. (a)_ State THREE properties of a well-designed algorithm, [ 3marks} (b) Trace through the execution of the following algorithm and draw the output in your answer booklet exactly as it would be generated by the algorithm. You should carefully note the following: + printSpaces(n} prints n spaces from the current cursor position; use a dash ‘~" to indicate a space in your answer booklet. + print() continues output on the current line from the current cursor position. + printin() continues output on the current line from the current cursor position but any subsequent output begins on a new line SIZE = 10 begin i=SIZE-1 0) { printSpaces (i) print (***) y=(SIZE-i-1)*2 printSpaces (y) printin (*" isi-l ee - } for (i=: print (" 2*SIZE; i=i+1) ‘) printing) end [11 marks} (©) @_ Write an algorithm that uses iteration to print the sum of ALL multiples of 11 (integers) between 0 and 5 000, inclusive. [ Smarks] (i) Indicate whether ‘bounded’ or “unbounded” iteration was used in your response for 3 (c) (i) and state ONE reason for its use. [ 3marks] ‘Total 25 marks GO ON TO THE NEXT PAGEfa) (b) © @ Bigs SECTION C PROGRAMMING Answer BOTH questions. Apart from intermediate code generation, list TWO other stages of the translation process. [2 marks] Give TWO advantages of using a modular approach in programming. [2 marks] ‘Write a C function which accepts an integer array and an integer variable indicating the size of the array. The function should return the sum of all the numbers in the array that are NOT greater than 100, [6 marks} A gymis having a contest. Members are asked to guess the number of jellybeans in a jar. The winner is the member who accurately guesses the number of jellybeans or Whose guess is closest to this value without going over. All the information related to the contest is stored in a file ‘contest.txt”. The first line of the file gives that actual number of jellybeans in the jar. Each line thereafter contains the guess of a member followed by his/her member identification code (which is a four digit integer). Data is terminated by — 1 (which appears on a line by itself) Write aC program that determines and outputs to a file, “winner txt”, the winning guess and the winner’s identification code. ‘You may assume all guesses are unique and a winner exists, You may not use arrays in your solution, [15 marks) ‘Total 25 marks GO ON TO THE NEXT PAGE@) (b) © @) @ Explain the term ‘white space’ [2 marks] Define the term ‘debugging’ [2 marks] Explain why programmers should practise proper indentation. [2 marks] For any THREE integer values the following rules apply: — The values cannot be the sides of a triangle if any value is 0 or negative and, if any value is greater than the sum of the other two. — The values can represent the sides of an equilateral triangle if all the values are equal — The values can represent the sides of an isosceles triangle if two values are equal, — The values can represent the sides of a scalene tiangle if all the values are ifferent. ‘Write @ C program that prompts the user for THREE integers and prints to the standard ‘output what triangle is represented, If no triangle is represented print “No triangle is represented.” [1 marks] (@ In your answer booklet show the output generated by the following segment of code. inti, js . 7
You might also like
HH
PDF
No ratings yet
HH
4 pages
Computer Science Cape 2010
PDF
No ratings yet
Computer Science Cape 2010
7 pages
CAPE ComputerScienceUnit1 2010exam
PDF
No ratings yet
CAPE ComputerScienceUnit1 2010exam
7 pages
CompSci U1 P2 2015
PDF
No ratings yet
CompSci U1 P2 2015
10 pages
CAPE Computer Science Unit 1 2012 Past Paper
PDF
No ratings yet
CAPE Computer Science Unit 1 2012 Past Paper
6 pages
CAPE Computer Science 2014 Paper 2
PDF
No ratings yet
CAPE Computer Science 2014 Paper 2
8 pages
CAPE Computer Science 2012 Past Paper
PDF
No ratings yet
CAPE Computer Science 2012 Past Paper
6 pages
CAPE 2009 Computer Science Unit 1 Paper 2
PDF
No ratings yet
CAPE 2009 Computer Science Unit 1 Paper 2
9 pages
CAPE 2014 Unit 1 Computer Science P2
PDF
No ratings yet
CAPE 2014 Unit 1 Computer Science P2
8 pages
Cape Computer Science Unit 1 2012 P2
PDF
No ratings yet
Cape Computer Science Unit 1 2012 P2
6 pages
CompSci U1 P2 2019
PDF
No ratings yet
CompSci U1 P2 2019
26 pages
COMP PP1 C10 MS
PDF
No ratings yet
COMP PP1 C10 MS
9 pages
MidtermExam F15
PDF
No ratings yet
MidtermExam F15
14 pages
may 2023 PIC
PDF
No ratings yet
may 2023 PIC
2 pages
Marking Scheme
PDF
No ratings yet
Marking Scheme
10 pages
#Questions: 10 #Pages: 3 Set: A
PDF
No ratings yet
#Questions: 10 #Pages: 3 Set: A
13 pages
June 2022 QP - Paper 2 Computer Edexcel Science GCSE
PDF
No ratings yet
June 2022 QP - Paper 2 Computer Edexcel Science GCSE
24 pages
ComputerSc Annual XI PRACT 22-23 Final.docx
PDF
No ratings yet
ComputerSc Annual XI PRACT 22-23 Final.docx
5 pages
c Programing (1)
PDF
No ratings yet
c Programing (1)
3 pages
FullPaperJan25
PDF
No ratings yet
FullPaperJan25
14 pages
2.Nov2022_Yr11_ComputerScience_Paper2_Final
PDF
No ratings yet
2.Nov2022_Yr11_ComputerScience_Paper2_Final
11 pages
CS Year 10 Practical June 2023
PDF
No ratings yet
CS Year 10 Practical June 2023
13 pages
cs11-model-paper
PDF
No ratings yet
cs11-model-paper
13 pages
PDS Endsem 2019A Question
PDF
No ratings yet
PDS Endsem 2019A Question
16 pages
Ece198jl sp13 Exam1
PDF
No ratings yet
Ece198jl sp13 Exam1
9 pages
CompSci U1 P1 2016
PDF
No ratings yet
CompSci U1 P1 2016
10 pages
Lab Data
PDF
No ratings yet
Lab Data
7 pages
Pds Lab Practice Questions
PDF
No ratings yet
Pds Lab Practice Questions
10 pages
Computer Science Question Paper
PDF
No ratings yet
Computer Science Question Paper
24 pages
Thiagarajar College of Engineering, Madurai 625 015. Department of Electronics and Communication Engineering
PDF
No ratings yet
Thiagarajar College of Engineering, Madurai 625 015. Department of Electronics and Communication Engineering
3 pages
Doc1
PDF
No ratings yet
Doc1
2 pages
Computer_Science_Gr_9_T1_Exam_Nov_2023
PDF
No ratings yet
Computer_Science_Gr_9_T1_Exam_Nov_2023
14 pages
Term 2 Xi CS MS Set 1
PDF
No ratings yet
Term 2 Xi CS MS Set 1
8 pages
Mtech Cs and Crs Pcb 2025
PDF
No ratings yet
Mtech Cs and Crs Pcb 2025
11 pages
COMPUTER
PDF
No ratings yet
COMPUTER
10 pages
MCOA011 MAIN EXAM PAPER 2017
PDF
No ratings yet
MCOA011 MAIN EXAM PAPER 2017
10 pages
Binsys Technologies PVT - LTD
PDF
No ratings yet
Binsys Technologies PVT - LTD
18 pages
ocr-h446-2-3-mark-scheme
PDF
No ratings yet
ocr-h446-2-3-mark-scheme
12 pages
PPS - Practicallist - Lab Manual
PDF
No ratings yet
PPS - Practicallist - Lab Manual
8 pages
CCS 1203 Introduction To Computer Programming CAT
PDF
No ratings yet
CCS 1203 Introduction To Computer Programming CAT
2 pages
Apsc 160 (Ubc)
PDF
No ratings yet
Apsc 160 (Ubc)
9 pages
Comp - SC QS Xi
PDF
No ratings yet
Comp - SC QS Xi
6 pages
Bcs Higher Education Qualifications BCS Level 4 Certificate in IT
PDF
No ratings yet
Bcs Higher Education Qualifications BCS Level 4 Certificate in IT
8 pages
21CSS101 03-01-2024 FN
PDF
No ratings yet
21CSS101 03-01-2024 FN
4 pages
Assignment 1
PDF
No ratings yet
Assignment 1
6 pages
t1 SDF Solutions
PDF
No ratings yet
t1 SDF Solutions
8 pages
FinalSpring2020 230
PDF
No ratings yet
FinalSpring2020 230
6 pages
CompSci U1 P1 2019
PDF
No ratings yet
CompSci U1 P1 2019
13 pages
Mids - 2024 - OL P1 - MS
PDF
No ratings yet
Mids - 2024 - OL P1 - MS
4 pages
BIT100 Assignment 1 - Feb 2019 Semester
PDF
100% (1)
BIT100 Assignment 1 - Feb 2019 Semester
6 pages
2_Elaborate_Lab_Plan_PSIP_2023.docx
PDF
No ratings yet
2_Elaborate_Lab_Plan_PSIP_2023.docx
8 pages
Sample Paper 1 - Marking Scheme
PDF
No ratings yet
Sample Paper 1 - Marking Scheme
10 pages
Bcs Higher Education Qualifications BCS Level 4 Certificate in IT
PDF
No ratings yet
Bcs Higher Education Qualifications BCS Level 4 Certificate in IT
10 pages
XI MS CS
PDF
No ratings yet
XI MS CS
6 pages
Computer Science 2015
PDF
No ratings yet
Computer Science 2015
13 pages
Assignment 1
PDF
No ratings yet
Assignment 1
5 pages
Computer Science 22:01:22
PDF
No ratings yet
Computer Science 22:01:22
14 pages
ICG511S 2023 First Opportunity Memorandum Final
PDF
No ratings yet
ICG511S 2023 First Opportunity Memorandum Final
11 pages
Pure Maths Solution
PDF
No ratings yet
Pure Maths Solution
8 pages
Section 3.1: Direct Proof and Counterexample 1
PDF
No ratings yet
Section 3.1: Direct Proof and Counterexample 1
7 pages
Computer Science IA
PDF
No ratings yet
Computer Science IA
6 pages
International Student Funding: Presented By: Nadia Agarrat International Admissions Officer
PDF
No ratings yet
International Student Funding: Presented By: Nadia Agarrat International Admissions Officer
13 pages