CBSE

Computer Science-1998

Q. 1 (a) Define the following terms : (i) Inheritance (ii) Encapsulation
Ans.1 (a) Inheritance : Inheritance is the process by which one object can acquire the properties of another object. It is the inheritance mechanism that makes it possible for one object to be a specific instance of a more general case.

Encapsulation : Encapsulation is the mechanism that binds together code and data and keeps both safe from outside interference or misuse.

Q. 1 (b) Name the header files, to which the following built-in-functions belong to :
(i) COs() (ii) setw() (iii) toupper() (iv) strcpy()

Ans.1 (b) (i) math.h (ii) iomanip.h (iii) ctype.h (iv) string.h

Q. 1 © Find the syntax error(s), if any, in the following program :
include
void main( )
{
int R;W=90;
while W>60
{
R=W-50;
switch(W)
{
20: cout< <"Lower Range"< 30: cout<<"Middle Range"< 40: cout<<"Higher Range"< }
}
}

Ans.1 ©

Line 1: It should be #include
Line 4: Variables should be seperated using commas. It should be int R,W=90
Line 5: Test expression should be in braces. It should be while(W>60)
Line 10: It should be case 20:
Line 11: It should be case 30:
Line 12: It should be case 40:

Pages: 1 2 3 4 5 6 7 8 9 10

Related pages

Computer Science-1999

Q 1 (a) Why main function is so special. Give two reasons? Ans. 1(a) Whenever a C++ program is executed only the main() is executed i.e., execution of the program starts and ends at main(). The main() is the driver function of the program. If it is not present in a .....

.....

Computer Science-1998

Q. 1 (a) Define the following terms : (i) Inheritance (ii) Encapsulation Ans.1 (a) Inheritance : Inheritance is the process by which one object can acquire the properties of another object. It is the inheritance mechanism that makes it possible for one object to be a specific instance of a more .....

.....

Accounts-1998-Set II

Q 1 Mention any two factors which give rise to goodwill of a firm. (Marks 2) Ans 1 Factors that give rise to goodwill : (i) Location of the business : The business which is centrally located in a prominent locality will attract more customers and hence have heavy sale resulting in .....

Accounts -1999 -Set II

Q1) List any two items appearing on the credit side of a partner's current account. (Marks 2) Ans1) (i) Interest on partner's capital. (ii) Partner's share of profit. Q2) On April 1st, 1998 an existing firm had assets of Rs. 75,000/- including cash of Rs. 5,000/-. The partner's capital account showed a .....

Maths-1998-Set II

Q2) Express the matrix A = 3 1 .....

Accounts -2000-Set II

Q9) X, Y and Z were partners in a firm sharing profits in the proportions of 1/2, 1/3 and 1/6 respectively. The Balance Sheet of the firm on 31st March 1998 was as follows: Liabilities .....

Accounts -2000-Set III

PART 'A' (Accounting III) Q2) What are the alternatives available to a company for the allotment of debentures when there is over-subscription of debentures? (Marks 3) Ans2) In case of over-subscription of shares : (i) The company may reject same applications, i.e the application money received is returned back. (ii) It may not .....

Accounts -1999 -Set I

Q1) List any two items appearing on the credit side of a partner's capital account, when capitals are fluctuating. (Marks 2) Ans1) (i) Interest on capital of the partner. (ii) Partner's salary. Q2) (a) A and B are partners in a firm sharing profits in the ratio of 3 : 2. .....

Comments »

The URI to TrackBack this entry is: http://cbse.education4india.com/63/computer-science-1998/trackback/

No comments yet.

RSS feed for comments on this post.








Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed.


verification image, type it in the box


Recently Visited Pages

  • Physics-1996-Set II
    [Only those questions and answers which are different from set 1 have been given here.] Q.1.If a rate of change of current of 4 A/s induces (.....)
  • Physics-1999-Set-III
    (Only those questions have been answered, which are different from Set I and Set II) Q6) What is the difference between voltage across an inductor (.....)
  • History-2000-Set II
    Q1. Explain one significant feature of the Pitts India Act.(2marks) Ans.The Pitts India Act was passed by the British Prime Minister ,William Pitt.in 1784 (.....)
  • Accounts -1997-Set II
    Q2) Give any three characteristics of partnership. (Marks 3) Ans2) Three characteristics of partnership : 1) There must be an agreement entered into by one or more (.....)
  • History-1996-Set III
    Q.2. Explain one major step taken by the East India Company to drain the wealth from Bengal after the Battle of Plassey. (2 marks) Ans. (.....)
  • Physics-1997-Set I
    Q1) Horizontal component of Earth's magnetic field at a place is 3 times the vertical component. What is the value of angle of dip at (.....)
  • Accounts -2000-Set II
    Q9) X, Y and Z were partners in a firm sharing profits in the proportions of 1/2, 1/3 and 1/6 respectively. The Balance Sheet of (.....)

Latest Education Alerts


All Archive Section : Alerts News 1 2 3 4 CBSE Institutions 1 2 3 4  IGNOU Symbiosis Amity Delhi University Mumbai University Syllabus Scholarship  Bussiness Schools Results Study Abroad Career Forum Archives : 1 2 3 4 Disclaimer   About Us Site Design and SEO by : MAAS InfoMedia
Site best viewed in Opera and Google Chrome browsers with 1024x768 resolution. May not be best viewed in Internet Explorer.