Computer Science, asked by satendr75, 8 months ago

which of the following statements is true? A. if - else are conditional statements but loops are not , B. if - else are not conditional statements but loop , C. both of them can work on conditional statements , D. none of them can work on conditional statements​

Answers

Answered by jignashakarangiya
2

Answer:

c

Explanation:

both of them can work on conditional statements.

Answered by Jasleen0599
0

Option C) both of them can work on conditional statements .

  • The if/else loop is a statement with a condition (do this or else do that). If the condition is true, you use this statement to run some code; if the condition is false, you run another piece of code.
  • You can designate pieces of code to run either conditionally or repeatedly in any programme. If or switch are used in conditional statements, while the for or while keyword is used in loops. Greater control over the programme flow is possible with additional keywords.
  • When you employ a for loop, the code inside it runs up until the loop's condition is satisfied. If-else statements run the code inside the "if" block only once, depending on whether the condition is true or false.
  • All sorts of looping control structures exist. There is no work in the if-else statements for the loop control statements go to, break, and continue. As a result, the first claim is undoubtedly untrue.
  • The two most prevalent types of conditional loops in the majority of programming languages are the While loop and the For loop.
  • If a certain condition is true, the if/else statement causes a block of code to be executed. Another block of code can be run if the condition is false. The "Conditional" Statements in JavaScript, which are used to carry out various operations depending on various conditions, include the "if/else" statement.

#SPJ2

Similar questions