![Important Questions](../../../../../images/headings/important_question.gif)
CBSE Guess > Papers > Important Questions > Class XII > 2010 > Computer Science > Computer Science By Ravi Kiran
CBSE CLASS XII
![](../../../../../images/next.gif)
6. If X,YÎB
(X+Y)’=X’.Y’
(X.Y)’=X’+Y’
0 0 1 1 0 1 1
0 1 1 0 1 0 0
1 0 0 1 1 0 0
1 1 0 0 1 0 0
X Y X’ Y’ X.Y (X.Y)’ X’+Y’
0 0 1 1 0 1 1
0 1 1 0 0 1 1
1 0 0 1 0 1 1
1 1 0 0 1 0 0
7. (a). Cyber law encompasses a wide variety of political and legal issues related
to the Internet and other communications technology, including intellectual
property, privacy, freedom of expression, and jurisdiction.
1. (a) Run Time Error : Error occurring in a program during its execution. Program
execution halts when such an error is encountered.
Example:
int A,B,C;
cin>>A>>B;
C=A/B;//Runtime error if value of B is zero.
Syntax Error: Error occurred due to wrong syntax of language detected by
the compiler during compilation.
Example:
cout>>”A C++ Program”;
(b) stdio.h
string.h
(c) #include<iostream.h>
const int Max = 10; //OR const int Max = 5;
void main()
{
int Numbers[Max]= {20,50,10,30,40};
// OR int Numbers[]= {20,50,10,30,40};
int Loc;
for(Loc=Max-1; Loc>=0; Loc—)
cout<<Numbers[Loc];
}
(d) 4 # 6 # 10 #
12 @ 18 @ 30 @ 36 @
(e) 20,25,30,
20,25,30,
Number=30
2. (a) Constructors:
i) Name of the constructor functions is same as the name of the class
ii) No return type required for constructor function.
iii)Constructor functions are called automatically at the time of creation of
the object
iv)Constructors can be overloaded
v) Constructor functions are defined in public.
Destructors:
i) Name of the destructor is same as the name of the class preceded by ~
ii) No return type required for destructor function.
iii) Destructor functions are called automatically when the scope of the object gets over
iv) Destructor can not be overloaded
v) Destructor function is defined in public.
OR
(b) (i) Function 1: Constructor OR Default Constructor
Function 2: Destructor
(ii) Function 1 is executed or invoked automatically when an object of
class Maths is created.
Function 2 is invoked automatically when the scope of an object of
class Maths comes to an end.
![](../../../../../images/next.gif)
Paper By Mr. Ravi Kiran
Email Id : [email protected] |
|