• 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 is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;printf("Enter your age:");scanf("%f", &age);AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("You have lived for %f seconds", AgeInSeconds);}

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 : ?

The default parameter passing mechanism is

TRUE ANSWER : ?
YOUR ANSWER : ?

Determine Output:void main(){ printf("%p", main);}

TRUE ANSWER : ?
YOUR ANSWER : ?

Find the output of the following program.#include<stdio.h>void main(){ int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y);}

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 happen after compiling and running following code?main(){ printf("%p", main); }

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the program code?#include<stdio.h>#define a 10void main(){ #define a 50 printf("%d", a);}

TRUE ANSWER : ?
YOUR ANSWER : ?

Pick the correct statements.I.   The body of a function should have only one return statement.II.  The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment.

TRUE ANSWER : ?
YOUR ANSWER : ?

What number will z in the sample code given below?int z, x=5, y= -10, a=4, b=2;z = x++ - --y*b/a;

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
↑