Quiz 1-S1: Q1 Q2 Q3 Q4 Q5

 
 
CSE 1503 Introduction to Computer Programming with FORTRAN

Section 1 Date: January 28, 1999

SUDENT NAME: _________________________

wpe2.jpg (2229 bytes)
     
  1. Choose the right Answer:
    1. ForTran stands for _________________________
  • Forms Transfer
  • Forum Transcribe
  • Formula Translation
  • Format Transference
    1. A file of 2 Kbytes size have _________________________
  • 2000 Characters
  • 2020 Characters
  • 2048 Characters
  • 2096 Characters
  1. Fill the empty spaces:

  2. In Fortran Identifiers must begin with a letter , which may be followed by up to thirty (30) letters , digits , or under-score.

  3. Read the following source code:
  4.  
    PROGRAM YEAR_INCOME
         ! REMEMBER COMMENTS ARE ALWAYS HELPFUL
         REAL :: IS_ME_INTEGER
         IS_ME_INTEGER = 12
         PRINT *, 'Your Employee ID # and Salary: ' 
         READ *, ID, SALARY
         PRINT *, "Your ID Number is ", ID, " and you earn: $", &
         SALARY*IS_ME_INTEGER, "/year"
    END PROGRAM YEAR_INCOME

    What are the types of IS_ME_INTEGER, ID and SALARY?

     
    IS_ME_INTEGER
    REAL
    ID
    INTEGER
    SALARY
    REAL
  5. Evaluate the result of the following expression:

  6. 5.0** 2 * 4 / 2 + 8 - 2 * (81/9)**(1.0/2)

    52 (Applying the Priority Rules such as evaluate first expressions between parentheses, exponential, multiplication and division then addition and subtraction)

  7. BONUS: Who did say: "In language, clarity is everything"? Confucius