Skip to main content
Engineering LibreTexts

26.15: Quiz Question Answers - Chapter 15

  • Page ID
    54433
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Quiz question answers for chapter 15 are as follows:

    1. The two types of Fortran subprograms are subroutines and functions.
    2. A function returns a single value.
    3. The variables in the call are referred to as actual arguments.
    4. The variables in the function heading are referred to formal arguments.
    5. The return type is integer.
    6. Yes, it possible to pass integer arguments to a real function.
    7. The keyword contains.
    8. The answers are as follows:
      1. 8.
      2. 9.
    9. The answers are as follows:
      1. fahrToCelsius.
      2. Yes.
      3. No.
      4. 10.0.
    10. The term variable scope refers to where a given variable can be accessed.
    11. The answers are as follows:
      1. in
      2. out
      3. inout
    12. The term side-effect is when a function changes one or more of its input arguments. In general, this is considered poor practice and should be avoided.

    This page titled 26.15: Quiz Question Answers - Chapter 15 is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Ed Jorgensen via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.