• 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

Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5

TRUE ANSWER : ?
YOUR ANSWER : ?

An array elements are always stored in ________ memory locations.

TRUE ANSWER : ?
YOUR ANSWER : ?

In C programming language, which of the following type of operators have the highest precedence

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the given program?#include<stdio.h>void main(){int a=11,b=5;if(a=5) b++;printf("%d %d", ++a, b++);}

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); }

TRUE ANSWER : ?
YOUR ANSWER : ?

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?

TRUE ANSWER : ?
YOUR ANSWER : ?

The operator > and < are meaningful when used with pointers, if

TRUE ANSWER : ?
YOUR ANSWER : ?

The function sprintf() works like printf(), but operates on ..........

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output given program?#include<stdio.h>void main(){int i = -10;for(;i;printf("%d ", i++));}

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
↑