CBSE Class 12 Computer Science Question Paper 2010 With Solutions
CBSE Class 12 Computer Science Question Paper 2010 With Solutions
Computer Science
Previous Year Question Paper 2010
Series: OSS Code no. 91
COMPUTER SCIENCE
1. (a) What is the difference between call by value and call by reference?
Also, give a suitable C++ code to illustrate both. 2 Marks
Ans: Call by Value: A replica of the actual parameter is created by the formal
parameter. It has no effect on the actual parameter. If the modifications are made
using formal parameters.
Call by reference: Actual parameter is an alias for the formal parameter. The
formal parameter changes are reflected in the real parameter. & comes before it.
The function should add elements B[0][0], B[0][2], B[l][l], B[2][0] and
B[2][2].
Ans: // Sample Code 1
int ALTERSUM (int B[][5], int N, int M)
{
int Sum = 0;
for (int I=0; I<N; I++)
for (int J= (I%2==0) ?0:1; J<M; J+=2)
Sum+= B[I][J];
return Sum;
}
(e) Evaluate the following postfix notation of expression: 2 Marks
(Show status of Stack after each operation)
True, False, NOT, OR, False, True, OR, AND
Ans:
4. (a) Observe the program segment given below carefully and fill the blanks
marked as Statement 1 and Statement 2 using tellg() and seekp() functions
for performing the required task. 1 Mark
#include <fstream.h>
class Customer
(b) Consider the following tables STOCK and DEALERS and answer (b1)
and (b2) parts of this question:
Table: STOCK
Item No Item Dcode QTY UnitPrice StockDate
5006 Ball Pen 0.5 102 100 16 31-Mar-10
5003 Ball Pen 0.25 102 150 20 01-Jan-10
5002 Gel Pen Prenium 101 125 14 14-Feb-10
5006 Gel Pen Classic 101 200 22 10-Jan-09
5001 Eraser Small 102 210 5 19-Mar-09
5004 Eraser Big 102 60 10 12-Dec-09
5009 Sharpener Classic 103 160 8 23-Jan-09
Table: DEALERS
Dcode Dname
101 Reliable Stationers
103 Classic Plastics
102 Clear Deals
7. (a) What was the role of ARPANET in the Computer Network? 1 Mark
Ans: Advanced Research Project Agency Network (ARPANET) is an acronym
for Advanced Research Project Agency Network. It is a project started in 1969
by the US Department of Defense to connect computers at various institutions
and the US Department of Defense. NSFnet was founded in the 1980s with the
goal of creating a high-capacity network that could outperform ARPANET.
ARPANET, NSFnet, and other private networks interconnected in the 1990s to
form the internet.
(e2) Suggest the most suitable place (i.e. building) to house the server for this
NGO. Also, provide a suitable reason for your suggestion.
Ans: Because it has the most computers, the Training Building is the best option.
(e3) Suggest the placement of the following devices with justification:
(i) Repeater
(ii) Hub/Switch
Ans: (i) Repeater: When the distance between any two connecting buildings
reaches 70 metres, a Repeater should be installed.
(ii) Hub/Switch: Every building will require one Hub/Switch to provide signals
to all connected workstations.
(e4) The NGO is planning to connect its International office situated in Delhi.