Sample Paper for Unit Test
Computer Science:
Class-XI
Sample Paper Unit Test-1
Time: 1 Hour 30 Minutes M.M. 35
|
1.A
|
Find
the error from the following program and rewrite them correctly and
underline each correction :-
#include[iostream.h]
int main()
{
Getch[];
Int num:
Cout>> “
Welcome in class XI”;
Cin<<num;
Int num * 3=sum;
}
|
2
|
|||||||||||||||||||||||||
|
B.
|
Write a program in
C++ to take marks of five subjects and display its average.
|
2
|
|||||||||||||||||||||||||
|
C.
|
Write the output of the
following program if 2 , 1 and 5 is entered by the user-
void main()
{
int num;
cout<< “Enter your
lucky number:”;
cin>>num;
switch (num)
{
case 1 :
cout<< “Its Wonderful Day”;
case 2 :
cout<<”It
was very hot day”;
break;
case 3 :
cout<<”You
can do well in Upcoming months”;
case 4 :
cout<<”You
must respect to your parents”;
break;
case 5 :
cout<<”C++
is very important to learn”;
break;
default :
cout<<”you
have to choose between 1 to 5” ;
}
}
|
2
|
|||||||||||||||||||||||||
|
D.
|
Write a program to
display series of even numbers between 1 to 200.
|
3
|
|||||||||||||||||||||||||
|
2.A
|
What will be the
output of following code:
void main()
{
int num=5;
int sum=10;
int total=num++;
int pin=++ sum + 20;
cout<<pin
<<” : ”<< sum <<” : ”<< total+ num;
}
|
2
|
|||||||||||||||||||||||||
|
B.
|
Write a program in
C++ to display the addition all the numbers which are divisible by 4 and 6 in
the range of 1 to 100.
|
3
|
|||||||||||||||||||||||||
|
C.
|
WAP in C++ to convert
temperature from Celsius to Fahrenheit.
(T(°F) = T(°C) × 9/5 + 32)
|
3
|
|||||||||||||||||||||||||
|
D.
|
WAP in C++ to print
pyramid in given format:
|
3
|
|||||||||||||||||||||||||
|
3.A
|
Explain the
following:
·
Cout<<
·
Cin>>
|
2
|
|||||||||||||||||||||||||
|
B.
|
Give the full form of
ISCII and ASCII.
|
2
|
|||||||||||||||||||||||||
|
C.
|
Give the difference
between if-else and switch case statement using C++ program.
|
2
|
|||||||||||||||||||||||||
|
D.
|
Write any four major
functions of operating system.
|
1
|
|||||||||||||||||||||||||
|
E.
|
What is difference between
32 bit and 64 bit processors? Give name of any 128 bit processor.
|
2
|
|||||||||||||||||||||||||
|
4.A
|
Write a program to
enter the size of memory in Petabytes and display in
GB
KB
Byes
|
2
|
|||||||||||||||||||||||||
|
B.
|
Convert the
following;
(3217)10 = ( )2
(1011001)2 = ( )10
|
2
|
|||||||||||||||||||||||||
|
C.
|
Explain the purpose
of virtual memory.
|
2
|
|||||||||||||||||||||||||
|
|
--------------------End----------------------
|
|
Comments
Post a Comment