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]
- What is an operating system? Give few o/s available. 1
- What is a compiler? 1
- What is a file? 1
- Define a Process. 1
- What is FIFO? 1
- Define lexical. List few with examples. 1
- Name three types of debugging errors. 1
- Who developed the C ++ Programming language? 1
- List any four internal Dos commands. 1
- What is a class? Give one example. 1
- What is the difference between ‘x’ and “x” in c++? 2
- What are Variables? Give examples using data types. 2
- What is the difference between int and float data type? 2
- What are the uses of these punctuators { } , ; [ ] ? 2
- Define a stream and insertion operator in C++. 2
- What is # include directive? What happens if iostream.h
is not included in a program ? 2
- 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;
}
- How will you include comments in c++? How many types of
comments are there in c++ language? 2
- What are Unary and Binary operators? Give example 2
- What is the difference between num=10; and num==10;?
What is an assignment operator? 2
- 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
- What are the sequence, iteration & Selection construct in c++? What are the purpose of loops in c++ ? 3
- What is difference between logical & syntax errors? Give their examples 3
- What is the difference between return ( ) and exit ( ) statement? 3
- What is the difference between break and continue statement? 3
- Write a program to find factorial of a number using While loop. 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;
}
}
- Describe switch statements .What is the difference between if
and switch statements. 4
- 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
- a) . Explain local and global identifiers in a c++ program. 3
- b) . What is a logical operator? Give examples. 2
- a) . Define arrays and pointers with simple exression. 2
- b) . Define the terms Polymorphism & Inheritance. 2
Paper Submiited By:
Name Arundhati
Email arunalokesh30@gmail.com