Sasken Previous Years Solved Sample Placement Papers
-
Three wheels make 36, 24, and 60 revolutions per minute. Each has a black mark on it. It is aligned at the start of the question. When will they align again for the first time?
(a) 14 sec
(b) 20 sec
(c) 22 sec
(d) 5 sec
Answer: 6 sec (not in options)
-
Some questions on area which are in hectares and some values are in kilometers. First, know the conversion of kmĀ² to hectares.
Answer: Hectare conversion is required for calculations.
-
In a triangle ABC, AD is perpendicular to BC. BD is 15 m, and angle B is 30 degrees. Find AC.
Answer: 5 (closest option)
-
Ashish was given Rs. 158 in denominations of Rs. 1 each. He distributes these in different bags, such that any sum of money of denomination between 1 and 158 can be given. What is the minimum number of such bags required?
(a) 10
(b) 17
(c) 15
(d) None (Solution is 8)
-
Identify which of the following are declarations
(a) extern int x;
(b) float square (float x) {...}
(c) double pow(double, double);
(d) 1 and 3 (Ans)
-
Which of the following statement obtains the remainder on dividing 5.5 by 1.3?
(a) rem = (5.5 % 1.3)
(b) rem = modf(5.5, 1.3)
(c) rem = fmod(5.5, 1.3) (Ans)
(d) Error: we can't divide
-
What will be the output of the program?
```c
#include
int main() { char c=48; int i, mask=01; for(i=1; i<=5; i++) { printf("%c", c|mask); mask = mask<<1; } return 0; } ``` (a) 12400
(b) 12480 (Ans)
(c) 12500
(d) 12556
-
Point out the error in the following program.
```c
#include
#include int main() { int *a[3]; a = (int*) malloc(sizeof(int)*3); free(a); return 0; } ``` (a) Error: unable to allocate memory
(b) Error: We cannot store address of allocated memory in a (Ans)
(c) Error: unable to free memory
(d) No error
-
What is the purpose of fflush() function?
(a) Flushes all streams and specified streams (Ans)
(b) Flushes only specified stream
(c) Flushes input/output buffer
(d) Flushes file buffer