Popular Posts

Tuesday, May 01, 2012

MODEL QUESTION PAPER COMPUTERSCIENCE +1

SET  4

1. Given the following code fragment
int main()
{
float sum(float,float);
}
void calc(void)
{
float x, y, z;
cin>>x>>y;
s = sum (x,y);
}
Will the above given function work? If not why? Score 3
OR
2. Write a complete C++ program that reads a float array having 10 elements. The
program uses function to reverse this array. Score 3
3. Searching for a word in dictionary resembles with an array operation with a specific
method.
(a) Name the operation and method. Score 1
(b) Write the algorithm to perform this. Score 3
(c) specify the prerequisites for this kind of search Score 1
4. The names of students in a class are stored in an array of strings. Write a program
program to prepare alphabetically sorted listings of names. Score 5
5. When structures are passed to function as argument it should be declared
……................ Score 1
6. Rajeev wants to convert a string to an integer and Raju wants to convert a long to a
string . Which built in function can be used for these purposes and give the name (s ) of
header file ( s ) which contain the prototypes of these functions ? Score 2
7. Arrange the following operators according to the increasing order of precedence.
?: , <= , ++ , || , + , * , >= , && Score 2
8. Match the following. Score 2
A B
1. CPU a. MHz
2. HDD b. KBPS
3. Floppy c. GB
4. Printer d. 1.44 MB
e. CPS
9. Arun wants to convert the word DEAD to equivalent octal and Varun wants to convert
the octal number 7156 to equivalent hexadecimal number . Please help him. Score 2
10. Sutract 1110002 from 10111002 using 2’s complement method. Score 3
11. Now a days in newspapers, facilities are provided to include the news items which
come after all its pages are set and still can publish it in time. But it was not possible until
a few years back. Why? Score 3
12. Convert the following number into equivalent number systems.
(776)10 = (…….)4 = (…….)8 = (…….)7 Score 2
13. Name the following : Score 2
( a ) A program used to view information on the internet .
( b ) A folder that contains the received e_mail messages .
( c ) Example for a website that provides free e_mail service .
( d ) The device used to connect a computer to a network .
14 . Which protocol is used to deliver e_mail within internet ? Score 1
15. Briefly explain DNS . Score 2
16. If the principal asks you for your suggestion about buying a printer what will be your
opinion ? Why ? Score 3
17. What will be the result of a = 5/3 if a is ( a ) float ( b ) int Score 2
18. Evaluate a+ = a++ + ++a ; if a = 20 initially . Score 2
19. Which are the two ways to connect your computer to the internet ? Score 3
20. If your computer teacher asks you to write a computer program , what are the
activities to be performed by you for writing the the same ? Score 5
21. Explain different types of expressions and different methods of type conversions in
C++ . Score 5
22. A for loop statement is given below :
for ( int s = 0 ; n>0 ; s+ = n%10 , n/ = 10 ) ;
( a ) What will be the value of s after the execution of this loop , if the value of n is 456 ?
Give explanation of your answer . Score 2
( b ) Convert the above code segment using do-while loop Score 3
23. In a CD pack the CDs are placed one over the other through a central axis. Asume
that there are 25 CDs in the pack.
(a) Name the data structure that resembles with the CD pack. Score 1
(b) Considering the CD pack as an array, how will you name the position of the last CD
and what will be its value? Score 1
(c) Write an algorithm to remove a CD from the pack and name the operation
performed. Score 3
24. While waiting for ticket at the railway station ticket counter, you are following the
principle as that of a data structure.
(a) Name the data structure and the principle. Score 1
(b) Write an algorithm to add a new element in this data structure. Score 3
(c) Name the situation there is no space for adding the new element. Score 1

No comments:

Post a Comment