• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

C PROGRAMMING QUIZ

What will be the following code's output if choice = 'R'?switch(choice){ case 'R' : printf("RED"); case 'W' : printf("WHITE"); case 'B' : printf("BLUE"); default : printf("ERROR");break;}

TRUE ANSWER : ?
YOUR ANSWER : ?

Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro.

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();}

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following program? #include\<stdio.h> int main(){  extern int i;  i = 20;  printf("%ld ", sizeof(i));  return 0; }

TRUE ANSWER : ?
YOUR ANSWER : ?

#include<stdio.h>void main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);}

TRUE ANSWER : ?
YOUR ANSWER : ?

The function scanf() returns .........

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));}

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ static char *s[] = {"black", "white", "yellow", "violet"}; char **ptr[] = {s+3, s+2, s+1, s}, ***p; p = ptr; ++p; printf("%s",*--*++p + 3); }

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be printed after execution of the following program code?main(){ printf("\\nab"); printf("\\bsi"); printf("\\rha"); }

TRUE ANSWER : ?
YOUR ANSWER : ?
MORE MCQ

QUIZ STATS

  • 0
  • 0

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑