Classical

C Programming MCQ - Operators & Expressions

6:  

The expression a << 6 shifts all bits of a six places to the left. If a Ox6db7, then what is the value of a << 6

A. 0xa72b
B. 0xa2b
C. 0x6dc0
D. 0x1111
 
 

Option: C

Explanation :


7:  

The expression 5 - 2 - 3 * 5 - 2 will evaluate to 18, if - is left associative and

A. * has precedence over *
B. * has precedence over -
C. - has precedence over *
D. - has precedence over -
 
 

Option: C

Explanation :
5-2-3*5-2 will yield 18, id it is treated as (5-(2-3))*(5-2). i.e., if - has precedence over* and if it associates from the right


8:  

Coercion 

A.

Takes place across an assignment operator

B.

takes place if an operator has operands of different data types

C.

means casting

D.

both (a) & (b)

 
 

Option: D

Explanation :

Coercion is the automatic conversion between compatible types and it is done by compiler


9:  

Choose the correct statements

A.

constant expressions are evaluated at compile time

B.

string constants  can be concatenated at compile time

C.

size of array must be known at compile time

D.

All of above

 
 

Option: D

Explanation :


10:  

Which of the following operators takes only integer operands ?

A.

+

B.

*

C.

/

D.

%

 
 

Option: D

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