Question

If KMT = 100, LITRES = 5.0, PCOST = 28.0 and OPCOST = 70.0 what will be the result of the following FORTRAN 77 program?

INTEGER KMT
REAL LITRES, PCOST, OPCOST, PKCOST READ *, KMT,
LITRES, PCOST, OPCOST, PKCOST
KMPL = KMT/LITRES PKCOST = (PCOST * LITRES + OPCOST)/ KMT

a.

2

b.

2.10

c.

21

d.

21.0

Answer: (b).2.10

Interact with the Community - Share Your Thoughts

Uncertain About the Answer? Seek Clarification Here.

Understand the Explanation? Include it Here.

Q. If KMT = 100, LITRES = 5.0, PCOST = 28.0 and OPCOST = 70.0 what will be the result of the following FORTRAN 77 program? INTEGER KMT REAL LITRES, PCOST, OPCOST, PKCOST READ *,...

Similar Questions

Explore Relevant Multiple Choice Questions (MCQs)

Q. A real number consists of

Q. Assertion (A): Negative values of incremental operator in DO loop are allowed in Fortran 77 but not in earlier versions of Fortran.

Reason (R): Fortran 77 has better array facilities than earlier versions of Fortran.

Q. In FORTRAN 77 the correct way to write mathematical expression A/BC - D2 is be

Q. Which of the following is not treated as hexadecimal constant by assembler in 8085?

Q. If CS = A̅₁₅ A₁₄ A₁₃ is used as chip select logic of a 4 K RAM in 8085 system, its memory range is

Q. Consider the following part of a C program float a, b

b = (a > 4 ? 2 : 9);

Assuming that a has values of 3 and 6, the values stored respectively will be

Q. Consider the following operation in a computer

1. Multiplication of scalar
2. Iversion of matrix
3. Printing a line of 120 characters on a printer

Which of the above is a subroutine?

Q. For most static RAM the maximum access time is about

Q. In direct addressing mode of 8085

Q. Which of the following is a valid real variable in FORTRAN 77?

Q. To realize the full power of 8086 the pin of 8086 connected to ground is

Q. Which of the following is not an assembler directive in 8085?

Q. Which of the following expressions is invalid in Fortran?

Q. Which of the following is correct in FORTRAN 77?

Q. P flag is for parity.

Q. In 8086 the number of lines on which data and address is multiplexed is

Q. Consider the following program for 8085

MVIA, 00H
LXIH, OEAOFG
V LDAZ ADI 0005H

What does this program do?

Q. The total number of pins in 8085 are

Q. Which of the following statements are executable in FORTRAN 77?

Q. In static RAM 6264 the number of address inputs are

Recommended Subjects

Are you eager to expand your knowledge beyond Electronics and Communication Engineering? We've handpicked a range of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of various subjects. Happy exploring!