Kanbay Previous Years Solved Sample Placement Papers
-
The values of shares (in Rs) of A, B, and C from January to June are as follows:
Month A B C January 30 60 80 February 35 65 85 March 45 75 65 April 40 75 82 May 55 75 85 June 50 75 80
- During this period, which share has undergone maximum fluctuation?
Ans: Share C
- In which month is it possible to buy B and C by selling A?
Ans: March
- In which month are the share values very low?
Ans: January
- By purchasing one share of A and four each of B and C in the beginning of the period, when should these be sold to get the maximum profit?
Ans: May
- During this period, which share has undergone maximum fluctuation?
-
In a computer institute, 9 languages can be taught. The module is of 6 months duration, and only one language can be taught each month. BASIC is always taught first. WORD PERFECT is taught in the preceding month of WORD STAR. FORTRAN cannot be taught until COBOL is taught. BINO and FIFO can never be taught in the same module.
- If WORD STAR is in the 3rd month, what could be in the 6th month?
Ans: FIFO
- If COBOL is in the 2nd month and BINO in the 6th month, FORTRAN will be taught in which month?
Ans: 4th month
- If WORD STAR is in the 3rd month, what could be in the 6th month?
-
In a class, except 18, all are above 50 years. 15 are below 50 years of age. How many people are there?
(a) 30
(b) 33
(c) 36
(d) None of these (Ans)
-
What will the following program do?
void main() { int i; char a[] = "String"; char *p = "New String"; char *Temp; Temp = a; a = malloc(strlen(p) + 1); strcpy(a, p); // Line number: 9 p = malloc(strlen(Temp) + 1); strcpy(p, Temp); printf("(%s, %s)", a, p); free(p); free(a); } // Line number 15
(a) Swap contents of p & a and print: (New string, string)
(b) Generate compilation error in line number 8 (Ans)
(c) Generate compilation error in line number 5
(d) Generate compilation error in line number 7
(e) Generate compilation error in line number 1
-
In the following code segment, what will be the result of the function?
Value of x , value of y { unsigned int x = -1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); }
(a) same, MAXINT, -1 (Ans)
(b) not same, MAXINT, -MAXINT
(c) same, MAXUNIT, -1
(d) same, MAXUNIT, MAXUNIT
(e) not same, MAXINT, MAXUNIT
-
What will be the result of the following program?
char *gxxx() { static char xxx[1024]; return xxx; } main() { char *g = "string"; strcpy(gxxx(), g); g = gxxx(); strcpy(g, "oldstring"); printf("The string is : %s", gxxx()); }
(a) The string is : string
(b) The string is : Oldstring (Ans)
(c) Run time error/Core dump
(d) Syntax error during compilation
(e) None of these
-
36% of 945 � 26% of 765 + 17.7 =?
A. 167
B. 187
C. 159
D. 143
Ans: C. 159
Explanation:
340.2 � 198.9 =141.3+17.7 = 159 -
v(456�12+142-11) =?
A. 11
B. 169
C. 23
D. 13
Ans: D. 13
Explanation:
38+142-11 = 169 = 13*13 -
1(1/5) of 1(1/2) of ? = 216
A. 100
B. 125
C. 140
D. 120
Ans: D. 120
Explanation:
6/5*3/2 *x = 216
X = 216*2*5/6*3 = 2160/18 = 120