Quiz On C# Programming Language Quiz

15 Questions | Total Attempts: 217

SettingsSettingsSettings
Please wait...
Programming Quizzes & Trivia

C# is here Variable of reference type store the memory address of other variables in a Stack. Take this quiz and learn more about it!


Questions and Answers
  • 1. 
    Variables of this data types store actual values.This value stored in a stack.
    • A. 

      Value Type

    • B. 

      Reference Type.

  • 2. 
    Variable of reference type store the memory address of other variables in a Stack.
    • A. 

      True

    • B. 

      False

  • 3. 
    The Reference Data Types are:- 3 choices
    • A. 

      Int,float

    • B. 

      String,Object

    • C. 

      Class , interface

    • D. 

      Byte, bit

    • E. 

      Array , Delegate

  • 4. 
    The built-in reference data types are : - 2 choices
    • A. 

      Class

    • B. 

      Object

    • C. 

      Delegate

    • D. 

      Array , Interface

    • E. 

      String

  • 5. 
    XML Comments begin with :
    • A. 

      Three forward slashes

    • B. 

      Three asterisks

    • C. 

      Double slashes

  • 6. 
    Constants are declared for value types rather than for reference types.
    • A. 

      True

    • B. 

      False

  • 7. 
    This statement ensure that no other process or threads running in the computer memory can interfere with the code. ensure security and only work with reference type.
    • A. 

      Selection statement

    • B. 

      Iteration statement

    • C. 

      Jump Statement

    • D. 

      Fixed Statement

    • E. 

      Lock Statement

  • 8. 
    This statement is required to tell the garbage collector not to move that object during execution.
    • A. 

      Jump Statement

    • B. 

      Lock statement

    • C. 

      Fixed Statement

    • D. 

      Check ed and Unchecked Statement

  • 9. 
    Which statements are true?
    • A. 

      The conditional operator works with two operands

    • B. 

      The increment operator works with a single operand

    • C. 

      The bitwise exclusive OR operator compares bits and return 1 if only one of the bits is -1.

    • D. 

      The conditional && operator does not check the seconds expression if the first expression is false

    • E. 

      The compound assignment operators execute from right to left.

  • 10. 
    This typeCasting is carried out automatically by the compiler.
    • A. 

      Explicit

    • B. 

      Implicit

  • 11. 
    The class which provides useful methods to convert any built-in data type to another built-in data type.
    • A. 

      System.Console.Convert

    • B. 

      System.Convert

  • 12. 
    This refers to converting a reference type to a value type.
    • A. 

      Boxing

    • B. 

      UnBoxing

  • 13. 
    This is a process for converting a value type to its reference type. this useful to reduce the overhead on the system during execution.
    • A. 

      UnBoxing

    • B. 

      Boxing

  • 14. 
    This array is a multi-dimensional array and is reference to as an array of arrays.It considers of multiple arrays where the number of elements within each array can be different.
    • A. 

      Rectangular Array.

    • B. 

      Jagged Array.

  • 15. 
    This has improved performance and unequal number of columns.
    • A. 

      Rectangular Array

    • B. 

      Single- dimensional Array

    • C. 

      Jagged Array

    • D. 

      Multi- dimensional Array