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)
854 views
8 pages
CAPE Computer Science 2014 Paper 2
CAPE Computer science past paper: unit 1, paper 2 from 2014
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 2014 Paper 2 For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
854 views
8 pages
CAPE Computer Science 2014 Paper 2
CAPE Computer science past paper: unit 1, paper 2 from 2014
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 2014 Paper 2 For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save CAPE Computer Science 2014 Paper 2 For Later
You are on page 1
/ 8
Search
Fullscreen
Ce. rest cope 02115020 ‘ORM TP 2014160 MAY/SUNE 2014 ‘© CARIBBEAN EXAMINATIONS COUNCIL CARIBBEAN ADVANCED PROFICIENCY EXAMINATION® eee COMPUTER SCIENCE FUNDAMENTALS OF COMPUTER SCIENCE UNIT 1 - Paper 02 2 hours 30 minutes 16 MAY 2014 (; READ THE FOLLOWING INSTRUCTIONS CAREFULLY. 1, This paper consists of THREE sect ns. 2. Answer ALL questions fiom the THREE sections. Each section consists of TWO questions, DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO DO SO. Copyright © 2013 Caribbean Examinations Council All tights reserved, 02115020/CAPE 2014eo SECTION A “COMPUTER ARCHITECTURE AND ORGANIZATION Answer BOTH questions, (a) Draw a cleatly labelled block diagram of a 2 to 1 line multiplexer, [5 marks} (0) Explain what is meant by the term “logic gate’ [2 marks} (©) Write the ruth table for the circuit shown in Figure 1 by listing all possible input bitpatterns and their corresponding outputs. Figure 1. [4 marks} (State which of the following terms ate associated with a single output value: + Decoder + Fipsflop + Multiplexor 2 marks} Feat arvich ara tisa maa aBiae (©) A decoder is used to display the number of the teller who is available to serve the next customer in a bank. The seven-segment configuration illustrated in Figure 2 is used to fornt the number of the teller, Ch D Figure 2. @ If there ate three bits needed fo display a digit, calculate how many digits this decoder can display. [2 marks} Gi) List the letters of the segments that must be switehed on to display the number 5, [5 marks] (D) _ Find the 4-bit two's complement of -7. [2 marks} (@) Consider the following floating point representation: 1 -bit sign, 3-bit exponent, 5-bit mantissa Calculate the decimal representation of 001110110. [3 marks] (otal 25 marks GO ON TO THE NEXT PAGE-4 (@) Describe the THREE main activities that take plnce in an instuetion cycle, stating the conest order, 15 marks} (0) @_ Give ONE similarity and ONE difference between RAM and hard disks as used in computer systens, (2 marks} Gi) Give TWO reasons why registers ave included in the CPU of acompMIekins, {4 marks} (©) Briefly describe a situation where BACH of the following can be used (Supercomputer (i), PDA (ii) Mainframe {6 marks] (€)_Deseribe the kind of information that is typically stored in the ROM of » compute (2 marks} (©) Discuss TWO seasons why current computers may not be able (0 work efficiently with new storage devices developed ten years from now. (6 marks} Fotal’Z5 marks GO ON TO THE NEXT PAGESECTION B ‘PROBLEM SOLVING WITH COMPUTERS Answer BOTH questions. 3, @)__ Give ONB example of EACH of the following control constructs: (Sequence (ii) Selection ii) Iteration {6 marks} (6) Asocondaty schoo! is doing a survey on students’ favourite subjects, Students are asked to vote for any of fout choices: Mathematics, English, Spanish, none. If Mathematics, English or Spanish is not the favourite, students vote “none” Write an algorithm to find and print: @ ‘The number of students that voted for BACH of the subjects: Mathematics, English, Spanish ii) The TOTAL number of students that voted for Mathematics, F elish or Spanish ‘Agsume that on the day of the survey, 100 students are present, Also assume that all votes are valid. [10 marks} (¢) Write analgorithm that ses iteration (o find the sum ofall multiples ofsix andall multiples arscven between 100 and 250 exclusive. Use one variable, for example, suimMult, fo or cumnatate the sum of the multiples of both numbers in the given range, [9 marks] ‘Total 25 marks GO ON TO THE NEXT PAGE(@) Construct an algorithm to solve the following problem. Data exists for ten items. Bach line of data consists of a product name, price and discount %. You are required (0 read the data and complete the following tasks. () Print the product name, the discount for that product followed by the new price. For example, given : Shirt 120 25 ‘The algorithm should print Shirt 30 90 where “Shirt” is the product, $30 is the discount of 25% and $90 is the price after the discount, (ii) Print the TOTAL amount of product discounts overall, If the total amount of discounts is greater than $500, print “Discounts exceeded.” 112 marks} (>) Construct a flow chart to represent the algorithm given in 4 (#) above. [6 marks} (©) Read the following algorithm and answer the questions that follow. read "x sum] = 2 while x < 10 do suml = sumi *(x-1) print: suml read x endwhile print ‘sum=", sum What would the algorithm print given the line of input data below? (Clearly show how you arrived at your answer.) 5326 24 [7 marks} ‘Fotal 25 marks GO ON TO THE NEXT PAGE(a) ) ©) @ od SECTION C PROGRAMMING Answer BOTH questions. State the stage of the translation process that represents EACH of the following descriptions: @_ Astream of characters making up the source program is read from left to right and grouped into tokens (ii) Apiece of code is transformed to make it more efficient without changing its output or side effects [2 marks} Explain the role of a ‘wateh’ in programming. [2 marks} ‘Write a C function which accepts an integer array and an integer variable'indicating the of the array, The function should return a count of the numbers in the array that are LESS THAN 20. {6 marks} Annouprofit organization is asking for donations for a worthy cause. ‘They hope to raise $100,000. All donations are stored in a file called “donations.txt’, The first line of the file gives the amount the ofgenization hopes to raise. Each fine thereafter contains the amount of each donation, ‘The fast line of data in the file contains -1 only. Write a C program that determines and outputs to a file, “funcls..xt”, the total funds raised and how many donations were made. (You may not use arrays in your solution.) [15 marks} ‘Total 25 marks“8 (a) Explain why indentation is important in programming. 2. marks} (b) Why is it recommended that comments be used in programming code? {2 marks} (©) What output is produced by the following C program? (For the output stite the values cane ve OFS AGL J nt gael stage.) finclude
int main () (int 4, J, final = 1; for (j= 9; §> 0; J= 3-3) { 44/3: while (i <3) \ni ig taj is ta\n",i, 4); delta final = final + 2*5; } /fuhite printe("\nNew i = %d", i); }//for print£("\nvinal Output: %d\n", final); scanf (*&c" return 0; V//main [11 marks} (@) Write a C program that accepts two values, price and tax (both of type float). The program applies tax to price and prints the old price and the new price in an appropriate message. Note that tox is given as a percentage. For example, given 1000 10 ve with tax: $1100 [6 marks} ‘The program prints: Old price: $1000 New Pr (©) Write C code to read four integers and print their average. (Do not write an entire program.) [4 marks} ‘Total 25 marks END OF TEST IF YOU FINISH BEFORE TIME IS CALLED, CHECK YOUR WORK ON THIS TEST,
You might also like
PDF Interact With Information Technology 1 New Edition Roland Birbal Download
PDF
No ratings yet
PDF Interact With Information Technology 1 New Edition Roland Birbal Download
77 pages
C3 Modulus Functions PDF
PDF
100% (1)
C3 Modulus Functions PDF
5 pages
Economics Paper 1 Marking Guide 2022
PDF
100% (1)
Economics Paper 1 Marking Guide 2022
8 pages
CAPE Economics Unit 2 2008 Paper 1
PDF
75% (4)
CAPE Economics Unit 2 2008 Paper 1
10 pages
Market Structure and Market Failure
PDF
No ratings yet
Market Structure and Market Failure
103 pages
Explain The Functions of An Operating System
PDF
100% (2)
Explain The Functions of An Operating System
5 pages
CAPE Economics 2015 U2 P1 PDF
PDF
100% (1)
CAPE Economics 2015 U2 P1 PDF
9 pages
CAPE Pure Mathematics 2018 U1 P2
PDF
100% (1)
CAPE Pure Mathematics 2018 U1 P2
32 pages
Binary Worksheet 5 Floating Point 2leq2hp
PDF
No ratings yet
Binary Worksheet 5 Floating Point 2leq2hp
2 pages
ECON 1000 Midterm W Practice
PDF
100% (1)
ECON 1000 Midterm W Practice
7 pages
CSEC Question Paper May-June 2016 P-2
PDF
No ratings yet
CSEC Question Paper May-June 2016 P-2
5 pages
CAPE Economics Unit 2 Paper 2 2025
PDF
No ratings yet
CAPE Economics Unit 2 Paper 2 2025
12 pages
CAPE Computer Science Unit 1 - Proposal
PDF
No ratings yet
CAPE Computer Science Unit 1 - Proposal
2 pages
MOB May-June 2018 Paper 1 Unit 2
PDF
100% (1)
MOB May-June 2018 Paper 1 Unit 2
8 pages
2022 Mob U2 P1-1
PDF
100% (1)
2022 Mob U2 P1-1
8 pages
CAPE Computer Science May - June 09 Unit 1 P1
PDF
100% (3)
CAPE Computer Science May - June 09 Unit 1 P1
11 pages
Information Technology Csec Jan 2015 p1 With Answers
PDF
No ratings yet
Information Technology Csec Jan 2015 p1 With Answers
20 pages
CAPE Economics 2011 U2 P1
PDF
100% (1)
CAPE Economics 2011 U2 P1
8 pages
CAPE Accounting MCQ
PDF
100% (1)
CAPE Accounting MCQ
10 pages
CAPE Computer Science P2
PDF
No ratings yet
CAPE Computer Science P2
7 pages
CAPE Accounting Unit 2 2012 P2
PDF
No ratings yet
CAPE Accounting Unit 2 2012 P2
7 pages
Visual Programming 1: - Exam Preparation: With MCQS, Pracs, Questions and Solutions
PDF
No ratings yet
Visual Programming 1: - Exam Preparation: With MCQS, Pracs, Questions and Solutions
27 pages
CXC Cape It U1 p2 2022
PDF
No ratings yet
CXC Cape It U1 p2 2022
24 pages
Cape 2017 Unit 1 Computer Science P2
PDF
No ratings yet
Cape 2017 Unit 1 Computer Science P2
24 pages
CAPE Computer Science Unit 1 Paper 2
PDF
No ratings yet
CAPE Computer Science Unit 1 Paper 2
7 pages
CAPE Accounting 2017 U1 P2 PDF
PDF
No ratings yet
CAPE Accounting 2017 U1 P2 PDF
11 pages
ECON1012 Tutorial Sheet Answers 2023 FINAL
PDF
No ratings yet
ECON1012 Tutorial Sheet Answers 2023 FINAL
41 pages
Cape Notes Unit 2 Module 1 Content 9
PDF
No ratings yet
Cape Notes Unit 2 Module 1 Content 9
21 pages
CAPE Economics MCQ - Answer Key
PDF
No ratings yet
CAPE Economics MCQ - Answer Key
22 pages
Computer Science U1 P2 2025
PDF
No ratings yet
Computer Science U1 P2 2025
15 pages
Unit 2 Module 1 Notes - Linear Programming
PDF
No ratings yet
Unit 2 Module 1 Notes - Linear Programming
17 pages
CAPE Unit 2 Economics June 2011 P1
PDF
No ratings yet
CAPE Unit 2 Economics June 2011 P1
8 pages
CAPE Economics 2015 U1 P1 PDF
PDF
No ratings yet
CAPE Economics 2015 U1 P1 PDF
10 pages
P1 Chapter 01
PDF
No ratings yet
P1 Chapter 01
20 pages
CAPE 2014 Unit 1 Computer Science P2
PDF
No ratings yet
CAPE 2014 Unit 1 Computer Science P2
8 pages
July 2021 Q1-2 (Past Paper) PDF
PDF
No ratings yet
July 2021 Q1-2 (Past Paper) PDF
7 pages
CAPE Computer Science 2012 Past Paper
PDF
No ratings yet
CAPE Computer Science 2012 Past Paper
6 pages
CAPE Accounting 2016 U1 P1
PDF
No ratings yet
CAPE Accounting 2016 U1 P1
10 pages
CAPE Mob Unit 2 Paper 1 2024
PDF
No ratings yet
CAPE Mob Unit 2 Paper 1 2024
7 pages
Cape Computer Science 2013 Unit 2 P2
PDF
No ratings yet
Cape Computer Science 2013 Unit 2 P2
6 pages
Cape 2022 U2 It P1
PDF
No ratings yet
Cape 2022 U2 It P1
8 pages
CAPE Economics 2011 U1 P1
PDF
No ratings yet
CAPE Economics 2011 U1 P1
9 pages
CAPE Info Tech Unit 2 P1 2010 - Solutions
PDF
No ratings yet
CAPE Info Tech Unit 2 P1 2010 - Solutions
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 2015
PDF
No ratings yet
CompSci U1 P2 2015
10 pages
MCS-201 2025 PGDCA New GSPH@9891268050
PDF
No ratings yet
MCS-201 2025 PGDCA New GSPH@9891268050
23 pages
CAPE Accounting 2015 U1 P2
PDF
No ratings yet
CAPE Accounting 2015 U1 P2
9 pages
Manipulation: UNIT 23 Algebraic CSEC Multiple Choice Questions
PDF
No ratings yet
Manipulation: UNIT 23 Algebraic CSEC Multiple Choice Questions
3 pages
CAPE Computer Science Unit 1 Past Paper
PDF
No ratings yet
CAPE Computer Science Unit 1 Past Paper
9 pages
CAPE Computer Science Unit 1 2012 Past Paper
PDF
No ratings yet
CAPE Computer Science Unit 1 2012 Past Paper
6 pages
21CSS101 03-01-2024 FN
PDF
No ratings yet
21CSS101 03-01-2024 FN
4 pages
AO2 Worksheet 1 Cause and Effect
PDF
No ratings yet
AO2 Worksheet 1 Cause and Effect
2 pages
2022-2023 COMP1602 Course Outline
PDF
No ratings yet
2022-2023 COMP1602 Course Outline
4 pages
Computer Science Cape Syllabus
PDF
No ratings yet
Computer Science Cape Syllabus
1 page
Information Technology Ans 2006 Paper 1
PDF
100% (7)
Information Technology Ans 2006 Paper 1
7 pages
Carnival Company Accounts
PDF
No ratings yet
Carnival Company Accounts
4 pages
Decision Tree Practice Problems
PDF
No ratings yet
Decision Tree Practice Problems
2 pages
Economics Module2 Unemployment
PDF
No ratings yet
Economics Module2 Unemployment
2 pages
The Financial Sector-Introduction
PDF
No ratings yet
The Financial Sector-Introduction
2 pages
CXC Past Paper 1 June 2010 PDF
PDF
No ratings yet
CXC Past Paper 1 June 2010 PDF
1 page