Interview Questions

AJAX Interview Questions Android Interview Questions Angular 2 Interview Questions AngularJs Interview Questions Apache Presto Interview Questions Apache Tapestry Interview Questions Arduino Interview Questions ASP.NET MVC Interview Questions Aurelia Interview Questions AWS Interview Questions Blockchain Interview Questions Bootstrap Interview Questions C Interview Questions C Programming Coding Interview Questions C# Interview Questions C++ Interview Questions Cakephp Interview Questions Cassandra Interview Questions CherryPy Interview Questions Clojure Interview Questions Cobol Interview Questions CodeIgniter interview Questions CoffeeScript Interview Questions Cordova Interview Questions CouchDB interview questions CSS Buttons Interview Questions CSS Interview Questions D Programming Language Interview Questions Dart Programming Language Interview Questions Data structure & Algorithm Interview Questions DB2 Interview Questions DBMS Interview Questions Django Interview Questions Docker Interview Questions DOJO Interview Questions Drupal Interview Questions Electron Interview Questions Elixir Interview Questions Erlang Interview Questions ES6 Interview Questions and Answers Euphoria Interview Questions ExpressJS Interview Questions Ext Js Interview Questions F# Interview Questions Firebase Interview Questions Flask Interview Questions Flex Interview Questions Fortran Interview Questions Foundation Interview Questions Framework7 Interview Questions FuelPHP Framework Interview Questions Go Programming Language Interview Questions Google Maps Interview Questions Groovy interview Questions GWT Interview Questions Hadoop Interview Questions Haskell Interview Questions Highcharts Interview Questions HTML Interview Questions HTTP Interview Questions Ionic Interview Questions iOS Interview Questions IoT Interview Questions Java BeanUtils Interview Questions Java Collections Interview Questions Java Interview Questions Java JDBC Interview Questions Java Multithreading Interview Questions Java OOPS Interview Questions Java Programming Coding Interview Questions Java Swing Interview Questions JavaFX Interview Questions JavaScript Interview Questions JCL (Job Control Language) Interview Questions Joomla Interview Questions jQuery Interview Questions js Interview Questions JSF Interview Questions JSP Interview Questions KnockoutJS Interview Questions Koa Interview Questions Laravel Interview Questions Less Interview Questions LISP Interview Questions Magento Interview Questions MariaDB Interview Questions Material Design Lite Interview Questions Materialize CSS Framework Interview Questions MathML Interview Questions MATLAB Interview Questions Meteor Interview Questions MongoDB interview Questions Moo Tools Interview Questions MySQL Interview Questions NodeJS Interview Questions OpenStack Interview Questions Oracle DBA Interview Questions Pascal Interview Questions Perl interview questions Phalcon Framework Interview Questions PhantomJS Interview Questions PhoneGap Interview Questions Php Interview Questions PL/SQL Interview Questions PostgreSQL Interview Questions PouchDB Interview Questions Prototype Interview Questions Pure CSS Interview Questions Python Interview Questions R programming Language Interview Questions React Native Interview Questions ReactJS Interview Questions RequireJs Interview Questions RESTful Web Services Interview Questions RPA Interview Questions Ruby Interview Questions Ruby on Rails Interview Questions SAS Interview Questions SASS Interview Questions Scala Interview Questions Sencha Touch Interview Questions SEO Interview Questions Servlet Interview Questions SQL Interview Questions SQL Server Interview Questions SQLite Interview Questions Struts Interview Questions SVG Interview Questions Swift Interview Questions Symfony PHP Framework Interview Questions T-SQL(Transact-SQL) Interview Questions TurboGears Framework Interview Questions TypeScript Interview Questions UiPath Interview Questions VB Script Interview Questions VBA Interview Questions WCF Interview Questions Web icon Interview Questions Web Service Interview Questions Web2py Framework Interview Questions WebGL Interview Questions Website Development Interview Questions WordPress Interview Questions Xamarin Interview Questions XHTML Interview Questions XML Interview Questions XSL Interview Questions Yii PHP Framework Interview Questions Zend Framework Interview Questions

Top 30 Fortran Interview Questions for 2022

1) What is Fortran?

Fortran is general purpose, high-level programming language which is used for numeric and scientific computing.

2) What are the features of Fortran programming language?

Features of Fortran language are:
  • Fortran supports Numerical analysis and scientific computation
  • It supports Generic and Structured programming
  • It supports Array and Modular programming
  • High performance
  • Object oriented programming

3) Write a program in Fortran to print "Fortran Expert"?

Example:
  1. program TutorialandExample
  2.    Print *, "Fortran Expert"
  3. end program TutorialandExample
OUTPUT:
Fortran Expert

4) Who is the inventor of Fortran programming language?

Designed by John Backus at IBM

5) What are the types of intrinsic data types of Fortran?

There are five types of intrinsic data types are:
  • Real type
  • Integer type
  • Complex type
  • Logical type
  • Character type

6) What makes Fortran a suitable language for scientific purpose?

Reasons are:
  • Support for array notation
  • Rich set of intrinsic functions
  • Built in support for arguments in subroutines and complex numbers

7) How recursion is used in Fortran?

Recursion is used in fortran as:
  • To call a function within a function
  • The return location on the stack that uses the subroutine is fixed
  • It has the scope of the stack that directly supports the subroutines

8) What are the changes being made in Fortran 77?

Changes made in Fortran 77 are:
  • provide more flexibility in loop extensions
  • IF and END IF block statements are being changed
  • provides support for structured programming language
  • Parameter statements are used to specify the constants
  • allow direct access of Input/Output file using the implicit statements

9) What is Modules in Fortran programming language?

It is a package in Fortran where you can store your functions and subroutines. It provides a way a splitting, where you can split your program into multiple files.

10) What are the types of Intrinsic functions are there in Fortran?

Types of Intrinsic functions are:
  • Kind Functions
  • Array Functions
  • Numeric Functions
  • Logical Functions
  • Character Functions
  • Mathematical Functions
  • Numeric Inquiry Functions
  • Bit Manipulation Functions
  • Floating-Point Manipulation Functions

11) What is ABS (A) in Fortran?

It is a numeric Intrinsic function which is used to return the absolute value of A.

12) What is debugger in Fortran?

Debugger is a tool which is used to search errors in the programs. It is also used to examine the values in the variables and other data objects during execution of the program.

13) What is Kind Attribute in Fortran?

The Kind Attribute is used to specify how a number is stored internally.

14) What are the types of constants are there in Fortran?

There are two types of constants:
  • Named constants
  • Literal constants
  • Real constants
  • Integer constants
  • Complex constants
  • Logical constants
  • Character constants

15) What is cmplx() function in Fortran?

cmplx() function is a generic function which is used to create complex numbers. Here, The real and imaginary parts of a result are single precision.

16) What is the full form of Fortran?

Fortran stands for FORmula TRANslation.

17) What are the most commonly used versions of Fortran?

The most commonly used versions of Fortran programming language are:
  • Fortran 77
  • Fortran 90
  • Fortran 95

18) What are the different types of extensions in Fortran?

The extensions used are:
  • For free-form source code: .f90, .f95, and .f03
  • For fixed-form source code: .f or .for

19) What is implicit none in Fortran?

implicit none: This statement allows the compiler to check that all your variable types are declared properly.

20) What are the reserved keywords available in Fortran?

Some of the reserved keywords available in Fortran are:
allocatable allocate assign assignment
block data call case character
common complex backspace close
endfile format inquire open
print read rewind Write

21) What is the syntax for variable declaration in Fortran?

The syntax for variable declaration is:
  1. type-specifier :: variable_name

22) What are the commonly used character functions in Fortran?

The commonly used character functions in Fortran are:
  • len(string)
  • index(string,sustring)
  • achar(int)
  • iachar(c)
  • trim(string)
  • scan(string, chars)
  • verify(string, chars)
  • adjustl(string)
  • adjustr(string)
  • len_trim(string)
  • repeat(string,ncopy)

23) What is achar(int) in Fortran?

achar(int): It is a character function which is used to converts an integer into a character.

24) What is iachar(c) in Fortran?

iachar(c): It is a character function which is used to converts a character into an integer.

25) What is the difference between lle(char, char) and lge(char, char) in Fortran?

The difference between lle(char, char) and lge(char, char) are: lle(char, char): It is a lexical order of character which is used to compare whether the first character is lexically less than or equal to the second. lge(char, char): It is a lexical order of character which is used to compares whether the first character is lexically greater than or equal to the second.

26) What are the Array Intrinsic Functions available in Fortran?

The Array Intrinsic Functions available in Fortran are:
  • Inquiry
  • Reshape
  • Location
  • Reduction
  • Construction
  • Manipulation
  • Vector and matrix multiplication

27) How to create a 5 x 5 two-dimensional array of integers named matrix?

To create a 5 x 5 two-dimensional array of integers: You need to write: integer, dimension (5, 5) :: matrix

28) What is Format Statement in Fortran?

Format Statement: It allows you to mix and match integers, characters and real output in one statement.

29) What are the Floating-Point Manipulation Functions available in Fortran?

The Floating-Point Manipulation Functions available in Fortran are:
EXPONENT (X) SCALE (X, I)
FRACTION (X) SET_EXPONENT (X, I)
NEAREST (X, S) SPACING (X)
RRSPACING (X)

30) What is DBLE (A) function?

DBLE (A) function: It is a Numeric Function which is used to convert A to a double precision real number.



ADVERTISEMENT
ADVERTISEMENT