1.
Which of the following abbreviations is incorrectly expanded?
Correct Answer
C. CAS - Component Authorization Specification
Explanation
CAS - Code Access Security
2.
Windows Presentation Foundation - the new user interface system was introduced with:
Correct Answer
C. .NET Framework 3.0
Explanation
Windows Presentation Foundation (WPF) is a user interface system that was introduced with the .NET Framework 3.0. It is a part of the .NET Framework and provides a framework for building visually stunning and interactive user interfaces for Windows applications. WPF introduced a new way of designing and developing user interfaces, using XAML (eXtensible Application Markup Language) to define the UI elements and their behavior. With WPF, developers can create rich and engaging user experiences, taking advantage of features like hardware acceleration, vector graphics, and animation capabilities. Therefore, the correct answer is .NET Framework 3.0.
3.
The New object Relational Mapping (ORM) framework to be introduced with Microsoft.Net 3.5 SP1 is known as:
Correct Answer
B. ADO.NET Entity Framework
Explanation
The correct answer is ADO.NET Entity Framework. This is a new object-relational mapping (ORM) framework introduced with Microsoft.Net 3.5 SP1. It allows developers to work with relational data as objects, eliminating the need for tedious and error-prone manual mapping between objects and the database. ADO.ORM, ADO.Hibernate, and ORM.ADO are not valid frameworks and do not exist.
4.
Which of the following statements is false about the Windows Communication Framework (WCF)?
Correct Answer
D. WCG support Message reliability without ordered delivery
Explanation
WCF does not support message reliability without ordered delivery. This means that if a message is sent, it will be delivered in the order it was sent and will not be lost or duplicated.
5.
Name the .NET Framework feature that can be used to add a method to pre-compiled classes without using inheritance?
Correct Answer
A. Extension methods
Explanation
Extension methods in .NET Framework allow developers to add new methods to existing pre-compiled classes without modifying or inheriting from those classes. This feature provides a way to extend the functionality of classes that are not under our control or cannot be modified. It is a convenient way to add custom methods to existing classes and improve code reusability without the need for inheritance.
6.
.NET Framework 3.5 Language Integrated Query (LINQ) support all the listed providers except:
Correct Answer
C. LINQ to ORACLE
Explanation
The .NET Framework 3.5 includes support for LINQ to Objects, LINQ to XML, and LINQ to SQL. However, it does not include built-in support for LINQ to ORACLE. LINQ to ORACLE is a third-party provider that allows developers to query Oracle databases using LINQ syntax. Therefore, the correct answer is LINQ to ORACLE.
7.
Windows Card Space support following protocols except:
Correct Answer
B. WS-Encryption
Explanation
The correct answer is WS-Encryption. Windows Card Space is a technology that provides a secure way to store and manage digital identities. It supports several protocols for securing communication, such as WS-Security, WS-SecurityPolicy, and WS-Trust. However, WS-Encryption is not supported by Windows Card Space. This protocol is used for encrypting and decrypting messages in web services, but it is not included in the list of supported protocols for Windows Card Space.
8.
Which of the following statements is correct about Managed Code?
Correct Answer
D. Managed code is the code that is written to target the services of the CLR.
Explanation
Managed code is the code that is written to target the services of the CLR (Common Language Runtime). This means that the code is designed to be executed within the CLR environment, which provides services such as memory management, security, and exception handling. The CLR compiles the managed code into an intermediate language (IL) that can be executed by the JIT (Just-In-Time) compiler. Therefore, the correct statement about Managed Code is that it is written to target the services of the CLR.
9.
Which of the following utilities can be used to compile managed assemblies into processor-specific native code?
Correct Answer
B. Ngen
Explanation
The utility that can be used to compile managed assemblies into processor-specific native code is ngen. Ngen stands for Native Image Generator, and it creates native images from managed assemblies, which can improve the performance of the application by eliminating the need for just-in-time (JIT) compilation during runtime. Native images are processor-specific, meaning they are optimized for a particular hardware architecture, resulting in faster execution. Therefore, ngen is the correct choice for compiling managed assemblies into processor-specific native code.
10.
Which of the following .NET components can be used to remove unused references from the managed heap?
Correct Answer
C. Garbage Collector
Explanation
The Garbage Collector is responsible for automatically freeing up memory by removing unused objects from the managed heap in .NET. It identifies objects that are no longer referenced by any part of the program and deallocates their memory, making it available for future use. This process helps optimize memory usage and improves the overall performance of the application. The Common Language Infrastructure (CLI) is a specification that defines the runtime environment for executing .NET applications, while the CLR (Common Language Runtime) is the implementation of the CLI. The Class Loader is responsible for loading classes into memory during runtime.