Posts

Showing posts with the label 22226MCQ

c programming MCQ 22226 questions and answers | Msbte | I scheme pdf

Image
   C Programming MCQ questions and answers basic questions for freshers and revision of C programming questions in MCQ (Multiple choice question). 1. What will be the output of the following arithmetic expression ? 5+3*2%10-8*6 A. -37 B. -42 C. -32 D. -28 Answer: A 2. What will be the output of the following statement ? int a=10; printf(“%d &i”,a,10); A. error B. 10 C. 10 10 D. none of these Answer: D 3. What will be the output of the following statement ? printf(“%X%x%ci%x”,11,10,’s’,12); A. error B. basc C. Bas94c D. none of these Answer: B 4. What will be the output of the following statements ? int a = 4, b = 7,c; c = a = = b; printf(“%i”,C.; A. 0 B. error C. 1 D. garbage value Answer: A 5. What will be the output of the following statements ? int a = 5, b = 2, c = 10, i = a>b void main() { printf(“hello”); main(); } A. 1 B. 2 C. infinite number of times D. none of these Answer: C 6. What will be output if you will compile and execute t...