Computer Knowledge

Object-Oriented Programming

2,686 Questions

Object-oriented programming questions test core computer science concepts like classes, inheritance, polymorphism, and encapsulation. The focus includes Java program structures, method overloading, and memory allocation for objects. This topic is essential for technical sections in various recruitment tests.

Java class definitionsMethod overriding rulesPolymorphism conceptsGeneric type parametersMemory allocation in objects

Object-Oriented Programming Questions

Multiple choice technology programming languages
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Java supports dynamic class creation at runtime through bytecode generation libraries like ASM, BCEL, or through the Java Compiler API. Classes can be generated programmatically with custom methods, fields, and interface implementations. This is used in frameworks, proxies, and dynamic programming.

Multiple choice
  1. AsymmetricKeyExchangeDeformatter

  2. AsymmetricKeyExchangeFormatter

  3. AsymmetricSignatureDeformatter

  4. AsnEncodedData

  5. ProtectedData

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This encryption-decryption class of .NET technology represents the base class, from which all the asymmetric key exchange deformatters derive.

Multiple choice
  1. SignatureDescription

  2. AsymmetricSignatureDeformatter

  3. AsymmetricSignatureFormatter

  4. AsymmetricKeyExchangeFormatter

  5. ProtectedMemory

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This encryption-decryption class represents the base class, from which all implementations of asymmetric signature formatters derive.

Multiple choice
  1. CngAlgorithm

  2. CngKey

  3. CngKeyCreationParameters

  4. AsymmetricKeyExchangeFormatter

  5. ProtectedMemory

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This encryption-decryption class of the .NET technology defines the core functionality for keys that are used with cryptography next generation objects.

Multiple choice
  1. CngKeyCreationParameters

  2. AsymmetricKeyExchangeFormatter

  3. CngAlgorithm

  4. ProtectedData

  5. CngKeyBlobFormat

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This encryption-decryption class of the .NET technology specifies a key binary large object format for use with Microsoft cryptography next generation objects.