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
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
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
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
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
Market Structure and Market Failure
PDF
No ratings yet
Market Structure and Market Failure
103 pages
Binary Worksheet 5 Floating Point 2leq2hp
PDF
No ratings yet
Binary Worksheet 5 Floating Point 2leq2hp
2 pages
C3 Modulus Functions PDF
PDF
100% (1)
C3 Modulus Functions PDF
5 pages
May 2021 Paper 1
PDF
No ratings yet
May 2021 Paper 1
12 pages
CSEC IT Notes - Term 1 Week 9 - Problem Solving and Programming Lecture 2
PDF
No ratings yet
CSEC IT Notes - Term 1 Week 9 - Problem Solving and Programming Lecture 2
47 pages
STSA 3732: Tutorial 2 (MEMO) : Matrix C Matrix C Matrix C Matrix C Matrix C Matrix C Matrix C Matrix C
PDF
100% (1)
STSA 3732: Tutorial 2 (MEMO) : Matrix C Matrix C Matrix C Matrix C Matrix C Matrix C Matrix C Matrix C
6 pages
CAPE Computer Science Unit 1 Paper 2
PDF
No ratings yet
CAPE Computer Science Unit 1 Paper 2
7 pages
Information Technology Csec Jan 2015 p1 With Answers
PDF
No ratings yet
Information Technology Csec Jan 2015 p1 With Answers
20 pages
CSEC Question Paper May-June 2016 P-2
PDF
No ratings yet
CSEC Question Paper May-June 2016 P-2
5 pages
Cape Computer Science Unit 1 2012 P2
PDF
No ratings yet
Cape Computer Science Unit 1 2012 P2
6 pages
Trace Table G 11
PDF
No ratings yet
Trace Table G 11
37 pages
CAPE Economics 2015 U2 P1 PDF
PDF
100% (1)
CAPE Economics 2015 U2 P1 PDF
9 pages
As Level It Notes
PDF
100% (1)
As Level It Notes
12 pages
CAPE Economics 2011 U2 P1
PDF
100% (1)
CAPE Economics 2011 U2 P1
8 pages
CAPE Computer Science P2
PDF
No ratings yet
CAPE Computer Science P2
7 pages
CAPE Computer Science Unit 1 Past Paper
PDF
No ratings yet
CAPE Computer Science Unit 1 Past Paper
9 pages
CAPE Accounting MCQ
PDF
100% (1)
CAPE Accounting MCQ
10 pages
CAPE Accounting Unit 2 2012 P2
PDF
No ratings yet
CAPE Accounting Unit 2 2012 P2
7 pages
CAPE Computer Science Unit 1 2012 Past Paper
PDF
No ratings yet
CAPE Computer Science Unit 1 2012 Past Paper
6 pages
CXC Past Paper 1 June 2010 PDF
PDF
No ratings yet
CXC Past Paper 1 June 2010 PDF
1 page
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
CAPE Economics Unit 2 2008 Paper 1
PDF
75% (4)
CAPE Economics Unit 2 2008 Paper 1
10 pages
ADts Worksheet
PDF
No ratings yet
ADts Worksheet
4 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
9569/02 Computing
PDF
No ratings yet
9569/02 Computing
8 pages
CAPE 2014 Unit 1 Computer Science P2
PDF
No ratings yet
CAPE 2014 Unit 1 Computer Science P2
8 pages
CSEC POA June 2003 P1 PDF
PDF
0% (1)
CSEC POA June 2003 P1 PDF
10 pages
Presentation - 02 Reliability in Computer Systems
PDF
No ratings yet
Presentation - 02 Reliability in Computer Systems
24 pages
P1 Chapter 01
PDF
No ratings yet
P1 Chapter 01
20 pages
CSEC Principles of Business P2 2022
PDF
No ratings yet
CSEC Principles of Business P2 2022
13 pages
CAPE Computer Science May - June 09 Unit 1 P1
PDF
100% (3)
CAPE Computer Science May - June 09 Unit 1 P1
11 pages
MCS-201 2025 PGDCA New GSPH@9891268050
PDF
No ratings yet
MCS-201 2025 PGDCA New GSPH@9891268050
23 pages
Algebra 2 Chapter 6 Review
PDF
No ratings yet
Algebra 2 Chapter 6 Review
5 pages
Cape 2022 Unit 1 p032 Pure Math QP
PDF
No ratings yet
Cape 2022 Unit 1 p032 Pure Math QP
10 pages
CXC IT Theory 1999: Attempt ALL Questions
PDF
No ratings yet
CXC IT Theory 1999: Attempt ALL Questions
4 pages
AO2 Worksheet 1 Cause and Effect
PDF
No ratings yet
AO2 Worksheet 1 Cause and Effect
2 pages
AO2 Worksheet 3 Chains of Analysis-1
PDF
No ratings yet
AO2 Worksheet 3 Chains of Analysis-1
2 pages
21CSS101 03-01-2024 FN
PDF
No ratings yet
21CSS101 03-01-2024 FN
4 pages
CAPE Economics MCQ - Answer Key
PDF
No ratings yet
CAPE Economics MCQ - Answer Key
22 pages
CompSci U1 P2 2015
PDF
No ratings yet
CompSci U1 P2 2015
10 pages
Trace The Following Flowchart For Input 11
PDF
No ratings yet
Trace The Following Flowchart For Input 11
9 pages
CXC Cape It U1 p2 2022
PDF
No ratings yet
CXC Cape It U1 p2 2022
24 pages
9569/02 Computing
PDF
No ratings yet
9569/02 Computing
12 pages
CAPE Computer Science 2012 Past Paper
PDF
No ratings yet
CAPE Computer Science 2012 Past Paper
6 pages
July 2021 Q1-2 (Past Paper) PDF
PDF
No ratings yet
July 2021 Q1-2 (Past Paper) PDF
7 pages
Add Maths Mock P1
PDF
0% (1)
Add Maths Mock P1
5 pages
Employee Gender Age Prior Experience Beta Experience Education Annual Salary Part C
PDF
No ratings yet
Employee Gender Age Prior Experience Beta Experience Education Annual Salary Part C
6 pages
Mini Relay Regional Questions 201213
PDF
No ratings yet
Mini Relay Regional Questions 201213
16 pages
Final Model Paper Computer Science SSC-II
PDF
No ratings yet
Final Model Paper Computer Science SSC-II
7 pages
2022-2023 COMP1602 Course Outline
PDF
No ratings yet
2022-2023 COMP1602 Course Outline
4 pages
Information Technology Ans 2006 Paper 1
PDF
100% (7)
Information Technology Ans 2006 Paper 1
7 pages
Unit 1 Computer Science Markscheme 2023
PDF
No ratings yet
Unit 1 Computer Science Markscheme 2023
3 pages
Computer Science Cape Syllabus
PDF
No ratings yet
Computer Science Cape Syllabus
1 page
1.Q. What Is Operating System?
PDF
No ratings yet
1.Q. What Is Operating System?
15 pages
Computer Science 2015
PDF
No ratings yet
Computer Science 2015
13 pages
INF1511 - Chapter 1 - Python and Its Features
PDF
No ratings yet
INF1511 - Chapter 1 - Python and Its Features
3 pages
3.reading Importing Raw Data Into Sas
PDF
No ratings yet
3.reading Importing Raw Data Into Sas
5 pages
Specimen Paper Unit 1 Paper 02
PDF
No ratings yet
Specimen Paper Unit 1 Paper 02
6 pages
I Focus: Test Your Knowledge
PDF
No ratings yet
I Focus: Test Your Knowledge
2 pages