Page Loading... Please wait...
Wait

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

Recently Visited Pages

  • Physics-1999-Set-II
    Q1) Why is the transmission of signals using sky waves, restricted to frequencies greater than 30 MHz. (Marks 1) Ans1) The transmission of signals using (.....)
  • Chemistry-2000 Set I
    Q.1 What is the physical significance of the lines in the following depiction of atomic orbitals? Ans1. Lines encloses the regions in the space around (.....)
  • History-1997-Set II
    Q. 1 Mention any two humanitarian measures adopted by the British government before 1858. ( 2 marks) Ans. The abolition of the social practice of sati (.....)
  • 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 (.....)

  • (.....)
  • Physics-2000-Set-III
    (Only those questions have been answered, which are different from Set I and Set II) Q6) Name the electromagnetic radiation which has the largest penetrating (.....)
  • Political Science-1998-[ Set I ]
    Q1. Mention any two points of criticism of Fascism. (2 marks) Ans. Fascism can be criticised on the following grounds:- (a) Fascism supported the idea of a (.....)
  • 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 (.....)
  • Maths-1996 -Set II
    Q2) Find the work done by the force = + 2 + , acting on a particle, if the particle is displaced from (.....)
  • History-2000-Set III
    Q.1. Explain any one feature of Charter Act of 1833. Ans 1. The Charter Act of 1833 abolished the trading monopoly of the East India Company (.....)
  • History-1998 -Set II
    MODERN INDIA Q.1. What was the impact of Nadir Shah's invasion on the Mughal Empire? (2 marks) Ans. Nadir Shah invaded India in 1793. AD. His invasion (.....)
  • History-1998 -Set I
    Q.1. Why have the Saiyid Brothers been called the 'kingmakers? (2 marks) Ans. Mughal emperor Farukh Siyar who ruled in 1713 AD, owed his victory to (.....)
  • Maths-1997 -Set III
    15) Evaluate /3 sec x tan x dx 0 1 + sec2 x Ans15) /3 sec x tan x dx 0 1 + (.....)
  • 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 (.....)
  • Chemistry-1997-Set I
    Q 1 State the physical significance of 2. Ans. 1 2 is the measure of probability of finding an electron in the region around the (.....)