1. When decisions demand two possible actions, the IF/THEN/ELSE control structure is used.



Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Show Similar Question And Answers
QA->“It is possible to fail in many ways; while to succeed is possible only in one way”?....
QA->Which of the following is not a quantitative credit control weapon used by RBI to control credit....
QA->A man is facing East, then the turns left and goes 10 m, then turns right and goes 5 m, then goes 5 m to the South and from there 5 m to West. In which direction is he, from his original place ?....
QA->The program that monitors users activity on internet and transmit that information in background to somewhere else is termed as....
QA->If the product of two numbers is 120 and the sum of their square is 289, then the sum of the two numbers is....
MCQ->When decisions demand two possible actions, the IF/THEN/ELSE control structure is used.....
MCQ->When decisions demand one of many possible actions, the ELSIF control structure is used.....
MCQ->Which of the following statements are correct about an if-else statements in a C-program? 1: Every if-else statement can be replaced by an equivalent statements using   ?: operators 2: Nested if-else statements are allowed. 3: Multiple statements in an if block are allowed. 4: Multiple statements in an else block are allowed.....
MCQ->What will be the output of the following program? #include<iostream.h> class Number { int Num; public: Number(int x = 0) { Num = x; } void Display(void) { cout<< Num; } void Modify(); }; void Number::Modify() { int Dec; Dec = Num % 13; Num = Num / 13; if(Num > 0 ) Modify() ; if(Dec == 10) cout<< "A" ; else if(Dec == 11) cout<< "B" ; else if(Dec == 12) cout<< "C" ; else if(Dec == 13) cout<< "D" ; else cout<< Dec ; } int main() { Number objNum(130); objNum.Modify(); return 0; }....
MCQ->public void foo( boolean a, boolean b) { if( a ) { System.out.println("A"); / Line 5 / } else if(a && b) / Line 7 / { System.out.println( "A && B"); } else / Line 11 / { if ( !b ) { System.out.println( "notB") ; } else { System.out.println( "ELSE" ) ; } } }....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution