Computer Science, asked by Radhika9243, 1 month ago

1). What are the three types of control structure in small basic ?

2). What are the Branching statements ?

3). Write the names of Branching statements available in smell basic.

4). Explain the syntax of If Then statement.

5). Differentiate between If Then and If Then Else statements.

6). Explain Goto statement by giving on example.

Subject - computer

Answers

Answered by WaterPearl
47

\starQuestions and Answers \star

What are the three types of control structure in small basic ?

  • There are three types control structure in small Basic are:-

Branching,Looping,and structures.

What are Branching Statement ?

  • Branching statement are used when decision making is required.

Write the names of Branching statement available in smell basic.

  • If Then Statement
  • If Then Else Statement
  • If Else If ladder
  • Goto
  • Goto with If Then

Explain the syntax of If Then statement.

  • If < Condition > Then

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀< Statement (s) >

End If

Differentiate between If Then and If Then Else statements.

  • If Then statement checks only the condition for being tree whereas If Then Else statement is also known as bi - directional decision making statement.

Explain Goto statement by giving on example.

  • Goto statement is used to transfer the control to a different part of a program.

Syntax : Goto < Label >

Goto statement can also be used to setup an unconditional and in-definites loop.

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

Similar questions