• 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

Determine Output:void main(){ int i=10; i=!i>14; printf("i=%d", i);}

TRUE ANSWER : ?
YOUR ANSWER : ?

The type of the controlling expression of a switch statement cannot be of the type ........

TRUE ANSWER : ?
YOUR ANSWER : ?

What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );}

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

Consider the following type definition.typedef char x[10];x myArray[5];What will sizeof(myArray) be ? (Assume one character occupies 1 byte)

TRUE ANSWER : ?
YOUR ANSWER : ?

What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);}

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

What will be the output of the program ?#include#includevoid main(){ char str[] = "Exam\0Veda"; printf("%s", str);}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50}

TRUE ANSWER : ?
YOUR ANSWER : ?

What is the correct value to return to the operating system upon the successful completion of a program?

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
↑