Home » Science » Computer Science » Sample Paper of Computer Science 2014 for class 11, CBSE. Paper No.2

Sample Paper of Computer Science 2014 for class 11, CBSE. Paper No.2

Sample Paper – 2014

Class – XI

Subject – Computer Science

 

[Operating systems, programming methodology, Fundamentals of C ++,  I/O in C++, Operators & Expression, Control Statements]

 

  1. What is an operating system? Give few o/s available. 1
  2. What is a compiler? 1
  3. What is a file? 1
  4. Define a Process. 1
  5. What is FIFO? 1
  6. Define lexical. List few with examples. 1
  7. Name three types of debugging errors. 1
  8. Who developed the C ++ Programming language? 1
  9. List any four internal Dos commands. 1
  10. What is a class? Give one example. 1 
  1. What is the difference between ‘x’ and “x” in c++? 2
  2. What are Variables? Give examples using data types. 2
  3. What is the difference between int and float data type? 2
  4. What are the uses of these punctuators { } , ; [ ] ? 2
  5. Define a stream and insertion operator in C++. 2
  6. What is # include directive? What happens if iostream.h

      is not included in a program ?                                                                      2

  1. What will be the output of the following program? 2

             

            # include <iostream.h>

            int i=20;

            void main()

{

            int i=7;

            cout<< i<< “ “ << : : I << endl;

}

 

  1. How will you include comments in c++? How many types of

      comments are there in c++ language?                                                       2

  1. What are Unary and Binary operators? Give example 2
  2. What is the difference between num=10; and num==10;?

     What is an assignment operator?                                                                2

  1. Write a program to enter marks in three subjects and calculate

    total and assign grade ‘A’ if total is > =200 else assign  grade ‘B’ .       3

  1. What are the sequence, iteration & Selection construct in c++? What are the purpose of loops in c++ ?                                                     3
  1. What is difference between logical & syntax errors? Give their examples                                                                                         3
  1. What is the difference between return ( ) and exit ( ) statement? 3
  2. What is the difference between break and continue statement? 3
  3. Write a program to find factorial of a number using While loop. 4
  4. Find the syntax errors, if any in the following: 4

 

            main()

{

            int r w =90;

            while(w>60);

            {

            r=w-50;

            switch(w)

{

            20: cout<< “lower range” <<endl

            30: cout<<” middle range”<< endl;

}

}

 

  1. Describe switch statements .What is the difference between if

     and switch statements.                                                                                    4

  1. Write a for loop which will produce the following output. 4

 

            1

            2 2

            3 3 3

            4 4 4 4

            5 5 5 5 5

 

  1. a) . Explain local and global identifiers in a c++ program. 3
  2. b) . What is a logical operator? Give examples. 2
  3. a) . Define arrays and pointers with simple exression. 2
  4. b) . Define the terms Polymorphism & Inheritance. 2

 

Paper Submiited By:

Name Arundhati

Email  arunalokesh30@gmail.com

About

The main objective of this website is to provide quality study material to all students (from 1st to 12th class of any board) irrespective of their background as our motto is “Education for Everyone”. It is also a very good platform for teachers who want to share their valuable knowledge.

Leave a Reply

Your email address will not be published. Required fields are marked *