Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

Fortran Good Programming Tips UPDATED ACTUAL Exam Questions and CORRECT Answers

Beoordeling
-
Verkocht
-
Pagina's
9
Cijfer
A+
Geüpload op
30-03-2025
Geschreven in
2024/2025

Fortran Good Programming Tips UPDATED ACTUAL Exam Questions and CORRECT Answers What should your stop statement do? - CORRECT ANSWER and return a code of 0. Done via the stop 0 command - Terminates the program What is one way of checking if your program ran sucessfully? - CORRECT ANSWER using the echo $? on command line. See if it prints out the value next to your stop statement What statement must all your programs have? - CORRECT ANSWER Your variable names should - CORRECT ANSWER - be very descriptive What should be included in your declaration section for more clarity with user? - CORRECT ANSWER - Variable dictionary that provides the name of the variable, and its units What is critical when naming variables? - CORRECT ANSWER value assigned to them before they can be used in an expression What errors occur when you fail to assign a value to a value and use it in an expression? - CORRECT ANSWER - Execution-time error or run-time error -

Meer zien Lees minder
Instelling
Fortran
Vak
Fortran

Voorbeeld van de inhoud

Fortran Good Programming Tips
UPDATED ACTUAL Exam Questions and
CORRECT Answers
What should your stop statement do? - CORRECT ANSWER - Terminates the program
and return a code of 0.


Done via the stop 0 command


What is one way of checking if your program ran sucessfully? - CORRECT ANSWER -
using the echo $? on command line. See if it prints out the value next to your stop statement


What statement must all your programs have? - CORRECT ANSWER - implicit none



Your variable names should - CORRECT ANSWER - be very descriptive


What should be included in your declaration section for more clarity with user? - CORRECT
ANSWER - Variable dictionary that provides the name of the variable, and its units



What is critical when naming variables? - CORRECT ANSWER - Variables MUST have a
value assigned to them before they can be used in an expression


What errors occur when you fail to assign a value to a value and use it in an expression? -
CORRECT ANSWER - Execution-time error or run-time error


Say a program you want to write has a constant (g = 9.81 m/s^2), how would you use this in the
program? - CORRECT ANSWER - Make g a parameter that cannot change value. Done
via the statement


real, parameter :: G = 9.81

, Make your parameters uppercase to make them visually apparent


What are binary operators? - CORRECT ANSWER - They require two "operands" or two
inputs to work


+ (addition), - (subtraction), * (multiplication), / (division)


Unary Operators - CORRECT ANSWER - require only one operand. Includes only the +
and - operators to assign signs to numbers


Arithmetic Operator Rules - CORRECT ANSWER - 1) No two operators may occur
sequentially


2) Negative values cannot be exponentiated to a non-integer power or a negative power


3) Division by zero is not permissible


a*-b - CORRECT ANSWER - illegala



a*(-b) - CORRECT ANSWER - legal



a**-2 - CORRECT ANSWER - illegal



a**(-2) - CORRECT ANSWER - legal



(-1.0)**2 - CORRECT ANSWER - legal

Geschreven voor

Instelling
Fortran
Vak
Fortran

Documentinformatie

Geüpload op
30 maart 2025
Aantal pagina's
9
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

€9,71
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
MGRADES Stanford University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1390
Lid sinds
2 jaar
Aantal volgers
105
Documenten
87389
Laatst verkocht
10 uur geleden
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 beoordelingen

5
94
4
50
3
53
2
14
1
21

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen