Constants In Exponential Notation

14 Questions | Total Attempts: 84

SettingsSettingsSettings
Please wait...
Exponential Quizzes & Trivia

These questions will help you prepare your Gravity. Frm program.


Questions and Answers
  • 1. 
    What is the keyword used for declaring a constant?
    • A. 

      Const

    • B. 

      Constant

    • C. 

      Constant

    • D. 

      Const

  • 2. 
    What is the standard way to write constants in Visual Basic?
    • A. 

      All capital letters

    • B. 

      All lowercase letters

    • C. 

      First letter capital and the rest lowercase

    • D. 

      Capitals for each new word

  • 3. 
    Which of these is the correct constant declaration for the gravitational constant which is equal to 1.07 times 10 to the negative 9th power in feet cubed per pound second squared?
    • A. 

      Const Gravity = 1.07 * 10 ^ -9 ft^3/lb*sec^2

    • B. 

      Const GRAVITY = 1.07E-9

    • C. 

      Constant Gravity = -1.07 x 10^9

    • D. 

      Const GRAVITY = 1.07 e 9

  • 4. 
    Which is the appropriate constant declaration for the weight of the Earth in pounds?
    • A. 

      Const WEIGHTEARTH = 1.315E10^25

    • B. 

      WeightEarth Const = 1.315 * 10 ^ -25

    • C. 

      Const WEIGHTEARTH = 1.315e25

    • D. 

      Constant WeightEarth = 1.315E-25

  • 5. 
    Which is the correct syntax for the constant definition for the radius of the Earth in feet?
    • A. 

      Ft Radius_Earth = 20,882,400

    • B. 

      Const RADIUSEARTH = 20882400

    • C. 

      Const RadiusEarth = 20,882,400 ft

    • D. 

      Constant RADIUSEARTH = 20882400 FEET

  • 6. 
    Since the elevations are going to be provided by a For Next loop and will be from 0 to 20,000 feet above the Earth's surface in 1000 feet increments, how should the variable Elevation be declared?
    • A. 

      Dim Elevation As Single

    • B. 

      Dim Elevation As String

    • C. 

      Dim Elevation As Integer

    • D. 

      Const Elevation = 20000

  • 7. 
    Since the acceleration is going to be calculated by the program, its variable must also be declared.  The sample output shows values such as 32.26627 and 32.22921 as accelerations; therefore, which is the best declaration for the acceleration variable?
    • A. 

      Dim Acceleration As Integer

    • B. 

      Dim Acceleration As String

    • C. 

      Const Acceleration As Single

    • D. 

      Dim Acceleration As Single

  • 8. 
    Which is the correct assignment statement for calculating the acceleration?
    • A. 

      Acceleration = GRAVITY * WEIGHTEARTH / (RADIUSEARTH + Elevation) ^ 2

    • B. 

      A = G * W / R + E ^ 2

    • C. 

      Acceleration = Gravity * WeightEarth / RadiusEarth + Elevation ^ 2

    • D. 

      Acceleration = (Gravity * WeightEarth / RadiusEarth + Elevation) ^ 2

  • 9. 
    Which is the correct line to use for the beginning of the For Next loop that generates the elevations from 0 to 20000 feet above the Earth's surface for elevations of 1000 feet increments?
    • A. 

      For Elevation = 1 To 20000

    • B. 

      For Elevation = 0 To 1000

    • C. 

      For Acceleration = 1 To 1000 Step 20000

    • D. 

      For Elevation = 0 To 20000 Step 1000

  • 10. 
    Which is the correct declaration for a variable that will hold the various results as they determined in the For Next loop?
    • A. 

      Dim ResultString As Integer

    • B. 

      Dim ResultString As Single

    • C. 

      Const ResultString = 32.2

    • D. 

      Dim ResultString As String

  • 11. 
    If the result string is made up of a concatenation of values of variables and space and then added to the listbox, which of these lines of code would be appropriate for displaying the output to the listbox?
    • A. 

      ResultList.AddItem ResultString

    • B. 

      ResultList.Clear ResultString

    • C. 

      ResultString.AddItem ResultList

    • D. 

      ResultString.AddItem Sum

  • 12. 
    What line of code tells the computer when to increment the elevation and when to repeat the loop?
    • A. 

      Next Loop

    • B. 

      Next Elevation

    • C. 

      End If

    • D. 

      End Loop

  • 13. 
    What is the best name for the menu item with the word Gravity?
    • A. 

      LblGravity

    • B. 

      CmdGravity

    • C. 

      MnuGravity

    • D. 

      TxtGravity

  • 14. 
    What line of code will put the cursor on the Clear command button?
    • A. 

      CmdClear.SetFocus

    • B. 

      MnuClear.SetFocus

    • C. 

      Clear.SetFocus

    • D. 

      CmdClear.Focus

Back to Top Back to top