GoConqr has a new look! Let us know what you think.

Quiz

Programming

Harkaran Matharu 46 questions

Take the quiz

Questions in this quiz (46)

  1. 1Which of the following is used in VB to represent a non-existent object?
    1. ANothing
    2. BNull
    3. CEmpty
    4. DShared
  2. 2What is similar to a function?
    1. AReadOnly Properties
    2. BWriteOnly Properties
    3. CPublic Instance Variables
    4. DNone
  3. 3What is NOT correct about classes? A class is a:
    1. ASubset of an object
    2. BGeneralisation of an object
    3. CTemplate for further objects
  4. 4Which one of the following statements best describes a class?
    1. Ais a group of methods, properties and namespaces that can be manufactured from an external constructor object.
    2. Bis a constructor that may be used to create new objects.
    3. Cdescribes any number of objects that can be manufactured from it using the 'New' keyword.
    4. Dis manufactured from an object using the 'New' keyword.
  5. 5A class is being written to represent a car in a VB program. Which one of the following would be the most suitable name for a property for this class?
    1. AEngineSize
    2. BracingCar
    3. CDrive_Forward
    4. DVehicles
  6. 6Which one of the following describes the OOP practice of bundling data and actions together in objects so that not all method and properties are directly accesible by the outside world?
    1. AInheritance
    2. BPackaging
    3. CPolymorphism
    4. DEncapsulation
  7. 7Which one of the following is the correct definition of ADT?
    1. AAbstract Data Type
    2. BAtomic Database Transaction
    3. CAutomated Data Typing
    4. DAbstract Data Transaction
  8. 8Which one of the following statements describes what happens when an object is destroyed?

    When an object is destroyed, the memory that was used to store the values of its variables is:
    1. Areclaimed for other uses by the run-time system
    2. Blocked and cannot be re-allocated until the system is restarted
    3. Creserved by the run-time system until the program terminates
    4. Dzeroed-out by the operating system
  9. 9Which one of the following is similar to a function?
    1. ANone of the other options are similar to a function
    2. BReadOnly properties
    3. CWriteOnly properties
    4. DPublic instance variables
  10. 10Which one of the following keywords can be used in a variable declaration to specify that it should be accessible by subclasses but not by other classes?
    1. AFriend
    2. BProtected
    3. CPrivate
    4. DPublic

Information

Description
Quiz on Programming, created by Harkaran Matharu on 18/05/2018.
Language
English
Views
0
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?