SlideShare a Scribd company logo
1 of 12
Download to read offline
CARIBBEAN EXAMINATIONS COUNCIL
ADVANCED PROFICIENCY EXAMINATION

COMPUTER SCIENCE

PRACTICE PAPER

UNIT 1 – FUNDAMENTALS OF COMPUTER SCIENCE
PAPER 01

1 ½ hours

INSTRUCTIONS TO CANDIDATES
1. DO NOT open this examination paper until instructed to do so.
2. Answer ALL questions.

Caribbean Examinations Council
prepared by Lavare Henry
~2~

1. A ‘while’ loop is an example of which of the following constructs?
(a) ascending
(b) repetition
(c) sequence
(d) selection
2. a subroutine which is define in terms of itself is said to be
(a) iterative
(b) recursive
(c) selective
(d) incremental
3. A programming language that is English-like in nature and that is designed to manipulate a
relational database can be BEST categorised as a
(a) 1 GL
(b) 2 GL
(c) 4 GL
(d) 5 GL
Item 4 refers to the following information.
Two students James and Richard wrote programs to solve a simple task. Each student’s program
runs on his type of computer only but not on any other type of computer.
4. The generation of languages used by BOTH students is
(a) second
(b) third
(c) fourth
(d) fifth
5. James viewed the source code of a program and noticed patterns of binary digits throughout the
program. The languages used is known as a
(a) 1st generation programming language
(b) 2nd generation programming language
(c) 3rd generation programming language
(d) 4th generation programming language

GO ON TO THE NEXT PAGE
~3~
6. Joe wants to teach his little sister, Mary, about programming, but Mary is impatient and wants
to see things happen as soon as she enters program statements into the computer. Joe should
use a language that utilises
(a) an assembler
(b) a compiler
(c) an interpreter
(d) a profiler
7. Consider the following function Mystery that takes two input parameters A and B of type integer
and returns an integer value:
Function Mystery(A, B:integer):integer
Begin
if B is equal to 0 then
ans = 1
else
ans = A * Mystery(A, B-1)
endif
return ans
End Function
(a) 1
(b) 2
(c) 8
(d) 16
8. Which of the following descriptions BEST suits the function of Cache memory?
(a) It gives the CPU more rapid access to data
(b) It increases data transfer rate between a computer and printer
(c) It speeds up access to data on the hard disk
(d) It stores the operating system when the computer “boots”.
9. Which of the following devices would help prevent data loss in the event of an electrical outage?
(a) power strip
(b) surge protector
(c) UPS
(d) Voltage regulator
10. A computer’s word size is the
(a) length of an instruction
(b) maximum number of characters in a typed word
(c) storage capacity of the computer’s memory
(d) number of bits that the CPU can manipulate at one time
GO ON TO THE NEXT PAGE
~4~

11. The 8-bit two’s complement representation of the decimal numeral -39 is:
(a) 00100110
(b) 10100101
(c) 11011001
(d) 11100110
12. The 8-bit sign and magnitude representation of the decimal numeral -25 is:
(a) 10011001
(b) 10100101
(c) 11100111
(d) 11100110
13. What is the purpose of the program counter in a microcomputer?
(a) to determine how many programs can be opened at one time
(b) to determine the sequence in which the program instructions are to be executed
(c) to hold the number of the last instruction executed
(d) to keep a count of the number of instructions in memory
14. Which of the following is not true of a flip flop?
(a) it has two inputs
(b) it has two outputs
(c) is a bistable device
(d) it can function as a 1-bit memory
15. The list I – VI represent steps in the computer-based problem solving process.
I
Analyse the problem
II
Code the solution
III
Define the problem
IV
Develop an algorithm
V
Maintain the program
VI
Test and debug the program
Which of the following represents the correct sequence of steps in the computer-based problem
solving process?
(a) I, II, III, IV, V, VI
(b) III, I, IV, II, VI, V
(c) III, II, VI, IV, V, I
(d) III, I, VI, II, V, VI

GO ON TO THE NEXT PAGE
~5~
Items 16 – 17 refer to the following algorithm.
Num = 5
For I = 1 to Num do
Print I * 2
Endfor
16. This algorithm is an example of
(a) unbounded iteration
(b) recursion
(c) selection
(d) bounded iteration
17. What is the output of the algorithm?
(a) 1 1
(b) 1 2 3 4 5
(c) 2 4 6 8 10
(d) I*2 I*2 I*2 I*2 I*2 I*2
18. What is the technical term for the graphical representation of an algorithm?
(a) flowchart
(b) HIPO chart
(c) Narrative
(d) Pseudocode
19. Which of the following are properties of a well designed algorithm?
I
A finite number of steps
II
Flow of control from one process to the next
III
Correct syntax
IV
Ambiguous instructions
(a) I and II only
(b) I and III only
(c) I, II, and III only
(d) II, III and IV only

GO ON TO THE NEXT PAGE
~6~
20. What are the values of p and r after execution of the following algorithm?
p=8
q=r
r=8
if(p >q) AND (q>r)
p = +1
else
r=r–1
endif
(a)
(b)
(c)
(d)

p = 7, r = 8
p = 9, r = 7
p = 7, r = 7
p = 8, r = 7

21. What is the error in the following C program which is intended to print the string constant ‘C
programming is fun’?
#include <stdio.h>
,printf(“C programming is fun”);(a) The brackets ( and ) should be on different lines.
(b) The function main is missing.
(c) The braces { and } should be on different lines.
(d) Single quotation marks ‘ and ‘ should be used.
22. Which of the following statements are true about programs and algorithms?
I
Every program uses algorithms
II
All programs are algorithms
III
Algorithms are derived from programs
(a) I and II only
(b) I and III only
(c) II and III only
(d) I, II and III
23. Programming languages may be classified by Generation and Paradigm among other things.
Which of the following is NOT an example of a programming language paradigm?
(a) Imperative
(b) Functional
(c) Prerogative
(d) Declarative

GO ON TO THE NEXT PAGE
~7~
Item 24 refers to the following algorithm
#include <stdio.h>
main()
{
int a, b, sum;
a = 10;
b = 20;
sum = a + b;
printf(“The sum of the numbers is %d /n”, sum);
}
24. The program line: sum= a+b is an example of
(a) a function call
(b) a C operator
(c) a variable declaration
(d) the C assignment
25. What output would you expect from the following program?
#include<stdio.h>
main()
{
printf(“One-----------------”);
printf(“Two----------------“);
printf(“Threen“);
}
(a) One--------Two----------Three
(b) One-------, Two--------, Three
(c) One--------Two--------Threen
(d) One-------, Two--------, Threen
26. Which of the following programs translates all program instructions at one time and produces a
stand-alone object program that can be executed on its own?
(a) an interpreter
(b) a compiler
(c) an assembler
(d) a generator

GO ON TO THE NEXT PAGE
~8~
27. The compilation process can be broken up into THREE main stages. The CORRECT order of the
stages is
(a) syntax analysis, lexical analysis, code generation
(b) lexical analysis, code generation, syntax analysis
(c) lexical analysis, syntax analysis, code generation
(d) code generation, lexical analysis, syntax analysis
28. Consider the following partial declaration in C
#include<stdio.h>
#define SIZE
main)
{
int k;
int table[SIZE];
Which of the following lines of code read FIVE integers from the standard input?
(a) for(k=0; k<SIZE; k++)
printf(“%d”, table*k+);
(b) for(k=0; k<SIZE; k--)
printf(“%d”, table*k+);
(c) for(k=0; k<SIZE; k--)
Scanf(“%d”, table*k+);
(d) for(k=0; k<SIZE; k++)
scanf(“%d”, table*k+);
29. After compiling a program written in a high level language
(a) it must be interpreted before it can run on the CPU
(b) it must be converted to decimal before it can be run on the CPU
(c) it can run on the CPU immediately after compilation
(d) it must be re-compiled to a low level language then run on the CPU
30. In Computer Science, volatility refers to memory that
(a) retains its data when power is turned off
(b) looses its data when power is turned off
(c) retains its data when power is on
(d) looses its data when power is turned on

GO ON TO THE NEXT PAGE
~9~
31. Many banks use ATM’s to allow customers to access their accounts.
What is the BEST type of computer for storing the account information to facilitate this
procedure?
(a) micro-computer
(b) mainframe
(c) mini-computer
(d) single user
32. Authentication of files would HELP increase the security of data by
(a) keeping information error-free
(b) allowing easy data protection
(c) allowing easy data access
(d) keeping data secure
33. Wilmott Smith was contracted by a small manufacturing company to address problems being
expressed in its data processing department. Which of the following arrangements of the stages
in the problem solving process should he adopt in order to minimise difficulties?
(a) problem analysis, problem definition, selection of solution, evaluation of possible solutions
(b) problem definition, problem analysis, evaluation of possible solutions, selection of solution
(c) problem definitions, problem analysis, selection of solution, evaluation of possible solution
(d) problem definition, evaluation of possible solutions, problem analysis, selection of solution.
34. The final state of the problem solving process is
(a) implementation and review
(b) selection of solution
(c) problem definition
(d) problem analysis
35. Functional programming emphasises
(a) the sending and receiving of messages
(b) the changes in state of its variables
(c) the execution of sequential commands
(d) the evaluation of mathematical computation

GO ON TO THE NEXT PAGE
~ 10 ~
Item 36 – 37 refer to the diagram below.
Code (I)
generation

source
code (II)
object
code (III)

syntax
analysis(IV)
lexical
analysis(V)

36. What process does the diagram MOST likely represent?
(a) debugging
(b) programming
(c) execution
(d) compilation
37. What is the correct order of the process?
(a) I, II, III, IV, V
(b) V, IV, III, II, I
(c) IV, III, II, V, I
(d) I, V, IV, I, IIII
38. The instructions below represent an algorithm that simulates throwing a die a number of times.
it displays the number of times each face appears and takes as input the number of throws to be
made.
Arrange the following instructions in the correct order. (ASSUME:
1
RANDOM() is a function that returns a random integer.
2
The array arr is initialised with 0’s
I
II
III
IV
V
VI
VII

For j= 1 to 6
arr[num] = arr[num]+1
num = (RANDOM() MOD 6) + 1
ENDFOR
FOR i=1 to THROWS
READ THROWS
PRINT arr[j]

GO ON TO THE NEXT PAGE
(a)
(b)
(c)
(d)

VI, V, III, II, IV, I, VII, IV
VI, I,III, IV, V, VII, IV
VI, V, III, II, I, VII, IV, IV
V, VI, II, III, IV, I, VII, IV

39. Two students James and Richard wrote programs to solve a simple task. Each student’s program
runs on his type of computer but not on any other type of computer.
An example of a language used to write the program is
(a) Java
(b) Pascal
(c) Basic
(d) Assembly
40. Consider the following statements:
I
ALL programs ARE algorithms
II
EVERY program USES algorithms
III
Algorithms are derived from programs
Which of the above are true?
(a) I and II only
(b) I and III only
(c) II and III only
(d) I, II and III
41. For which logic gate is the following table
ABC
00 0
01 1
10 1
11 1
(a) AND
(b) OR
(c) NOT
(d) EOR
42. What is the hexadecimal equivalent of the binary number: 111111012
(a) FD16
(b) 151316
(c) 2A16
(d) 25316

GO ON TO THE NEXT PAGE
~ 12 ~
43. What is the binary equivalent of the hexadecimal number CB16
(a) 101011012
(b) 010011002
(c) 110010112
(d) 101111112
44. What is the binary equivalent to the decimal number 2510
(a) 11012
(b) 110012
(c) 001001201
(d) 11102
45. The diagram below represents what type of logic gate:

(a)
(b)
(c)
(d)

AND
OR
NOT
EOR

IF YOU FINISH BEFORE TIME IS CALLED, CHECK YOUR WORK ON THIS TEST.

END OF TEST

More Related Content

What's hot

Cape it unit 2 module 3 unedited students notes (compiled from internet)
Cape it unit 2 module 3 unedited students notes (compiled from internet)Cape it unit 2 module 3 unedited students notes (compiled from internet)
Cape it unit 2 module 3 unedited students notes (compiled from internet)
Jevaughan Edie
 

What's hot (20)

Communication Studies Internal Assessment SAMPLE
Communication Studies Internal Assessment SAMPLECommunication Studies Internal Assessment SAMPLE
Communication Studies Internal Assessment SAMPLE
 
CAPE Accounting Internal Assessment SAMPLE
CAPE Accounting Internal Assessment SAMPLECAPE Accounting Internal Assessment SAMPLE
CAPE Accounting Internal Assessment SAMPLE
 
CAPE Communication Studies - The language analysis
CAPE Communication Studies - The language analysisCAPE Communication Studies - The language analysis
CAPE Communication Studies - The language analysis
 
CAPE Communication Studies SBA
CAPE Communication Studies SBACAPE Communication Studies SBA
CAPE Communication Studies SBA
 
Sample 21Communication studies I.A / S.B.A
Sample 21Communication studies I.A / S.B.ASample 21Communication studies I.A / S.B.A
Sample 21Communication studies I.A / S.B.A
 
Caribbean Studies - CAPE Unit 2 - Internal Assignment/IA 2017
Caribbean Studies - CAPE Unit 2 - Internal Assignment/IA 2017Caribbean Studies - CAPE Unit 2 - Internal Assignment/IA 2017
Caribbean Studies - CAPE Unit 2 - Internal Assignment/IA 2017
 
CAPE Communication Studies IA
CAPE Communication Studies IACAPE Communication Studies IA
CAPE Communication Studies IA
 
CAPE Caribbean Studies IA
CAPE Caribbean Studies IACAPE Caribbean Studies IA
CAPE Caribbean Studies IA
 
Communication studies exam
Communication studies examCommunication studies exam
Communication studies exam
 
CAPE Caribbean Studies Unit 2 - Sample SBA
CAPE Caribbean Studies Unit 2 - Sample SBACAPE Caribbean Studies Unit 2 - Sample SBA
CAPE Caribbean Studies Unit 2 - Sample SBA
 
Cape u1 2013 p2 answers0001
Cape u1 2013 p2 answers0001Cape u1 2013 p2 answers0001
Cape u1 2013 p2 answers0001
 
CAPE Biology 2015 Unit 1 paper 1
CAPE Biology 2015 Unit 1 paper 1 CAPE Biology 2015 Unit 1 paper 1
CAPE Biology 2015 Unit 1 paper 1
 
Communication studies 2
Communication studies 2Communication studies 2
Communication studies 2
 
Communication studies Basic Exposition piece
Communication studies Basic Exposition pieceCommunication studies Basic Exposition piece
Communication studies Basic Exposition piece
 
Cape it unit 2 module 3 unedited students notes (compiled from internet)
Cape it unit 2 module 3 unedited students notes (compiled from internet)Cape it unit 2 module 3 unedited students notes (compiled from internet)
Cape it unit 2 module 3 unedited students notes (compiled from internet)
 
Cape Sociology Unit 2 Study Guide
Cape Sociology Unit 2 Study Guide Cape Sociology Unit 2 Study Guide
Cape Sociology Unit 2 Study Guide
 
Sociology IA
Sociology IASociology IA
Sociology IA
 
Mob sba guidelines
Mob sba guidelinesMob sba guidelines
Mob sba guidelines
 
Communication studies school based assessment, SBA
Communication studies school based assessment, SBACommunication studies school based assessment, SBA
Communication studies school based assessment, SBA
 
Unit 1 CAPE Management Of Business Paper 2 - 2002 - 2011 Past Papers
Unit 1 CAPE Management Of Business Paper 2 - 2002 - 2011 Past PapersUnit 1 CAPE Management Of Business Paper 2 - 2002 - 2011 Past Papers
Unit 1 CAPE Management Of Business Paper 2 - 2002 - 2011 Past Papers
 

Viewers also liked

Cape computer science specimen paper 08
Cape computer science specimen paper 08Cape computer science specimen paper 08
Cape computer science specimen paper 08
Official Jonte
 
GEOGRAPHY Cape '09 u1 p2-#3
GEOGRAPHY Cape '09 u1 p2-#3GEOGRAPHY Cape '09 u1 p2-#3
GEOGRAPHY Cape '09 u1 p2-#3
Liam Nabbal
 

Viewers also liked (20)

2010 CAPE Computer Science Unit 1 Paper 02 - Past Paper
2010 CAPE Computer Science Unit 1 Paper 02 - Past Paper2010 CAPE Computer Science Unit 1 Paper 02 - Past Paper
2010 CAPE Computer Science Unit 1 Paper 02 - Past Paper
 
2010 CAPE Computer Science Unit 1 Paper 1
2010 CAPE Computer Science Unit 1 Paper 12010 CAPE Computer Science Unit 1 Paper 1
2010 CAPE Computer Science Unit 1 Paper 1
 
2009 CAPE Computer Science Unit 1 Paper 1
2009 CAPE Computer Science Unit 1 Paper 12009 CAPE Computer Science Unit 1 Paper 1
2009 CAPE Computer Science Unit 1 Paper 1
 
CAPE Computer Science Unit 2 Paper 1 - Batch#1
CAPE Computer Science Unit 2 Paper 1 - Batch#1CAPE Computer Science Unit 2 Paper 1 - Batch#1
CAPE Computer Science Unit 2 Paper 1 - Batch#1
 
2009 CAPE Computer Science Paper Unit 1 Paper 02 - Past Paper
2009 CAPE Computer Science Paper Unit 1 Paper 02 - Past Paper2009 CAPE Computer Science Paper Unit 1 Paper 02 - Past Paper
2009 CAPE Computer Science Paper Unit 1 Paper 02 - Past Paper
 
CAPE Computer Science Unit 2 Paper 1 - Batch#2
CAPE Computer Science Unit 2 Paper 1 - Batch#2CAPE Computer Science Unit 2 Paper 1 - Batch#2
CAPE Computer Science Unit 2 Paper 1 - Batch#2
 
CAPE Computer Science Unit 2 Paper 1 - Batch#4
CAPE Computer Science Unit 2 Paper 1 - Batch#4CAPE Computer Science Unit 2 Paper 1 - Batch#4
CAPE Computer Science Unit 2 Paper 1 - Batch#4
 
CAPE Management Of Business Unit 1 IA
CAPE Management Of Business Unit 1 IACAPE Management Of Business Unit 1 IA
CAPE Management Of Business Unit 1 IA
 
CAPE Communication Studies IA
CAPE Communication Studies IACAPE Communication Studies IA
CAPE Communication Studies IA
 
CAPE Computer Science Unit 2 Paper 1 - Batch#6
CAPE Computer Science Unit 2 Paper 1 - Batch#6CAPE Computer Science Unit 2 Paper 1 - Batch#6
CAPE Computer Science Unit 2 Paper 1 - Batch#6
 
CAPE Management Of Business Unit 2 Paper 2 - 2008
CAPE Management Of Business Unit 2 Paper 2 - 2008CAPE Management Of Business Unit 2 Paper 2 - 2008
CAPE Management Of Business Unit 2 Paper 2 - 2008
 
CAPE Management Of Business Unit 2 Paper 2 - 2011
CAPE Management Of Business Unit 2 Paper 2 - 2011CAPE Management Of Business Unit 2 Paper 2 - 2011
CAPE Management Of Business Unit 2 Paper 2 - 2011
 
CAPE Management Of Business Unit 2 Paper 2 - 2012
CAPE Management Of Business Unit 2 Paper 2 - 2012CAPE Management Of Business Unit 2 Paper 2 - 2012
CAPE Management Of Business Unit 2 Paper 2 - 2012
 
CAPE Sociology Unit 1 IA
CAPE Sociology Unit 1 IACAPE Sociology Unit 1 IA
CAPE Sociology Unit 1 IA
 
CAPE Management Of Business Unit 2 Paper 2 - 2009
CAPE Management Of Business Unit 2 Paper 2 - 2009CAPE Management Of Business Unit 2 Paper 2 - 2009
CAPE Management Of Business Unit 2 Paper 2 - 2009
 
CAPE Management Of Business Unit 2 Paper 2 - 2006
CAPE Management Of Business Unit 2 Paper 2 - 2006CAPE Management Of Business Unit 2 Paper 2 - 2006
CAPE Management Of Business Unit 2 Paper 2 - 2006
 
CAPE Management Of Business Unit 2 Paper 2 - 2010
CAPE Management Of Business Unit 2 Paper 2 - 2010CAPE Management Of Business Unit 2 Paper 2 - 2010
CAPE Management Of Business Unit 2 Paper 2 - 2010
 
Cape computer science specimen paper 08
Cape computer science specimen paper 08Cape computer science specimen paper 08
Cape computer science specimen paper 08
 
computer science CAPE Mark scheme
computer science CAPE Mark schemecomputer science CAPE Mark scheme
computer science CAPE Mark scheme
 
GEOGRAPHY Cape '09 u1 p2-#3
GEOGRAPHY Cape '09 u1 p2-#3GEOGRAPHY Cape '09 u1 p2-#3
GEOGRAPHY Cape '09 u1 p2-#3
 

Similar to CAPE Computer Science Unit 1 Paper 1 - Practice Paper

Ugcnet4 u
Ugcnet4 uUgcnet4 u
Ugcnet4 u
sadhi
 
Bt0062 fundamentals of it model question paper
Bt0062 fundamentals of it model question paperBt0062 fundamentals of it model question paper
Bt0062 fundamentals of it model question paper
Animish Puttu
 
ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docx
gitagrimston
 
CDAC CCAT examination important question
CDAC CCAT examination important questionCDAC CCAT examination important question
CDAC CCAT examination important question
prabhatjon
 
New microsoft office word document (3)
New microsoft office word document (3)New microsoft office word document (3)
New microsoft office word document (3)
Sagar Kuchekar
 
Mcq+questions+cxc+it
Mcq+questions+cxc+itMcq+questions+cxc+it
Mcq+questions+cxc+it
jimkana13
 

Similar to CAPE Computer Science Unit 1 Paper 1 - Practice Paper (20)

Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)
 
CXC CSEC Information Technology Multiple Choice Questions
CXC CSEC Information Technology Multiple Choice QuestionsCXC CSEC Information Technology Multiple Choice Questions
CXC CSEC Information Technology Multiple Choice Questions
 
1 allahabad bank-probationary-officers-exam-computer-general-awareness-solved...
1 allahabad bank-probationary-officers-exam-computer-general-awareness-solved...1 allahabad bank-probationary-officers-exam-computer-general-awareness-solved...
1 allahabad bank-probationary-officers-exam-computer-general-awareness-solved...
 
1 allahabad bank-probationary-officers-exam-computer-general-awareness-solved...
1 allahabad bank-probationary-officers-exam-computer-general-awareness-solved...1 allahabad bank-probationary-officers-exam-computer-general-awareness-solved...
1 allahabad bank-probationary-officers-exam-computer-general-awareness-solved...
 
Std 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQsStd 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQs
 
Ugcnet4 u
Ugcnet4 uUgcnet4 u
Ugcnet4 u
 
Bt0062 fundamentals of it model question paper
Bt0062 fundamentals of it model question paperBt0062 fundamentals of it model question paper
Bt0062 fundamentals of it model question paper
 
C MCQ
C MCQC MCQ
C MCQ
 
Gate-Cs 1994
Gate-Cs 1994Gate-Cs 1994
Gate-Cs 1994
 
ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docx
 
Gate-Cs 1992
Gate-Cs 1992Gate-Cs 1992
Gate-Cs 1992
 
CDAC CCAT examination important question
CDAC CCAT examination important questionCDAC CCAT examination important question
CDAC CCAT examination important question
 
New microsoft office word document (3)
New microsoft office word document (3)New microsoft office word document (3)
New microsoft office word document (3)
 
DIGITAL FLUENCY MULTIPLE QUESTION ANSWERS
DIGITAL FLUENCY MULTIPLE QUESTION ANSWERSDIGITAL FLUENCY MULTIPLE QUESTION ANSWERS
DIGITAL FLUENCY MULTIPLE QUESTION ANSWERS
 
this pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming studentsthis pdf very much useful for embedded c programming students
this pdf very much useful for embedded c programming students
 
Computer awareness With Answers
Computer awareness With AnswersComputer awareness With Answers
Computer awareness With Answers
 
Computer awareness question bank
Computer awareness question bankComputer awareness question bank
Computer awareness question bank
 
Basic computer question
Basic computer questionBasic computer question
Basic computer question
 
Mcq+questions+cxc+it
Mcq+questions+cxc+itMcq+questions+cxc+it
Mcq+questions+cxc+it
 
100 Computer MCQ.pdf
100 Computer MCQ.pdf100 Computer MCQ.pdf
100 Computer MCQ.pdf
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

CAPE Computer Science Unit 1 Paper 1 - Practice Paper

  • 1. CARIBBEAN EXAMINATIONS COUNCIL ADVANCED PROFICIENCY EXAMINATION COMPUTER SCIENCE PRACTICE PAPER UNIT 1 – FUNDAMENTALS OF COMPUTER SCIENCE PAPER 01 1 ½ hours INSTRUCTIONS TO CANDIDATES 1. DO NOT open this examination paper until instructed to do so. 2. Answer ALL questions. Caribbean Examinations Council prepared by Lavare Henry
  • 2. ~2~ 1. A ‘while’ loop is an example of which of the following constructs? (a) ascending (b) repetition (c) sequence (d) selection 2. a subroutine which is define in terms of itself is said to be (a) iterative (b) recursive (c) selective (d) incremental 3. A programming language that is English-like in nature and that is designed to manipulate a relational database can be BEST categorised as a (a) 1 GL (b) 2 GL (c) 4 GL (d) 5 GL Item 4 refers to the following information. Two students James and Richard wrote programs to solve a simple task. Each student’s program runs on his type of computer only but not on any other type of computer. 4. The generation of languages used by BOTH students is (a) second (b) third (c) fourth (d) fifth 5. James viewed the source code of a program and noticed patterns of binary digits throughout the program. The languages used is known as a (a) 1st generation programming language (b) 2nd generation programming language (c) 3rd generation programming language (d) 4th generation programming language GO ON TO THE NEXT PAGE
  • 3. ~3~ 6. Joe wants to teach his little sister, Mary, about programming, but Mary is impatient and wants to see things happen as soon as she enters program statements into the computer. Joe should use a language that utilises (a) an assembler (b) a compiler (c) an interpreter (d) a profiler 7. Consider the following function Mystery that takes two input parameters A and B of type integer and returns an integer value: Function Mystery(A, B:integer):integer Begin if B is equal to 0 then ans = 1 else ans = A * Mystery(A, B-1) endif return ans End Function (a) 1 (b) 2 (c) 8 (d) 16 8. Which of the following descriptions BEST suits the function of Cache memory? (a) It gives the CPU more rapid access to data (b) It increases data transfer rate between a computer and printer (c) It speeds up access to data on the hard disk (d) It stores the operating system when the computer “boots”. 9. Which of the following devices would help prevent data loss in the event of an electrical outage? (a) power strip (b) surge protector (c) UPS (d) Voltage regulator 10. A computer’s word size is the (a) length of an instruction (b) maximum number of characters in a typed word (c) storage capacity of the computer’s memory (d) number of bits that the CPU can manipulate at one time GO ON TO THE NEXT PAGE
  • 4. ~4~ 11. The 8-bit two’s complement representation of the decimal numeral -39 is: (a) 00100110 (b) 10100101 (c) 11011001 (d) 11100110 12. The 8-bit sign and magnitude representation of the decimal numeral -25 is: (a) 10011001 (b) 10100101 (c) 11100111 (d) 11100110 13. What is the purpose of the program counter in a microcomputer? (a) to determine how many programs can be opened at one time (b) to determine the sequence in which the program instructions are to be executed (c) to hold the number of the last instruction executed (d) to keep a count of the number of instructions in memory 14. Which of the following is not true of a flip flop? (a) it has two inputs (b) it has two outputs (c) is a bistable device (d) it can function as a 1-bit memory 15. The list I – VI represent steps in the computer-based problem solving process. I Analyse the problem II Code the solution III Define the problem IV Develop an algorithm V Maintain the program VI Test and debug the program Which of the following represents the correct sequence of steps in the computer-based problem solving process? (a) I, II, III, IV, V, VI (b) III, I, IV, II, VI, V (c) III, II, VI, IV, V, I (d) III, I, VI, II, V, VI GO ON TO THE NEXT PAGE
  • 5. ~5~ Items 16 – 17 refer to the following algorithm. Num = 5 For I = 1 to Num do Print I * 2 Endfor 16. This algorithm is an example of (a) unbounded iteration (b) recursion (c) selection (d) bounded iteration 17. What is the output of the algorithm? (a) 1 1 (b) 1 2 3 4 5 (c) 2 4 6 8 10 (d) I*2 I*2 I*2 I*2 I*2 I*2 18. What is the technical term for the graphical representation of an algorithm? (a) flowchart (b) HIPO chart (c) Narrative (d) Pseudocode 19. Which of the following are properties of a well designed algorithm? I A finite number of steps II Flow of control from one process to the next III Correct syntax IV Ambiguous instructions (a) I and II only (b) I and III only (c) I, II, and III only (d) II, III and IV only GO ON TO THE NEXT PAGE
  • 6. ~6~ 20. What are the values of p and r after execution of the following algorithm? p=8 q=r r=8 if(p >q) AND (q>r) p = +1 else r=r–1 endif (a) (b) (c) (d) p = 7, r = 8 p = 9, r = 7 p = 7, r = 7 p = 8, r = 7 21. What is the error in the following C program which is intended to print the string constant ‘C programming is fun’? #include <stdio.h> ,printf(“C programming is fun”);(a) The brackets ( and ) should be on different lines. (b) The function main is missing. (c) The braces { and } should be on different lines. (d) Single quotation marks ‘ and ‘ should be used. 22. Which of the following statements are true about programs and algorithms? I Every program uses algorithms II All programs are algorithms III Algorithms are derived from programs (a) I and II only (b) I and III only (c) II and III only (d) I, II and III 23. Programming languages may be classified by Generation and Paradigm among other things. Which of the following is NOT an example of a programming language paradigm? (a) Imperative (b) Functional (c) Prerogative (d) Declarative GO ON TO THE NEXT PAGE
  • 7. ~7~ Item 24 refers to the following algorithm #include <stdio.h> main() { int a, b, sum; a = 10; b = 20; sum = a + b; printf(“The sum of the numbers is %d /n”, sum); } 24. The program line: sum= a+b is an example of (a) a function call (b) a C operator (c) a variable declaration (d) the C assignment 25. What output would you expect from the following program? #include<stdio.h> main() { printf(“One-----------------”); printf(“Two----------------“); printf(“Threen“); } (a) One--------Two----------Three (b) One-------, Two--------, Three (c) One--------Two--------Threen (d) One-------, Two--------, Threen 26. Which of the following programs translates all program instructions at one time and produces a stand-alone object program that can be executed on its own? (a) an interpreter (b) a compiler (c) an assembler (d) a generator GO ON TO THE NEXT PAGE
  • 8. ~8~ 27. The compilation process can be broken up into THREE main stages. The CORRECT order of the stages is (a) syntax analysis, lexical analysis, code generation (b) lexical analysis, code generation, syntax analysis (c) lexical analysis, syntax analysis, code generation (d) code generation, lexical analysis, syntax analysis 28. Consider the following partial declaration in C #include<stdio.h> #define SIZE main) { int k; int table[SIZE]; Which of the following lines of code read FIVE integers from the standard input? (a) for(k=0; k<SIZE; k++) printf(“%d”, table*k+); (b) for(k=0; k<SIZE; k--) printf(“%d”, table*k+); (c) for(k=0; k<SIZE; k--) Scanf(“%d”, table*k+); (d) for(k=0; k<SIZE; k++) scanf(“%d”, table*k+); 29. After compiling a program written in a high level language (a) it must be interpreted before it can run on the CPU (b) it must be converted to decimal before it can be run on the CPU (c) it can run on the CPU immediately after compilation (d) it must be re-compiled to a low level language then run on the CPU 30. In Computer Science, volatility refers to memory that (a) retains its data when power is turned off (b) looses its data when power is turned off (c) retains its data when power is on (d) looses its data when power is turned on GO ON TO THE NEXT PAGE
  • 9. ~9~ 31. Many banks use ATM’s to allow customers to access their accounts. What is the BEST type of computer for storing the account information to facilitate this procedure? (a) micro-computer (b) mainframe (c) mini-computer (d) single user 32. Authentication of files would HELP increase the security of data by (a) keeping information error-free (b) allowing easy data protection (c) allowing easy data access (d) keeping data secure 33. Wilmott Smith was contracted by a small manufacturing company to address problems being expressed in its data processing department. Which of the following arrangements of the stages in the problem solving process should he adopt in order to minimise difficulties? (a) problem analysis, problem definition, selection of solution, evaluation of possible solutions (b) problem definition, problem analysis, evaluation of possible solutions, selection of solution (c) problem definitions, problem analysis, selection of solution, evaluation of possible solution (d) problem definition, evaluation of possible solutions, problem analysis, selection of solution. 34. The final state of the problem solving process is (a) implementation and review (b) selection of solution (c) problem definition (d) problem analysis 35. Functional programming emphasises (a) the sending and receiving of messages (b) the changes in state of its variables (c) the execution of sequential commands (d) the evaluation of mathematical computation GO ON TO THE NEXT PAGE
  • 10. ~ 10 ~ Item 36 – 37 refer to the diagram below. Code (I) generation source code (II) object code (III) syntax analysis(IV) lexical analysis(V) 36. What process does the diagram MOST likely represent? (a) debugging (b) programming (c) execution (d) compilation 37. What is the correct order of the process? (a) I, II, III, IV, V (b) V, IV, III, II, I (c) IV, III, II, V, I (d) I, V, IV, I, IIII 38. The instructions below represent an algorithm that simulates throwing a die a number of times. it displays the number of times each face appears and takes as input the number of throws to be made. Arrange the following instructions in the correct order. (ASSUME: 1 RANDOM() is a function that returns a random integer. 2 The array arr is initialised with 0’s I II III IV V VI VII For j= 1 to 6 arr[num] = arr[num]+1 num = (RANDOM() MOD 6) + 1 ENDFOR FOR i=1 to THROWS READ THROWS PRINT arr[j] GO ON TO THE NEXT PAGE
  • 11. (a) (b) (c) (d) VI, V, III, II, IV, I, VII, IV VI, I,III, IV, V, VII, IV VI, V, III, II, I, VII, IV, IV V, VI, II, III, IV, I, VII, IV 39. Two students James and Richard wrote programs to solve a simple task. Each student’s program runs on his type of computer but not on any other type of computer. An example of a language used to write the program is (a) Java (b) Pascal (c) Basic (d) Assembly 40. Consider the following statements: I ALL programs ARE algorithms II EVERY program USES algorithms III Algorithms are derived from programs Which of the above are true? (a) I and II only (b) I and III only (c) II and III only (d) I, II and III 41. For which logic gate is the following table ABC 00 0 01 1 10 1 11 1 (a) AND (b) OR (c) NOT (d) EOR 42. What is the hexadecimal equivalent of the binary number: 111111012 (a) FD16 (b) 151316 (c) 2A16 (d) 25316 GO ON TO THE NEXT PAGE
  • 12. ~ 12 ~ 43. What is the binary equivalent of the hexadecimal number CB16 (a) 101011012 (b) 010011002 (c) 110010112 (d) 101111112 44. What is the binary equivalent to the decimal number 2510 (a) 11012 (b) 110012 (c) 001001201 (d) 11102 45. The diagram below represents what type of logic gate: (a) (b) (c) (d) AND OR NOT EOR IF YOU FINISH BEFORE TIME IS CALLED, CHECK YOUR WORK ON THIS TEST. END OF TEST