Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

FORTRAN UPDATED ACTUAL Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
30-03-2025
Written in
2024/2025

FORTRAN UPDATED ACTUAL Exam Questions and CORRECT Answers mkdir D - CORRECT ANSWER what do you do? vi script.f90 - CORRECT ANSWER - You want to create a directory/folder named D in Linux, - You want to access script.f90 in the vi editor, what do you do? (Note: this command would also create script.f90 if it did not exist prior) :wq - CORRECT ANSWER do you do? - To exit from vi while at the same time saving changes, what

Show more Read less
Institution
Fortran
Course
Fortran

Content preview

FORTRAN UPDATED ACTUAL Exam
Questions and CORRECT Answers
mkdir D - CORRECT ANSWER - You want to create a directory/folder named D in Linux,
what do you do?


vi script.f90 - CORRECT ANSWER - You want to access script.f90 in the vi editor, what
do you do? (Note: this command would also create script.f90 if it did not exist prior)


:wq - CORRECT ANSWER - To exit from vi while at the same time saving changes, what
do you do?


program sniffy - CORRECT ANSWER - What is the first line in a FORTRAN "main"
script called "sniffy"?


end program sniffy - CORRECT ANSWER - What is the last line in a "FORTRAN
program" named "sniffy"?


integer :: var = 10 - CORRECT ANSWER - Define an integer variable with the value 10!



real - CORRECT ANSWER - What is the counterpart of "float" in fortran?



implicit none - CORRECT ANSWER - What necessary statement prevents potential
confusion in variable types, and makes detection of typographic errors easier?


contains - CORRECT ANSWER - What to add to the main FORTRAN script before
adding functions?


real function add(i,j) - CORRECT ANSWER - You want to create a function that adds
variables i and j, how do you write the first line?

, implicit none - CORRECT ANSWER - First line of a function?



yes - CORRECT ANSWER - Do you have to define function variables within the
function?


print*, 'Hello world!' - CORRECT ANSWER - Print "hello world" in FORTRAN!



gfortran hello.f90 -o hello.x - CORRECT ANSWER - You want to link hello.f90
FORTRAN script you just created to an executable hello.x to run the code, what do you do?


real - CORRECT ANSWER - x = 1.32312 is a...



logical - CORRECT ANSWER - f = .false. is a...



integer - CORRECT ANSWER - i = 1 is a...



do i =1,10 - CORRECT ANSWER - Make a loop in FORTRAN over the range 1-10 using
the predefined integer variable i


print*, 'my name is' ,name - CORRECT ANSWER - Print variable "name" with preceding
string: "my name is"


enddo - CORRECT ANSWER - At the end of a do loop you must always write...



character(len=100) :: b - CORRECT ANSWER - Define a character variable with length
100: so basically a string

Written for

Institution
Fortran
Course
Fortran

Document information

Uploaded on
March 30, 2025
Number of pages
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • fortran
$10.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Thumbnail
Package deal
Fortran Bundled Exam Questions WITH CORRECT Answers
-
7 2025
$ 29.46 More info

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1390
Member since
2 year
Number of followers
105
Documents
87389
Last sold
10 hours ago
MGRADES (Genius Brains)

Welcome to MGRADES Exams, practices and Study materials The work speaks for itself Me and my team will always make sure you get the best value from the exams markets. I offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

232 reviews

5
94
4
50
3
53
2
14
1
21

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions