Programming in C - Decision Making and Looping

6. Consider following program fragment char c ='a' ;
while (c++ < = 'z')
putchar (xxx) ;
If required output is abcd....xyz, then xxx should be

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


7. Which of the following is a tabular listing of contents of certain registers and memory locations at different times during the execution of a program?

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


8. A "switch" statement is used to

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


9. Consider following program fragment

if (a > b)
printf("a> b") ;
else
printf ("else part") ;
print f("a< = b") a <= b

will be printed if

  • Option : D
  • Explanation : The else clause has no brackets i.e., {and}. This means the else clause is made up only one statement. So, printf ("a b a< = b. Hence the answer
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


10. Choose the correct statement

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


  • C Programming Practice Questions can be used to give quizzes by any candidate who is preparing for UGC NET Computer Science
  • This C Programming Practice Questions section will help you test your analytical skills in a tricky method, thereby giving you an edge over other students
  • Any student who wants to prepare for DOEACC A Level, DOEACC B Level, and DOEACC C level can also use these Objective Type Questions Answer.
  • All candidates who have to appear for the Kendriya Vidyalaya Entrance exam can also refer to this mcq section.
  • You can also get access to the C Programming Practice MCQ ebook.
  • C Programming Practice Questions can be used in the preparation of JRF, CSIR, and various other exams.
  • You can also download pdf for these C Programming Practice multiple-choice questions Answers.
  • This C Programming Practice Multiple Choice Questions Answers section can also be used for the preparation of various competitive exams like UGC NET, GATE, PSU, IES, and many more.
  • C Programming Practice Questions can be used to gain a credit score in various undergraduate and postgraduate courses like BSc, MSc and MCA
  • C Programming Practice Questions for UGC NET Computer Science

    C Programming Practice MCQ

    C Programming Practice Multiple choice questions