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

Convert the following do-while loop in for loop.

Int c=2;
Do
Printf ("C".c);
While (c + +< =5);

  • Ans 1: Conversion:
    Void main ( )
    {
    Int c;
    For (c=2; c < =5; c+ +)
    {
    Printf (" %C",c);
    }
    }
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

Convert the following do-while loop in for loop.

Int c=2;
Do
Printf ("C".c);
While (c + +< =5);

  • Ans 1: Conversion:
    Void main ( )
    {
    Int c;
    For (c=2; c < =5; c+ +)
    {
    Printf (" %C",c);
    }
    }
Submit

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

Question # 1

Define for Loop.

  • Ans 1: For Loop: The for statement is another way of implementing loops in C. Because of its flexibility, most programmers prefer the for statement to implements loops.
    Syntax: The syntax of the for loops is as follows:
    For (initialization expression: test condition;
    increment/decrement expression)
    {
    Statement(s);
    }
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?