Computer Science Theory Grade 12
Computer Science Theory Grade 12
: Date:
Break open the seal of the Ques on-Booklet only when the announcement is made by the Invigilator.
A er breaking the seal and before a emp ng the ques ons, student should immediately check for:
a) The number of the printed page in the Ques on-Booklet is the same as men oned on the cover
page of the Booklet and
b) Any prin ng error in the Booklet pages, if any.
Any discrepancy or error should be brought to the no ce of the Invigilator who will then replace
the Booklet. No addi onal me will be given for this.
2. No student, without the permission of the Superintendent or the Invigilator concerned, is to leave
his/ her seat or the Examina on Room.
P.T.O.
SECTION A
Total number of ques ons: 10 Marks allocated to each ques on: 1 Total marks: 10
Ques on 4. How many pair of wires are there in twisted pair cable(Ethernet)?
Ques on 6. What is the purpose of a key in a table? Give an example of a key in a table.
Ques on 8. Write one advantage of Bus Topology of network, also, illustrate how 4
computers can be connected with each other using star topology of network.
Ques on 9. Name the two types of data structures and give difference between them.
SECTION B
Total number of ques ons: 5 Marks allocated to each ques on: 3 Total marks: 15
Ques on 11. Write a func on search prod (pc) in python to display the record of a par cular
product from a file product.dat whose code is passed as an argument. Structure of
product contains the following elements [product code , product price]
Ques on 12. Write code for a func on void oddEven (int S[ ], int N) in C++, to add 5 in all the odd
values and 10 in all the even values of the array S.
Ques on 13. Write a func on SWAP2BEST(int ARR[ ], int Size) in C++ to modify the content
of the
array in such a way that the elements, which are mul ples of 10 swap with
the value present in the very next posi on in the array.
e.g. If the contents of array ARR are
90, 56, 45, 20, 34, 54
The contents of array should become
56, 90, 45, 34, 20, 54
Ques on 14. Write a func on SORTPOINTS( ) in C++ to sort an array of structure Game in
descending
order points using bubble sort.
NOTE Assume the following defini on of structure Game.
struct Game
{
long PNo; //Player Number
char PName[20];
long Points;
}
P.T.O.
SECTION C
Total number of ques ons: 5 Marks allocated to each ques on: 5 Total marks: 25
Ques on 16. Write a func on REVCOL (int P[ ][5], int N, int M) in C++ to display the content
of a two dimensional array, with each column content in reverse order.
NOTE Array may contain any number of rows.
Ques on 17. (a) Which out of three type of networks LAN, MAN and WAN, is to be used
when an ins tute connects computers of two adjacent computer
laboratories?
(c) What is the major difference between Message Switching and Packet
in networking?
(f) Categories the following under client side and Server-Side script
category?
(i) JSP
(ii) ASP
(iii) VBScript
(iv) Jave Script
Ques on 18. An array A[20][30] is stored along the row in the memory with each element
requiring 4 bytes of storage. If the base address of array A is 32000, find out
the loca on of A[15][10]. Also, find the total number of elements present in
this array.
Ques on 19. Workalot Consultants are se ng up a secured network for their office
campus at Gurgaon for their day-to-day office and web-based ac vi es. They
are planning to have connec vity between three buildings and the head
office situated in Mumbai. Answer the ques ons (i) to (iv) a er going
through the building posi ons in the campus and other details, which are
given below:
Distance between various buildings:
Building “GREEN” to Building “RED” 110 m
Number of computers
Building “GREEN” 32
Building “BLUE” 45
Head Office 10
(a) Suggest the most suitable place (i.e., building) to house the server of this
organiza on. Also give a reason to jus fy your suggested loca on.
(b) Suggest a cable layout of connec ons between the buildings inside the
campus.
(c) Suggest the placement of the following devices with jus fica on:
· Repeater.
· Switch.
(d) The organiza on is planning to provide a high speed link with its head
office situated in Mumbai using a wired connec on. Which of the
following cables will be most suitable for this job?
· Op cal Fiber
· Co-axial Cable
· Ethernet Cable
Ques on 20. Write a program that reads two mes in military format (0900, 1730) and
prints the number of hours and minutes between the two mes.