×

Top 30 Fortran Interview Questions for 2024

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.

Related Topics

Artificial Neural Network Interview Questions

1. Explain Neural Network?  Neural Network is a sequence of an algorithm that gives its best to recognize the underlying relationship in a data-set through a process. The artificial neural network...

8 minutes read.

Top 28 Firebase Interview Questions for 2024

1) What is Firebase? Firebase is a platform which is used for building Web, IOS and Android applications. It offers: Real time database Different APIs Multiple authentication types and Hosting platform 2) What are the features of...

3 minutes read.

Top 30 Core Java Interview Questions for 2024

1. What is the difference between HashMap and Hashtable in Java? Ans. S.No. HashMap Hashtable 1. ...

6 minutes read.

Top 16 Groovy interview Questions for 2024

1) What is Groovy? Groovy is an object oriented programming language. It is based on java platform. It can also be used as scripting language. 2) Who designed the Groovy? James Strachan designed...

2 minutes read.

Top 20 C Programming | Coding Interview Questions for 2024

Most Frequently asked C programming | Coding Interview Questions and answer for Fresher C is a powerful high-level programming language.  It is a fast, portable and available for all platforms. C...

15 minutes read.

Top 15 Xamarin Interview Questions for 2024

1) What is Xamarin? Xamarin is a .NET framework. It allows to create an application that run on multiple platforms. Xamarin Tutorial uses C# language and .NET framework to deliver native...

2 minutes read.

Top 30 Swift Interview Questions for 2024

1) What is Swift? It is an innovative programming language developed by Apple Inc. It is used for creating applications for iOS and OS X. 2) What are the features of Swift Programming? Features...

4 minutes read.

VB.NET Interview Questions

1) What is VB.NET? VB.NET stands for Visual Basic .NET. It is an object oriented programming language. It is implemented on .NET framework and launched by Microsoft in 2001. 2) Who is...

3 minutes read.

Top 15 Java Multithreading Interview Questions for 2024

1) What is Multithreading in Java ? It is a process of executing multiple threads simultaneously. It is used to achieve multitasking. It is mostly used in animation and games etc. 2) What are...

4 minutes read.

Top 30 Perl interview questions for 2024

1) What is Perl? It is a programming language which is used for web development, system administration, GUI development and etc. It is also known as cross-platform programming language. 2) What are the...

4 minutes read.

Top 15 Meteor Interview Questions for 2024

1) What is Meteor or MeteorJS? Meteor is a JavaScript platform used for developing web and mobile applications. Applications develop using Meteor framework supports different platforms (like windows, android, ios). Meteor...

4 minutes read.

Top 14 Material Design Lite Interview Questions for 2024

1) What is Material Design Lite? Material Design Lite is UI component Library. It is created with CSS, JavaScript and HTML. It is used for design purpose. It is developed by...

3 minutes read.

Top 26 CouchDB interview questions for 2024

1) What is CouchDB? CouchDB is a document typed database server which can be accessed through RESTful JSON API. It is a schema free and Ad-hoc database with a flat address...

4 minutes read.

Top 16 Yii PHP Framework Interview Questions for 2024

1) What is Yii Framework? Yii is an open source, web application framework based on MVC. It is written in PHP and used to design PHP applications. This application was started...

4 minutes read.

Top 28 Angular 2 Interview Questions for 2024

1) What is Angular 2? It is an open source JavaScript framework which is used to build web applications in JavaScript and HTML. It is also used to overcome obstacles encountered while...

4 minutes read.

Top 15 SQL Server Interview Question for 2024

1) Describe SQL Server? SQL server is a DataBase Management System developed by Microsoft. It was first introduced in year 2008 since, then many version has been introduced such as :...

2 minutes read.

Top 31 CakePHP Interview Questions for 2024

1) What is CakePHP? CakePHP is an open-source PHP framework. It is used to develop dynamic web applications. It helps to developers to work in a structured manner. 2) When cakePHP was...

5 minutes read.

Top 15 ES6 Interview Questions for 2024

Commonly Asked ES6 Interview Questions and Answers 1) What is ES6? ES6 is a scripting language specification standardized. It is used to enable client-side scripting. The specification is influenced by programming languages (Self, Python, Perl,...

2 minutes read.

Top 15 CSS Buttons Interview Questions for 2024

1) What is CSS buttons? CSS buttons is used to create awesome button. It provides huge collection of CSS library files. 2) What are the CSS libraries to create buttons? There are following...

5 minutes read.

Top 30 VB Script Interview Questions for 2024

1) What is VB Script? VBScript stands for Visual Basic Scripting Language. It is a light version of Microsoft Visual Basic. It is a client side scripting Language. 2) What is the...

5 minutes read.