aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • programming languages Online Quiz - 86
  • What is the output? X=10 while X; X=X+1 if X%2 !=0:contin...
Multiple choice technology programming languages

What is the output? X=10 while X; X=X+1 if X%2 !=0:continue Print X

  1. 1 23 4 5

  2. 8 6 4 2 0

  3. 8 7 6 5 4

  4. 4 5 6 7 8

  5. 0 2 4 6 8

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • What would be the output of the following statement? int x=30;int y=5;while(x!=0){ if(x%y==0) printf(n Valu...
  • What is the output?int i = 3;if (!i) i++; i++;if (i==3) i+=2; i+=2;printf("%d\n", i);
  • int x = 0; for ( ; ; ) { if (x++ == 4) break; continue; } printf(x=%dn, x); What will be printed when the s...
  • What is the output of the following code? #include<stdio.h> void main ( ) { int s=0; while (s++<10) { if(s<...
  • If x is an integer > 10, how would you print the ten's digit?
  • Give the output of the following program: main( ) { int a=30,b=40,x; x=((a!=10) && (b=50)) printf(“x=%d”,x)' }
  • 3.What is the output?main() { int x=5; printf(“%d,%d,%dn”,x,x< <2,x>>2); }
  • What is the output of the following code? #include<stdio.h>void main(){ int s=0; while(s++<10) { if(s<4 && ...
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