Conditional statement, Basic Computer Science

Conditional statement:

An If statement is composed of three parts. The first part should be keyword w.r.t language to convey to the computer that it is if statement. And a Boolean expression. The second and thirds part can be a statement or group of statements as defined in rules of grammar of language.    Generally, an if statement is evaluated and executed in the following sequence: first it evaluates the boolean expression. If the expression is true, the statements in the second part are executed.

Otherwise if it is  false, the statements in the third part are executed.  The third part is optional; if it is absent and the expression is false, then the program control simply moves on to the next statement in the sequence.  

Posted Date: 10/23/2012 3:56:53 AM | Location : United States







Related Discussions:- Conditional statement, Assignment Help, Ask Question on Conditional statement, Get Answer, Expert's Help, Conditional statement Discussions

Write discussion on Conditional statement
Your posts are moderated
Related Questions
One of the first caveats programmers come across when learning Python is the reality that there are no braces to point to blocks of code for class and function definitions or flow

Stable wireless networks and mobile devices online tutoring In Bluetooth it is a basically a proprietary open super wireless technology standard for exchanging data over the sh

Question 1 Write a note on modems Question 2 What are the Safe Chatting Rules Question 3 Explain three basic kinds of hypertext links Question 4 Write a no

#formular for calculating speed up factor fo super scalar architecture, super pipeline architecture and VLIW with m different functional units.

QUESTION 1 Describe the binary search algorithm using an example of your own. QUESTION 2 (a) By showing all your workings, give a big-O estimate for f(x) = (x + 1)lo

what is the need of a port in a computer?

100 animals and their respiratory organs


Problem - programming language: A Problem is to carry out a particular task. For solving the problem, some input has to be given to the system. The system will process or mani

• Easy-to-learn: Python has comparatively few keywords, easy structure, and a clearly distinct syntax. This permits the student to pick up the language in a comparatively short per