@@ -155,9 +155,8 @@ of comparisons?
155
155
156
156
30 . Write a C program for level order traversal of a tree?
157
157
158
- 31 . You are given: 3 types of vehicles: Motorbike, Car, and a special type of car for
159
- the handicapped.
160
- 3 Types of parking: Motorbike parking, Car parking, handicapped car parking.
158
+ 31.You are given: 3 types of vehicles: Motorbike, Car, and a special type of car for
159
+ the handicapped. 3 Types of parking: Motorbike parking, Car parking, handicapped car parking.
161
160
Motorbikes and cars can only park in their designated parkings, while the
162
161
handicapped cars can park either in their own parking or the regular car parking.
163
162
How would you model this as classes? Explain your methods.
@@ -167,7 +166,7 @@ there.write a query which displays empname,correspondingdeptname also
167
166
display those employee names who donot belong to any dept.
168
167
Display the employees whose salary is less than average salary.
169
168
170
- 33 . what is the output of the program
169
+ 33.what is the output of the program
171
170
172
171
main()
173
172
@@ -179,9 +178,7 @@ printf("%d %d %d",c,c<<2,c>> 2);
179
178
180
179
}
181
180
182
- 34 .
183
-
184
- main()
181
+ 34.main()
185
182
186
183
{
187
184
@@ -260,4 +257,5 @@ a)x is always a prime
260
257
b)x is a power of 2
261
258
c)x is even d)x is odd
262
259
260
+
263
261
40.what is valid in cpp char * cp; const char * cpp; 1) cpp=cp; 2) cp=cpp;
0 commit comments