ICS Part 2 Computer Science Chapter 12 Short Questions Test With Answer

Online Short Questions For Chapter 12 "ICS Part 2 Computer Science Chapter 12 Short Questions Preparation "

Try The Short Questions For ICS Part 2 Computer Science Chapter 12 Short Questions Preparation

  • Total Questions10

  • Available Sets2

Computer Science - ICS Part 2 Computer Science Chapter 12 Short Questions Preparation

Question # 1

Rewrite the following code using do-while loop.
Int x= 10;
While (x> =1)
{ printf ("'%d", x%2);
x--;
}

  • Ans 1: Rewrite in do-while loop:
    Void main ( )
    {
    Int x = 10;
    Do
    {
    Printf("%d\n",x%2);
    X=x-1;
    }while (n>=1);
    }
Submit

Prepare Complete Set Wise Questions For Chapter 12 "ICS Part 2 Computer Science Chapter 12 Short Questions Preparation "

ICS Part 2 Computer Science Chapter 12 Short Questions Preparation - Set 1

Question # 1

Rewrite the following code using do-while loop.
Int x= 10;
While (x> =1)
{ printf ("'%d", x%2);
x--;
}

  • Ans 1: Rewrite in do-while loop:
    Void main ( )
    {
    Int x = 10;
    Do
    {
    Printf("%d\n",x%2);
    X=x-1;
    }while (n>=1);
    }
Submit

ICS Part 2 Computer Science Chapter 12 Short Questions Preparation - Set 2

Question # 1

Determine output of the following code segment.
Int n = 1;
Do
{
Printf("Pakistan\n");
N++;
} while (n<=4);

  • Ans 1: Output:
    Pakistan
    Pakistan
    Pakistan
    Pakistan
Submit

12th Chapter

12th Computer Science Chapter 12 Preparation

Here you can prepare 12th Computer Science Chapter 12 Problem Solving Preparation. Click the button for 100% free full practice test.

Is this page helpful?

Share your comments & questions here

Guest
  • No comments yet. Be the first to comment!