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)
975 views
6 pages
CAPE Computer Science Unit 1 2012 Past Paper
CAPE Computer Science Unit 1 2012 Past Paper. Paper 2
Uploaded by
Ashley-Ann Cooper
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
Save
Save CAPE Computer Science Unit 1 2012 Past Paper For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
975 views
6 pages
CAPE Computer Science Unit 1 2012 Past Paper
CAPE Computer Science Unit 1 2012 Past Paper. Paper 2
Uploaded by
Ashley-Ann Cooper
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
Carousel Previous
Carousel Next
Download
Save
Save CAPE Computer Science Unit 1 2012 Past Paper For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save CAPE Computer Science Unit 1 2012 Past Paper For Later
You are on page 1
/ 6
Search
Fullscreen
|TELTEUEETA A 02115020 FORM TP 2012163 Re, MAY/TUNE 2012 CARIBBEAN EXAMINATIONS COUNCIL ADVANCED PROFICIENCY EXAMINATION COMPUTER SCIENCE FUNDAMENTALS OF COMPUTER SCIENCE UNIT 1 - Paper 02 2 hours 30 minutes 15 MAY 2012 (a.m ‘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. 2. Answer ALL questions from the THREE seetions, DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO DO SO. Copyright © 2011 Caribbean Examinations Council All rights reserved. 02115020/CAPE 2012-2 SECTION A COMPUTER ARCHITECTURE AND ORGANIZATION where eo @ @ oO @ ai) 02115020/CAPE 2012 Answer BOTH questions. (8) Acertain circuit has two inputs, x and y. Its output is given by the boolean function, F, Give the truth table of the circuit [4 marks] Using only the primary logie gates, design and draw the circuit. (6 marks} Draw a clearly fabelted block diagram of a 4-to-1 line multiplexer. [4 marks] Ina security system, four sensors must transmit data to a single line for alarm, notification. Each sensor transmits data for 1 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 line. [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} Consider the following floating point representation: L-bit sign, 3-bit exponent, 5-bit mantissa culate the decimal equivalent of 101100011 [3 marks] Total 25 marks Explain what is meant by the ‘instruction set? of a central processing unit (CPU). [2 marks} Briefly describe THREE types of instructions that ate typically included in an instruction set. (6marks} Explain how cache memory can increase the efficiency of data retrieval, [3 marks] GO ON TO THE NEXT PAGE&) © 3 @ &) (Distinguish between the opcode and the operands of an instruction, [2 marks] (ii) ‘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} Gi) Explain how RAM differs from a CD-R deviee in terms of volatility and storage capacity. [3 marks} ‘Total 25 marks SECTION B PROBLEM SOLVING WITH COMPUTERS Answer BOTH questions, Explain the role ofan algorithm in the problem-solving process. (2 marks} Examine the TWO algorithms below (labelled Algorithm | and Algorithm 2)and answer the questions that follow, Algorithm 1 FOR X=0TO 15DO PRINT X END FOR Algorithm 2 READ X WHILE X ! = 999 DO {Note that ! = means “not equal (o”} SUM = SUM +X READ X END WHILE (Which of the algorithms above illustrates bounded iteration? Justify your answer, B marks] (ii) Which of the algorithms above illustrates unbounded iteration? Justify your answer. [3 marks} GO ON TO THE NEXT PAGE 02115020/CAPE 2012-4- A primary school is condueting a survey on the popularity of certain colours. Students are asked to vote for any of four choices: red, blue, green, none, Ifred, 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. i) 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. [omarks} Write an algorithm that uses iteration to find the sum of all multiples of 4 and all multiples of 7 between m (inclusive) and (inclusive) where m and 1 are two positive integers centered via the keyboard, Assume that >, [7 marks] Total 25 marks Construct a flow chart to represent the following algorithm, begin Prompt for numDays Read numDays Set day tot Set totalComm to 0 While day <= numDays do read mumltemsSold if numitemsSold < 500 then comm = numftemsSold * 4 else comm = numltemsSold * 5 endif totalComm = totalComm + comm Print comm Add 1 to day Endwhile Print numDays, totalComm, stop [12marks} An algorithm is shown below. read j sum =0 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. le eteeeosaitd [3 marks} GO ON TO THE NEXT PAGE 02115020/CAPE 2012is (©) Trace through the exccution 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 © print continues output on the current line from the current cursor position © printin terminates output on the curtent line at the current cursor position. Any subsequent output begins on a new line (e.g,, line 18) © printin (output-list) outputs ‘output-fist” 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 3 printSpaces ( SIZE +1 ) 4 printin ("*") 5 j=SIZE -2 6. while j>=0 1. begin 8 printSpaces (j +1) 9 CS") 10, printSpaces (SIZE —j) ie printin (*&") 12. inj -2 13. endwhile 14. printSpaces (1) 15. forj=1 to (SIZE +1) do 16 print ("+") : 17. endfor 18. printin 19. end [10 marks} ‘Total 25 marks SECTION C PROGRAMMING Answer BOTH questions 5. (a)_Briefly describe THREE stages of the program translation process, (6 marks} (6) WriteaC function whichaccepts.a positive integer, n, and returns 2". State any assumptions made. (7marks} (©) ()_ Write C-code to store the even numbers from 2 (inclusive) to 40 (inclusive) in 2 file called “num.dat”” (7 marks} Gi) Write C code to read the integers from the file “num.dat” created i to cach integer and then pi e(),add 5 nt the result on the sereen, [Smarks} ‘Total 25 marks GO ON TO THE NEXT PAGE 02115020/CAPE 2012(a) (b) © ge Explain THREE ways in which good programming style can be maintained. [6 marks} A grocer needs to store data about some products using a C application, Each produet hhas an ID (integer), a quantity in stock (integet) and a price (floating point). (Write a declaration for a C struct produetRee that can store the record for each product, [2 marks] (ii) Declare TWO variables, item/ and item2, that have the record structure declared in b (® above. {mark} (iil) Write C code to put data in the item! struct from b (ji) above. ‘You can use any values you like, [2 marks} (iv) Assume that two productRee structs, ifem3 and item/, ate already loaded with data, Write C code to exchange the values in item3 and item4. [3 marks} Write C code to read a stting entered by the user at the keyboard, store it in a character array and print the vowels that are present in the string. Ifno 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 = 1 [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
CAPE IT Unit 2 May - June 2018 Paper 2
PDF
No ratings yet
CAPE IT Unit 2 May - June 2018 Paper 2
19 pages
I.T. Unit 2 Paper 1 2020
PDF
No ratings yet
I.T. Unit 2 Paper 1 2020
10 pages
CAPE Accounting Unit 1 2011 P2
PDF
No ratings yet
CAPE Accounting Unit 1 2011 P2
7 pages
CAPE Computer Science Internal Assessment Project
PDF
50% (2)
CAPE Computer Science Internal Assessment Project
4 pages
Computer Science U1 P2 2025
PDF
No ratings yet
Computer Science U1 P2 2025
15 pages
CAPE Computer Science Unit 1 Paper 2
PDF
No ratings yet
CAPE Computer Science Unit 1 Paper 2
7 pages
CAPE Computer Science Unit 1 - Proposal
PDF
No ratings yet
CAPE Computer Science Unit 1 - Proposal
2 pages
CAPE Communication Studies 2015 P2 (Guyana)
PDF
0% (1)
CAPE Communication Studies 2015 P2 (Guyana)
6 pages
Pure Mathematics Unit 1 2010 Paper 1
PDF
0% (1)
Pure Mathematics Unit 1 2010 Paper 1
9 pages
Cape Notes Unit 2 Database Management
PDF
No ratings yet
Cape Notes Unit 2 Database Management
3 pages
Cape Physics U1 p2 2021
PDF
No ratings yet
Cape Physics U1 p2 2021
16 pages
Cape Computer Science 2018 Unit 2 P2
PDF
No ratings yet
Cape Computer Science 2018 Unit 2 P2
26 pages
Cape Computer Science 2016 Unit 2 P2
PDF
No ratings yet
Cape Computer Science 2016 Unit 2 P2
21 pages
Comm Studies Module 2 Essay On Miguel Street
PDF
No ratings yet
Comm Studies Module 2 Essay On Miguel Street
2 pages
CAPE Computer Science Unit 1 Past Paper
PDF
No ratings yet
CAPE Computer Science Unit 1 Past Paper
9 pages
CXC Cape It U1 p2 2022
PDF
No ratings yet
CXC Cape It U1 p2 2022
24 pages
PHYS0411 Lab Manual 2022
PDF
No ratings yet
PHYS0411 Lab Manual 2022
28 pages
Cape Unit 1 2018 Computer Science P2
PDF
No ratings yet
Cape Unit 1 2018 Computer Science P2
29 pages
Cape 2022 Unit 1 p032 Pure Math QP
PDF
No ratings yet
Cape 2022 Unit 1 p032 Pure Math QP
10 pages
Cape Communications Studies Specimen p01 2014 PDF
PDF
No ratings yet
Cape Communications Studies Specimen p01 2014 PDF
15 pages
Cape Unit 1 - Motion Questions
PDF
No ratings yet
Cape Unit 1 - Motion Questions
8 pages
Information Technology Csec Jan 2015 p1 With Answers
PDF
No ratings yet
Information Technology Csec Jan 2015 p1 With Answers
20 pages
CAPE Physics U1 P2 2017
PDF
No ratings yet
CAPE Physics U1 P2 2017
21 pages
May June 2017
PDF
No ratings yet
May June 2017
10 pages
Terminal Velocity (Plan and Design)
PDF
No ratings yet
Terminal Velocity (Plan and Design)
4 pages
CAPE Caribbean Studies 2012 P1
PDF
No ratings yet
CAPE Caribbean Studies 2012 P1
11 pages
CAPE Physics Unit 1 Answers
PDF
46% (13)
CAPE Physics Unit 1 Answers
2 pages
Cape It Ia
PDF
100% (1)
Cape It Ia
25 pages
CAPE Pure Mathematics 2018 U1 P2
PDF
100% (1)
CAPE Pure Mathematics 2018 U1 P2
32 pages
CAPE Computer Science May - June 09 Unit 1 P1
PDF
100% (3)
CAPE Computer Science May - June 09 Unit 1 P1
11 pages
CAPE Pure Mathematics U1 P1 2020
PDF
No ratings yet
CAPE Pure Mathematics U1 P1 2020
8 pages
Specific Heat Capacity E.M. Experiment #11
PDF
100% (1)
Specific Heat Capacity E.M. Experiment #11
4 pages
Communication Studies IA
PDF
No ratings yet
Communication Studies IA
10 pages
Computer Science Cape Syllabus
PDF
No ratings yet
Computer Science Cape Syllabus
1 page
Cape It Unit 1 Paper 1 Specimen Questions
PDF
No ratings yet
Cape It Unit 1 Paper 1 Specimen Questions
10 pages
CSEC Physics June 1999 P1
PDF
No ratings yet
CSEC Physics June 1999 P1
10 pages
Csec It Work Book Answers 01
PDF
No ratings yet
Csec It Work Book Answers 01
4 pages
Cape U1 2021 P2
PDF
No ratings yet
Cape U1 2021 P2
24 pages
Computer Science IA
PDF
No ratings yet
Computer Science IA
6 pages
Pure Mathematics Formula Sheet
PDF
No ratings yet
Pure Mathematics Formula Sheet
9 pages
FORM TP 2013166: Instructions
PDF
No ratings yet
FORM TP 2013166: Instructions
10 pages
Physics Unit 1 Paper 2 May June 2015
PDF
No ratings yet
Physics Unit 1 Paper 2 May June 2015
22 pages
CAPE Physics Workshop Workbook 2021 - Unit 1
PDF
No ratings yet
CAPE Physics Workshop Workbook 2021 - Unit 1
41 pages
AaCape-physics-unit-1-p2-mark-schemes-2022-2007 Pdfcoffee - Com - Pdf-Free
PDF
No ratings yet
AaCape-physics-unit-1-p2-mark-schemes-2022-2007 Pdfcoffee - Com - Pdf-Free
2 pages
Quelpr CAPE Communication Studies Essay Guide
PDF
No ratings yet
Quelpr CAPE Communication Studies Essay Guide
19 pages
Specimen Paper Unit 1 Paper 02
PDF
No ratings yet
Specimen Paper Unit 1 Paper 02
6 pages
Brochure It Sba
PDF
No ratings yet
Brochure It Sba
3 pages
Communication Studies Speaking and Writing
PDF
No ratings yet
Communication Studies Speaking and Writing
6 pages
2011 Cape Mathematics Unit 2 P1 (MC) Answers
PDF
100% (3)
2011 Cape Mathematics Unit 2 P1 (MC) Answers
8 pages
CXC CAPE Integrated Mathematics Past Paper 2018
PDF
No ratings yet
CXC CAPE Integrated Mathematics Past Paper 2018
25 pages
Cape IT Unit 1 Mod 1 Christmas Exam 2012 Paper 1b ANSWERS
PDF
No ratings yet
Cape IT Unit 1 Mod 1 Christmas Exam 2012 Paper 1b ANSWERS
9 pages
CAPE Computer Science 2012 Past Paper
PDF
No ratings yet
CAPE Computer Science 2012 Past Paper
6 pages
CompSci U1 P2 2015
PDF
No ratings yet
CompSci U1 P2 2015
10 pages
Cape Computer Science Unit 1 2012 P2
PDF
No ratings yet
Cape Computer Science Unit 1 2012 P2
6 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 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
Computer Science U1 P2 2009
PDF
No ratings yet
Computer Science U1 P2 2009
9 pages
CompSci U1 P2 2019
PDF
No ratings yet
CompSci U1 P2 2019
26 pages