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)
100 views
Cape Computer Science 2015 Unit 2 P2
Cape Computer Science 2015 Unit 2 P2
Uploaded by
dnitehawk q
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Cape Computer Science 2015 Unit 2 P2 For Later
Download
Save
Save Cape Computer Science 2015 Unit 2 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)
100 views
Cape Computer Science 2015 Unit 2 P2
Cape Computer Science 2015 Unit 2 P2
Uploaded by
dnitehawk q
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Cape Computer Science 2015 Unit 2 P2 For Later
Carousel Previous
Carousel Next
Save
Save Cape Computer Science 2015 Unit 2 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
Ce. rest cope 02215020 FORM TP 2015167 . MAY/JUNE 2015 CARIBBEAN EXAMINATIONS COUNCIL CARIBBEAN ADVANCED PROFICIENCY EXAMINATION® COMPUTER SCIENCE FURTHER TOPICS IN COMPUTER SCIENCE UNIT 2 - Paper 02 2 hours 30 minutes 18 MAY 2015, READ THE FOLLOWING INSTRUCTIONS CAREFULLY. 1. This paper consists of THREE sections. 2. EACH section consists of TWO questions. 3. Answer ALL questions in the THREE sections. DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO DO SO. Copyright © 2014 Caribbean Examinations Council All rights reserved. 02215020/CAPE 20152- SECTION A DATA STRUCTURES Answer BOTH questions. (a) Why are stacks and queues classified as ADTS? [2 marks} (b) Describe the main differences between stacks and queues. Support your answer by giving a real-life example to illustrate how EACH ADT can be used. Note: An example should be given for each ADT. [6 marks} (©) Use C code to: (i) Write a function that adds an integer to a stack. The arguments for your function should be the stack and the number to be added. Your function should not call any other functions. [7 marks} (ii) Write a function that adds an integer to a queue. The arguments for your function should be the queue and the number to be added. Your function should not call any other functions. [7 marks} (d) Letters A, C, X and E have been added to a stack in the given order, Draw a diagram to illustrate how the letter C could be removed from this stack. Use the diagram to show the changing contents of the stack at EACH stage of the process. [3 marks} ‘Total 25 marks GO ON TO THE NEXT PAGE, 02215020/CAPE 2015El (@) (b) © -3- Consider the array called data below, au | 10 3} s flees Cli 4 A selection sort algorithm is being used to sort the eight integers in aseending order (that is, smaller values must come before bigger values). Draw the array after the first, second and third passes of selection sort (that is, 3 diagrams inal). [6 marks} ‘A linked list contains three nodes with the integers 3, 4 and 5, where 3 is at the head of the list, 4 is in the middle and 5 is at the end. (i) Draw a diagram to show the linked list. [3 marks] (ii) Explain how to delete the integer 3 from the linked list. [4 marks} Assume that an array, numbers, of size 50 is already loaded with 50 integers and sorted in ascending order. (i) Write code to obtain the value of an integer, target, from the user. [2 marks} (ii) Using the array, numbers, write code to search for the value, target, using binary search, If target is found, print its location, otherwise print—1. [Target is the value obtained from the user in (¢) (i) above.] [10 marks} Total 25 marks GO ON TO THE NEXT PAGE 02215020/CAPE 2015
You might also like
Hourglass Workout Program by Luisagiuliet 2
PDF
76% (21)
Hourglass Workout Program by Luisagiuliet 2
51 pages
12 Week Program: Summer Body Starts Now
PDF
87% (46)
12 Week Program: Summer Body Starts Now
70 pages
Read People Like A Book by Patrick King-Edited
PDF
57% (83)
Read People Like A Book by Patrick King-Edited
12 pages
Livingood, Blake - Livingood Daily Your 21-Day Guide To Experience Real Health
PDF
77% (13)
Livingood, Blake - Livingood Daily Your 21-Day Guide To Experience Real Health
260 pages
Cheat Code To The Universe
PDF
94% (79)
Cheat Code To The Universe
34 pages
Facial Gains Guide (001 081)
PDF
91% (45)
Facial Gains Guide (001 081)
81 pages
Curse of Strahd
PDF
95% (467)
Curse of Strahd
258 pages
The Psychiatric Interview - Daniel Carlat
PDF
91% (34)
The Psychiatric Interview - Daniel Carlat
473 pages
The Borax Conspiracy
PDF
91% (57)
The Borax Conspiracy
14 pages
The Secret Language of Attraction
PDF
86% (108)
The Secret Language of Attraction
278 pages
How To Develop and Write A Grant Proposal
PDF
83% (542)
How To Develop and Write A Grant Proposal
17 pages
Penis Enlargement Secret
PDF
60% (124)
Penis Enlargement Secret
12 pages
Workbook For The Body Keeps The Score
PDF
89% (53)
Workbook For The Body Keeps The Score
111 pages
Donald Trump & Jeffrey Epstein Rape Lawsuit and Affidavits
PDF
83% (1016)
Donald Trump & Jeffrey Epstein Rape Lawsuit and Affidavits
13 pages
KamaSutra Positions
PDF
78% (69)
KamaSutra Positions
55 pages
7 Hermetic Principles
PDF
93% (30)
7 Hermetic Principles
3 pages
27 Feedback Mechanisms Pogil Key
PDF
77% (13)
27 Feedback Mechanisms Pogil Key
6 pages
Frank Hammond - List of Demons
PDF
92% (92)
Frank Hammond - List of Demons
3 pages
Phone Codes
PDF
79% (28)
Phone Codes
5 pages
36 Questions That Lead To Love
PDF
91% (35)
36 Questions That Lead To Love
3 pages
How 2 Setup Trust
PDF
97% (307)
How 2 Setup Trust
3 pages
100 Questions To Ask Your Partner
PDF
78% (36)
100 Questions To Ask Your Partner
2 pages
The 36 Questions That Lead To Love - The New York Times
PDF
91% (35)
The 36 Questions That Lead To Love - The New York Times
3 pages
Satanic Calendar
PDF
25% (56)
Satanic Calendar
4 pages
The 36 Questions That Lead To Love - The New York Times
PDF
95% (21)
The 36 Questions That Lead To Love - The New York Times
3 pages
14 Easiest & Hardest Muscles To Build (Ranked With Solutions)
PDF
100% (8)
14 Easiest & Hardest Muscles To Build (Ranked With Solutions)
27 pages
Jeffrey Epstein39s Little Black Book Unredacted PDF
PDF
77% (13)
Jeffrey Epstein39s Little Black Book Unredacted PDF
95 pages
1001 Songs
PDF
70% (73)
1001 Songs
1,798 pages
The 4 Hour Workweek, Expanded and Updated by Timothy Ferriss - Excerpt
PDF
23% (954)
The 4 Hour Workweek, Expanded and Updated by Timothy Ferriss - Excerpt
38 pages
Zodiac Sign & Their Most Common Addictions
PDF
63% (30)
Zodiac Sign & Their Most Common Addictions
9 pages
CAPE Computer Science 2015 u2 p2
PDF
No ratings yet
CAPE Computer Science 2015 u2 p2
7 pages
Cape Computer Science 2012 Unit 2 P2
PDF
No ratings yet
Cape Computer Science 2012 Unit 2 P2
6 pages
Sample 2008
PDF
No ratings yet
Sample 2008
24 pages
CAEComputer Science Unit 2 Paper 2 2019
PDF
No ratings yet
CAEComputer Science Unit 2 Paper 2 2019
22 pages
ADts Worksheet
PDF
No ratings yet
ADts Worksheet
4 pages
Cape Computer Science 2013 Unit 2 P2
PDF
No ratings yet
Cape Computer Science 2013 Unit 2 P2
6 pages
Sample Question Paper Data Structure Using 'C' PDF
PDF
No ratings yet
Sample Question Paper Data Structure Using 'C' PDF
5 pages
Sample Question Paper Data Structure Using 'C'
PDF
No ratings yet
Sample Question Paper Data Structure Using 'C'
5 pages
BCA (Data Structure in C) 2021
PDF
No ratings yet
BCA (Data Structure in C) 2021
2 pages
Dsu QB Final
PDF
No ratings yet
Dsu QB Final
15 pages
SYLLABUS_DS USING C
PDF
No ratings yet
SYLLABUS_DS USING C
2 pages
Asdacacjh Bahcbsci
PDF
No ratings yet
Asdacacjh Bahcbsci
5 pages
CompSci U1 P2 2015
PDF
No ratings yet
CompSci U1 P2 2015
10 pages
CompSci U2 P2 2010
PDF
No ratings yet
CompSci U2 P2 2010
7 pages
Cape Caribbean Studies Unit 2 P2 - 2009
PDF
No ratings yet
Cape Caribbean Studies Unit 2 P2 - 2009
5 pages
Hllo
PDF
No ratings yet
Hllo
12 pages
Forni TP 2018181 May/Jtjne 2018
PDF
No ratings yet
Forni TP 2018181 May/Jtjne 2018
28 pages
CAPE Computer Science 2012 Past Paper
PDF
No ratings yet
CAPE Computer Science 2012 Past Paper
6 pages
Solution Set Data Structures
PDF
No ratings yet
Solution Set Data Structures
10 pages
Midsem Questions
PDF
No ratings yet
Midsem Questions
2 pages
CPP SP Solutions
PDF
No ratings yet
CPP SP Solutions
10 pages
CAPE Computer Science Unit 1 2012 Past Paper
PDF
No ratings yet
CAPE Computer Science Unit 1 2012 Past Paper
6 pages
BCA3CC14 - Data Structure Using C
PDF
No ratings yet
BCA3CC14 - Data Structure Using C
5 pages
2014 Computerscienceunit 2 Paper 2
PDF
No ratings yet
2014 Computerscienceunit 2 Paper 2
7 pages
Comp1603 2 19
PDF
No ratings yet
Comp1603 2 19
6 pages
Fundamentals of Data Structure in C Assessment Question Paper 2
PDF
No ratings yet
Fundamentals of Data Structure in C Assessment Question Paper 2
2 pages
CP 213 Test 1 2023
PDF
No ratings yet
CP 213 Test 1 2023
2 pages
dsa final paper
PDF
No ratings yet
dsa final paper
4 pages
It102 ST 1
PDF
No ratings yet
It102 ST 1
9 pages
Cape Computer Science 2011 Unit 2 P2
PDF
No ratings yet
Cape Computer Science 2011 Unit 2 P2
5 pages
GE2
PDF
No ratings yet
GE2
2 pages
M1 Technical
PDF
No ratings yet
M1 Technical
7 pages
CSL201 - KQB KtuQbank
PDF
No ratings yet
CSL201 - KQB KtuQbank
8 pages
Practical Manual On Data Structure: Mr. Naveen Choudhary Dr. Dharm Singh
PDF
No ratings yet
Practical Manual On Data Structure: Mr. Naveen Choudhary Dr. Dharm Singh
138 pages
Cs Papers
PDF
100% (1)
Cs Papers
19 pages
DS R23 I-II CSE MicroSylllabusFinalModelPaper (1)
PDF
No ratings yet
DS R23 I-II CSE MicroSylllabusFinalModelPaper (1)
6 pages
Scan 02 Nov 2020
PDF
No ratings yet
Scan 02 Nov 2020
2 pages
ENEL2DSH2_12_2019_Y_P1
PDF
No ratings yet
ENEL2DSH2_12_2019_Y_P1
4 pages
DSU IMPQ by Campusify
PDF
No ratings yet
DSU IMPQ by Campusify
7 pages
Final Exam
PDF
100% (1)
Final Exam
14 pages
Previous Final Exam Paper
PDF
No ratings yet
Previous Final Exam Paper
14 pages
Bca - DS Nov 2020
PDF
No ratings yet
Bca - DS Nov 2020
2 pages
CS 18F DS Mid1+Solution
PDF
No ratings yet
CS 18F DS Mid1+Solution
13 pages
@vtucode - Com Previous Year Paper 2 2018 Scheme
PDF
No ratings yet
@vtucode - Com Previous Year Paper 2 2018 Scheme
2 pages
Mid-Term Exam - Sample Solution
PDF
No ratings yet
Mid-Term Exam - Sample Solution
6 pages
Data Structre Using C
PDF
No ratings yet
Data Structre Using C
10 pages
4th Sem Syllabus Diploma Cs
PDF
No ratings yet
4th Sem Syllabus Diploma Cs
62 pages
DSU Extraquestions
PDF
No ratings yet
DSU Extraquestions
7 pages
Comp1603 2 18
PDF
No ratings yet
Comp1603 2 18
5 pages
Programming Algorithms and Data Structures
PDF
No ratings yet
Programming Algorithms and Data Structures
5 pages
Data Structures Question Paper
PDF
No ratings yet
Data Structures Question Paper
46 pages
IT111
PDF
No ratings yet
IT111
6 pages
Question Bank
PDF
No ratings yet
Question Bank
11 pages
TSA2 AnsSheet
PDF
No ratings yet
TSA2 AnsSheet
15 pages
End Semester Examination - April / May 2024
PDF
No ratings yet
End Semester Examination - April / May 2024
380 pages
Cosc 325 Exam
PDF
No ratings yet
Cosc 325 Exam
3 pages
CompSci U1 P2 2019
PDF
No ratings yet
CompSci U1 P2 2019
26 pages
U18 B. Sc. Computer Science
PDF
No ratings yet
U18 B. Sc. Computer Science
11 pages
FORMAT For Course Data Structure Using C
PDF
No ratings yet
FORMAT For Course Data Structure Using C
8 pages
Cape Computer Science 2016 Unit 2 P2
PDF
No ratings yet
Cape Computer Science 2016 Unit 2 P2
21 pages
Cape Computer Science 2017 Unit 2 P2
PDF
0% (1)
Cape Computer Science 2017 Unit 2 P2
24 pages
Cape Computer Science Unit 1 2012 P2
PDF
No ratings yet
Cape Computer Science Unit 1 2012 P2
6 pages
Cape Computer Science 2018 Unit 2 P2
PDF
No ratings yet
Cape Computer Science 2018 Unit 2 P2
26 pages
CAPE 2014 Unit 1 Computer Science P2
PDF
No ratings yet
CAPE 2014 Unit 1 Computer Science P2
8 pages
It Sba 2016 0.1.2
PDF
No ratings yet
It Sba 2016 0.1.2
7 pages
Cape 2017 Unit 1 Computer Science P2
PDF
No ratings yet
Cape 2017 Unit 1 Computer Science P2
24 pages
Cape Unit 1 2018 Computer Science P2
PDF
No ratings yet
Cape Unit 1 2018 Computer Science P2
29 pages
FORM TP 2017182: Caribbean Examinations Council
PDF
No ratings yet
FORM TP 2017182: Caribbean Examinations Council
4 pages