Company: HCL Infosystems

1. a=2, b=3, c=6 Find the value of c/(a+b)-(a+b)/c
Ans. 11/30
2. What does the hexa number E78 in radix 7.
(a) 12455
(b) 14153
(c) 14256
(d) 13541
(e) 131112
Ans. (d)
3. What does the hexa number E78 in radix 7.
(a) 12455
(b) 14153
(c) 14256
(d) 13541
(e) 131112
Ans. (d)
4. Q is not equal to zero and k = (Q x n – s)/2.What is n?
(a) (2 x k + s)/Q
(b) (2 x s x k)/Q
(c) (2 x k – s)/Q
(d) (2 x k + s x Q)/Q
(e) (k + s)/Q
5. From the following statements determing the order of ranking
M has double the amount as D Y has 3 rupess more than half the amount of D
Ans. Data insuffiecient
Questions 6 – 10 are to be answered on the following data
A causes B or C, but not both
F occurs only if B occurs
D occurs if B or C occurs
E occurs only if C occurs
J occurs only if E or F occurs
D causes G,H or both
H occurs if E occurs
G occurs if F occurs
6. If A occurs which of the following must occurs
I. F and G
II. E and H
III. D
(a) I only
(b) II only
(c) III only
(d) I,II, & III
(e) I & II (or) II & III but not both
Ans. (e)
7. If B occurs which must occur
(a) D
(b) D and G
(c) G and H
(d) F and G
(e) J
Ans. (a)
8. If J occurs which must have occured
(a) E
(b) either B or C
(c) both E & F
(d) B
(e) both B & C
Ans. (b)
9. Which may occurs as a result of cause not mentioned
I. D
II. A
III. F
(a) I only
(b) II only
(c) I & II
(d) II & III
(e) I,II & III
Ans. (c)
10. E occurs which one cannot occurs
(a) A
(b) F
(c) D
(d) C
(e) J
Ans. (b)
11. A 5 litre jug contains 4 litres of a salt water solution that is 15 percent salt. If 1.5 litres of the solution spills out of the jug, and the jug is then filled to capacity with water,approximately what percent of the resulting solution in the jug is salt?
(A)7.5% (B)9.5% (C) 10.5% (D)12% (E)15%
12. Working independently, Tina can do a certain job in 12 hours. Working independently, Ann can do the same job in 9 hours. If Tina Works independently at the job for 8 hours and then Ann works independently, how many hours will it take Ann to complete the remainder of the jobs?
(A)2/3 (B)3/4 (C)1 (D)2 (E)3
13. In a murder case there are four suspects P,Q,R,S. Each of them makes a statement. They are p: “I had gone to the theatre with S at the time of the murder”.q: “I was playing cards with P at the time of the murder”.r: “Q didn’t commit the murder”.s: “R is not the murderer”.Assuming the only one of the above statement is false and that one of them is the murderer, who is the murderer?
a) P
b) Q
c) R
d) Cann’t be concluded
e) S
Ans: E
14. Mohan earned twice as much as Deep. Yogesh earned rs.3/- more than half as much as deep. If the amounts earned by Mohan,Deep,Yogesh are M,D,Y respectively, Which of the following is the correct ordering of these amounts?
a) 7 b) 28 c) 3 d) 14 e) None
ans: 3;
45. Which is the output produced by the following program
main()
{
int n=2;
printf(“%d %dn”, ++n, n*n);
}
a) 3,6 b) 3,4 c) 2,4 d) cannot determine
46. What is th output of the following program?
int x= 0×65;
main()
{
char x;
printf(“%dn”,x)
}
a) compilation error b) ‘A’ c) 65 d) unidentified
47. What is the output of the following program
main()
{
int a=10;
int b=6;
if(a=3)
b++;
printf(“%d %dn”,a,b++);
}
a) 10,6 b)10,7 c) 3,6 d) 3,7 e) none
48. What can be said of the following program?
main()
{
enum Months {JAN =1,FEB,MAR,APR};
Months X = JAN;
if(X==1)
{
printf(“Jan is the first month”);
}
}
a) Does not print anything
b) Prints : Jan is the first month
c) Generates compilation error
d) Results in runtime error
49. What is the output of the following program?
main()
{
char *src = “Hello World”;
char dst;
strcpy(src,dst);
printf(“%s”,dst);
}strcpy(char *dst,char *src)
{while(*src) *dst++ = *src++;
}
) “Hello World” b)”Hello” c)”World” d) NULL e) unidentified
50. What is the output of the following program?
main()
{
int l=6;
switch(l)
{ default : l+=2;
case 4: l=4;
case 5: l++;
break;
}
printf(“%d”,l);
}
a)8 b)6 c)5 d)4 e)none
51. What is the output of the following program?
main()
{
int x=20;
int y=10;
swap(x,y);
printf(“%d %d”,y,x+2);
}
swap(int x,int y)
{
int temp;
temp =x;
x=y;
y=temp;
}
a)10,20 b) 20,12 c) 22,10 d)10,22 e)none
52. What is the output of the following problem ?
#define INC(X) X++
main()
{
int X=4;
printf(“%d”,INC(X++));
}
a)4 b)5 c)6 d)compilation error e) runtime error
53. what can be said of the following
struct Node {
char *word;
int count;
struct Node left;
struct Node right;
}
a) Incorrect definition
b) structures cannot refer to other structure
c) Structures can refer to themselves. Hence the statement is OK
d) Structures can refer to maximum of one other structure
54. What is the size of the following union. Assume that the size of int =2, size of float =4 and size of
char =1.
Union Tag{
int a;
flaot b;
char c;
};
a)2 b)4 c)1 d) 7
55. What is the output of the following program? (. has been used to indicate a space)
main()
{
char s[]=”Hello,.world”;
printf(%15.10s”,s);
}
a )Hello,.World…
b)….Hello,.Wor
c)Hello,.Wor….
d)None of the above