What is control statement?

Asked by Last Modified  

16 Answers

Follow 15
Answer

Please enter your answer

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

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

COMPUTER LEGEND

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

COMPUTER LEGEND

When a program itself again and again ie called recursion eg. Factorial , fibonacci series etc. Use this approach.
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

Maths & Physics tutor for 11-12th as well as IIT JEE.

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

Teacher

Control statement is the one which allows us to change the flow of program execution based on some control criteria required. A lot of different control statements like the " if statements", "if else statement, if_elseif statements are available.
Comments

Tutor

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

Data Warehouse, ETL, Data Engineering Trainer

A control statement is a statement that determines whether other statements will be executed or not. For example: if condition If...else condition Switch statement Loops e.g. While, do...while, for Hope this helps. Thanks
Comments

Learn Programming

The control statement is the statement which will decided the next block will be execute or not . ex- if you want to go goa or any place first you need to ask your parents that you will go or not . so your control statement is your parents and your next line or block is to go goa . if your parents...
read more
The control statement is the statement which will decided the next block will be execute or not . ex- if you want to go goa or any place first you need to ask your parents that you will go or not . so your control statement is your parents and your next line or block is to go goa . if your parents will agree then you will go or else not. if you need more explanation for any topic you may ask . thank you read less
Comments

View 14 more Answers

Related Questions

what are the charges for c language
6k/month and will finish in 2 month.
Kawalpreet
Write a program to exchange the first element with the last element of an array.
IN C Prog: void swap(int *arr,int length) { int a; /*Third Variable*/ a = *arr; *arr = a; arr = a; } In Java: int (int arr) { int a; int len = arr.length; int ar = arr; a = ar; ar = a; ar = ar; return ar; }
Akash
Can we apply for a job in a bank after a BCA?
Yes, you can apply for bank jobs after BCA.
Pradeep
0 0
5
Define the RAM?
RAM stand for Random Access Memory , which is a volatile memory,which known as temporary memory, when any program click to run so first it goes to RAM and then goes to other memory ..so RAM is firstly...
Chinna
give me best coaching center in karnal of bca if anyone person who will give me best guideces with studies
you can search by google also. but best will be to touch your senior for best answer.
Rajattyagi

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

Ask a Question

Related Lessons

Mastering in Java Programming
Core java topics What is Java?Execution Model Of JavaBytecodeHow to Get Java?A First Java ProgramCompiling and Interpreting ApplicationsThe JDK Directory StructureUsing Eclipse Data types and Variables What...

Object - Oriented Programming
As we know already JAVA is object oriented language. Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which are data structures that contain data, in the form...

What Is Mean Stack? Why Mean Stack Is Popular Now?
Mean Stack is standing for MongoDB, ExpressJS, AngularJS and NodeJS. These four javascript solutions create a high performing web application. Mainly JavaScript is the frontend language. It’s working...

Short Answer Questions For Chapter-3 Computer Science Class-XI-CBSE
Short Answer Questions For Chapter-3 Computer Science Class-XI-CBSE What is Microprocessor and its use? Ans: A microprocessor is a semiconductor chip and used to processes all the information in...

Description of an Algorithm
What is an Algorithm? An Algorithm is a step-by-step procedure, which defines a set of rules to be executed in a specific order to get the desired output. Characteristics of Algorithm: Language independent Feasible Unambiguous Finiteness Well-define...
P

Recommended Articles

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 >

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 >

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 >

E-learning is not just about delivering lessons online. It has a much broader scope that goes beyond manual paper or PowerPoint Presentations. To understand the reach of E-learning and how the whole process works in developing the Educational system, we will discuss a few points here. Let us find out how this new learning...

Read full article >

Looking for BCA Tuition ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you