11. What are the features of Java that make it platform-independent?
- Dynamic Typing and Reflection
- Garbage Collection and Exception Handling
- Bytecode and JVM
- Polymorphism and Inheritance
12. What is the main purpose of the Common Language Runtime (CLR) in .NET framework?
- To compile C# source code into machine code.
- To manage memory, handle exceptions, and provide common language services.
- To provide a development environment for .NET programmers.
- To define the syntax and semantics of .NET languages.
13. What is the purpose of the .NET Framework Class Library (FCL)?
- To provide a development environment for .NET programmers.
- To provide a set of pre-built classes for common tasks such as file I/O, networking, and XML processing.
- To define the syntax and semantics of .NET languages.
- To manage memory and handle exceptions in .NET applications.
14. Which of the following is NOT an application of CLR (Common Language Runtime) in .NET framework?
- Garbage collection
- Just-in-time compilation
- Exception handling
- Compilation of C# source code into machine code
15. Which of the following is NOT a feature of Java?
- Platform independence
- Object-oriented programming
- Garbage collection
- Multiple inheritance
16. Which of the following is NOT a feature of C++?
- Static typing
- Object-oriented programming
- Operator overloading
- Automatic garbage collection
17. What is the main difference between C++ and Java in terms of memory management?
- C++ uses automatic garbage collection, while Java uses manual memory management.
- Java uses automatic garbage collection, while C++ uses manual memory management.
- Both C++ and Java use automatic garbage collection for memory management.
- Both C++ and Java use manual memory management for memory management.
18. Which of the following is NOT a part of Java Development Kit (JDK)?
- Java Virtual Machine (JVM)
- Java Runtime Environment (JRE)
- Java Compiler
- Java Debugger
19. Which of the following is NOT a feature of Java Virtual Machine (JVM)?
- Just-in-time (JIT) compilation
- Platform independence
- Memory management
- Execution of C++ code
20. What is the purpose of JRE (Java Runtime Environment) in Java?
- To compile Java source code into bytecode.
- To execute Java bytecode on the JVM.
- To provide tools for developing Java applications.
- To provide a development environment for writing Java code.