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
what is the sql command to List all the join conditions or join paths (pairwise) existing between tables.

Question 1 What are the features that Bash shell provides? Question 2 Explain Runlevels Question 3 Discuss the following                           1) Links 2) Doma

They transfer the process flow, provisionally or totally, to a destiny, replicating this action until the counter is zero. LOOP LOOPE LOOPNE LOOP INSTRUCTION reason: To produce a c

Question A What is fragmentation? Explain its significance Question B Briefly discuss the functions of transport layer Question C What is CIDR? Explain Question D W

Discuss the factors considered during output design

Question 1 Explain the following system design tools in detail System Flowcharts Decision tables Decision trees Organization charts Question 2 Write s

#questionWrite a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two poi

Operating system:  An operating system is system software which may be viewed as an organized collection of software consisting of procedures for operating  a computer and pro

You recently returned some homework I completed but i left of the final 10 questions. Should not take long just needs some commands interpreted. How much will it cost for me to get

Optical Fibres: Coaxial cables have limitations such as broadband transmission medium which can be overcome by the use of optical fibres. Optical fibres carry light waves (rep