Ramco placement paper 6
RAMCO
6. 10 in 4 seconds,
? in 6 minutes = 10x6x60/4 = 900
ans: (a)
7. a=2, b=4, c=5
(a+b)/c - c/(a+b) = 11/30
(ans).
8. 100(100000000+100000000)/10000 = 2x1000000
(ans).
9. what does the hexanumber E78 in radix 7.
(a) 12455 (b) 14153 (c) 14256 (d) 13541 (e) 131112
(b) ans: (d)
10. Q is not equal to zero and k = (Q x n - s)/2 find 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
(from GRE book page no:411)
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
11. If A occurs which of the following must occurs
I. F & 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)
12. If B occurs which must occur
(a) D (b) D and G (c) G and H (d) F and G (e) J
ans: (a)
13. 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)
14. which may occurs as a result of cause not mentioned
(1) D (2) A (3) F
(a) 1 only (b) 2 only (c) 1 & 2 (d) 2 & 3 (e) 1,2,3 ans: (c)
15. E occurs which one cannot occurs
(a) A (b) F (c) D (d) C (e) J ans: (b)
11 to 15:- ----------- e , a , b , c , b ---------------
16. to 20. answers: a,b,a,c,d (or A,B,A,C,D) mostly small letters i.e
not the A,B, etc. given in question, a,b, etc. are
the answers of a,b,c,d,e the five choices.
16 to 20:- ----------- a , b , a , c , d ---------------
HCL in Anna University they have conducted
written test after the G.D. also in written test in each section you have to
get minimum marks i.e you have to pass in each section. There will be
questions from C, C++,java. about 10 questions in C++ in the written test.
so read well all the above i.e C, C++, JAVA and all and get through the test.
Showing posts with label ramco. Show all posts
Showing posts with label ramco. Show all posts
Sunday, June 8, 2008
Ramco placement paper 5
Ramco placement paper 5
RAMCO 'C' QUESTION PAPER
1).main()char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
Ans : An empty String
2).main()int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
Ans 57 94
3).main()int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
Ans 5 20 1
4).#define swap1(a,b) a=a+b;b=a-b;a=a-b;main()int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
int swap2(int a,int b)
int temp;
temp=a;b=a;a=temp;return;
Ans 10 510 5
5). main()char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);ptr++;printf("%s\n",ptr);
Ans Samco Systems Ramco Systems
6).#include
main()char s1[]="Ramco";
char s2[]="Systems";s1=s2;
printf("%s",s1);
Ans Compilation error giving it cannot be an modifible 'lvalue'
7).#includemain()
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
Ans : RamcoSystems
8).[1]. The following variable is available in file1.c
static int average_float;
Ans all the functions in the file1.c can access the variable
9).Ans : [2]. extern int x;Check the answer
10).[3]. Another Problem with
# define TRUE 0
some code
while(TRUE)
some code
This won't go into the loop as TRUE is defined as 0
Ans NONE OF THE ABOVE i.e D
11).Ans : [4]. A question in structures where the memebers are dd,mm,yy.
mm:dd:yy
09:07:97
12).Ans : [5]. Another structure question
1 Rajiv System Analyst
13).Answer
INFILE.DAT is copied to OUTFILE.DAT
14).A question with argc and argv .
Input will be
c:\TEMP.EXE Ramco Systems India
Output will be
India: I n d i aSystems: S y s t e m s
Ramco: R a m c oAnswer is choice d
15). Structure swap
Ramco IndiaRamco Systems Corporation
Ramco ... Limited . After swapping the result will be
First two will be swapped.
Ramco Systems Corporation
Ramco India
Ramco ... Limited .
16).int x;main()int x=0;
int x=10;
x++ ;change_ value(x);x++; Modify _value();printf("First output: %d\n",x);
x++; change_ value(x);printf("Second Output : %d\n",x);Modify_ value();
printf("Third Output : %d\n",x);Modify _value()
return (x+=10);change _value()
return(x+=1);
Ans : 12 1 1
17).main()int x=10,y=15;x=x++;y=++y;printf("%d %d\n",x,y);
Ans : 11 16
main()
{int a=0;if(a=0) printf("Ramco Systems\n");printf("Ramco Systems\n");}
Ans : Ony one time
"Ramco Systems"
will be printed
RAMCO 'C' QUESTION PAPER
1).main()char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
Ans : An empty String
2).main()int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
Ans 57 94
3).main()int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
Ans 5 20 1
4).#define swap1(a,b) a=a+b;b=a-b;a=a-b;main()int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
int swap2(int a,int b)
int temp;
temp=a;b=a;a=temp;return;
Ans 10 510 5
5). main()char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);ptr++;printf("%s\n",ptr);
Ans Samco Systems Ramco Systems
6).#include
main()char s1[]="Ramco";
char s2[]="Systems";s1=s2;
printf("%s",s1);
Ans Compilation error giving it cannot be an modifible 'lvalue'
7).#include
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
Ans : RamcoSystems
8).[1]. The following variable is available in file1.c
static int average_float;
Ans all the functions in the file1.c can access the variable
9).Ans : [2]. extern int x;Check the answer
10).[3]. Another Problem with
# define TRUE 0
some code
while(TRUE)
some code
This won't go into the loop as TRUE is defined as 0
Ans NONE OF THE ABOVE i.e D
11).Ans : [4]. A question in structures where the memebers are dd,mm,yy.
mm:dd:yy
09:07:97
12).Ans : [5]. Another structure question
1 Rajiv System Analyst
13).Answer
INFILE.DAT is copied to OUTFILE.DAT
14).A question with argc and argv .
Input will be
c:\TEMP.EXE Ramco Systems India
Output will be
India: I n d i aSystems: S y s t e m s
Ramco: R a m c oAnswer is choice d
15). Structure swap
Ramco IndiaRamco Systems Corporation
Ramco ... Limited . After swapping the result will be
First two will be swapped.
Ramco Systems Corporation
Ramco India
Ramco ... Limited .
16).int x;main()int x=0;
int x=10;
x++ ;change_ value(x);x++; Modify _value();printf("First output: %d\n",x);
x++; change_ value(x);printf("Second Output : %d\n",x);Modify_ value();
printf("Third Output : %d\n",x);Modify _value()
return (x+=10);change _value()
return(x+=1);
Ans : 12 1 1
17).main()int x=10,y=15;x=x++;y=++y;printf("%d %d\n",x,y);
Ans : 11 16
main()
{int a=0;if(a=0) printf("Ramco Systems\n");printf("Ramco Systems\n");}
Ans : Ony one time
"Ramco Systems"
will be printed
Labels:
ramco
Ramco placement paper 4
Ramco placement paper 4
Ramco Sample Paper
1) 10^2 is how many times ( 0.1)^4 Ans: 10^6
2) 5*6*8*12*35*36 what is the result? Ans: 3628800
3)X*Y is defined as X+Y/Y then (2*3)*4 ? Ans : 17/12
4)Direction sum Ans: towards west
5)A is 25 years greater than B. A is as much as 2 and B is less than 34.Then B’s age is ? My Ans
is : 31
6)For first 60 bags,each bag prices X rs.For additional bags with 60,each bag gets 5% discount
.Then how much does 150 bags price? Ans: none of the above
7)Two discounts in series 20%,15%,then in single discount ? Ans :32%
8)Two nos are in ratio 5:6 .Their product is 3000.Which one is larger ? Ans :60
9)Total amount is 60.50. A is 5/3 of B, B is 1 ½ of C.
From this,4 stmts followed and which one is true ?
Tips: A=30.25 =18.15 C=12.10 ( I’ve calculated ,not presented in Qsn paper,using this u can
easily findout the answer)
10) 0.05 is greater than ? Ans: 0.01
11) 7/15,2/19,40/11 which ratio is larger ? Ans :Ist choice ( 7/15 )
12)I donno the qsn but I’ve marked as 87 :56
13)16 + 22 = ? Ans : 42
8 10
14) -10+0.5 which of the following integer is greater than the result? Ans : 9
Qsns following are related to comparison of two statements and u’ll ve to mark
A if stmt ( I ) is > stmt ( II )
B if stmt ( II ) is > stmt ( I )
C Both r equal
D Cannot be determined
15)In a map 1 inch represents 2.5 miles.
( I ) Distance b/w two cities is 50 inch
(II) 125 miles
Ans : C (Both r equal)
16) ( I ) Exterior angle of hexagon
( II) Interior angle of pentagon
Ans: A ( i.e Exterior angle is greater ),
17) ( I ) Distance b/w the points (0,0) to (5,5)
(II) Distance b/w the points (2,3) to (4,6)
Ans : C (Both r equal)
18) ( I ) Area of the circle of radius 5 cm
(II) Area of the rectangle of sides8cm,6cm
Ans :A (i.e Area of circle > Area of Rectangle)
19) ( I ) No of even elements b/w 1 and 25
(II) No of odd elements b/w 1 nad 26
Ans: B
20)In comparison of stmts last stmt Ans is : C Both r equal)
Ramco Sample Paper
1) 10^2 is how many times ( 0.1)^4 Ans: 10^6
2) 5*6*8*12*35*36 what is the result? Ans: 3628800
3)X*Y is defined as X+Y/Y then (2*3)*4 ? Ans : 17/12
4)Direction sum Ans: towards west
5)A is 25 years greater than B. A is as much as 2 and B is less than 34.Then B’s age is ? My Ans
is : 31
6)For first 60 bags,each bag prices X rs.For additional bags with 60,each bag gets 5% discount
.Then how much does 150 bags price? Ans: none of the above
7)Two discounts in series 20%,15%,then in single discount ? Ans :32%
8)Two nos are in ratio 5:6 .Their product is 3000.Which one is larger ? Ans :60
9)Total amount is 60.50. A is 5/3 of B, B is 1 ½ of C.
From this,4 stmts followed and which one is true ?
Tips: A=30.25 =18.15 C=12.10 ( I’ve calculated ,not presented in Qsn paper,using this u can
easily findout the answer)
10) 0.05 is greater than ? Ans: 0.01
11) 7/15,2/19,40/11 which ratio is larger ? Ans :Ist choice ( 7/15 )
12)I donno the qsn but I’ve marked as 87 :56
13)16 + 22 = ? Ans : 42
8 10
14) -10+0.5 which of the following integer is greater than the result? Ans : 9
Qsns following are related to comparison of two statements and u’ll ve to mark
A if stmt ( I ) is > stmt ( II )
B if stmt ( II ) is > stmt ( I )
C Both r equal
D Cannot be determined
15)In a map 1 inch represents 2.5 miles.
( I ) Distance b/w two cities is 50 inch
(II) 125 miles
Ans : C (Both r equal)
16) ( I ) Exterior angle of hexagon
( II) Interior angle of pentagon
Ans: A ( i.e Exterior angle is greater ),
17) ( I ) Distance b/w the points (0,0) to (5,5)
(II) Distance b/w the points (2,3) to (4,6)
Ans : C (Both r equal)
18) ( I ) Area of the circle of radius 5 cm
(II) Area of the rectangle of sides8cm,6cm
Ans :A (i.e Area of circle > Area of Rectangle)
19) ( I ) No of even elements b/w 1 and 25
(II) No of odd elements b/w 1 nad 26
Ans: B
20)In comparison of stmts last stmt Ans is : C Both r equal)
Labels:
ramco
paper 2
Ramco placement paper 2
RAMCO PLACEMENT PAPER - 2
1) A - G are 7 consecutive +ve integers not necessarily in the same order
1) B is the middle number
2) D is 3 less than c
3) the difference between F & A is equal in magnitude and sign
to the difference between E & C
4) Neither F nor C lie between E & G
a) What is the value of B-F
1 2 -1 -2 cannot be determined
b) which is greatest
F C A E cannot be determined
c) Given both A & B are primes what is the lowest value of E
8 6 9 12 cannot
2) Given that a,b,c,d,e each represent one of the digits between
1-9 and that the following multiplication holds
a b c d e
4
e d c b a
What digit does e represent
a) 4 b) c) 7 d) 8 e) none
1. How many butes does an array A(1:8,-2:2,1:5) require for storage if
each element of the array is 24 bits long.
200 480 600 800 none
2. begin
i:=0;
j:=0; | block d
loop:
if(i != 0)
i := i-1;
else
i := i+1;
i := i+1; | block a
j := j+1; | block b
if (j <= 25)
goto loop;
end | block c
a) What is the value of i at [c]
2 ?
b) How many times is the goto executed
25 ?
c) How many times is the loop executed if i is initialized to 1
in [d] 26
d) How many times is the loop entered if the block [b] is changed to j=j+1 ?
e) What is the value of i at [c] interchanging blocks [a] and [b] ?
2 ?
Follow the instructions given below [ From 1 to 8 ]
1. A cause B or C but not both
2. F occurs only if B occurs
3. D occurs if B or C occurs
4. E occurs if only c occurs
5. J occurs only if E or F occurs
6. H occurs if E occurs
7. D causes G, H or Both.
8. G occurs if F occurs.
Questions
1. If A occurs which of the following may occur
1. F & G (ii) E & H (iii) D
Ans
(a) 1 only (b) 2 only (c) 3 only (d) 1,2,3 or 2 & 3 but not 1
(e) 1,2 & 3
2. If B occurs which must occur
Ans
(a) F & G (b) D & G (c) D (d) G & H (e) J
3. If J occurs which must occur
Ans
(a) E (b) Both E & F (c) Either B or C (d) B (e) Both B & c
4. Which may occur as a result by a cause not mentioned.
(I) D (II) A (III) F
Ans
(a) I only (b) II (c) I & II (d) II & III (e) I,II,III
5. If E occurs which cannot occur.
(a) F (b) A (c) D (d) C (e) J
int SumElement(int *,int);
void main(void)
int x[10];
int i=10;
for(;i;)
{
i--; *(x+i)=i;
printf("%d",SumElement(x,10));
int SumElement(int array[],int size)
int i=0;
float sum=0;
for(;i < size;i++)
sum+=array[i];
return sum;
#include
void main(void);
int printf(const char*,...);
void main(void)
{
int i=100,j=10,k=20;
int sum;
float ave;
char myformat[]="ave=%.2f";
sum=i+j+k;
ave=sum/3.0;
printf(myformat,ave);
#include
void main(void);
void main(void)
int a[10];
printf("%d",((a+9) + (a+1)));
#include
void main(void);
void main(void)
struct s{
int x;
float y;
}s1={25,45.00};
union u{
int x;
float y;
} u1;
u1=(union u)s1;
printf("%d and %f",u1.x,u1.y);
#include
void main(void)
unsigned int c;
unsigned x=0x3;
scanf("%u",&c);
switch(c&x)
case 3: printf("Hello!\t");
case 2: printf("Welcome\t"); case 1: printf("To All\t");
default:printf("\n");
#include
int fn(void);
RAMCO PLACEMENT PAPER - 2
1) A - G are 7 consecutive +ve integers not necessarily in the same order
1) B is the middle number
2) D is 3 less than c
3) the difference between F & A is equal in magnitude and sign
to the difference between E & C
4) Neither F nor C lie between E & G
a) What is the value of B-F
1 2 -1 -2 cannot be determined
b) which is greatest
F C A E cannot be determined
c) Given both A & B are primes what is the lowest value of E
8 6 9 12 cannot
2) Given that a,b,c,d,e each represent one of the digits between
1-9 and that the following multiplication holds
a b c d e
4
e d c b a
What digit does e represent
a) 4 b) c) 7 d) 8 e) none
1. How many butes does an array A(1:8,-2:2,1:5) require for storage if
each element of the array is 24 bits long.
200 480 600 800 none
2. begin
i:=0;
j:=0; | block d
loop:
if(i != 0)
i := i-1;
else
i := i+1;
i := i+1; | block a
j := j+1; | block b
if (j <= 25)
goto loop;
end | block c
a) What is the value of i at [c]
2 ?
b) How many times is the goto executed
25 ?
c) How many times is the loop executed if i is initialized to 1
in [d] 26
d) How many times is the loop entered if the block [b] is changed to j=j+1 ?
e) What is the value of i at [c] interchanging blocks [a] and [b] ?
2 ?
Follow the instructions given below [ From 1 to 8 ]
1. A cause B or C but not both
2. F occurs only if B occurs
3. D occurs if B or C occurs
4. E occurs if only c occurs
5. J occurs only if E or F occurs
6. H occurs if E occurs
7. D causes G, H or Both.
8. G occurs if F occurs.
Questions
1. If A occurs which of the following may occur
1. F & G (ii) E & H (iii) D
Ans
(a) 1 only (b) 2 only (c) 3 only (d) 1,2,3 or 2 & 3 but not 1
(e) 1,2 & 3
2. If B occurs which must occur
Ans
(a) F & G (b) D & G (c) D (d) G & H (e) J
3. If J occurs which must occur
Ans
(a) E (b) Both E & F (c) Either B or C (d) B (e) Both B & c
4. Which may occur as a result by a cause not mentioned.
(I) D (II) A (III) F
Ans
(a) I only (b) II (c) I & II (d) II & III (e) I,II,III
5. If E occurs which cannot occur.
(a) F (b) A (c) D (d) C (e) J
int SumElement(int *,int);
void main(void)
int x[10];
int i=10;
for(;i;)
{
i--; *(x+i)=i;
printf("%d",SumElement(x,10));
int SumElement(int array[],int size)
int i=0;
float sum=0;
for(;i < size;i++)
sum+=array[i];
return sum;
#include
void main(void);
int printf(const char*,...);
void main(void)
{
int i=100,j=10,k=20;
int sum;
float ave;
char myformat[]="ave=%.2f";
sum=i+j+k;
ave=sum/3.0;
printf(myformat,ave);
#include
void main(void);
void main(void)
int a[10];
printf("%d",((a+9) + (a+1)));
#include
void main(void);
void main(void)
struct s{
int x;
float y;
}s1={25,45.00};
union u{
int x;
float y;
} u1;
u1=(union u)s1;
printf("%d and %f",u1.x,u1.y);
#include
void main(void)
unsigned int c;
unsigned x=0x3;
scanf("%u",&c);
switch(c&x)
case 3: printf("Hello!\t");
case 2: printf("Welcome\t"); case 1: printf("To All\t");
default:printf("\n");
#include
int fn(void);
Labels:
ramco
paper 1
Ramco placement paper 1
Ramco Sample Paper 1
2. M > D > Y ans: (a)
6. 10 in 4 seconds,
? in 6 minutes = 10x6x60/4 = 900 ans: (a)
7. a=2, b=4, c=5
(a+b)/c - c/(a+b) = 11/30 (ans).
8. 100(100000000+100000000)/10000 = 2x1000000 (ans).
9. what does the hexanumber E78 in radix 7.
(a) 12455 (b) 14153 (c) 14256 (d) 13541 (e) 131112 ans: (d)
10. Q is not equal to zero and k = (Q x n - s)/2 find 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
(from GRE book page no:411)
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
11. If A occurs which of the following must occurs
I. F & 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)
12. If B occurs which must occur
(a) D (b) D and G (c) G and H (d) F and G (e) J ans: (a)
13. 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)
14. which may occurs as a result of cause not mentioned
(1) D (2) A (3) F
(a) 1 only (b) 2 only (c) 1 & 2 (d) 2 & 3 (e) 1,2,3 ans: (c)
15. E occurs which one cannot occurs
(a) A (b) F (c) D (d) C (e) J ans: (b)
11 to 15:- ----------- e , a , b , c , b ---------------
16. to 20. answers: a,b,a,c,d (or A,B,A,C,D) mostly small letters i.e
not the A,B, etc. given in question, a,b, etc. are
the answers of a,b,c,d,e the five choices.
16 to 20:- ----------- a , b , a , c , d ---------------
HCL in Anna University they have conducted
written test after the G.D. also in written test in each section you have to
get minimum marks i.e you have to pass in each section. There will be
questions from C, C++, java. about 10 questions in C++ in the written test.
so read well all the above i.e C, C++, JAVA and all and get through the test.
RAMCO 'C' QUESTION PAPER
main() char *p1="Name"; char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
Ans : An empty String
main() nt x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
Ans 57 94
main() : int x=5; printf("%d %d %d\n",x,x<<2,x>>2);
Ans 5 20 1
#define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
int swap2(int a,int b)
int temp;
temp=a;
b=a;
a=temp;
return;
Ans 10 5
10 5
main() char *ptr = "Ramco Systems"; (*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
Ans Samco Systems
amco Systems
#include
main()
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
Ans Compilation error giving it cannot be an modifible 'lvalue'
#include
main()
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
Ans : RamcoSystems
[1]. The following variable is available in file1.c
static int average_float;
Ans all the functions in the file1.c can access the variable
Ramco Sample Paper 1
2. M > D > Y ans: (a)
6. 10 in 4 seconds,
? in 6 minutes = 10x6x60/4 = 900 ans: (a)
7. a=2, b=4, c=5
(a+b)/c - c/(a+b) = 11/30 (ans).
8. 100(100000000+100000000)/10000 = 2x1000000 (ans).
9. what does the hexanumber E78 in radix 7.
(a) 12455 (b) 14153 (c) 14256 (d) 13541 (e) 131112 ans: (d)
10. Q is not equal to zero and k = (Q x n - s)/2 find 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
(from GRE book page no:411)
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
11. If A occurs which of the following must occurs
I. F & 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)
12. If B occurs which must occur
(a) D (b) D and G (c) G and H (d) F and G (e) J ans: (a)
13. 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)
14. which may occurs as a result of cause not mentioned
(1) D (2) A (3) F
(a) 1 only (b) 2 only (c) 1 & 2 (d) 2 & 3 (e) 1,2,3 ans: (c)
15. E occurs which one cannot occurs
(a) A (b) F (c) D (d) C (e) J ans: (b)
11 to 15:- ----------- e , a , b , c , b ---------------
16. to 20. answers: a,b,a,c,d (or A,B,A,C,D) mostly small letters i.e
not the A,B, etc. given in question, a,b, etc. are
the answers of a,b,c,d,e the five choices.
16 to 20:- ----------- a , b , a , c , d ---------------
HCL in Anna University they have conducted
written test after the G.D. also in written test in each section you have to
get minimum marks i.e you have to pass in each section. There will be
questions from C, C++, java. about 10 questions in C++ in the written test.
so read well all the above i.e C, C++, JAVA and all and get through the test.
RAMCO 'C' QUESTION PAPER
main() char *p1="Name"; char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
Ans : An empty String
main() nt x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
Ans 57 94
main() : int x=5; printf("%d %d %d\n",x,x<<2,x>>2);
Ans 5 20 1
#define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
int swap2(int a,int b)
int temp;
temp=a;
b=a;
a=temp;
return;
Ans 10 5
10 5
main() char *ptr = "Ramco Systems"; (*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
Ans Samco Systems
amco Systems
#include
main()
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
Ans Compilation error giving it cannot be an modifible 'lvalue'
#include
main()
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
Ans : RamcoSystems
[1]. The following variable is available in file1.c
static int average_float;
Ans all the functions in the file1.c can access the variable
Labels:
ramco
Subscribe to:
Posts (Atom)