C Programming MCQ - I/O Operations

1:   Which of the following statements is incorrect ?
A. C provides no input-output features
B. C provides no file access features
C. Provides no features to manipulate composite
D. All of these
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

sonali manohar shelke said: (8:23am on Monday 18th December 2017)
c has all above the features so option D is correct

Write your comments here:



2:  

If y is of integer type then the expression
 3 * ( y - 8 ) / 9 and  ( y - 8 )/ 9 * 3

A.

must yield the same value

B.

must yield different values 

C.

may or may not yield the same value

D.

none of these

 
 

Option: C

Explanation :

If y = 11, the expression 3 * (y - 8) / 9 becomes 3 * 3 / 9. which evaluates to 1. But the expression ( y - 8 )/ 9 * 3 becomes 3 / 9 * 3. which evaluates to 0 (since 3 / 9 is 0)

Click on Discuss to view users comments.

prakash said: (4:38pm on Tuesday 30th April 2013)
=[3*(y-8)] / 9=[3*(11-8)] / 9=[3*(3)] / 9=9 / 9/=12ed=[(y-8)/9] * 3=[(11-8)/9] * 3=[(3)/9] * 3=[1/3] * 3=1thus,both r samemeans ans. is A

Write your comments here:



3:  

The following code fragment
int x, y =2, z, a;
x = ( y* = 2 ) + ( z = a = y )
printf ( "%d" , x );

A.

prints 8

B.

prints 6

C.

prints 6 or 8 depending on the compiler implementation

D.

is syntactically wrong

 
 

Option: C

Explanation :

 y * = 2 means y = y * 2  i.e. y = 4, in this problem. So. the expression is equivalent to x = 4 + 4, which is 8. So, 8 will be printed. However, the order in which the operands are evaluated is implementation-dependent. If the right operand is evaluated first, the result will be 6. 

Click on Discuss to view users comments.

Write your comments here:



4:  

 If n has the value 3, then the output of the statement printf(  " %d %d " , n++, ++n);

A.

is 3 5 

B.

is 4 5 

C.

is 4 4

D.

is implementation dependent

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



5:  

 x - = y + 1;  means

A.

x = x - y + 1

B.

x = -x -y -1

C.

x=-x +y + 1

D.

x= x - y -1

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:




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