Beruflich Dokumente
Kultur Dokumente
MAXIMUM MARKS : 70
PART—I
1
PART—II
2
PART—III
ANSWER ANY SIX QUESTIONS IN WHICH QN.NO. 33 IS COMPULSORY.
6 X 3 =18
QN.NO ANSWERS MARKS
25 TRUTH TABLE:
A B O/P
0 0 0 2
0 1 1
1 0 1
1 1 0
LOGIC SYMBOL :-
Switch
It is a multi-way branch statement. It provides an easy
1
way to dispatch execution to different parts of code
based on the value of the expression.
3
30 The structure declared within another structure is called 2
as nested structure.
Example:-
struct student
{
int age;
float height, weight;
struct dob
{
int date;
char month[4];
int year;
};
}s1; (Any Example) 1
PART—IV
4
(i) (1920)10 = ( 3600)8 1
(ii) (1920)10 = (111 1000 0000)2 1
(iii) (8BC)16 = ( 1000 1011 1100)2 1
(iv) (6213)8 = ( 1100 1000 1011)2 1
1
(v) (255)10 = ( FF)16
35 1. Distributed Operating system takes care of the
data and application that are stored and processed
on multiple physical locations across the world 2
over the digital network. The Distributed OS is
used to access shared data and files that reside in
any machine around the world.
2. The user can handle the data from different
locations. The user can access as if it is available
on their own computer. 3
3. Advantages of Distributed OS
(OR)
Factorial (3)
i = 1, F = 1
F=1×1
F=1×2
F=2×3 5
F=6
36 If a = 15 , b = 20 1
a) a & b = 00000100 = 410 1
b) a I b = 00011111 = 3110 1
c) a ^ b = 00011011 = 2710 1
d) a >> 3 = 00000001 = 110 1
e) ( ~b) = 11101011 = - 2110
(OR)
5
37 Explanation on
2
1.Data Abstraction
2.Encapsulation
3. Modularity
4. Inheritance
5. Polymorphism 3
Explain the above points
(OR)
Output:-
Enter the number 2 5
The Square of 2 is 4
The cube of 2 is 8
(Output changed with respect to input value)
38 1. Precedence and Associatively of an operator
cannot be changed.
2. No new operators can be created, only existing
operators can be overloaded.
3. Cannot redefine the meaning of an operator’s
procedure. You cannot change how integers are 5
added. Only additional functions can be to an
operator.
4. Overloaded operators cannot have default
arguments.
5. When binary operators are overloaded, the left
hand object must be an object of the relevant
class.
(OR)