Pcs- Programming In C# Test For Aptech

65 Questions | Attempts: 1929
Share

SettingsSettingsSettings
Pcs- Programming In C# Test For Aptech - Quiz

C# is here Variable of reference type store the memory address of other variables in a Stack.


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 built-in reference data types are : - 2 choices
    • A. 

      Class

    • B. 

      Object

    • C. 

      Delegate

    • D. 

      Array , Interface

    • E. 

      String

  • 4. 
    XML Comments begin with :
    • A. 

      Three forward slashes

    • B. 

      Three asterisks

    • C. 

      Double slashes

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

      True

    • B. 

      False

  • 6. 
    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

  • 7. 
    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

  • 8. 
    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.

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

      Explicit

    • B. 

      Implicit

  • 10. 
    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

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

      Boxing

    • B. 

      UnBoxing

  • 12. 
    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

  • 13. 
    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.

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

      Rectangular Array

    • B. 

      Single- dimensional Array

    • C. 

      Jagged Array

    • D. 

      Multi- dimensional Array

  • 15. 
    This has many rows and columns.
    • A. 

      Multi- dimensional Array

    • B. 

      Single- dimensional Array

    • C. 

      Rectangular Array

    • D. 

      Jagged Array

  • 16. 
    This allows you to create arrays using the CreateInstance() method.
    • A. 

      Array

    • B. 

      New

    • C. 

      Array class

  • 17. 
    Method which is used to create Multi- Dimension Array
    • A. 

      Public static Array CreateInstance(type elementType, int length);

    • B. 

      Public static Array CreateArray(type elementType, int length);

    • C. 

      Public static Array CreateInstance(type elementType, int rows, int columns);

  • 18. 
    This is the feature of extracting only the required information from object.It's not show all technical details of object.
    • A. 

      Encapsulation

    • B. 

      Inheritance

    • C. 

      Abstraction

    • D. 

      Polymorphism

  • 19. 
    Details of what a class contains need not be visible to other classes and objects that use it.
    • A. 

      Encapsulation

    • B. 

      Inheritance

    • C. 

      Polymorphism

    • D. 

      Abstraction

  • 20. 
    A method name can be an underscore or the "@" character.
    • A. 

      True

    • B. 

      Fasle

  • 21. 
    This variable is a special type that is accessed without using an Object of a class.
    • A. 

      Public variable

    • B. 

      Protect variable

    • C. 

      Static variable

    • D. 

      Final

  • 22. 
    This acces modifier allows the class members to be accessible within the class as well as within the derived class.
    • A. 

      Internal

    • B. 

      Protected

    • C. 

      Private

  • 23. 
    This access modifier allows the class members to be accessible only within the classes of the same assembly.
    • A. 

      Protected

    • B. 

      Public

    • C. 

      Internal

  • 24. 
    This keyword causes arguments to passed in a method by reference.- 2 choices
    • A. 

      Args

    • B. 

      Ref

    • C. 

      Reg

    • D. 

      This

    • E. 

      Out

  • 25. 
    The keyword is used to resolve conflicts between variables having same names and to pass the current object as a parameter.
    • A. 

      Out

    • B. 

      This

    • C. 

      Ref

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.