Modern Programming Languages MCQs with Answers
Practice important Modern Programming Languages MCQs with answers and explanations.
Multiple Choice Questions
Q591: Which statement about exception handling in Java is true?
- A: Exceptions in the catch block are never handled.
- B: Exception handling prevents all exceptions from being thrown.
- C: Exceptions in the finally block are not handled.
- D: Exception handling allows for graceful error recovery.
View Answer
D
Q592: What happens when an uncaught exception occurs in a try block with a catch clause in Java?
- A: The catch block executes, then the finally block executes, then the statement following the try block.
- B: The catch block executes, then the statement following the try block.
- C: The finally block executes, then the statement following the try block.
- D: The catch block is skipped.
View Answer
A
Q593: When was C# released by Microsoft?
- A: 1999
- B: 2000
- C: 2001
- D: 2002
View Answer
B
Q594: C# is a _______ language.
- A: weakly-typed
- B: strongly-typed
- C: loosely-typed
- D: untyped
View Answer
B
Q595: What platform is C# part of?
- A: .NET framework
- B: Java framework
- C: Python framework
- D: Ruby framework
View Answer
A
Q596: What is the abbreviation for the Common Language Runtime in C#?
- A: CLR
- B: JVM
- C: JRE
- D: VMM
View Answer
A
Q597: In C#, which operator is used for member access?
- A: ->
- B: .
- C: ::
- D: =>
View Answer
B
Q598: C# is similar to which programming languages?
- A: Java and Python
- B: Java and C++
- C: Java and Ruby
- D: Java and JavaScript
View Answer
B
Q599: Which language uses Microsoft Intermediate Language (MSIL)?
- A: Java
- B: C#
- C: Python
- D: Ruby
View Answer
B
Q600: What is the term for C#'s automatic memory management feature?
- A: Garbage Collection
- B: Memory Leak Prevention
- C: Manual Memory Allocation
- D: Heap Management
View Answer
A