(Paper) Teradata Walk-In Fresher Job Interview Placement Paper: 16 August 2011

Teradata

Company Name : Teradata
Type : Walk-IN
Job Interview Paper:

Questions 1. void main()
{
int const * p=5;
printf("%d",++(*p));
}

Questions 2.
main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]);
}

Questions 3. main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("I love U");
else
printf("I hate U");
}

Questions 4. main()
{
static int var = 5;
printf("%d ",var--);
if(var)
main();
}

Questions 5.
main()
{
int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++) {
printf(" %d ",*c);
++q; }
for(j=0;j<5;j++){
printf(" %d ",*p);
++p; }
}

Questions 6.
main()
{
extern int i;
i=20;
printf("%d",i);
}

Questions 7.
main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}

Questions 8.
main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}

Questions 9. main()
{
char *p;
printf("%d %d ",sizeof(*p),sizeof(p));
}

Questions 10.
main()
{
int i=3;
switch(i)
{
default:printf("zero");
case 1: printf("one");
break;
case 2:printf("two");
break;
case 3: printf("three");
break;
}
}

Questions 11.
main()
{
int i=3;
switch(i)
{
default:printf("zero");
case 1: printf("one");
break;
case 2:printf("two");
break;
case 3: printf("three");
break;
}
}

Questions 12.
main()
{
printf("%x",-1<<4);
}
Questions 11. main()
{
char string[]="Hello World";
display(string);
}
void display(char *string)
{
printf("%s",string);
}
Questions 11. main()
{
char string[]="Hello World";
display(string);
}
void display(char *string)
{
printf("%s",string);
}

C data types classification are

Primary data types:

  • int
  • char
  • float
  • double
  • void

Secondary data types (or) User-defined data type:

  • Array
  • Pointer
  • Structure
  • Union
  • Enum
Exam/Interview Date : 16-Aug-2011
No of Rounds : Screening Test, Technical Round-1, Technical Round-2, Client/Manager Interview
Location : Hyderabad
Contributor Name : Santosh