UrbanPro

Take BCA Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is control statement?

Asked by Last Modified  

Follow 15
Answer

Please enter your answer

Home Tutor

Control statements are elements in the source code that control the flow of program execution. They include blocks using { and } brackets, loops using for, while and do while, and decision-making using if and switch. There's also goto. There are two types of control statements: conditional and u...
read more
Control statements are elements in the source code that control the flow of program execution. They include blocks using { and } brackets, loops using for, while and do while, and decision-making using if and switch. There's also goto. There are two types of control statements: conditional and unconditional. read less
Comments

Java Trainer

Selection/control statements allow you to control the flow of program execution on the basis of the outcome of an expression or state of a variable known during runtime. Selection statements can be divided into the following categories: The if and if-else statements The if-else statements The...
read more
Selection/control statements allow you to control the flow of program execution on the basis of the outcome of an expression or state of a variable known during runtime. Selection statements can be divided into the following categories: The if and if-else statements The if-else statements The if-else-if statements The switch statements read less
Comments

Tutor

Control Statements control the execution of the program by taking decisions based on conditions
Comments

Java Trainer - Oracle Certified Java Professional

Control statement is a statement or condition which decides the flow of remaining line of code within a give function. Some of the control statements are if, if else, switch.
Comments

Full time Sanskrit Student & Teacher with multiple years of teaching experience

In the absence of control statement, program execution happens sequentially. Control statements are used to change the sequence of execution depending on particular condition. Some of the control statements are if..else, switch/case and looping constructs such as for and while.
Comments

Trainer

Control statement is used to control the execution of the program. Three control statements are : Break, Goto and continue Break - This statement is used for stopping the execution of the program the break statement is used where we do not want to execute the next statements Generally we can use...
read more
Control statement is used to control the execution of the program. Three control statements are : Break, Goto and continue Break - This statement is used for stopping the execution of the program the break statement is used where we do not want to execute the next statements Generally we can use a Break Statement when we wants to Terminate a Program Execution The Statements those are Placed after the Break are never to be Executed. Break Statement can be use either in Break and Loops etc Continue : The Continue Statements is used for executing the statements by skipping a statement for ex if u don t want to execute any statement then we can use the continue means to skip a particular statement and then execute the next statements Goto The Goto Statement is used for transferring the control to the other location for ex if you wants to transfer the control to the other place of the program then we can use the goto statement. When we use goto Statement then we have to supply a name along with a Goto Statement on which Control is transferred. The Name is user choice and Name must be defined with the help of a Colon. When Compiler transfers the Control of program to the Goto statement then statements of Goto block will be Executed and The Name of Goto Statements block is also called as the Label Name. read less
Comments

Computer Trainer: Programming & Software Development.

In most programming languages, the sequence of instructions (program statements) execution is 'Top to Bottom' as they appear. But if you want to skip few statements and jump on to next statements or repeat a set of instructions before going to the next statement you write 'control statements' using special...
read more
In most programming languages, the sequence of instructions (program statements) execution is 'Top to Bottom' as they appear. But if you want to skip few statements and jump on to next statements or repeat a set of instructions before going to the next statement you write 'control statements' using special keywords like if, while, do-while, goto ( available in C), break, continue, switch etc. read less
Comments

COMPUTER LEGEND

These are those statements which control the logical flow of program eg while,do-while , switch, for, if goto etc.
Comments

Control statement transfer program control from one place another in a program...
Comments

COMPUTER LEGEND

When a program itself again and again ie called recursion eg. Factorial , fibonacci series etc. Use this approach.
Comments

View 14 more Answers

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Income Under The Head Salary
SALARY Relationship of the receiver with payer: Income under head salary is taxable only if there is employer, employee relationship between payer and payee. And this relation is said to exist only if...
F

ListIterator Example
public class ListIteratorEx { public static void main(String args) { List<String> li = new ArrayList<String>(); li.add("java1"); li.add("java2"); li.add("java3"); li.add("java4"); ListIterator...
S

Sarthak C.

0 0
0

Java : Compile-time Versus Runtime optimization
While designing and development, one should think in terms of compile-time and run-time.It helps in understanding language basics in a better way.Let's understand this with a question below : What...
S

Finding a Majority Element
Problem Description Task. The goal in this code problem is to check whether an input sequence contains a majority element. Input Format. The first line contains an integer, the next one contains a sequence...

How to learn spoken English quickly?
If you want to speak English like the natives, do not bury yourselves under the heavy grammar books. Instead listen to English audios from genuinely correct sources like news channels. It works wonders!
N

Nishthaa S.

0 0
0

Recommended Articles

Learning for every child starts from a very young age. While the formal methods include school curriculums and private lessons, the informal methods include dancing, music, drawing, and various fun-filling activities. Playing games and practising these types of activities helps the children get out of boredom and...

Read full article >

While schools provide formal education to the children, the home is where they start learning about things informally. Parents think that schools will take the initiative to educate their children. Well, this is partially true, as parents also play an essential role in bringing up their child. For the development of particular...

Read full article >

Appearing for exams could be stressful for students. Even though they might have prepared well, they could suffer from anxiety, tension etc. These are not good for their health and mind. However, following a few exam preparation tips can save them from all these and help them to score good marks. Let’s find out all...

Read full article >

With the current trend of the world going digital, electronic renaissance is a new movement that is welcomed by the new generation as it helps makes the lives of millions of people easier and convenient. Along with this rapidly changing movement and gaining popularity of Internet, e-Learning is a new tool that emerging...

Read full article >

Looking for BCA Tuition ?

Find best BCA Tuition in your locality on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for BCA Tuition Classes?

Find best tutors for BCA Tuition Classes by posting a requirement.

  • Post a learning requirement
  • Get customized responses
  • Compare and select the best

Looking for BCA Tuition Classes?

Get started now, by booking a Free Demo Class

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All