Ultimate Computer Quiz

24 Questions | Total Attempts: 66

SettingsSettingsSettings
Computer Quizzes & Trivia

Online mcq quiz on fundamentals of computer - set 2 no. Of questions:- 10 time:- 10 minutes. . .


Questions and Answers
  • 1. 
    The place where you want the cursor at the beginning of the program needs to have a TabIndex set to what number?
    • A. 

      -1

    • B. 

      0

    • C. 

      1

    • D. 

      2

  • 2. 
    What is the name of the object where the cursor should be at the beginning of the ConvertSeconds.frm program?
    • A. 

      Text1

    • B. 

      TxtSeconds

    • C. 

      Label1

    • D. 

      LblTime

  • 3. 
    What kind of numbers are appropriate for data for seconds?
    • A. 

      Positive

    • B. 

      Negative

    • C. 

      Odd

    • D. 

      Even

  • 4. 
    Which line of code reserves memory for the variable Hours?
    • A. 

      Hours = Val(txtHours)

    • B. 

      Dim Hours As Integer

    • C. 

      Hours = Minutes \ 60

    • D. 

      If Seconds > 0 Then

  • 5. 
    What data type is the variable Hours?
    • A. 

      String

    • B. 

      Single

    • C. 

      Integer

    • D. 

      Double

  • 6. 
    Use a calculator.  There are ones available on the computer.  What is 7000 divided by 60?
    • A. 

      6940

    • B. 

      1.167

    • C. 

      116

    • D. 

      116.666667

  • 7. 
    What does the computer put in the variable Minutes when the line of code Minutes=Seconds\60  is executed?
    • A. 

      116

    • B. 

      116.66667

    • C. 

      1.167

    • D. 

      117

  • 8. 
    \ will divide and ________________ the digits to the right of the decimal point, which is called truncating.
    • A. 

      Chop off

    • B. 

      Insert

    • C. 

      Change

    • D. 

      Round

  • 9. 
    \ will not round the number.  It will _____________________ it.
    • A. 

      Divide

    • B. 

      Multiply

    • C. 

      Truncate

    • D. 

      Switch

  • 10. 
    The answer to 7000 Mod 60 is the ______________________ of 7000 divided by 60.
    • A. 

      Memory location

    • B. 

      Remainder

    • C. 

      Quotient

    • D. 

      Product

  • 11. 
    The answer to Seconds Mod 60 is the remainder of Seconds divided by what?
    • A. 

      Seconds

    • B. 

      Mod

    • C. 

      Minutes

    • D. 

      60

  • 12. 
    Do long division on paper to calculate the remainder of 7000 divided by 60.  What is the remainder?
    • A. 

      116

    • B. 

      116.66667

    • C. 

      40

    • D. 

      60

  • 13. 
    Look at the code in your notebook for ConvertSeconds.  What data type is the variable Seconds?
    • A. 

      String

    • B. 

      Single

    • C. 

      Integer

    • D. 

      Long

  • 14. 
    What result do you get when you run the program and use 12121212 as the number of seconds?
    • A. 

      3367 hours 0 minutes 12 seconds

    • B. 

      3367 hours 12 minutes 0 seconds

    • C. 

      3367 hours

    • D. 

      3367 hours 0 minutes 0 seconds

  • 15. 
    The & symbol connects string data to make one big ___________________.  This is called concatenation.
    • A. 

      Integer

    • B. 

      String

    • C. 

      Picture box

    • D. 

      Message box

  • 16. 
    Str(Hours) is needed to convert the integer number, hours into the ________________ data type.
    • A. 

      Double

    • B. 

      Single

    • C. 

      Integer

    • D. 

      String

  • 17. 
    In this program, the conversion calculations are done only if the data the user puts in for the seconds, is ___________________________________________.
    • A. 

      Numeric and positive

    • B. 

      Numeric or positive

    • C. 

      Numeric or negative

    • D. 

      Numeric or zero

  • 18. 
    Will the program catch invalid data that is made up of letters and symbols?  Try it to know for sure.
    • A. 

      Yes

    • B. 

      No

    • C. 

      Maybe

    • D. 

      Never

  • 19. 
    If the user puts -33 in the textbox for the number of seconds, what appears on the screen?
    • A. 

      Use a positive number of seconds.

    • B. 

      Use numeric data. Try again.

    • C. 

      Debug window

    • D. 

      -1 hour -1 minutes -33 seconds

  • 20. 
    When the user clicks OK on the message box, where does the cursor go?
    • A. 

      CmdClear

    • B. 

      TxtSeconds

    • C. 

      LblTime

    • D. 

      CmdConvert

  • 21. 
    Which line of code made that happen?  (referring to number 20)
    • A. 

      CmdClear.SetFocus

    • B. 

      TxtSeconds = ""

    • C. 

      TxtSeconds.SetFocus

    • D. 

      LblTime = ""

  • 22. 
    When the user clicks OK on the message box, what happens to the -33 that was in the textbox?
    • A. 

      It stays in the textbox.

    • B. 

      It moves to lblTime.

    • C. 

      It disappears.

    • D. 

      It changes to 33.

  • 23. 
    What line of code made that happen?  (referring to number 22)
    • A. 

      CmdClear.SetFocus

    • B. 

      TxtSeconds = ""

    • C. 

      TxtSeconds.SetFocus

    • D. 

      LblTime = ""

  • 24. 
    Which of these statements is true?
    • A. 

      The If Seconds > 0 Then is nested inside of the If IsNumeric structure.

    • B. 

      The If IsNumeric structure is nested inside the If Seconds > 0 Then.

    • C. 

      There is no nesting of structures in this program.

    • D. 

      The If Seconds > 0 Then is nested inside the Else of If IsNumeric.

Back to Top Back to top