Quiz 5 - Functions And Pointers

5 Questions | Total Attempts: 71

SettingsSettingsSettings
Please wait...
Quiz 5 - Functions And Pointers

Class BEE-2A


Questions and Answers
  • 1. 
    Pointer is a special kind of a variable which is used to store _______ of a variable
    • A. 

      Data Type

    • B. 

      Value

    • C. 

      Variable name

    • D. 

      Address

  • 2. 
    The operator used to declare a pointer variable is 
    • A. 

      ^

    • B. 

      %

    • C. 

      *

    • D. 

      &

  • 3. 
    Variable passing by reference is achieved by using pointers.
    • A. 

      True

    • B. 

      False

  • 4. 
    Char data type uses _____ byte (s), int data type uses _____ byte (s) and float uses _____ byte (s)
    • A. 

      2, 4, 1

    • B. 

      4, 2, 1

    • C. 

      1, 2, 4

    • D. 

      4, 1, 2

  • 5. 
    Passing by value means an exact copy of the variable is created and the value is assigned to it.
    • A. 

      True

    • B. 

      False

Back to Top Back to top