#1
June 16th, 2014, 05:07 PM
| |||
| |||
CBSE Computer Science Solved Sample Question Paper
Here I am looking for the CBSE Class XII Board Computer Science Sample Question Paper, can you please provide me the same??? As you are am looking for the CBSE Class XII Board Computer Science Sample Question Paper, so here I am sharing the same with you 1. (a) What is the difference between Global Variable and Local Variable? (b) Write the names of the header files to which the following belong: (i) strcmp() (ii) fabs() (c) Rewrite the following program after removing the syntactical errors (if any). Underline each correction. #include [iostream.h] class PAYITNOW { int Charge; PUBLIC: void Raise(){cin>>Charge;} void Show{cout<<Charge;} }; void main() { PAYITNOW P; P.Raise(); Show(); } (d) Find the output of the following program: #include <iostream.h> struct PLAY { int Score, Bonus;}; void Calculate(PLAY &P, int N=10) { P.Score++;P.Bonus+=N; } void main() { PLAY PL={10,15}; Calculate(PL,5); cout<<PL.Score<<”:”<<PL.Bonus<<endl; Calculate(PL); cout<<PL.Score<<”:”<<PL.Bonus<<endl; Calculate(PL,15); cout<<PL.Score<<”:”<<PL.Bonus<<endl; } Rest of the Questions are attached in below file which is free of cost Last edited by Neelurk; April 1st, 2020 at 04:40 PM. |
|