DHSE Kerala 1st and 2nd Year Computer Science Question Papers
1. Arrange the following data types from smallest to largest
float, char, double, long double, long (1)
2. If p=1 , q=2, the value of X after executing the
expression X= – – q + p (1)
3. If strlen() : string.h then ……… : ctype.h (1)
4. Pick the odd one out and justify your answer
a) Column b) Attribute c) Field d) Tuple (1)
5. Distinguish between PRIMARY KEY and UNIQUE. (1)
6. Predict the output
enum day{Sunday, Monday, Tuesday=5,Wednesday};
day b_day;
b_day = Monday + Wednesday;
cout << b_day; (2)
OR
7. Assume that Time is a class. Distinguish between the
following statements:
Time ot1(13,20,36);
Time ot1 = Time(13,20,36); (2)
8. Explain nested structure with an example. (2)
9. Describe the importance of destructor. (2)
10. Represent the Boolean function F(a,b) = ab using only
NOT and OR gates. (2)
11. Briefly explain the qualities that the System Analyst
should possess. (2)
12. Ramu has to perform insertion, deletion and modification
operation of records in a table. Name the type of database language which
provides commands to perform these operations. Write short note on it.
(2)
13. The function sum() can be used for adding two numbers as
well as joining two strings. Which OOP feature can be correlated? Explain.
(3)
14. Identify and correct the error.
Class X
{
public:
int a,b;
void int(void)
{
a=b=0;
}
int sum(void);
int square(void);
};
int sum(void)
{
return(a+b);
}
int square (void)
{
return sum()*sum();
} (3)
15. Given the following set of definition
class X
{………
};
class Y: public X
{