Deprecated: Implicit conversion from float-string "1695751423.590" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1695751423.590" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1695751423.590" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1695751423.590" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1695751423.590" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1545888604.632" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1545888604.632" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1545888604.632" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1545888604.632" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1545888604.632" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1603271344.134" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1603271344.134" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1603271344.134" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1603271344.134" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1603271344.134" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1545888514.657" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1545888514.657" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1545888514.657" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1545888514.657" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1545888514.657" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
Compiler Design: GATE CSE 1999 | Question: 2.14
6,906 views
5 votes
5 votes

The number of tokens in the FORTRAN statement DO 10 I = 1.25 is

  1. 3
  2. 4
  3. 5
  4. None of the above

4 Answers

Best answer
11 votes
11 votes

(a) 3 is Answer , 
token1= DO10I ,

token2= '='

token3=1.25

Within the statement field, blanks were generally ignored, allowing the programmer to omit space between tokens for brevity, or include spaces within identifiers for clarity (for example, AVG OF X was a valid identifier, and equivalent to AVGOFX). 

reference @http://en.wikipedia.org/wiki/Fortran

selected by
6 votes
6 votes

5 tokens

1.DO 

2.10

3.I

4=

5.1.25

3 votes
3 votes
This is a fortran statement and in fortran blanks in fixed-format are ignored hence, in fortran this statement is considered as an instance of the identifier. So number of tokens will be 3 (DO5I, =,1.25).

If statement was like DO 5 I = 1,25 then it would have been considered as a DO statement.

Reference : - Dragon book, Page number 113 second edition.

Related questions

429
views
0 answers
0 votes
Kathleen asked Sep 13, 2014
429 views
473
views
0 answers
1 votes
Kathleen asked Sep 13, 2014
473 views
In questions 1.1 to 1.7 below, one or more of the alternatives are correct. Write the code letter(s) a, b, c, d corresponding to the correct alternative(s) in the answer...
5.7k
views
2 answers
6 votes
Kathleen asked Sep 23, 2014
5,722 views
Consider the following program in a language that has dynamic scooping:var x: real; procedure show: begin print(x);end; procedure small; var x: real; begin x: = 0.125; sh...
715
views
0 answers
0 votes
Kathleen asked Sep 23, 2014
715 views
Design a 2K $\times$ 8 (2048 locations, each 8 bit wide) memory system mapped at addresses (1000)$_{16}$ to (17FF)$_{16}$ for the 8085 processor using four 1K $\times$ 4 ...