Riddles &
Puzzles
Trivia
Mentalrobics
Puzzle
Games
Community
Quizzes
Fact Box
Photo Identification
Famous Art
Celebrities
Quizzes
Fact Box
Photo Identification
Famous Art
Celebrities
Create a Quiz
My Favorites
My Watchlist
Search
Random Quiz
Browse Quizzes
All
Entertainment
Geography
History
Hobbies
Humanities
Literature
Movies
Music
Nature
Other
People
Religion
Science
Sports
Technology
Television
Daily Quiz
Quizzes
Quizzes
Create a Quiz
My Favorites
My Watchlist
Search
Random Quiz
Browse Quizzes
All
Entertainment
Geography
History
Hobbies
Humanities
Literature
Movies
Music
Nature
Other
People
Religion
Science
Sports
Technology
Television
Daily Quiz
Coding in Fortran
This is a quiz about the documentation and usage of Fortran.
Fun:
(1.78)
Difficulty:
(2.37)
Quiz ID: #33609
Category:
Technology
Submitted By:
Hydra1234
Question #1
What are the basic datatypes of Fortran?
Integer, Real, Complex, Character, Logical
Integer, Real, Complex, Character, Double Precision
Integer, Real, Complex, Character, Implicit
Integer, Floating Point, Imaginary, Logical
Integer, Floating Point, Imaginary, Double Precision
Question #2
Which of the following is correct syntax for exponentiation in Fortran 90?
***
**
^
They are all invalid.
Question #3
The statement "read(10,end=100) mm" will:
Jump to the end of the program when a value of 100 is read from unit 10
Jump to the statement with label 100 when the string "end" is read from unit 10
Jump to the statement with label 100 when the end of the file is reached on unit 10
Set the variable mm = 100 when the end of the file is reached
None of the above
Question #4
Which of the following does the "trim" function do?
Remove all trailing blanks in a string
Optimizes the code
Converts floating point numbers into integers by removing all decimals
Converts floating point numbers into integers through a unique algorithm
Question #5
The INT function rounds values...
... down to the nearest integer.
...up to the nearest integer.
... to the nearest integer.
... to the nearest thousandth.
The INT function does not round values.
Question #6
There is an operator for taking the factorial of a number in Fortran 90.
True
False
Question #7
What is the syntax for a comment in Fortran? (No spaces)
Your Answer:
1 word, 1 letters.
Show Hint
Question #8
Write a statement that closes the file assigned the number 9 without ending or stopping the program.
Your Answer:
2 words, 8 letters. There is also an alternate answer.
Show Hint
Question #9
For the following Fortran operations, give the rank from fastest to slowest in terms of computer time required: (1) x*0.5 (2) x+0.5 (3) x**0.5 (4) sqrt(x).
1 2 3 4
4 3 2 1
2 1 3 4
1 2 4 3
None of the above
Question #10
Which of the following logical expressions produces a .TRUE. output if values A and B have a .FALSE. input?
A.AND.B
A.OR.B
A.EQV.B
A.NEQV.B
A.XOR.B
Share this Quiz:
Tweet
Share on Facebook
Copy Link
Online Now
4 users
and 1350 guests
Enter the
Live Chat Room
Follow Braingle!
Get Your Free Braingle Account
Submit your own brain teasers
Vote on puzzles and track your favorites
Chat with other smart people
Sign up now!
Copyright © 1999-2024 |
FAQ
|
Links
|
Green
|
Subscribe
|
Contact
|
Privacy
|
Conditions
|
Braingle Time: 12:14 pm
www.braingle.com
Sign In
Create
a Free
Account
Follow Braingle!