Home / Programming Questions / C Programming MCQs / Page 1

C Programming MCQs with answers Page - 1

Dear candidates you will find MCQ questions of C Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

(A) linking
(B) assembling
(C) preprocessing
(D) compiling

(A) putchar()
(B) printf()
(C) getchar()
(D) write()

(A) 1
(B) 65
(C) 101
(D) 20

Code:
#include <studio.h>
int main ()
{
         int a = 40, b = 50, c = 10, x;
         x = a < b < c;
         printf("%d\n", x);
         return 0;
}
(A) 0
(B) 1
(C) Error
(D) None of the above

(A) 0 to 255
(B) -128 to 127
(C) 0 to 127
(D) -128 to 255

Code:
#include <stdio.h>
int main ( )
{
      float floatvalue = 8.25;
      printf ("%d\n " , (int) floatvalue);
      return 0;
}
(A) 0
(B) 0.0
(C) 8.0
(D) 8

(A) 3.4E-4932 to 1.1E+4932
(B) 3.4E-4932 to 3.4E+4932
(C) 1.1E-4932 to 1.1E+4932
(D) 1.7E - 308 to 1.7E + 308

(A) float
(B) double
(C) long double
(D) Depends upon the memory model that you are using

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.