Fortran Interview Questions

Fortran Interview Questions and Answers

Below is the list of latest and updated Fortran interview questions and their answers for fresher’s as well as experienced users.  These interview question covers latest version of Fortran. These Fortran interview questions will help you to prepare for the interviews, for quick revision and provide strength to your technical skills. Fortran is a programming language often used by the scientific community. Its name is a contraction of Formula TRANslation. FORTRAN is one of the earliest programming languages and was designed specifically, for solving scientific and engineering computational problems.

Best Fortran Interview Questions and Answers

Here you can find top best Fortran Interview Questions and Answers for beginners and professionals, 

How should one spell FORTRAN/Fortran?

FORTRAN is generally the preferred spelling for discussions of versions of the language prior to the current one (“90”). Fortran is the spelling chosen by X3J3 and WG5. In this document a feeble effort has been made to capitalize accordingly (e.g. vast existing software … FORTRAN vs. generic Fortran to mean all versions of the standard, and specifically the modern dialect, ISO 1539:1991).

Can you give us a complete list of the Fortran commands and what they do?

No, but there are too many pages involved, and copyright problems with the standard Fortran manuals sold by computer software vendors. You’re stuck with the text and Web pages, buying something else from a bookstore, or buying a Fortran package for your PC.

Do we need to prompt the user for input on our programs?

Yes Always! In this section, any programmed “read” from the terminal must be preceded by writing some intelligible message asking for input.

How does Fortran 90 relate to FORTRAN 77?

With a few minor exceptions, Fortran 90 is a superset of X3.9-1978 FORTRAN.

But this does not mean that all “77” codes will port sans changes. Many (if not most) programmers employed constructs beyond the ’77 standard, or rely on unspecified behavior (say, assuming that an OPEN of an existing file will position the file pointer to just past the last record already written) which has changed (that is to say, has become specified).

Why do you put so many lines of empty space in your programs?

I hope the lines aren’t totally empty. They should contain a “c” in column one. These “blank” lines are just to make the comments stand out from Fortran code lines or to highlight key blocks of a program.


What directory is used by the compiler for compiling a Fortran Program? Where does 1’77 live?

For the work in this section, you should assume that everything happens in whatever directory you are in when you type the “f77”. Type “pwd” if you don’t know the answer to this question. The executable file called “f77” resides both in /bin and /usr/bin on these machines. This is very unsual. To locate an executable file use the “whereis” command (e.g. “whereis f77”).

Unfortunately, the manual pages on f77 aren’t connected properly and are listed under IBM’s other name for their compiler, “xlf”. Try “man xlf’ for more information on the compiler, but don’t expect too much. IBM likes to force people to buy manuals and special CD-ROM packages.

How do you use a logical variable? What is stored there?

Most frequently, logical variables are used in association with IF statements. When you want to set a logical variable LVAR to true you use “LVAR=.TRUE.”. For false use “LVAR=.FALSE.” In practice the computer usually stores an integer 0 in memory for false and integer 1 for true. The normal logical variable occupies 1 byte of space.

Where can I get a Fortran Compiler for IBM PC?

We can pick up one on the internet from the GNU project, but get a better package from MOC for about $80.00.

How do we know where various steps go in a Fortran program?

Some commands have special locations, but most are located by the needs of the specific program. The PROGRAM card is always first. Statements giving variable types (INTEGER, REAL, LOGICAL, CHARACTER, …) should precede “executable” statements. The END card must always be at the end of the program unit.

What is the advantage of an array over a spreadsheet format?

Both can store similar types of information in a neatly labelled and organized way. The advantage lies in where they are used. You have more control over how Fortran arrays are used than how the contents of a spreadsheet are used. In addition, for any given operation on an array of numbers, once the Fortran is written, it will do the job much faster than a spreadsheet. On the other hand, when operations are not complex and computer execution time is not a problem using the spreadsheet is probably your best bet.

Thus, the compilation of these questions includes some of the major points that can be asked during an interview. The Fortran interviewers generally check the base knowledge of a candidate, which can be gained by practicing these questions prior interview.

So if you have finally found your dream job in Fortran but are wondering how to crack the Fortran Interview and what could be the probable Fortran Interview Questions. Every interview is different and the scope of a job is different too. Hope above assist you to get a dream Job. Keep Learn.

Online Training Tutorials

  • XML Interview QuestionsXML Interview Questions and AnswersBelow is the list of latest and updated XML interview questions and their answers for fresher’s as well as experienced users. These interview question covers basic and latest version of […]
  • VBScript Interview Questions and AnswersVBScript Interview Questions and AnswersVBScript is a powerful but easy-to learn scripting language that you can use to perform a number of useful activities, including enhancing your web pages and automating repetitive or […]
  • Siebel Interview Questions and AnswersSiebel Interview Questions and AnswersSiebel is a CRM (Customer Relationship Management) application. It is mainly deployed by companies which have huge customer base and expect regular interaction with them. There are other […]
  • Ruby Interview QuestionsRuby Interview Questions and AnswersProgramming Ruby is known to Rubyists. It is a tutorial and reference for the Ruby programming language. Before we start talking about the Ruby language, it’d be useful if we helped you […]
  • PHP Interview QuestionsPHP Interview Questions and AnswersBelow is the list of latest and updated PHP interview questions and their answers for fresher’s as well as experienced users.  The combination of PHP and MySQL is the most convenient […]
  • OOP Interview Questions and AnswersOOP Interview Questions and AnswersThere are still people, for instance, that call Artificial Intelligence to any program that is written in Prolog or Lisp. In the same way, there are those who maintain that any program […]
  • OOAD Interview QuestionsOOAD Interview Questions and AnswersOOAD -Object-Oriented Design: The emphasis in programming methods is primarily on the proper and effective use of particular language mechanisms. By contrast, design methods emphasize the […]
  • MySQL Interview Questions and AnswersMySQL Interview Questions and AnswersMySQL is a relatively recent entrant into the well-established area of relational database management systems (RDBMs), a concept invented by IBM researcher Edgar Frank Codd in 1970. […]