Computer Science (CBSE Sample Paper – XI)

  CBSE You are here

Download CBSE Computer Science Sample Paper Class XI (11th) 2006


Sample Paper 2006

Computer Science

CLASS :XI

(set-5)

 

Duration: 3 hours                                                         MAX.MARKS: 70                                                                                             

Q1. What is an operating system?                                   [1mk]

Q2. What is cascading of I/O operators?                         [1mk]

Q3. What is the difference between ‘h’ and “h” in c++?            [1mk]

Q4. How are files and devices implemented at lowest level?              [1mk]

Q5. What is an interpreter?                                             [2mk]

Q6.How many times “hello” will be printed in the following code fragment:

                        for (i=0; i<5; i++)

                            for (j=0; j<4; j++)

                                   cout<< “hello”;                                [2mk]

 

Q7.Evaluate the following, where a, b, c are integers and d, f are floating point numbers.

        The value of a=8, b=4 and d=2.5

(i)                 f = a * b  + a/b

(ii)               c = d-a + b % a

(iii)             c= (++a) * (b++) - (++d)

(iv)             f = (++b) / b – a %b                                [2mk]

 

Q8. Explain ‘break’ and ‘continue’.                                         [2mk]

Q9. What is the output of the following:

 

  1.        # include<iostream.h>

             void main ( )

            {

    int i=0;

    for (i=1; i<=20;i++)

     {

       cout<<i;

       i=i+2;

     } 

 

}

 

2.        # include<iostream.h>

             void main( )

 {

   a=3;

   a=a+1;

   if (a>5)

     cout<<a;

  else

     cout<<(a+5);

                       

}                                                                            [2mk]

 

Q10. What will be the output of the following program segment:

           If input is as:

           (a) w     (b) r     (c) s     (d) f

          

           cin >>code                                                      

           switch (code)

            {

              case ‘w’: cout<<”winter”;

              case ‘r’ : cout<<”rainy”;

                             break;

              case ‘s’ : cout<<”summer”;

                            break;

              default: cout<<” wrong code”;    

           }                                                                            [2mk]

          

Q11. What the difference between while and do-while loop?                       [2mk]

Q12. What is the significance of default clause in a switch statement?

          What is meant by variable’s scope?                           [2mk]

Q13. Define pointer variable and enumeration. Give example of each.        [2mk]

Q14.Determine the output:

(i)                 int a=300, b=0, c=0;

if(a>=400)

 {

   b=300;

   cout<<a<<b<<c;

}

   

(ii)               i=6;

while(i)

   cout<<i--;

   cout<< “

thank you” ;                                                      [2mk]

 

Q15. What is a header file and why we include them in our program?         [2mk]

Q16. Explain procedural programming and modular programming        [3mk]

Q17. Describe microcomputer, mainframe and super computer.         [3mk]

Q18. What is a loop? What is infinite loop? Write a for loop to print values

         10 to 1 on separate line in descending order                    [3mk]

 

 Q19. What output will the following code fragment produce?

          void main( )

        {

 int val, res, n=1000;

            cin>>val;

            res = n+val >1750 ? 400:200 ;

            cout<<res;

        }

         (i) if val=2000    (ii) if  val=1000           (iii) if val=500                                    [3mk]


Download Attached PDF

  « Accountancy (CBSE Sample Paper – XI) Science (CBSE Sample Paper – IX) »  

  Posted on Tuesday, January 20th, 2009 at 2:59 PM under   CBSE | RSS 2.0 Feed