GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Placement Papers  >  iNautix
Go To First  |  Previous Question  |  Next Question 
 iNautix  |  Question 5 of 7    Print  
iNautix Placement Paper
1.main()
{
char **p="Hello";
printf("%s",**p);
}

Ans: Garbage or nothing

2.main()
{
printf("%d%c\n");
printf("%d%c\n");
}

Ans: Garbage Value

3. main()
{
int x=5;
printf("%d%d",x++,++x);
}

Ans=6 6

4. main()
{
int x=4;
printf("%d",printf(" %d %d ",x,x) );
}

Ans: 4 4 5

5. main()
{
union
{
int i;
char p;

struct
{
int t;
char e;
char o;
}w;

}l;
printf("%d\n",sizeof(l) );
}

Ans: 4

6. main()
{
int i=0,n=6;
while(n-->0);
i+=n;
printf("%d\n",i);
}

Ans: -1

7. main()
{
char a[]="Hello";

printf("%c\n",*a++);
}
Ans: Error

8. a=3,b=2,c=1;
What's the value of k?
k= a< b < c-1;

Ans: 0

9. main()
{
int a=3;
do
{
printf("%d", a);
a=-1;
} while(a>0);

}

Ans: 3

10.It is not "exact" Question; But the given Answers is:
a) PASS1 PASS2
b) PASS1 FAIL1
c)FAIL1 FAIL2
d)FAIL1 PASS2

main()
{
char c=-32;
int i=-64;
unsigned u=-26;
if(c>i)
printf("PASS1");
if( i < c)
printf("PASS2");
else
printf("FAIL1");
if(iprintf("PASS2");
else
printf("FAIL2");
}

Ans: PASS1 PASS2 PASS1

11.
main()
{
int i=0;
for( i=0; i<=20;i++)
{
switch(i)
{
case 0: i+=5;
case 1: i+=2;
case 2: i+=5;
default: i+=4;
break;
}
printf("%d",i);
}


Ans: 16 21


12.main()
{
int i=4;
switch(i)
{
case 1:
printf("HEllo"):
case default: // "case" should not come with "default"
printf("****");
}
}

Ans: Error

13.
main()
{
int sum=0,count;
for(count=1;sum+=count)
printf("%d\t",sum);
}
Ans: Error

14.
#define cond(a) a>=65 && a<=90
main()
{
char s='R';
if( cond(s) )
printf("UPPER CASE");
else
printf("LOWER CASE");
}

Ans:UPPER CASE

15.main()
{
static int i=5;
printf("%d\t",i--);
if( i)
main();
}

Ans: 5 4 3 2 1

16. main()
{
char *a1="new",*a2="dictionary",*t;
swap(a1,a2);
printf("(%s%s)",a1,a2);
t=a1;
a1=a2;
a2=t;
printf("-(%s%s)",a1,a2);
}
swap( char *s1,char *s2)
{
char *temp;
s1=s2;
s2=s1;
temp=s1;
}

Ans: (newdictionary)-(dictionarynew)

17.
*p++?

Ans: increments Address

18.
main()
{
int a[]={ 10,20,30,40,50};
char*p=(char*)a;
printf("%d", * ( (int *) p+4);
}

Ans: 50

19.one question nothig but calling a function before it has been defined.



  
Total Answers and Comments: 0 Last Update: November 20, 2005     Asked by: Arun Prakash 
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

1.cin is ana.functionb.objectc.class.2.i con't remember the ques but the ans is Virtual base class3.What is the use of scope resolution operator?4.Advantage of inline function?5.Copy constructor is 
Latest Answer : Answer given to question 1 above is wrong.Cin is a object of class Istream and the operator
Read Answers (3) | Asked by : Arun Prakash

1.How will you terminate the statement?ans: ;2.select the wrong onea.a+=1;b.a*=2;c.a**=1;(ans)d.a>>=1;3.main(){int n,i=1;switch(n){case 1:some stuff;case 2:some stuff;default:i=10;}printf("i=%d",i);}what 
View Question | Asked by : Arun Prakash

1.ans:script2.How will you do version maintaince?sccs(source code control system)3.awk $24.a program in shell script?find the o/p.5.which signal you can't catch?ans:sigkill6.core dump is due to ?ans:segmentation 
View Question | Asked by : Arun Prakash

1. Why do you want to leave current company ?2. What is your role in project and how you manage you role at your company ?3. How do you manage people, how you do reviews, testing ? Do you use any automated 
View Question | Asked by : Arun Prakash

1.main(){char **p="Hello";printf("%s",**p);}Ans: Garbage or nothing2.main(){printf("%d%c\n");printf("%d%c\n");}Ans: Garbage Value3. main(){int x=5;printf("%d%d",x++,++x);}Ans=6 
View Question | Asked by : Arun Prakash

Answers should be indicated by placing a tick mark ( ) in the relevant box.To change any answer already marked, cancel the previous mark by placing an”=” symbol. Thereafter, place a fresh tick 
Latest Answer : 60.ans=F59=ans:36total no of sand.....=234tot no taken by gusts=26(2+4+8+12)no of gusts are same so234/26=99 from each countryso 9*4=36 guests are present totally58.ans:2513+13=26-1=25or write the nos from 1........2513 from left is 13& 13 from right ...
Read Answers (1) | Asked by : Arun Prakash

View Question | Asked by : sumia2006


 Sponsored Links

 
Related Articles

Verizon Interview Procedure and Placement Paper

Please find the Verizon Interview Procedure and Placement Paper from May 2005.http://www.geekinterview.com/question_details/13365
 

Polaris Interview Preparation and Model Question papers

Polaris Interview Preparation and Model Question papers :  Please find Aptitude(41), Analytical(28), Interview Procedure(1)Click here to view the section
 

Nucleus Interview Preparation and Model Question papers

Nucleus Interview Preparation and Model Question papers. The following model question papers are added. Up One Level   Global-Interview-Questions » Nucleus »
 

Oracle Interview Preparation and Model Question papers

Oracle Interview Preparation and Model Question papers updated with more SQL Questions, Technical, RDBMS Basics and C. Oracle  
 

Mascot Interview Procedure, Pattern and Model Question Papers

Mascot Interview Procedure, Pattern and Model Question Papers Interview ProcedureAt the moment we do not have much informaton about the interview though the candidate may be required to go through both technical and HR interviews. There are a total 6 sections in the written test. Each section h
 

Ramco Interview Procedure, Pattern and Model Question Papers

Ramco Interview Procedure, Pattern and Model Question Papers section added.Interview ProcedureThe information on the interview is pretty sketchy but it consists of both technical grilling and HR interview.The written test consists of both aptitude and a technical test.The aptitude section of the tes
 

Technical White Paper on the Sun Ultra 20 Workstation (pdf)

This recently announced workstation is a 64-bit Opteron processor-based system supporting both 32-bit/64-bit applications and multiplatforms at a list price of USD$895. Find out more about its features, system architecture, graphics options, environmental and regulatory compliance, and key software
 

The North Face In-Store Explorer Prototype: A White Paper

See how Windows Presentation Foundation (formerly code-named "Avalon") was used to create an immersive experience that brings The North Face's brand and catalog to life in a retail environment.
 

A new paper on a security hole in Application Server Control

I received an email from Dirk Nachbar to let me know that he has released a new paper concerning a security hole in the application server control. If you want to trace Forms Sessions out of the Application Server Control....[Read More] Posted by Pete On 25/09/05 At 10:14 PM
 

Keane India Placement Paper

Hi all , I recently went for Keane India Testing Paper. They offer 2 courses. 1. Advanced Application Programming 5 months course roughly 2. Testing Course 45 days roughly Selected students are given trainig and then the one efficient in their work are absorbed by Keane as Trainee on Stipend b
 

Related Categories
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape