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 UPDATED Exam Questions and CORRECT Answers

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

FORTRAN UPDATED Exam Questions and CORRECT Answers Original Design Goal for original FORTRAN - CORRECT ANSWER 2. A HLL for Numerical Engineering Applications How is storage set in Fortran? - CORRECT ANSWER - 1. Efficiency - All needed storage of the program is decided at compile time, minimal invocation of the OS Fortran Typing System? - CORRECT ANSWER types: integer, real, complex, double, and arrays Is there type definitons? - CORRECT ANSWER - Simple Typing system, static, and few

Meer zien Lees minder
Instelling
Fortran
Vak
Fortran

Voorbeeld van de inhoud

FORTRAN UPDATED Exam Questions
and CORRECT Answers
Original Design Goal for original FORTRAN - CORRECT ANSWER - 1. Efficiency
2. A HLL for Numerical Engineering Applications


How is storage set in Fortran? - CORRECT ANSWER - All needed storage of the program
is decided at compile time, minimal invocation of the OS


Fortran Typing System? - CORRECT ANSWER - Simple Typing system, static, and few
types: integer, real, complex, double, and arrays


Is there type definitons? - CORRECT ANSWER - No type definition or facilitating user
defined data abstractions, only arrays and fixed size char string, in addition to adding
Subroutines and Functions abstraction.


What is put in the FORTRAN Declarative Section? - CORRECT ANSWER - i) Allocating
memory locations of specified sizes (based on the name declared type) to hold the values of such
declared names; and bind the declared names to the assigned locations, statically (in
FORTRAN), for the entire life cycle of the program execution.


ii) Possibly, assigning initial value (if given) to the name's allocated memory space.


What is put in the Imperative Section of FORTRAN? - CORRECT ANSWER - i)
Computational: X = Y/Z + F(4) + ARY(15)


ii) Control Flow: GO TO, DO .. CONTINUE, IF ( L1, L2, L3) I, CALL SUB1(X,Y,Z),...


iii) Input/Output: READ, PRINT.

, Unconditional GO TO - CORRECT ANSWER - GO TO label



Computed GO TO - CORRECT ANSWER - GO TO (L1, L2, ..., Ln), I


If I = k, jump to Lk label in the label list, 1 <= k <= n; otherwise no jump.


Assigned GO TO - CORRECT ANSWER - GO TO N, (L1, L2, ..., Ln)


Go to the address placed in N, hence N must be pre-assigned some label address, via the assign
statement "ASSIGN <label> TO <id=N>", that places the address of the label into the id N. It is
the responsibility of the programmer to do so (leads to insecurity).


FORTRAN's Security Loophole - CORRECT ANSWER - The similarity of the computed
and assigned "GO TO" above. In addition to the overworking of the integer type to carry label's
address and integers (weak typing), and trusting the "user" to use the assign statement before any
assigned "GO TO" would introduce a great possibility of the CPU jumping to execute at an
unknown place in memory


Golden Rules learned from Fortran - CORRECT ANSWER - 1)"Different semantics
HLL's elements/structures should be expressed in Different syntax" (Not always--> Exceptions?
Why?).


2) The compiler should NOT trust the HLLs' users to do the right thing.


What is a Type - CORRECT ANSWER - A type of a variable is the set of values that such
variable can have and the set of operations that can work on such values.


Why do we need Types in some HLLs? - CORRECT ANSWER - 1) Efficient allocation of
memory


2) Type Checking (security)

Geschreven voor

Instelling
Fortran
Vak
Fortran

Documentinformatie

Geüpload op
30 maart 2025
Aantal pagina's
Onbekend
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

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