aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming Fundamentals
  • The output of the following code snippet, when num is 11 ...
Multiple choice

The output of the following code snippet, when num is 11 is _______ If (num%2=0) Printf(number is even); Else Printf(number is odd);

  1. number is even

  2. number is odd

  3. displays nothing

  4. error in code

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • What is the output of the following code fragment? int i = 10; if(i = printf(“%d”, i)) { printf(“%d ”, i); }
  • What will be the output of following program code? #include<stdio.h> main() {int a=10,b=12,c=0; if(!(a>5&&c...
  • What is the output?int i = 3;if (!i) i++; i++;if (i==3) i+=2; i+=2;printf("%d\n", i);
  • What is the output of the following piece of code: int x = 7; if ( x = 3 ) printf( “%d“ , x);
  • What will be the output of the following code? #include<stdio.h> int main() { int num,a=5; num=-a--; printf...
  • int n = 0; for ( ; ; ) { if (n++ == 5) break; continue; } printf("x=%d\n", x); What will be printed when th...
  • What would be the output of the follwing program? sum = 0; for(i=1;i<10;i++) if(i%2==0) sum +=i; printf(“%d...
  • What is the output of the following code? #include void main() { int a=0,b=0; a = (b = 75) + 9; printf("\n%...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy