Trending ▼   ResFinder  

Class 11 CBSE HLY 2016 : Computer Science (Army Public School)

3 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Somnath PaulChoudhury
St. Mary's ICSE School, Koparkhairane, Navi Mumbai
+Fave Message
 Home > spch >   F Also featured on: School Page

Formatting page ...

Roll No Code No 083 2 Army Public School Bengdubi Half Yearly Examination 2014-15 Class XI Science Sub: Computer Science Time 3 hours Max Marks 70 General Instructions: i). All Questions are compulsory. ii). Programming language C++. -------------------------------------------------------------------------------------------------------------------------------------- 1. Find the outputs and explain (a) for(int i=1;i<=5;i++) { for(int j=1;j<=i;j++) cout<<j<<" "; cout<<endl; } (b) for(int i=5;i>=1;i--) { for(int j=1;j<=i;j++) cout<<i<<" "; cout<<endl; } [5] 2. Find value (in a) or domain (as in c) or final value (as in b, d, e) of A in each case: [10] (a) int A = ((2344<9000)? 66:-77); (b) for(int A=50; A>-18; A--){ cout<<A--<<;} (c) int A=random(19); int Y=(16>A?45:33); cout<<Y; //outputs 33 (d) int A = 28; cout<<A<<" "<<A%3<<" "<<A++; (e) int A = 30; cout<<A<<" "<<A%7<<" "<<A*A; 3. What are logical error and run time errors? Which error pointed out by compiler during compilation? [3] 4. List the arithmetic operators as per their precedence. In the same level how are they evaluated? Explain. [4]

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

spch chat