Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Multiple Choice Questions

Q601: C# supports which type of inheritance?
  • A: Single Inheritance
  • B: Multiple Inheritance
  • C: Hybrid Inheritance
  • D: No Inheritance
View Answer
A

Q602: In C#, arrays have built-in ________.
  • A: indexing
  • B: bounds checking
  • C: value assignment
  • D: loop control
View Answer
B

Q603: The ".NET platform" is centered around which feature?
  • A: Garbage Collection
  • B: Common Language Runtime
  • C: Reflection
  • D: Structs
View Answer
B

Q604: Which of the following is a type of array supported by C#?
  • A: Single-dimensional arrays
  • B: Multi-dimensional rectangular arrays
  • C: Multi-dimensional jagged arrays
  • D: All of the above
View Answer
D

Q605: What keyword in C# is used to allocate memory for an object?
  • A: malloc
  • B: new
  • C: alloc
  • D: create
View Answer
B

Q606: In C#, 'null' is a _______.
  • A: Data type
  • B: Keyword
  • C: Method
  • D: Class
View Answer
B

Q607: C# supports _______ to implement event handling.
  • A: delegates
  • B: methods
  • C: arrays
  • D: functions
View Answer
A

Q608: Which is a built-in C# data type?
  • A: decimal
  • B: integer
  • C: float32
  • D: unsigned
View Answer
A

Q609: In C#, structs are passed by _______.
  • A: reference
  • B: value
  • C: object
  • D: pointer
View Answer
B

Q610: What does the term 'unsafe' mean in C#?
  • A: Limited pointer use
  • B: No memory access
  • C: Read-only variables
  • D: No inheritance
View Answer
A

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now