1. What is the purpose of rest condition in a loop statement?
Ans:The main reason behind this rest condition in the loop is to break the program by displaying the program into parts.
Explanation: here the scenario is that in a program we cant display the entire output but we want to display a small amount of output or only some statements. So in order to do that we use the rest condition or the break condition in a loop statement.
2. How many variables in input statement?
Ans:Generally there are five variables in the input statements. They are Name, Age, Gender(Sex), Height and Weight.
Explanation: Here the Name and Gender are character strings($) , while age is an integer, and Height and Weight are Float or Age, Height and Weight are numeric which will be included by themselves
3.Advantages and disadvantages of if else Statement
Ans:one of the best feature or the best advantages of this if else statement is that this will low more and more statements by which we can decide 50% chances for both. And one of the major disadvantage is that the program will look like a big program or like a complex program.
1 Comments
super
ReplyDelete