Jobs in India
Search Jobs
Search Jobs
Advertisements

Paper 5 - Technical - C & C++ by Ramco

Details of Paper 5 - Technical - C & C++ by Ramco conducted by Ramco for job interview.
Advertisements
Ramco

Directions: Each of the following question has a question and two statements labelled as (i) and (ii). Use the data/information given in (i) and (ii) to decide whether the data are sufficient to answer the question record your answer as

A) If you can get the answer from (1)alone but not from (2)
B) If you can get the answer from (2)alone but not from (1)
C) If can get the answer from (1)and (2)together ,although neither statement by itself suffice
D) If statement (1)alone suffices and statement (2) alone also suffice.
E) If can,t get the answer from statements (1) and (2) together and you need more data.

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


Was it Rani,s birthday yesterday?
1)Lata spends Rs.100 on Rani,s birthday
2)Lata spent Rs.100 yesterdayAns: E


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


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


What was the value of the machine 2 years ago?

1) the deprecition of the value of the machine per year is 10%
2)present value of the machine is rs 8000/

Ans:C

What will be the area of a square that can be inscribed in a circle?
1) Radius of the circle is T
2) Length of a diagonal of the square is 2r
Ans:D


There are two figures viz., a circle and a square. Which having greater area?
1) Perimeter of the circle is the same as the perimeter of the square.
2) Eleven times the radius is equal to seven times the length of one side of the square.
Ans: D


A candidate who was found to be under weightin medical test had been selected provisionally subject to his attainment of 60Kg weight within one year. What should be the percentage increase of his weightso that selection is confirmed after one year.
1) Weight (Kg)=16+8 Height (ft) is standard equation for the Indian population. The candidates height is 5.5
2) His present weight is 55Kg.
Ans: D


Is angle =90
1) sin**2()+cos**2()=1
2) sin**2()-+cos**2()=1
Ans: E


What will be the average age of workers of an Institution after two years?
1) Present average age is 35 years
2) There are total 20 workers in the Institution
Ans: A


Is AB>AM ( A Triangle is given )
1) AB
Find the output for the following C program
main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
Ans. An empty string

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


Find the output for the following C program
main()
{
int x=5;
printf("%d %d %d\n",x,x2);
}
Ans. 5 20 1


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 %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

Find the output for the following C program
main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Ans. Samco Systems


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,

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


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


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

Find the output for the following C program
main()
{
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(x);
printf("Third Output : %d\n",x);
}
Modify_value()
{
return (x+=10);
}
change_value()
{
return(x+=1);
}
Ans. 12 1 1


Find the output for the following C program

main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
Ans. 11 16

Find the output for the following C programmain()
{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("Ramco Systems\n");
}
Ans. Ony one time "Ramco Systems" will be printed


Find the output for the following C program
#include
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(;ivar3)?var2:var3;
printf("%d\n",minmax);


Find the output for the following C program
#include
void main(void);
{
void pa(int *a,int n);
int arr[5]={5,4,3,2,1};
pa(arr,5);
}
void pa(int *a,int n)
{
int i;
for(i=0;ii=100;
c->c=,C,;
(*c).x=100L;
printf("(%d,%c,%4Ld)",c->i,c->c,c->x);
}

Find the output for the following C program
#include
void main(void);
const int k=100;
void main(void)
{
int a[100];
int sum=0;
for(k=0;k