Sample Paper for Class 11 Computer Science Pdf
Students can refer to the below Class 11 Computer Science Sample Paper designed to help students understand the pattern of questions that will be asked in Grade 11 exams. Please download CBSE Class 11 Computer Science Sample Paper Set Z
Computer Science Class 11 Sample Paper
1 a) What are the different functions of operating system?
b) How the information can be used as a data explain ?
c)What do you mean by unary operators
d) What are the different parts of CPU? Explain every part in brief.
e) Define System Software and what are its two main types? Give examples.
f) What is Booting?
g) Which of the following are hardware and software?
(i) Capacitor (ii) Internet Explorer (iii) Hard disk (iv) UNIX
2. Explain the following term: (Give answer any six)
i) Variable
ii) Token
iii) Array
iv) Debugging
v) Comment
vi) Keyword
3 a) What is the difference b/w “while” & “do while” loop?
b) What are data types? What are all predefined data types in c++?
c) What will be the size of following constants?
‘\v’,”\v”,
d) Write the corresponding C++ expressions for the following mathematical expressions:
i) √ (a2+b2) (ii) (a+b)/(p+q)
e) Evaluate the following, where p, q are integers and r, f are floating point numbers. The value of p=8, q=4 and r=2.5
(i) f = p * q + p/q
(ii) r = p+q + p % q
4 a) What is the output of the following?
i) # include<iostream.h>
void main ( )
{
int i=0;
cout<<i++<<” ”<<i++<<” ”<<i++<<endl;
cout<<++i<<” ”<<++i<<” ”<<++i<<endl
}
ii) # include<iostream.h>
void main( )
{
a=3;
a=a+1;
if (a>5)
cout<<a;
else
cout<<(a+5);
}
iii) What will be the output of the following program segment?
If input is as: (a) g (b) b (c) e (d) p
cin >>ch;
switch (ch)
{ case ‘g’: cout<<”Good”;
case ‘b’: cout<<”Bad”;
break;
case ‘e’: cout<<” excellent ”;
break;
default: cout<<” wrong choice”;
}
iv) Determine the output:
for(i=20;i<=100;i+=10)
{
j=i/2;
cout<<j<<””;
}
v) What output will be 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 3
5 a) Find the error from the following code segment and rewrite the corrected code underlining the correction made.
# include(iostream.h)
void main ( )
int X,Y;
cin>>>X;
for(Y=0,Y<10, Y++)
if X= =Y
cout<<Y+X;
else
cout>>Y; }
b) Convert the following code segment into switch case construct.
int ch;
cin>>ch;
If(ch = = 1)
{ cout<<“ Laptop”;
}
else If(ch = = 2)
{
cout<<“Desktop ”;
} else if(ch= = 3)
Please refer to attached file for CBSE Class 11 Computer Science Sample Paper Set Z