C++ Shaheed Benazir Bhutto University, Sheringal Dir (U)

13 Questions | Total Attempts: 45

SettingsSettingsSettings
C++ Shaheed Benazir Bhutto University, Sheringal Dir (U) - Quiz

Course Name: Programming Fundamentals Only one attempt is allowed per email.


Questions and Answers
  • 1. 
    Declare a variable that holds the value of your GPA in C++?
  • 2. 
    Declare a variable that holds all your Subject names?
  • 3. 
    Write a program which displays the following output:
  • 4. 
    Attempt any Two questions only.
  • 5. 
    Define One-Dimensional Arrays with an example?
  • 6. 
    Define content of operator (*) and ampersand operator (&) and give simple example for each?
  • 7. 
    Attempt all questions.
  • 8. 
    [Blank] are program code segments that are not executed by the compiler.
  • 9. 
    When a parameter is passed to a function it is called [Blank]
  • 10. 
    An array element is accessed by its [Blank]
  • 11. 
    Structs in C++ can hold?  
    • A. 

      Multiple values at the same time

    • B. 

      Only single variable value at one time

    • C. 

      Multiple values only of the same data type

  • 12. 
    Choose the correct output.
    • A. 
    • B. 
    • C. 
  • 13. 
    Which one is the garbage value in the given output?
    • A. 

      0

    • B. 

      1577760

    • C. 

      4

  • 14. 
    When we want to get the contents stored at memory location we use (*) before the variable name.
    • A. 

      True

    • B. 

      False

  • 15. 
    You can only change an element in an array once you access it.
    • A. 

      True

    • B. 

      False

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.