answersLogoWhite

0


Best Answer

Decision structure.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What structure can be execute a set of statements only under certain circumstances?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is a set of statements that execute in the order that they appear?

Sequence structure, is a set of statements that execute in the order that they appear By evolutionx86


What structure allows you to test the value of a variable or an expression and then use that to determine which statement or set of statements to execute?

multiple alternative decision structure / case structure


What structure causes a statement or set of statements to execute repeatedly?

A Loop.


The statement can cause other statements to execute under certain conditions?

Selection statement: if, switch/case, ternary conditional operator.


A group of statements that execute as a unit is a?

Transaction.


What is the difference between executenonquery and executequery?

ExecuteQuery() :To Execute SELECT StatementExecuteNonQuery() :To Execute Other Than Select Statements (INSERT/UPDATE/DELETE)


What is the difference between do while and while?

In while, from the very first term, every time, the related conditions in while will be checked and then the statements will execute. But, in do-while, all the statements under do will execute once and then compiler will check the while condition. Therefore, only first time only statements will execute without checking the conditions in while, but not from the second term repetition. written by DILSHAN MADUSANKA dilshanmadusanka@yahoo.com


What optional statement can be used in a case structure to execute statements when all other conditions are false?

default : <statement>; i.e. switch (value) { case 1 : do_this(); break; case 2 : do_that(); break; default : do_whatever(); }


In which of the following scenarios would you need to use a nested IF statement?

You use a nested if when the condition is dependent upon another condition. For example: if (ptr != nullptr) { // ptr is non-null -- test the value it refers to if (ptr* == 0) { // the value pointed to by ptr is zero } else { // the value pointed to by ptr is non-zero } } In this case, the alternative to a nested if creates an inefficiency: if (ptr != nullptr && *ptr == 0 ) { // ptr is valid and refers to the value zero } else if (ptr != nullptr) { // ptr is valid and refers to a non-zero value } In this example, the expression "ptr != nullptr" is evaluated twice when ptr is valid and refers to a non-zero value. The nested if only evaluates this expression one time.


What are the conditional statement of turbo c plus plus dos based?

Statements that check an expression then may or may not execute a statement or group of statements depending on the result of the condition.


How do you group multiple PHP statements under an if statement?

If I got your question correctly, you want multiple statements to be executed using if-else statement. Here goes the code for it if($x>0) { // multiple statments here // As long as statements are in curly bracket // All of them would execute // before the if statement finishes } else { // same way put all your multiple statements // in curly brackets. All of them would execute // using a single if-else statement }


What are the steps for getting a jdbc connection?

-Loading the Driver -Establish a Connection -Execute Statements -Get Resultset -Close the database connection