Popular Posts

Tuesday, April 10, 2012

MODEL QUESTION PAPER COMPUTERSCIENCE +1


SET 3

1.Pick the odd man out
a)Bus b)Ring c)Lan d)Star
2.Write the purpose of the following key combinations in c++ IDE
a)Alt +F5 b)Ctrl+F9
3.Consider the following c++ statements
Char ch=’A’;
Putchar(++ch);
What will be the output?
4.State true or false
Hard copy devices are very slow compared to soft copy devices
5.Somebody copies a software without author’s legal permission.Do you think it is
a crime? Why?Express your comments
6.What would be the appropriate data type to store the following?
1)Length of cloths
2)Age of employee
3)Average mark of a student
4)Name of the student
7.Find and correct the errors, if any in any of the following statements
1)cout<<”x =”;x;
2)cin>>x;>>y;
8.Match the following
a)Loop statements                 Continue
b)Jump statements                 do…..while
c)Decision statements            { a=0;}
d)Compound statements        putchar
                                             if
9)Write the corrected version of the program and find the output
#include(iostream.h)
void main( )
{
float return=10.7;
float y;
y=return % 5.0;
cout<<return<<”….”<<y;

10.Match the following
a)Intranet - rules and conventions for data transfer
b)browsing - private network owned by an organization
c)protocol - free service in internet
- processing of visiting websites
11.An algorithm is given below. Steps are incorrect order
1.Start
2.end
3.if k<=n then
4.f=f*k
5.k=k+1 goto step 3
6.f=1,k=1
7.Print f
8.Read n
a)Rearrange the steps and make it a meaningful algorithm.
b)What is the purpose of the algorithm.
12.a)Find the octal number corresponding to the number BAD16
b)Represent -23 in 2’s complement form
13.The length and breadth of a rectangle is (11.01)2 cm and (10.11)2 cm. Find the
area of the rectangle and express it in binary number system 3
14.Given the following expressions
a)Val = 3
b)Val == 3
1)How are these two different?
2)What will be the result of b if the value of ‘Val’ is 5 initially?
15.a)Companies prefer network of computers rather than independent machines.
Justify this statement?
b)Give example for i)e-mail program ii)Browser
16.A shop keeper wants to buy a computers. But there is only a little space on a table to
place the monitor.
a)As a computer student, what type of monitor will you suggest for him?
b)Justify your suggestion with sufficient points
17.You are asked to prepare a report showing the grades obtained in each subject by
the students of your class using their marks. Explain the main activities to be
done for processing the data.
18.Explain the components of data processing?
19.Why is the paper coming from the laser prints hot explain?
20.Define the following
a)Seek Time b)Access Time c)Latency Time
21.Compare Stack and Queues with an example
22.Write a program to find the factorial of a number using functions?
23.Write the header file for the following functions.
a)getline () b)itoa () c)abs() d)strcmp() e) exit() f) getch()
24.a)Suppose you want to store the names of your three friends. Write a C++
Initialization statement for this purpose
b)If you are asked to input the names, give the input statement for this purpose 2
25.Write a C++ program to merge two sorted arrays A and B
26.Write an algorithm for binary search method


MODEL QUESTION PAPER COMPUTERSCIENCE +1


SET 2

1. Provide the missing terms
a) A +B+…..=ABC
b) 1002 +100 2+1008=………………10 (2 Score)
2)Consider the following C++ code fragment
Int p=1;char c=’A’;
while(p<=10)
{
cout<<C++;
p++;
}
a)Predict the output
b)Modify the above code using for loop (2 Score)
3.Some C++ operators are given below
> * / || ==
a)Categorize and explain each category (3 Score)
4.) Consider the following C++ code fragment
If(p=2) cout<<”Two”;
Elseif(p=3)cout <<”Three”;
Elseif(p=4)cout<<”Four”;
Correct the errors and rewrite using Switch (3 Score)
5) Consider the following code and write the output of d
float add(int a=10,float b=5.0,int c=10)
{ return a+b+c;
}
d=add(5);
6 )A liist of input devices are given below (3 Score)
1)Keyboard 2)MICR 3)OMR 4)Scanner 5)Joystick 6)Lightpen 7)Barc ode Reader
Select the most appropriate device for the following situations.Also specify any one feature of the
device
a)Artists and architects use this device to develop computerized designs
b)DTP operator to input pictures and photographs
c)Children use this device for playing computer games
d)Evaluation of objective type questions
e)Quick processing of bank cheque
7)Pick odd one out and give reason
a)get() b) getchar() c) put() d)getline() (2 Score)
8) Your school needs to set up a computer lab with atleast 10 computers connected together.
Give the s/w and h/w requirements for doing this. (3 Score)
9) Consider the following codes
for( int i=0;i<10;i++) for( int i=0;i<10;i++)
{ if(i==5) break; {if(i==5) continue;
cout<< i;} cout<< I;}
a) Predict the outputs
b) Compare break and continue (3 score)
10) What stylistic guidelines may be followed to design a good program (2 Score)
11)Raju wrote a computer program . While compiling and running he saw many errors
a)Identify the name given to the process of removing errors
b)Briefly explain the type of errors (3 Score)
12).Write a c++ program to find the factorial of a given number (3 Score)
13) Differentiate x=5 and x==5 (2 Score)
14)The filled application forms from the applicants are used to prepare rank list for +1 admission.
a) Identify data and information in this context (1 +2 Score)
b) If an applicant fails to submit application in time which quality of information is affected and how?
15)Write a c++ program to get the following output (3 Score)
1
1 2
1 2 3
1 2 3 4
16) Differentiate call by value and call by reference with an example (4 Score)
17) Predict the output (3 Score)
Int p,q,r,a,b,c;
a=b=c=10;
p=a++ + ++ a ;
q=++b + b++
r= -- c+ --c;
cout<<p<<q<<r;
18)Draw the flowchart to print the largest of three numbers (3 Score)
19)Vinu wanted to buy a computer monitor. He preferred LCD over CRT . Give reason(2 Score)

20)Name the operations in a stack. Explain each with algorithms. (5 Score)

21) Name the operations in a queue. Explain each with algorithms
22) Write algorithm /program to implement sorting in an array. (5 Score)