Trending ▼   ResFinder  

CBSE Pre Board Class 12 2017 : Computer Science (Maharashtra Higher Sec. School, Jabalpur) Test 2

8 pages, 40 questions, 0 questions with responses, 0 total responses,    2    0
rajan53
Maharashtra Higher Sec. School, Jabalpur
+Fave Message
 Home > rajan53 >   F Also featured on: School Page cbse12_pre_boards

Formatting page ...

Sample Paper 2017 Sub.- Compute Science [C++] Class- XII MM.- 70 Time- 3Hrs. Q1. What is Encapsulation? 1 Q2. What are Static Member variables. 1 Q3. What are Hacker and Crackers? 2 Q4. Which C++ header file(s) are essentially required to be included to run/execute the following C++ code : 2 void main() { char *word1="Hello",*word2="Friends"; strcat(word1,word2); puts(word1); } Q5. Rewrite the following program after removing any syntactical errors. Underline each correction made. 2 #include<stream.h> void Main( ) int A[10]; A=[3,2,5,4,7,9,10]; for( p = 0; p<=6; p++) { if(A[p]%2=0) int S = S+A[p]; } cout<<S; } Q6. Rewrite the following program after removing the syntactical errors (if any). Underline each correction. 2 #include<conio.h> #include<iostream.h> #include<string.h> #include<stdio.h> class product { int product_code,qty,price; char name[20]; public: product(){ product_code=0;qty=0;price=0; name=NULL; } void entry() { cout<<"\n Enter code,qty,price"; cin>>product_code>>qty>>price; gets(name); } void tot_price() {return qty*price;} };

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

© 2010 - 2021 ResPaper. Terms of ServiceContact Us Advertise with us

 

ICSE Q&A - Ask and Answer
rajan53 chat