• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • Aditi
  • /
  • Programming
  • /
  • Program

Aditi Programming - Program Interview Questions with Answers

Aditi Select Another Category Program Select Another Topic

Company

  • 3i-Infotech 345
  • Accenture 548
  • ADITI 81
  • Athenahealth 72
  • CADENCE 37
  • Capgemini 519
  • CMC 49
  • Cognizant 29
  • CSC 480
  • CTS 1340
  • Dell 49
  • Elitmus 44
  • GENPACT 516
  • Google 55
  • HCL 217
  • Hexaware 92
  • Huawei 81
  • IBM 1714
  • IGate 169
  • Infosys 2050
  • L&T 299
  • Microsoft 61
  • Miscellaneous 204
  • Oracle 74
  • Other 95
  • Patni 199
  • Sapient 44
  • Sasken 31
  • Self 38
  • Syntel 530
  • TCS 9109
  • Tech Mahindra 500
  • Wipro 1182

Aditi Question Topics

    Category (27)

    Logical Reasoning (28)

  • Coding Decoding (1)
  • General Mental Ability (1)
  • Logical Sequences (1)
  • Missing Character (2)
  • Numerical Ability (13)

  • Data Sufficiency (1)
  • Number System (1)
  • Percentage (1)
  • Permutation and Combination (1)
  • Profit and Loss (2)
  • Ratio and Proportion (1)
  • Programming (11)

  • Definition (1)
  • Program (10)
Keep an EYE (0)
Solved Question (0) UnSolved Question (10)
Pages: 11
Advertisements

(#M40032196) ADITI QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What is the output for the following program

#include
main()
{
char a[5][5],flag;
a[0][0]='A';
flag=((a==*a)&&(*a==a[0]));
printf("%dn",flag);
}

Asked In ADITI Aashu (11 years ago)
Unsolved Read Solution (4)
Is this Puzzle helpful?   (1)   (0) Submit Your Solution Program

(#M40032195) ADITI QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. In the following program

#include
main()
{
char *pDestn,*pSource="I Love You Daddy";
pDestn=malloc(strlen(pSource));
strcpy(pDestn,pSource);
printf("%s",pDestn);
free(pDestn);
}
Option
(a)Free() fails
(b)Strcpy() fails
(c)prints I love You Daddy
(d)error

Asked In ADITI Aashu (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (1) Submit Your Solution Program
Advertisements

(#M40032194) ADITI QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. Give the output for the following program segment.

#ifdef TRUE
int I=0;
#endif

main()
{
int j=0;
printf("%d %dn",i,j);
}

Asked In ADITI Aashu (11 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Program

(#M40032193) ADITI QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. Give the output for the following program.

#define STYLE1 char
main()
{
typedef char STYLE2;
STYLE1 x;
STYLE2 y;
clrscr();
x=255;
y=255;
printf("%d %dn",x,y);
}

Asked In ADITI Aashu (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Program

(#M40032192) ADITI QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What is the output for the program given below

typedef enum grade{GOOD,BAD,WORST,}BAD;
main()
{
BAD g1;
g1=1;
printf("%d",g1);
}

Asked In ADITI Aashu (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (2) Submit Your Solution Program

(#M40032191) ADITI QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

6. In the program segment in question 5 what is the value of a at the end of the while loop?

Asked In ADITI Aashu (11 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (1) Submit Your Solution Program

(#M40032190) ADITI QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. In the following program segment

#include
main()
{
int a=2;
int b=9;
int c=1;
while(b)
{
if(odd(b))
c=c*a;
a=a*a;
b=b/2;
}
printf("%dn",c);
}

How many times is c=c*a calculated?

Asked In ADITI Aashu (11 years ago)
Unsolved Read Solution (3)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Program

(#M40032189) ADITI QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What is the memory allocated by the following definition ?

int (*x)[10];

Asked In ADITI Aashu (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (1)   (0) Submit Your Solution Program

(#M40032188) ADITI QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What is the output of the following program

#include
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
}

Asked In ADITI Aashu (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Program

(#M40032187) ADITI QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Q. What is the output of the program given below

#include
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%dn",i);
}

Asked In ADITI Aashu (11 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Program
Keep an EYE (0)
Solved Question (0) UnSolved Question (10)
Pages: 11
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

without maths no can't live in this world

k ravikumar

The whole world is mathematics and mathematics is the whole world.

Rajat Rokade

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 4 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago
  • 2532K+Registerd user
  • 1773K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com