Classical

C Programming MCQ - Decision Making & Looping

6:  

Consider following program fragment char c ='a' ;

while (c++ < = 'z')
putchar (xxx) ;


If required output is abcd....xyz, then xxx should be

A.

c++

B.

c-2

C.

c-1

D.

--c

 
 

Option: C

Explanation :


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 ?
A. Loop program
B. Program trace
C. Subroutine program
D. None of these
 
 

Option: B

Explanation :


8:   A "switch" statement is used to
A. Switch between functions in a program
B. Switch from one variable to another variable
C. To choose from multiple possibilities which may arise due to different values of a single variable
D. All of above
 
 

Option: C

Explanation :


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

A.

a>b

B.

a < b

C.

a=b

D.

All of these

 
 

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"); will be executed anyway, i.e. if a>b a< = b. Hence the answer


10:  

Choose the correct statement

A.

use of goto enhances the logical clarity of the code

B.

use of goto makes the debugging task easier

C.

use goto when you want to jump out of a nested loop

D.

never use goto

 
 

Option: C

Explanation :




Suggest an improvement

 


Syllabus Covered in this section is

  • Elements of C-Tokens
  • Identifiers
  • data types in C
  • Control structures in, C
  •  Sequence, selection and iteration(s).
  • Structured data types in C
  • Arrays, Structures, union, String, and pointers
  • Functions, Recursion
  • Parameter passing, Scope
  •  Binding, Abstract data types

This Section covers Multiple Choice Questions Answers in C Programming . Here questions answers are given with explanation and references. These questions can be used for the preparation of various competitive and academic exams.

Who can benefit - 

  • Any undergraduate or postgraduate student who is seeking C Programming objective type questions answers can use this section.
  • C programming Multiple Choice questions Answers can help you in interview preparation.
  • C Programming Objective type Questions Answers are also used at SSC and HSc level for Exam preparation.
  • C Programming MCQ Questions Answers are also used by engineering students in the preparation of their Exams.
  • Any candidate who has to appear for DOEACC A, B or C level Exam can also learn C Programming Questions Answers.
  • All the teachers who are appearing for Kendriya Vidyalya Sangathan Entrance Exam can also use C Programming Multiple Choice Questions Answers.
  • C Programming MCQs can also be used by the students who are pursuing B.Sc or Msc Computer Science.
  • C Programming Questions Answers can also be used by BCA students for the preparation of their exams.
  • Any student who is pursuing B.Sc. in Information Technology can also use this C Programming mcq Questions Answers.
  •  MCA students can also prepare for their exams using  C Programming Objective Type Questions Answers.
  • You can get free access to C Programming mcq pdf.
  • You can also have online access to C Programming Questions Answers EBook.

Various Search Terms used for this section are

  • C Programming quiz questions with answers

  • C Programming exam questions answers

  • C Programming MCQ questions Answers

  • C Programming MCQ

  • C Programming Questions Answers