wipro interview questions & answers1

Upload: dorothy-saikia

Post on 05-Mar-2016

28 views

Category:

Documents


0 download

DESCRIPTION

wipro aptitude questions

TRANSCRIPT

  • CSizeof(http://www.sanfoundry.com/cprogrammingquestionsanswerssizeofkeyword1/)CSizeof2(http://www.sanfoundry.com/cprogrammingquestionsanswerssizeofkeyword2/)

    CProgrammingQuestionsandAnswersPrecedenceandOrderofEvaluation4

    Sanfoundrys 1000+ Interview Questions & Answers on C helps anyone preparing for Wipro and othercompaniesCinterviews.Oneshouldpracticethese1000+interviewquestionsandanswerscontinuouslyfor23monthstoclearWiprointerviewsonCProgramminglanguage.

    Hereisa listingofCprogramminginterviewquestionson PrecedenceandOrderofEvaluationalongwithanswers,explanationsand/orsolutions:

    1.WhatistheoutputofthisCcode?

    advertisements

    1.#include2.voidmain()3.{4.intb=54+2*5;5.printf("%d",b);6.}

    a)25b)5c)11d)Noneofthementioned

    ViewAnswer

    Answer:c

    2.WhatistheoutputofthisCcode?

  • 1.#include2.voidmain()3.{4.intb=5&4&6;5.printf("%d",b);6.}

    advertisements

    a)5b)6c)3d)4

    ViewAnswer

    Answer:d

    3.WhatistheoutputofthisCcode?

    1.#include2.voidmain()3.{4.intb=5&4|6;5.printf("%d",b);6.}

    a)6b)4c)1d)0

    ViewAnswer

    4.WhatistheoutputofthisCcode?

  • 1.#include2.voidmain()3.{4.intb=5+7*49*(3,2);5.printf("%d",b);6.}

    a)6b)15c)13d)21

    ViewAnswer

    Answer:b

    5.WhatistheoutputofthisCcode?

    1.#include2.voidmain()3.{4.inth=8;5.intb=(h++,h++);6.printf("%d%d\n",b,h);7.}

    a)1010b)109c)910d)810

    ViewAnswer

    Answer:c

    6.WhatistheoutputofthisCcode?

    1.#include2.voidmain()3.{4.inth=8;5.intb=h+++h+++h++;6.printf("%d\n",h);7.}

  • a)9b)10c)12d)11

    ViewAnswer

    Answer:d

    7.WhatistheoutputofthisCcode?

    1.#include2.voidmain()3.{4.inth=8;5.intb=4*6+3*4

  • 1.#include2.voidmain()3.{4.chara='0';5.charb='m';6.intc=a&&b||'1';7.printf("%d\n",c);8.}

    a)0b)ac)1d)m

    ViewAnswer

    Answer:c

    10.WhatistheoutputofthisCcode?

    1.#include2.voidmain()3.{4.chara='A';5.charb='B';6.intc=a+b%33*2;7.printf("%d\n",c);8.}

    a)65b)58c)64d)59

    ViewAnswer

    Answer:d

    SanfoundryGlobalEducation&LearningSeriesCProgrammingLanguage.

    Heres the list of Best Reference Books in C Programming Language(http://www.sanfoundry.com/bestreferencebookscprogrammingdatastructuresalgorithms/).

    TopracticeallfeaturesofCprogramminglanguage,hereiscompletesetof1000+MultipleChoiceQuestionsandAnswersonC(http://www.sanfoundry.com/cinterviewquestionsanswers/).

    29Like