Вы находитесь на странице: 1из 3

KENDRIYA VIDYALAYA NO.

1, KALPAKKAM
HALF YEARLY EXAMINATION - 2010-11

COMPUTER SCIENCE
Time : 3 hours

CLASS XI

Max Marks : 70

General Instructions
a) Write proper question number.
b) Answer all the questions.
c) This question paper consists of 3 pages.
d) Indent the programs appropriately

I
1.
2.
3.
4.
5.
6.
II
1
2
3
4

Answer the following questions


What is data ?
Expand a) GB b) VLSI
Differentiate between Second generation and fourth generation computer.
Write DOS commands to
a. To display current date of the system
b. To rename file comp1.txt to comp2.txt
Write the step by step procedure to delete the file completely from the system ?
What is UNICODE . What is its significance ?

10
1
1
2
2

Answer the following questions


Convert
a) 5428 to binary number
b) AB5416 t decimal number
Express -54 using 8 bits in Sign and Magnitude representation.
Convert
a. 7.58 to Binary number
b. 123410 to hexadecimal number
What are RAM? Explain the working of RAM. Name any two types of RAM.
OR
What is the difference between RAM and ROM ? Explain EPROM. What is the
minimum number of bits needed to address 256 bits of memory?

10
2

2
2

2
2
4

III
1
2
3
4

Answer the following questions


10
What is an infinite loop ? How can it be implemented using for and while loop ? 2
What is the function of CPU ?
2
What are Variables ? What is lvalue, rvalue ? Give an example.
2
Explain syntax errors, semantic error, run time error and logical error with a
4
suitable c++ program.
or
What is the function of iostream.h?

IV
1

Answer the following questions. ( Any 5)


What are functions ? Explain it with an example.

10
2
Page 1

2
3
4

5
6
7
V
1
2

Write a program to display factorial of a given number


What is class ? Give an example.
What would be the best data type to store the following datas.
a. Age
b. Marks
c. Grade
d. Name
Write the equivalent code using if.
Greater = a > b ? a : b
Write the corresponding c++ expressions
a. | ex x |
b. ( a + b ) 3
What is the difference between signed and unsigned integers ?

2
2

Answer the following questions


10
Write a program to find average and percentage of your marks ( 5 subjects). The 3
maximum marks of each subject is 150.
Write a program to give a appropriate gift for the given picked up letter from the
lottery box.
Letter
A
B
C
D
E

2
2
2

Gift
Pendrive
Laptop
Printer
Tablet
Wi-fi connection

.
What is the output of the following c++ statements
int a,b,c;
a=35;
b=a%10;
c=b;
b=(a/10)%10;
c=c+b;
cout<<c;

Find errors in the following c++ program


Void main()
{
char ch;
cin ch;
switch ch

case 'a':
cout<<"Hai ";
break;
Page 2

case "b":
cout<<"sa";
break;
}
}
VI
1
2
3

Answer the following questions


Write a program to check if the entered number is a prime number.
Write a program to find the sum of the digits of the given number. (flowchart)
Find the output of the c++ statements given below
for(i=0;i<5;i++)
{

10
4
4
2

if(i%2==0)
cout<<i+2<<endl;
if(i%3==2)
{
cout<<a<<endl;
a++;
}
a=a+i;
}
VII Answer the following questions
1 Convert the given code to equivalent for loop statement.
a=5;
while(a<25)
{
b=a + 10;
c = c + a;
cout<<b+c;
a++;
}
2 What is the difference between break and continue statement ?
3 Write a program to display the series
1
12
123
1234
or
To generate divisors of a given number.
4 Write a program to find GCD of two numbers with flowchart.

10
2

2
2

***kvgs***
kv1k/kvgs/comp/hy/2010-11

Page 3

Вам также может понравиться