Computer Science, asked by shveta7407, 20 hours ago

Loops and conditions should be used?

Answers

Answered by oODivineGirlOo
0

Answer:

In Tosca, you can define IF, DO and WHILEstatements if you would like to run TestSteps with branches or repeatedly. These statements can be applied to any nested structures.

If the number of repetitions for a TestStep is known beforehand, use the property Repetitionof a TestStepFolder as described in chapter "Running TestSteps repeatedly - Repetitions".

Conditional statements and loops can be created via the context menu of TestCases or TestStep folders or via the option Create Objectin the dynamic menu TestCases:

IF Statement

DO Statement

WHILE Statement

A Conditions object is created for all three options. In this folder you define the condition that must be fulfilled so that the next step can be taken. The next step depends on the type of the statement.

Answered by surajnegi0600
0

Answer:

Loops and conditions are fundamental concepts in programming and are used to control the flow of a program's execution

Explanation:

Loops are used to repeatedly execute a block of code for a certain number of times or until a specific condition is met. The most common types of loops are for loops, while loops and do-while loops. For example, a for loop can be used to iterate over the elements of an array, while a while loop can be used to repeatedly execute a block of code until a certain condition is met.

Conditions are used to control the flow of a program based on the outcome of a logical expression. A simple example of a condition is an if-else statement, that allows to execute a block of code only if a certain condition is true.

So, loops and conditions are used to make decision and repeat certain tasks in the program. They help to make the program more efficient and readable, by allowing the programmer to express the logic of the program in a more natural way.

For example, you might use a loop to iterate through a list of numbers, and use a condition to check if the current number is even or odd, and perform different actions depending on the outcome.

In summary, loops and conditions are important tools in programming to control the flow of a program's execution. They allow the programmer to create more complex and dynamic programs by making decisions and repeating certain tasks.

More question and answers:

https://brainly.in/question/49603172

https://brainly.in/question/49788293

#SPJ3

Similar questions