Electronics and Communication Engineering - Microprocessors - Discussion
Discussion Forum : Microprocessors - Section 2 (Q.No. 7)
7.
Consider the following logical IF statement in FORTRAN 77
IF (SALT. EQ. PEPPER) GO TO 11
GOTO 13
The above statement using arithmetic IF statement would beAnswer: Option
Explanation:
The given statement is logical IF statement. The control goes to statement 11 if SALT = PEPPER otherwise control goes to statement 13 Same is true in arithmetic statement (a).
Discussion:
3 comments Page 1 of 1.
Amrata Kamat said:
1 decade ago
How we will find whether it is equal or not? If it is equal it will go to 11 otherwise it will go to 13. May be in first case it will be equal then it will become 11, 13.
DareDreamR said:
8 years ago
Arithmetic if has the syntax IF (Expression) negative, zero, positive, which means.
Execute negative, if the expression results in negative.
Execute zero, if the expression results in zero.
Execute positive if it results in positive.
Execute negative, if the expression results in negative.
Execute zero, if the expression results in zero.
Execute positive if it results in positive.
Srivamsi 060 said:
5 years ago
Thanks @Daredreamr.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers