Popular Posts

Friday, May 25, 2012

MODEL QUESTION PAPER COMPUTERSCIENCE +1


SET 9

1. In a C++ program Johny wrote the statement ‘float salary’. He wants to know how many bytes the
variable ‘salary’ will take. Name the operator he can use. (Score 1)
2. a)Classify the following operators into different categories.
<<, %, <, +, /, &&, ++, !=, ! (Score 2)
b) 6AE5, 6AE3, 6AE1, ……., ……… (Fill the missing term) (Score 1)
3. Pick the odd one out
a) Dot Matrix Printer b)Inkjet Printer c) Daisy Wheel Printer d) Drum Printer (Score 1)
4. The Single Window System for plus one admission collects data from the applicants
through a form. These details in this application form are used to prepare allotment list.
a) Write down the data and information in this context. (Score 1)
b) If an applicant fails to give options of schools and groups for his/her admission, which utility
factor of information will be affected? Give reason for your opinion. (Score 2)
5. a)Let ‘Amount’ is an array. Write the c++ statement to access the 10th element of the array
(Score 1)
b)Rewrite the following statement using if statement.
Big=A>B?A:B; (Score 2)
c)Predict the output of the following
int a = 10,b;
b = a++ + ++a + ++a; (Score 1)
6.a) Categorize the following hardware and software. (Score 1)
Driver, Mouse, Translators, OMR, Light Pen, CPU, Utilities, Operating System
b) Add three more items in each category. (Score 2)
7. Analyse the following cases and write down the most suitable memory devices for each.
a) A small sized biodata file saved in the computer is to be taken outside for printing. (Score 1)
b)Very large data capacity compact and usually not portable. (Score 1)
8. Explain the different types of errors that occur in a program. (score 3)
9. a)Categorise the following I/O functions and write the speciality of each category. (score 3)
Getchar(), puts(), getch(), getline(), putchar(), gets(), read(), write(), get(), put()
b)If (54)x = (124)y,then (41)x = (……….)y. (Score 2)
10. Diagram of one of the phases in programming is given below
Source code ? Object code
a) Nme the phase (Score 1)
b) What can be used in place of ‘?’ in the above diagram? Explain. (Score 2)
11. Categorize the various tokens present in the following code
Void main()
{
int k;
float p;
k = 15;
p = k/2.0;
cout<<p;
} (Score 2)
12. Rewrite the following code using while loop
for(count =10;count<=50;cont++)
{
cout<<count;
cout<<endl;
} (Score 2)
13. Some real life situation are given below. Correlate these with a data structure / operation.
a) Combining Malayalam students of Commerce batch and Science batch.
b)Give 2 bonus marks for each student in the class.
c) Preparing a rank list based on the mark of student.
d) Take one plate from a bundle of plates. (Score 2)
14. Find out the errors in the program and correct it. (Score 2)
#include<streamio.h>
String main
{
int a, b, c;
clrscr();
cout>>a>>b
a + b =c
return
15. Write down the prototype for the following.
a) Function ‘triangle’ that 3 floating point argument a, b and c and return a floating point result.
(Score1)
b) Function’arr’ will take 3 integers and does not return any thing. (Score1)
c) Function ‘Sum’ will not take any argument and return an integer as result. (Score1)
16. Consider the following code
for(int i=10;i<20;i++)
{
if(i===15)
break;
cout<<i<<” “;
}
a) What will be the output of the above code? (Score 2)
b) Predict the output when ‘break’ is replaced by ‘continue’ (Score 2)
17. a)How can you represent various languages in computer? Explain the code used for this purpose.
(Score 1)
b)Classify computer networks based on geographical area and physical arrangement. Explain any
two from each of the classification category with its merit and demerit. (Score 3)
18. Explain the term function recursion with an example. (Score 3)
19. Suppose you want to know whether a particular item is included in a list.
a)Which methods can be used for this? (Score1)
b) Write down the program for the efficient method. (Score 4)
20. The rate of income tax on salary is shown below. Write a c++ program to calculate the tax.
(score 5)
Salary Tax Rate
Below Rs. 100000 No Tax
150000 – 160000 10%
160000 – 200000 20%
Above 200000 30%
21. You are standing in a row to remit electricity bill.
a)Which data structure can be compared with this? (Score 1)
b) Write an algorithm to add and remove a person to that row. (Score 4)

No comments:

Post a Comment