Ultimate Computer Quiz

24 Questions | Attempts: 66
Share

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

    Correct Answer
    B. 0
  • 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

    Correct Answer
    B. TxtSeconds
  • 3. 

    What kind of numbers are appropriate for data for seconds?

    • A.

      Positive

    • B.

      Negative

    • C.

      Odd

    • D.

      Even

    Correct Answer
    A. Positive
  • 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

    Correct Answer
    B. Dim Hours As Integer
  • 5. 

    What data type is the variable Hours?

    • A.

      String

    • B.

      Single

    • C.

      Integer

    • D.

      Double

    Correct Answer
    C. Integer
  • 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

    Correct Answer
    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

    Correct Answer
    A. 116
  • 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

    Correct Answer
    A. Chop off
  • 9. 

    \ will not round the number.  It will _____________________ it.

    • A.

      Divide

    • B.

      Multiply

    • C.

      Truncate

    • D.

      Switch

    Correct Answer
    C. Truncate
  • 10. 

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

    • A.

      Memory location

    • B.

      Remainder

    • C.

      Quotient

    • D.

      Product

    Correct Answer
    B. Remainder
  • 11. 

    The answer to Seconds Mod 60 is the remainder of Seconds divided by what?

    • A.

      Seconds

    • B.

      Mod

    • C.

      Minutes

    • D.

      60

    Correct Answer
    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

    Correct Answer
    C. 40
  • 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

    Correct Answer
    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

    Correct Answer
    A. 3367 hours 0 minutes 12 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

    Correct Answer
    B. String
  • 16. 

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

    • A.

      Double

    • B.

      Single

    • C.

      Integer

    • D.

      String

    Correct Answer
    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

    Correct Answer
    A. Numeric and positive
  • 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

    Correct Answer
    A. Yes
  • 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

    Correct Answer
    A. Use a positive number of seconds.
  • 20. 

    When the user clicks OK on the message box, where does the cursor go?

    • A.

      CmdClear

    • B.

      TxtSeconds

    • C.

      LblTime

    • D.

      CmdConvert

    Correct Answer
    B. TxtSeconds
  • 21. 

    Which line of code made that happen?  (referring to number 20)

    • A.

      CmdClear.SetFocus

    • B.

      TxtSeconds = ""

    • C.

      TxtSeconds.SetFocus

    • D.

      LblTime = ""

    Correct Answer
    C. TxtSeconds.SetFocus
  • 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.

    Correct Answer
    C. It disappears.
  • 23. 

    What line of code made that happen?  (referring to number 22)

    • A.

      CmdClear.SetFocus

    • B.

      TxtSeconds = ""

    • C.

      TxtSeconds.SetFocus

    • D.

      LblTime = ""

    Correct Answer
    B. TxtSeconds = ""
  • 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.

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

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 21, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 17, 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.