Cs Set2
Cs Set2
1. Which of the following motherboard contain old processor socket, DIMM, ISA slot.
(a) AT (b) XT (c) Baby AT (d) ATX
2. Boolean Algebra is very useful in the design of
(a) Analog circuit (b) Hardware circuit (c) Electrical circuit (d) logic circuit
3. Assertion (A): A queue is a FIFO data structure.
Reason (R): An ordered collection of items where insertion and deletion takes place at
the different end.
(a) A is true and R is false.
(b) A is true and R is correct explanation.
(c) A is false and R is true.
(d) A is true and R is not correct explanation
4. Class members are accessed using _______ operator.
A. Dot operator b. comma c. colon d. Single
5. Given the class
class box
{
int length;
public: int width;
private: int height;
void set_height(int i )
{
height=i;
}
void get_height( )
{
return(height);
}
};
Which of the data members are private and public respectively?
(a) width length, height (b) width, length height
(c) length height, width (d) length width, height
6. A) The inline function is a compact function.
B) Inline function run little slower than normal function.
C) Very efficient code can be generated.
(a) Both A and C are correct.
(b) Both A and B are correct.
(c) Both B and C are correct.
(d) All A, B and C are correct
7. Constructor should be declared in
(a) Private (b) Public (c) Protected (d) All of these
II. Fill in the blanks: (default, parameterized, binary, array, Queue, singly). 1*5=5
35. Write algorithm flowchart and pseudo code to accept numbers till the user enters zero and find
their average.
36. Write the rules for identifiers.
37. Explain number data types.
38. Define the following a. Mutable data type b. Immutable data type
c. Decomposition d. Algorithm e. Debugging
39. Explain smart cities with example.
40. Explain different functional units of computer system with neat block diagram.
41. Explain the functions of operating system.
PART-E
IV. Answer any two of the following questions: 5*2=10
42. Explain different types of data.
43. Explain different user interfaces.
44. Convert FACE (16) to base (2) to base (8)