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)
409 views
CAPE Computer Science 2012 Past Paper
CAPE computer science past paper
Uploaded by
RuthGeorge
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 2012 Past Paper For Later
Download
Save
Save CAPE Computer Science 2012 Past Paper For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
409 views
CAPE Computer Science 2012 Past Paper
CAPE computer science past paper
Uploaded by
RuthGeorge
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 2012 Past Paper For Later
Carousel Previous
Carousel Next
Download
Save
Save CAPE Computer Science 2012 Past Paper For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 6
Search
Fullscreen
rest cope 02115020 MAY/JUNE 2012 FORM TP 2012163 SR CARIBBEAN EXAMINATIONS COUNCIL ADVANCED PROFICIENCY EXAMINATION COMPUTER SCIENCE FUNDAMENTALS OF COMPUTER SCIENCE UNIT 1 ~ Paper 02 2 hours 30 minutes 1S MAY 2012 (a.m) ) Ae rategeecenen toa This examination paper consists of THREE sections: Computer Architecture and Organisation, Problem Solving with Computers and Programming. 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 6 printed pages. READ THE FOLLOWING INSTRUCTIONS CAREFULLY. 1. Do NOT open this examination paper until instructed to do so. Answer ALL questions from the THREE sections, DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO DO SO. Copyright © 2011 Caribbean Examinations Council Alll rights reserved. 02115020/CAPE 2012-2- SECTION A COMPUTER ARCHITECTURE AND ORGANIZATION Answer BOTH questions. 1. @)_—_—_Acertain cirouit has two inputs, x and y. Its output is given by the boolean function, F, where (i) Give the truth table of the circuit. [4 marks} (ii) Using only the primary logie gates, design and draw the circuit, [6 marks} (&) — ()_—_Drawa clearly labelled block diagram of a 4-to-I line multiplexer. [4 marks] (i) Ina security system, four sensors must transmit data to a single line for alarm notification, Each sensor transmits data for | second. Explain how a multiplexer can be used for the purpose described above and discuss how data from each sensor is transmitted through the alarm notification, Tine, [6 marks} (© @_ Showing all working, find the largest and smallest integers that can be stored in four bits when signed magnitude representation is used, [2 marks} Gi) Consider the following floating point representation: 1-bit sign, 3-bit exponent, 5-bit mantissa Calculate the decimal equivalent of 101100011 [3 marks} Total 25 marks 2, @)_—(i)_ Explain whatis meant by the ‘instruction set’ of central processing unit (CPU). [2 marks} (ii) Briefly describe THREE types of instructions that are typically included in an instruction set [6 marks] (ii) Explain how cache memory can increase the efficiency of data retrieval. [3 marks] GO ON TO THE NEXT PAGE 0211 5020/CAPF 2017oo) Gi) © @ ace Distinguish between the opcode and the operands of an instruction. [2 marks] ‘Two typical instruction formats are one-address and two-address. Describe how the operands are obtained in EACH case and specify where the results are stored. [6 marks} Explain how a hard disk differs from RAM in terms of access method and access speed. [3 marks} Explain how RAM differs from a CD-R device in terms of volatility and storage capacity. [3 marks} Total 25 marks SECTION B PROBLEM SOLVING WITH COMPUTERS. Answer BOTH questions. 3. (@)_ Explain the role of an algorithm in the problem-solving process. [2 marks} (6) Examine the TWO algorithms below (labelled Algorithm | and Algorithm 2)and answer the questions that follow. Algorithm 1 FOR X =0 TO 15 DO PRINT X END FOR Algorithm 2 a Gi) 02115020/CAPE 2012 READ X WHILE X ! means “not equal to”} READ X END WHILE, Which of the algorithms above illustrates bounded iteration? Justify your answer. [3 marks} Which of the algorithms above illustrates unbounded iteration? Justify your answer. [3 marks} GO ON TO THE NEXT PAGE-4 (©) Aprimary school is conducting a survey on the popularity of certain colours. Students are asked to vote for any of four choices: red, blue, green, none. If red, blue or green is not the favourite, students vote for ‘none’. Write an algorithm to find and print the (number of students that voted for EACH of the colours: red, blue, green. (ii) TOTAL number of students that voted for red, blue or green ‘Assume that on the day of the survey, 150 students are present. Also assume that all votes are valid, [10 marks} (4) Write an algorithm that uses iteration to find the sum ofall multiples of and all multiples of 7 between m (inclusive) and 7 (inclusive) where m and n are two positive integers entered via the keyboard. Assume that >. [7 marks} Total 25 marks 4. (a)__ Construct a flow chart to represent the following algorithm. begin Prompt for numDays Read numDays Set day to 1 Set totalComm to 0 While day <= numDays do read numltemsSold if numltemsSold < 500 then comm = numltemsSold * 4 else comm = numltemsSold * 5 endif totalComm = totalComm + comm. Print comm Add I to day Endwhile Print numDays, totalComm stop [12 marks} (>) An algorithm is shown below. read j sum while j <5 do sum = sum + j print j read j endwhile print ‘sum, sum What would the algorithm print given the line of input data below? Show your working. Soi sear [3 marks] GO ON TO THE NEXT PAGE 02115020/CAPE 2012(©) 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: rintSpaces (n) prints n spaces from the current cursor position print continues output on the current line from the current cursor position © printin terminates output on the current line at the current cursor position, Any subsequent output begins on a new line (e.g., line 18) © println (output-list) outputs “output-ist’ on the current line and then places the cursor at the beginning of the following line (e.g., line 4) 1. begin 2 SIZE=10 a printSpaces ( SIZE +1 ) 4 printn ("*") 5 SIZE -2 6 while j >= 0 1 begin 8. printSpaces (j +1) 9 print ("S$") 10, printSpaces ( SIZE ~j) 1 printin (" &') 12. j=j-2 13, endwhile 14, printSpaces (1) 15. for j= 1 to (SIZE + 1) do 16 print ("+") 17. endfor 18. printin 19, end [10 marks} ‘Total 25 marks SECTION C PROGRAMMING Answer BOTH questions 5S. (a) _Briefly describe THREE stages of the program translation process. [6 marks} (6) WriteaC function which accepts a positive integer, n, and returns2", Stateany assumptions made, [7marks] (©) (i) Write C code to store the even numbers from 2 (inclusive) to 40 (inclusive) in a file called “num.dat” [7 marks} (ii) Write C code to read the integers from the file “num.dat” created in ¢ (i), add $ 02115020/CAPE 2012 to each integer and then print the result on the sereen. [5 marks] Total 25 marks GO ON TO THE NEXT PAGE6 (a) __ Explain THREE ways in which good programming style can be maintained, 16 marks} (&) A grocer needs to store data about some products using a C application. Each product has an ID (integer), a quantity in stock (integer) and a price (floating point), (i) Write a declaration for a C struct productRee that can store the record for each product. [2 marks) (ii) Declare TWO variables, igen] and item2, that have the record structure declared inb (i) above, [mark] ii) Write C code to put data in the item struct from b (ii) above. ‘You can use any values you like. [2 marks} (iv) Assume that two produetRee structs, item3 and item, are already loaded with data, Write C code to exchange the values in item3 and item4. [3 marks} (©) Write C code to read a string entered by the user at the keyboard, store it in a character array and print the vowels that are present in the string. If no vowels are present, print “NO VOWELS". Assume that the string is entered in upper case letters and that the string is exactly 7 characters in length. Also, count and print the number of occurrences. of the letter “A” in the string. Example: Please enter name: MICHAEL. Vowel I present. Vowel A present. Vowel E present Number of As= I [11 marks] Total 25 marks END OF TEST IF YOU FINISH BEFORE TIME IS CALLED, CHECK YOUR WORK ON THIS TEST. 02115020/CAPE 2012
You might also like
Programming in C Sample Question Paper
PDF
75% (4)
Programming in C Sample Question Paper
5 pages
Sample Question Paper of PRogramming in 'C'
PDF
100% (1)
Sample Question Paper of PRogramming in 'C'
4 pages
HH
PDF
No ratings yet
HH
4 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 Unit 1 2012 P2
PDF
No ratings yet
Cape Computer Science Unit 1 2012 P2
6 pages
CompSci U1 P2 2015
PDF
No ratings yet
CompSci U1 P2 2015
10 pages
CAPE ComputerScienceUnit1 2010exam
PDF
No ratings yet
CAPE ComputerScienceUnit1 2010exam
7 pages
Computer Science Cape 2010
PDF
No ratings yet
Computer Science Cape 2010
7 pages
CAPE 2014 Unit 1 Computer Science P2
PDF
No ratings yet
CAPE 2014 Unit 1 Computer Science P2
8 pages
CAPE 2009 Computer Science Unit 1 Paper 2
PDF
No ratings yet
CAPE 2009 Computer Science Unit 1 Paper 2
9 pages
CAPE Computer Science 2014 Paper 2
PDF
No ratings yet
CAPE Computer Science 2014 Paper 2
8 pages
CompSci U1 P2 2019
PDF
No ratings yet
CompSci U1 P2 2019
26 pages
CompSci U1 P2 2024
PDF
No ratings yet
CompSci U1 P2 2024
16 pages
Screenshot 2025-05-13 at 20.01.55
PDF
No ratings yet
Screenshot 2025-05-13 at 20.01.55
17 pages
CAPE Computer Science P2
PDF
No ratings yet
CAPE Computer Science P2
7 pages
Computer Science SSC-II Solution of 2nd Set Model Paper
PDF
No ratings yet
Computer Science SSC-II Solution of 2nd Set Model Paper
10 pages
1-2 r13 Aug 2014 Q.P
PDF
No ratings yet
1-2 r13 Aug 2014 Q.P
96 pages
r 13205082014
PDF
No ratings yet
r 13205082014
5 pages
Computer Science U1 P2 2025
PDF
No ratings yet
Computer Science U1 P2 2025
15 pages
Final Model Paper Computer Science SSC-II
PDF
No ratings yet
Final Model Paper Computer Science SSC-II
7 pages
CBSE Class 11 Computer Science Sample Paper 2018
PDF
No ratings yet
CBSE Class 11 Computer Science Sample Paper 2018
6 pages
Computer Science B.SC - .Prog - .Sem - Nov Dec 2016
PDF
No ratings yet
Computer Science B.SC - .Prog - .Sem - Nov Dec 2016
98 pages
PROGRAMMING-FOR-PROBLEM-SOLVINGCSE-IT-CSM-CSD-CSO
PDF
No ratings yet
PROGRAMMING-FOR-PROBLEM-SOLVINGCSE-IT-CSM-CSD-CSO
2 pages
Binsys Technologies PVT - LTD
PDF
No ratings yet
Binsys Technologies PVT - LTD
18 pages
Model Question Paper Class-XI Computer Science M.M.:70 Time:3 Hrs
PDF
No ratings yet
Model Question Paper Class-XI Computer Science M.M.:70 Time:3 Hrs
19 pages
PPS - Unit 1 Quesstion Bank
PDF
No ratings yet
PPS - Unit 1 Quesstion Bank
4 pages
QP Iyear Isem 2011 C Programming
PDF
No ratings yet
QP Iyear Isem 2011 C Programming
4 pages
SPC 2107 introduction to computer programming year I semester
PDF
No ratings yet
SPC 2107 introduction to computer programming year I semester
4 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
CompSci U1 P1 2019
PDF
No ratings yet
CompSci U1 P1 2019
13 pages
Online Bits
PDF
No ratings yet
Online Bits
4 pages
Second Semester 2014 - 2015 Midterm Exam, Thursday April 2, 2015 Time: 120 Minutes
PDF
No ratings yet
Second Semester 2014 - 2015 Midterm Exam, Thursday April 2, 2015 Time: 120 Minutes
9 pages
CS Year 10 Practical June 2023
PDF
No ratings yet
CS Year 10 Practical June 2023
13 pages
MidtermExam F15
PDF
No ratings yet
MidtermExam F15
14 pages
All Unit
PDF
No ratings yet
All Unit
142 pages
ST ST
PDF
No ratings yet
ST ST
4 pages
SSC-II Final Model Paper Computer Science
PDF
No ratings yet
SSC-II Final Model Paper Computer Science
8 pages
Computer Science Paper 1 SL
PDF
No ratings yet
Computer Science Paper 1 SL
6 pages
Cape Computer Science 2013 Unit 2 P2
PDF
No ratings yet
Cape Computer Science 2013 Unit 2 P2
6 pages
COM 1208-1 programming ope
PDF
No ratings yet
COM 1208-1 programming ope
4 pages
Structured Program Exams
PDF
No ratings yet
Structured Program Exams
3 pages
Cse 109 (2020)
PDF
No ratings yet
Cse 109 (2020)
5 pages
IP AAT-1 (2)
PDF
No ratings yet
IP AAT-1 (2)
14 pages
Important Questions for Board Exam
PDF
No ratings yet
Important Questions for Board Exam
11 pages
questions
PDF
No ratings yet
questions
15 pages
SSC-II Computer Science (2 Sets With Solutions) - Combined
PDF
No ratings yet
SSC-II Computer Science (2 Sets With Solutions) - Combined
37 pages
Computer Science Ssc-Ii: Answer Sheet No.
PDF
No ratings yet
Computer Science Ssc-Ii: Answer Sheet No.
8 pages
The Bcs Higher Education Qualifications BCS Level 4 Certificate in IT
PDF
No ratings yet
The Bcs Higher Education Qualifications BCS Level 4 Certificate in IT
6 pages
Computer Science Paper 1 HL
PDF
No ratings yet
Computer Science Paper 1 HL
7 pages
EE 171 UE 1st SEMESTER WITH ANS
PDF
No ratings yet
EE 171 UE 1st SEMESTER WITH ANS
6 pages
Iit C++ Notes
PDF
No ratings yet
Iit C++ Notes
5 pages