Constants In Exponential Notation

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Jhangen
J
Jhangen
Community Contributor
Quizzes Created: 3 | Total Attempts: 4,098
Questions: 14 | Attempts: 120

SettingsSettingsSettings
Constants In Exponential Notation - Quiz


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

    Correct Answer
    D. Const
    Explanation
    Starts with a capital C. Const

    Rate this question:

  • 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

    Correct Answer
    A. All capital letters
    Explanation
    All caps make constants look different from variables.

    Rate this question:

  • 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

    Correct Answer
    B. Const GRAVITY = 1.07E-9
    Explanation
    We use all caps from constant identifiers and exponential notation must be used. No units are included. In exponential notation, the E takes the place of the x 10 of scientific notation.

    Rate this question:

  • 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

    Correct Answer
    C. Const WEIGHTEARTH = 1.315e25
    Explanation
    All capitals and exponential notation.

    Rate this question:

  • 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

    Correct Answer
    B. Const RADIUSEARTH = 20882400
    Explanation
    Do NOT include units. Do not include commas.

    Rate this question:

  • 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

    Correct Answer
    C. Dim Elevation As Integer
    Explanation
    Only integers are needed because the elevations will be 0, 1000, 2000, 3000, 4000, etc up to 20000.

    Rate this question:

  • 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

    Correct Answer
    D. Dim Acceleration As Single
    Explanation
    Single is needed for decimals.

    Rate this question:

  • 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

    Correct Answer
    A. Acceleration = GRAVITY * WEIGHTEARTH / (RADIUSEARTH + Elevation) ^ 2
    Explanation
    The correct assignment statement for calculating the acceleration is "Acceleration = GRAVITY * WEIGHTEARTH / (RADIUSEARTH + Elevation) ^ 2." This formula correctly calculates the acceleration by multiplying the gravity (GRAVITY) by the weight of the Earth (WEIGHTEARTH), and then dividing it by the sum of the radius of the Earth (RADIUSEARTH) and the elevation, all raised to the power of 2.

    Rate this question:

  • 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

    Correct Answer
    D. For Elevation = 0 To 20000 Step 1000
    Explanation
    The directions call for the elevations to be feet above the Earth's surface from 0 to 20000 feet in 1000 foot increments. Units are not used in the For Next loop. The phrase in 1000 foot increments means that the step is 1000. No commas are used. The variable after For and after Next is Elevation.

    Rate this question:

  • 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

    Correct Answer
    D. Dim ResultString As String
    Explanation
    Look at the ResultString.frm directions as a guide. ResultString is a concatenation of values and spaces put into a string variable.

    Rate this question:

  • 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

    Correct Answer
    A. ResultList.AddItem ResultString
    Explanation
    ResultList is the name of the ListBox where the results are being displayed. .AddItem is used with ListBoxes. The value of the variable ResultString is being added to the ListBox each time through the loop.

    Rate this question:

  • 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

    Correct Answer
    B. Next Elevation
    Explanation
    Every For has its Next. The variable and For and its corresponding Next, must be the same.

    Rate this question:

  • 13. 

    What is the best name for the menu item with the word Gravity?

    • A.

      LblGravity

    • B.

      CmdGravity

    • C.

      MnuGravity

    • D.

      TxtGravity

    Correct Answer
    C. MnuGravity
    Explanation
    mnu is the 3-letter prefix for menu items.

    Rate this question:

  • 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

    Correct Answer
    A. CmdClear.SetFocus
    Explanation
    You look where the cursor is, so the code for putting the cursor somewhere is done with the name of the object followed by .SetFocus

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 20, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 20, 2010
    Quiz Created by
    Jhangen
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.