CBSE

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 program, no execution can take place.

Q 1 (b) Name the header file of C++ to which following functions belong:
(i) strcat() (ii) scanf() (iii) getchar() (iv) clrscr( )

Ans. 1 (b) (i) string.h (ii) stdio.h (iii) stdio.h (iv) conio.h

Q 1 © Find the syntax error(s), if any, in the following program:
#include
main()
{
int x[5],*y,z[5];
for(i=0;i<5;i++)

{
x[i]=i;
z[i]=i+3;
y=z;
x=y;
}

}
Ans. 1 © (i) Line No 5: Undefined symbol ‘i’. The variable ‘i’ is not declared in the program.

(ii)Line No 10: An attempt has been made to assign the value of a pointer to an integer variable.

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

Related pages

.....

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 .....

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 -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 -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 .....

Social Science -1999-Set I

Q 1. Mention two important events of 1917 which turned the course of the First World War. (2) Ans.1 Two important events of 1917 which turned the course of the First World War were:- (a) America's declaration of war against Germany on 6th April, 1917 making the war truely global war tilted .....

Maths-1999-Set II

Q1) If y = cot x, show that d2y/dx2 + 2y dy/dx = 0 (Marks 2) Ans1) Here y = cot x differentiating both sides w.r.t. x:- dy/dx = -cosec2x differentiating again w.r.t. x:- d2y/dx2 = -d/dx (cosec2x) d2y/dx2 = -2cosecx(-cosec x . cot x ) = +2cosec2x . cot x or d2y/dx2 = -2 dy/dx . .....

Chemistry-1999-Set II

Q 1 Write the number of unpaired electron(s) in an atom of an element with the atomic number 21. Ans. 1 1 Q 3 How many atoms are there in a unit cell of a metal crystallising in fcc structure? Ans. 2 4 Q 9 In the formula Fe(h5 - (C5H5)2 what does .....

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 AD in order to remove the shortcomings of the Regulating act of 1773 and to improve the administration of the East India company. Through Pitts .....

Geography-1999-Set II

Q6) The Damodar Valley region is called ' The Ruhr of India.' Elaborate this statement with three suitable examples. Ans6) Damodar valley of India is compared to Ruhr of Germany because Damodar valley has maximum coal deposit in India. It has about 60% of country's reserves of Medium grade coal so .....

Comments »

The URI to TrackBack this entry is: http://cbse.education4india.com/62/computer-science-1999/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

  • Political Science-1996-Set I
    Q1. Define Law. (2 marks) Ans. The word Law comes from the old teutonic route 'lag' whihc means to lay, to place, to set So it (.....)
  • Social Science-2000-Set II
    Section `A' - History Q 1. What is meant by 'Civilising Mission'? (2) Ans. 1 Many Europeans believed that they were destined to bring civilisation to the (.....)
  • 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. (.....)
  • History-1999-Set I
    Q.1. Mention any two social legislation's introduced by the British in India before 1857(2 marks) Ans. Girl infanticide was declared illegal under the reform passed by (.....)
  • History-1996-Set I
    Q.1 Mention any two social legislation's introduced by the British in India before 1857 (2 marks) Ans.1The two social legislations introduced by the British in India (.....)
  • History-1997 -Set III
    MODERN INDIA Q.1. How was the rediscovery of the Indian past significantly connected with the birth of Indian nationalism? What negative features did it produce? ( (.....)
  • Maths-2000-Set II
    Q2) Find a matrix X such that A + 2B + X = 0, where A= 2 (.....)

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.