aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java and C Programming Fundamentals
  • #include int main() { int i; if(i % 2) printf("I is Odd")...
Multiple choice technology programming languages

#include int main() { int i; if(i % 2) printf("I is Odd"), printf("I is Even"); }

  1. Error : Semicolon Missing

  2. Error: Misplaced Else

  3. I is odd

  4. I is odd I is Even

  5. No Output

Reveal answer Fill a bubble to check yourself
D Correct answer

Keep practicing — related questions

  • #include int main () { ;;;;;; " Please Execute Me " ;;;;; // Line 6 printf(" Executing... ") // Line 7 ;;;;...
  • #include int main() { int main=7; printf("%d",main); }
  • #include void main() { int i=1; printf("%d",++i); printf("%d",i++); } choose output of the above program
  • Note the code below and select the correct answer: #include main() { printf ("hello world"); }
  • Look at the code below and select the correct answer:#include main(){printf ("hello world");}
  • #include main() { char a[4]="HELLO"; printf("%s",a); }
  • Find the output of this program. main() { int i=5; printf(“%d”,i=++i ==6); }
  • Find the output of this program. main() { int i=5; printf(“%d”,i=++i ==6); }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy