Ramco Systems




Ramco Systems

Filed under:

Ramco Systems Placement Question Paper

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 © 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 © D (d) G & H (e) J
3. If J occurs which must occur
Ans
(a) E (b) Both E & F © 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 © I & II (d) II & III (e) I,II,III
5. If E occurs which cannot occur.
(a) F (b) A © D (d) C (e) J

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

1) Find the output for the following C program
main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%sn",p2);
}
Ans. An empty string

2) Find the output for the following C program
main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %dn",x,y);
}
Ans. 57 94
3) Find the output for the following C program

main()
{
int x=5;
printf("%d %d %dn",x,x<<2,x>>2);
}
Ans. 5 20 1

4) Find the output for the following C program
#define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
{
int x=5,y=10;
swap1(x,y);
printf("%d %dn",x,y);
swap2(x,y);
printf("%d %dn",x,y);
}
int swap2(int a,int b)
{
int temp;
temp=a;
b=a;
a=temp;
return;
}
Ans. 10 5
5) Find the output for the following C program
main()
{
char *ptr = “Ramco Systems";
(*ptr)++;
printf("%sn",ptr);
ptr++;
printf("%sn",ptr);
}

Ans. Samco Systems
6) Find the output for the following C program

#include
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Ans. Compilation error giving it cannot be an modifiable ‘lvalue’
7) Find the output for the following C program
#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
8) Find the output for the following C program given that
[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) Find the output for the following C program
# define TRUE 0
some code
while(TRUE)
{
some code
}
Ans. This won’t go into the loop as TRUE is defined as 0
10) Find the output for the following C program
main()
{
int x=10;
x++;
change_value(x);
x++;
Modify_value();
printf("First output: %dn",x);
}
x++;
change_value(x);
printf("Second Output : %dn",x);
Modify_value(x);
printf("Third Output : %dn",x);
}
Modify_value()
{
return (x+=10);
}
change_value()
{
return(x+=1);
}
Ans. 12 1 1

Related Plament Papers and Companies

Citicorp Placement Question Papers

Citicorp Placement Question Papers [1]. The following variable is available in file1.c static int average_float; all the functions in the file1.c can access the variable [2]. extern int x; Check the answer [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 [4]. A question in structures where the memebers are dd,mm,yy. mm:dd:yy 09:07:97 [5]. Another structure question 1 Rajiv System Analyst [6]. INFILE.DAT is copied to OUTFILE.DAT [7]. A question with argc and argv . Input will be main() { int x=10,y=15; x=x++; y=++y; printf("%d %dn",x,y); } -------------------------- int x; main() { int x=0; { int x=10; x++; change_value(x); x++; Modify_value(); printf("First output:

Ramco Systems Placement Question Papers

Ramco Systems Placement Question Papers 1. What will be the population of city X in 1991? 1) Population of the city has 55% annual growth rate 2) in 1991,the population of city X was 8 million Ans:C 2. Was it Rani's birthday yesterday? 1)Lata spends Rs.100 on Rani's birthday 2)Lata spent Rs.100 yesterdayAns: E 3. Is 3*5 or is 4*6 greater ? 1) a*b =b*a 2) a*b is the remainder of ab%(a+b) Ans:B 4. Will the graph X-Y pass through the origin? 1) x proportional to the Y 2)increment in y per units rise of x is fixed. Ans:E 5. What was the value of the machine 2 years ago? 1) the deprecition of

Citicorp Placement Question Papers

Citicorp Placement Question Papers SAMPLE PAPER Aptitude 1. For the first qustion in the paper answer is (30). 2. Five trays cost is 0.35 each and dozen----- (ans:Rs13.75) 3. In a journey of 15 miles two third distance was travelled with 40 mph and remaining with 60 mph.How muvh time the journey takes...(ans:20 min) 4. A man walks from 9.15 to 5.15 from monday to friday and 9.00 to 12.00 on saturday.Each day 0.45 min lunch.How much time he walks in a week...(ans: 39hrs15min). 5. 12 revolutions takes 1/8 th second time.In 20 seconds how many revolutions...(ans:1920) 6. In 60 reems of paper 40 reems were utilised

PSI DATA SYSTEMS Placement Question Papers

PSI DATA SYSTEMS Placement Question Papers Technical

Honeywell

Honeywell Placement Question Papers Some sample Questions 1. What is a Real-Time System ? 2. What is the difference between Hard and Soft real-time systems ? 3. What is a mission critical system ? 4. What is the important aspect of a real-time system ? 5. Explain the difference between microkernel and macro kernel. 6. Give an example of microkernel.Why paging is used ? 7. Which is the best page replacement algo and Why ? 8. What is software life cycle ? 9. How much time is spent usually in each phases and why Which one do U want to

  • Resources













  • Placement Papers Archives