5
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 Answer the following questions 1 0 1. What is data ? 1 2. Expand a) GB b) VLSI 1 3. Differentiate between Second generation and fourth generation computer. 2 4. Write DOS commands to a. To display current date of the system b. To rename file ‘comp1.txt’ to ‘comp2.txt’ 2 5. Write the step by step procedure to delete the file completely from the system ? 2 6. What is UNICODE . What is its significance ? 2 II Answer the following questions 1 0 1 Convert a) 542 8 to binary number b) AB54 16 t decimal number 2 2 Express -54 using 8 bits in Sign and Magnitude representation. 2 3 Convert a. 7.5 8 to Binary number b. 1234 10 to hexadecimal number 2 4 What are RAM? Explain the working of RAM. Name any two types of RAM. OR 4 Page 1

XI-comp Science Hy 2010

Embed Size (px)

DESCRIPTION

Computer Science for class 12

Citation preview

Page 1: XI-comp Science Hy 2010

KENDRIYA VIDYALAYA NO.1, KALPAKKAMHALF 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 Answer the following questions 101. What is data ? 12. Expand a) GB b) VLSI 13. Differentiate between Second generation and fourth generation computer. 24. Write DOS commands to

a. To display current date of the systemb. To rename file ‘comp1.txt’ to ‘comp2.txt’

2

5. Write the step by step procedure to delete the file completely from the system ? 26. What is UNICODE . What is its significance ? 2

II Answer the following questions 101 Convert

a) 5428 to binary numberb) AB5416 t decimal number

2

2 Express -54 using 8 bits in Sign and Magnitude representation. 23 Convert

a. 7.58 to Binary numberb. 123410 to hexadecimal number

2

4 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?

4

III Answer the following questions 101 What is an infinite loop ? How can it be implemented using for and while loop ? 22 What is the function of CPU ? 23 What are Variables ? What is lvalue, rvalue ? Give an example. 24 Explain syntax errors, semantic error, run time error and logical error with a

suitable c++ program.orWhat is the function of iostream.h?

4

IV Answer the following questions. ( Any 5) 101 What are functions ? Explain it with an example. 2

Page 1

Page 2: XI-comp Science Hy 2010

2 Write a program to display factorial of a given number 23 What is class ? Give an example. 24 What would be the best data type to store the following datas.

a. Ageb. Marksc. Graded. Name

2

5 Write the equivalent code using if.Greater = a > b ? a : b

2

6 Write the corresponding c++ expressionsa. | ex – x |b. ( a + b ) 3

2

7 What is the difference between signed and unsigned integers ?

V Answer the following questions 101 Write a program to find average and percentage of your marks ( 5 subjects). The

maximum marks of each subject is 150.3

2 Write a program to give a appropriate gift for the given picked up letter from the lottery box.

Letter GiftA PendriveB LaptopC PrinterD TabletE Wi-fi connection

. 3 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;

2

4 Find errors in the following c++ programVoid main(){

char ch;cin ch;switch ch

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

2

Page 2

Page 3: XI-comp Science Hy 2010

case "b":cout<<"sa";break;

}}

VI Answer the following questions 101 Write a program to check if the entered number is a prime number. 42 Write a program to find the sum of the digits of the given number. (flowchart) 43 Find the output of the c++ statements given below

for(i=0;i<5;i++){

if(i%2==0)cout<<i+2<<endl;

if(i%3==2){

cout<<a<<endl;a++;

}a=a+i;

}

2

VII Answer the following questions 101 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

2 What is the difference between break and continue statement ? 23 Write a program to display the series

11 21 2 31 2 3 4orTo generate divisors of a given number.

2

4 Write a program to find GCD of two numbers with flowchart. 4

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

Page 3