Object Oriented Programming Quiz No. 1

10 Questions | Attempts: 48
Share

SettingsSettingsSettings
Object Oriented Programming Quiz No. 1 - Quiz

.


Questions and Answers
  • 1. 

    Given the following valuea = 24b = 12c = "23"d = "12"What is the result of : a + b

    • A.

      36

    • B.

      2412

    • C.

      "2412"

    • D.

      "36"

    Correct Answer
    A. 36
  • 2. 

    Given the following valuea = 24b = 12c = "23"d = "12"What is the result of : c + d

    • A.

      "36"

    • B.

      36

    • C.

      "2312"

    • D.

      2312

    Correct Answer
    C. "2312"
  • 3. 

    Given the following valuea = 24b = 12c = "23"d = "12"What is the result of : val (c)  + val (d)

    • A.

      2312

    • B.

      35

    • C.

      "35"

    • D.

      "2312"

    Correct Answer
    B. 35
  • 4. 

    Given the following valuea = 24b = 12c = "23"d = "12"What is the result of : val (d) + b

    • A.

      1212

    • B.

      24

    • C.

      12"12"

    • D.

      "24"

    Correct Answer
    B. 24
  • 5. 

    Given the following valuea = 24b = 12c = "23"d = "12"What is the result of : a + val (c)

    • A.

      "47"

    • B.

      2423

    • C.

      Error

    • D.

      47

    Correct Answer
    D. 47
  • 6. 

    Given the following valuea = 24b = 12c = "23"d = "12"What is the result of : d + b

    • A.

      Error

    • B.

      "12"12

    • C.

      24

    • D.

      "1212"

    Correct Answer
    A. Error
  • 7. 

    Given the following valuea = 24b = 12c = "23"d = "12"What is the result of : b + val (c) + val (d)

    • A.

      122312

    • B.

      None of the above

    • C.

      "47"

    • D.

      47

    Correct Answer
    D. 47
  • 8. 

    Given the following valuea = 24b = 12c = "23"d = "12"What is the result of : d + str (a + b)

    • A.

      36

    • B.

      "1236"

    • C.

      122412

    • D.

      Error

    Correct Answer
    B. "1236"
  • 9. 

    Given the following valuea = 24b = 12c = "23"d = "12"What is the result of : str (val (c + c))

    • A.

      Error

    • B.

      55

    • C.

      "2323"

    • D.

      2323

    Correct Answer
    C. "2323"
  • 10. 

    Given the following valuea = 24b = 12c = "23"d = "12"What is the result of : str(val (d) + val (d) + b + d)

    • A.

      None of the above

    • B.

      48

    • C.

      12121212

    • D.

      Error

    Correct Answer
    D. Error

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
  • Jan 05, 2016
    Quiz Created by
    Lenlindo
Back to Top Back to top
Advertisement