Upwork Dot Net Fundamentals Test 2016
108 Answered Test Questions:
1. Which of the following are included in a Static assembly?
Answers:
a. Modules
a. Type metadata
a. MSIL code
a. Assembly manifest
2. Which of the following are the main goals behind ADO .NET?
Answers:
a. To provide seamless support for XML
a. To support COM directly
a. To provide an expandable and scalable data access architecture for the revolutionary n-tier programming model
a. To extend the current capabilities of ADO
3. Application domains are created by:
Answers:
a. Windows shell
a. ASP.Net
a. IE
a. None of the above
4. Which of the following are correct about delegates?
Answers:
a. A delegate is an object that refers to a subroutine, function or other method
a. A delegate variable acts as a pointer to a subroutine or function
a. A delegate can not hold the address of a class’s shared method
a. Delegate variables are sometimes called type-safe function pointers
5. Which of the following protocols can be used for .Net Remoting?
Answers:
a. TCP
a. HTTP
a. SMTP
a. All of the above
6. Which of the following is correct for value and reference types in .NET?
Answers:
a. Value types directly contain their data
a. Reference types store a reference to the value’s memory address
a. Value types can be built-in but can’t be user-defined
a. All of the above
7. Which of these are runtime hosts in .Net Framework?
Answers:
a. CLR
a. IE
a. IIS
a. ASP.NET
8. Which of the following run In-Process?
Answers:
a. EXE file
a. Resx file
a. DLL file
a. OCX file
9. A manifest includes the following data about the assembly
Answers:
a. File list
a. None
a. Referenced assemblies
a. MSIL information
10. The Process of automatic memory management involves the following tasks:
Answers:
a. Allocating memory
a. Registering memory
a. Implementing finalizers
a. Using destroy
11. A standard Windows PE file is divided into a number of sections. Which of the following are not valid native image sections?
Answers:
a. .textdata
a. .data
a. .rpdata
a. .rsrc
12. Which of the following statements is true?
Answers:
a. You can access managed data from managed code
a. You can access managed data from managed and unmanaged code
a. Managed code can access both managed and unmanaged data
a. Managed code cannot access both managed and unmanaged data
13. Which of the following methods are used to stop a thread?
Answers:
a. Thread.Interrupt()
a. Thread.Suspend()
a. Thread.Sleep()
a. Thread.Abort()
14. ___________ class grants the permission to manipulate files located in the code assemblies, to code assemblies that match the membership condition.
Answers:
a. FileCodeGroup
a. FirstMatchCodeGroup
a. CodeFileGroup
a. CodeGroup
15. Which of the following statements is correct with regard to .NET framework managed web pages?
Answers:
a. They interact directly with the runtime
a. They do not execute in the native code language
a. They are interpreted and scripted
a. All of the above
16. Which of the following protocols can be used for ASP.Net Web Services?
Answers:
a. TCP
a. HTTP
a. SMTP
a. All of the above
17. When are AssemblyHash values used?
Answers:
a. They are used throughout the common language runtime to detect a change in assembly contents
a. They are used in the Common type system for type safety
a. They are used to change the metadata information in assemblies
18. In.NET generics, the type parameter:
Answers:
a. Needs to be constrained in container classes
a. Needs to be constrained in all the classes
a. Cannot be constrained in container classes
a. Cannot be constrained in any class
19. How many classes can a single .NET DLL contain?
Answers:
a. 10
a. 20
a. Unlimited
a. 5
20. Where is the Shared assembly generally stored?
Answers:
a. Application’s directory
a. Global assembly cache
a. C drive
a. None of the above
21. Which of the following is not correct with regard to shared assembly?
Answers:
a. Its version can be controlled by the author only
a. It can be shared by many applications
a. It must get registered with the machine registry
a. It is installed in the global assembly cache
22. Which Portable Executable (PE) file does not contain the assembly manifest?
Answers:
a. Executable
a. DLL
a. Module
a. ALL
23. In .NET framework, what are the options available for packaging?
Answers:
a. CAB
a. EXE
a. MSI
a. All of the above
24. Which of the following are public methods of System.Object?
Answers:
a. GetHashCode()
a. GetType()
a. Equals()
a. All of the above
25. Which of the following helps expose COM components to the .NET framework?
Answers:
a. RCW
a. CCA
a. CWA
a. CCW
26. Which of the following tools can be used to get the metadata information about the assembly and view IL code?
Answers:
a. soapsuds.exe
a. lldasm.exe
a. al.exe
a. PerfMon.exe
a. SN.exe
27. Which of the following tools assists Assembly Signing?
Answers:
a. CASPol.exe
a. PerfMon.exe
a. SN.exe
a. soapsuds.exe
28. In which file can you define the “Process Model” attribute?
Answers:
a. Web.config
a. Machine.config
a. In both files
a. In neither file
29. C# has a keyword called int. Which .NET type does this map to?
Answers:
a. System.Int16
a. System.Int32
a. System.Int64
a. System.Int128
30. Which of the options is being referred to in the following statement:
Answers:
a. Modules
a. Type metadata
a. MSIL code
a. Assembly manifest
2. Which of the following are the main goals behind ADO .NET?
Answers:
a. To provide seamless support for XML
a. To support COM directly
a. To provide an expandable and scalable data access architecture for the revolutionary n-tier programming model
a. To extend the current capabilities of ADO
3. Application domains are created by:
Answers:
a. Windows shell
a. ASP.Net
a. IE
a. None of the above
4. Which of the following are correct about delegates?
Answers:
a. A delegate is an object that refers to a subroutine, function or other method
a. A delegate variable acts as a pointer to a subroutine or function
a. A delegate can not hold the address of a class’s shared method
a. Delegate variables are sometimes called type-safe function pointers
5. Which of the following protocols can be used for .Net Remoting?
Answers:
a. TCP
a. HTTP
a. SMTP
a. All of the above
6. Which of the following is correct for value and reference types in .NET?
Answers:
a. Value types directly contain their data
a. Reference types store a reference to the value’s memory address
a. Value types can be built-in but can’t be user-defined
a. All of the above
7. Which of these are runtime hosts in .Net Framework?
Answers:
a. CLR
a. IE
a. IIS
a. ASP.NET
8. Which of the following run In-Process?
Answers:
a. EXE file
a. Resx file
a. DLL file
a. OCX file
9. A manifest includes the following data about the assembly
Answers:
a. File list
a. None
a. Referenced assemblies
a. MSIL information
10. The Process of automatic memory management involves the following tasks:
Answers:
a. Allocating memory
a. Registering memory
a. Implementing finalizers
a. Using destroy
11. A standard Windows PE file is divided into a number of sections. Which of the following are not valid native image sections?
Answers:
a. .textdata
a. .data
a. .rpdata
a. .rsrc
12. Which of the following statements is true?
Answers:
a. You can access managed data from managed code
a. You can access managed data from managed and unmanaged code
a. Managed code can access both managed and unmanaged data
a. Managed code cannot access both managed and unmanaged data
13. Which of the following methods are used to stop a thread?
Answers:
a. Thread.Interrupt()
a. Thread.Suspend()
a. Thread.Sleep()
a. Thread.Abort()
14. ___________ class grants the permission to manipulate files located in the code assemblies, to code assemblies that match the membership condition.
Answers:
a. FileCodeGroup
a. FirstMatchCodeGroup
a. CodeFileGroup
a. CodeGroup
15. Which of the following statements is correct with regard to .NET framework managed web pages?
Answers:
a. They interact directly with the runtime
a. They do not execute in the native code language
a. They are interpreted and scripted
a. All of the above
16. Which of the following protocols can be used for ASP.Net Web Services?
Answers:
a. TCP
a. HTTP
a. SMTP
a. All of the above
17. When are AssemblyHash values used?
Answers:
a. They are used throughout the common language runtime to detect a change in assembly contents
a. They are used in the Common type system for type safety
a. They are used to change the metadata information in assemblies
18. In.NET generics, the type parameter:
Answers:
a. Needs to be constrained in container classes
a. Needs to be constrained in all the classes
a. Cannot be constrained in container classes
a. Cannot be constrained in any class
19. How many classes can a single .NET DLL contain?
Answers:
a. 10
a. 20
a. Unlimited
a. 5
20. Where is the Shared assembly generally stored?
Answers:
a. Application’s directory
a. Global assembly cache
a. C drive
a. None of the above
21. Which of the following is not correct with regard to shared assembly?
Answers:
a. Its version can be controlled by the author only
a. It can be shared by many applications
a. It must get registered with the machine registry
a. It is installed in the global assembly cache
22. Which Portable Executable (PE) file does not contain the assembly manifest?
Answers:
a. Executable
a. DLL
a. Module
a. ALL
23. In .NET framework, what are the options available for packaging?
Answers:
a. CAB
a. EXE
a. MSI
a. All of the above
24. Which of the following are public methods of System.Object?
Answers:
a. GetHashCode()
a. GetType()
a. Equals()
a. All of the above
25. Which of the following helps expose COM components to the .NET framework?
Answers:
a. RCW
a. CCA
a. CWA
a. CCW
26. Which of the following tools can be used to get the metadata information about the assembly and view IL code?
Answers:
a. soapsuds.exe
a. lldasm.exe
a. al.exe
a. PerfMon.exe
a. SN.exe
27. Which of the following tools assists Assembly Signing?
Answers:
a. CASPol.exe
a. PerfMon.exe
a. SN.exe
a. soapsuds.exe
28. In which file can you define the “Process Model” attribute?
Answers:
a. Web.config
a. Machine.config
a. In both files
a. In neither file
29. C# has a keyword called int. Which .NET type does this map to?
Answers:
a. System.Int16
a. System.Int32
a. System.Int64
a. System.Int128
30. Which of the options is being referred to in the following statement:
“All incoming requests are processed by a single server object”
Answers:
a. SingleCall
a. Client-activated object
a. Singleton
a. None of these
31. A user application-domain can be created:
Answers:
a. Automatically
a. By using a static method “CreateAppDomain”
a. By using a static method “CreateDomain”
a. By using a non static method “CreateAppDomain”
32. The global assembly cache:
Answers:
a. Can store two dll files with the same name
a. Can store two dll files with the same name, but different version
a. Can store two dll files with the same name and same version
a. Can not store dll files with the same name
33. What does Managed Data refer to?
Answers:
a. The data stored by CLR
a. The data allocated by CLR GC
a. The data de-allocated by CLR GC
a. The data allocated and de-allocated by CLR GC
34. Which tool can you use to register managed types with the Windows registry?
Answers:
a. SN.exe
a. Regasm.exe
a. lldasm.exe
a. none
35. Which of the following files is used to implement application and session level events?
Answers:
a. Global.asax
a. Web.config
a. Machine.config
a. None of the above
36. Which of these classes are used for loading an assembly into an application domain?
Answers:
a. System.Configuration.Assemblies
a. system.componentModel
a. System.Resources
a. System.AppDomain
37. Which of the following tools can be used to modify and grant permissions to code groups?
Answers:
a. Soapsuds.exe
a. Lldasm.exe
a. CASPol.exe
a. PerfMon.exe
a. SN.exe
38. Which of the following does not use metadata?
Answers:
a. CLR
a. CTS
a. JIT compilers
a. Class loader
a. None of the above
39. Which of the following functionalities does System.Diagnostics class provide?
Answers:
a. Reflection
a. Trace
a. Manage code
a. Remoting
40. An application can have any number of modules and files. Which of the following is used to link them together into a single assembly?
Answers:
a. al.exe
a. ac.exe
a. bl.exe
a. ad.exe
41. What is the command “caspol -lg” used for?
Answers:
a. To see the private assemblies
a. To see the assemblies in GAC
a. To see the code groups defined on your system
a. To see the metadata information
42. Which of the following is a must for a private assembly?
Answers:
a. Cryptographically strong name
a. Unique name
a. Cryptographically Light name
a. Global assembly cache
43. Code Manager is a the part of:
Answers:
a. CTS
a. CLI
a. CLS
a. CLR
44. Why doesn’t .Net runtime offer deterministic destruction?
Answers:
a. Due to CTS
a. Due to Finalize class
a. Due to garbage collection algorithm
a. Due to the JIT
45. Consider the following two statements and choose the most appropriate option:
Answers:
a. SingleCall
a. Client-activated object
a. Singleton
a. None of these
31. A user application-domain can be created:
Answers:
a. Automatically
a. By using a static method “CreateAppDomain”
a. By using a static method “CreateDomain”
a. By using a non static method “CreateAppDomain”
32. The global assembly cache:
Answers:
a. Can store two dll files with the same name
a. Can store two dll files with the same name, but different version
a. Can store two dll files with the same name and same version
a. Can not store dll files with the same name
33. What does Managed Data refer to?
Answers:
a. The data stored by CLR
a. The data allocated by CLR GC
a. The data de-allocated by CLR GC
a. The data allocated and de-allocated by CLR GC
34. Which tool can you use to register managed types with the Windows registry?
Answers:
a. SN.exe
a. Regasm.exe
a. lldasm.exe
a. none
35. Which of the following files is used to implement application and session level events?
Answers:
a. Global.asax
a. Web.config
a. Machine.config
a. None of the above
36. Which of these classes are used for loading an assembly into an application domain?
Answers:
a. System.Configuration.Assemblies
a. system.componentModel
a. System.Resources
a. System.AppDomain
37. Which of the following tools can be used to modify and grant permissions to code groups?
Answers:
a. Soapsuds.exe
a. Lldasm.exe
a. CASPol.exe
a. PerfMon.exe
a. SN.exe
38. Which of the following does not use metadata?
Answers:
a. CLR
a. CTS
a. JIT compilers
a. Class loader
a. None of the above
39. Which of the following functionalities does System.Diagnostics class provide?
Answers:
a. Reflection
a. Trace
a. Manage code
a. Remoting
40. An application can have any number of modules and files. Which of the following is used to link them together into a single assembly?
Answers:
a. al.exe
a. ac.exe
a. bl.exe
a. ad.exe
41. What is the command “caspol -lg” used for?
Answers:
a. To see the private assemblies
a. To see the assemblies in GAC
a. To see the code groups defined on your system
a. To see the metadata information
42. Which of the following is a must for a private assembly?
Answers:
a. Cryptographically strong name
a. Unique name
a. Cryptographically Light name
a. Global assembly cache
43. Code Manager is a the part of:
Answers:
a. CTS
a. CLI
a. CLS
a. CLR
44. Why doesn’t .Net runtime offer deterministic destruction?
Answers:
a. Due to CTS
a. Due to Finalize class
a. Due to garbage collection algorithm
a. Due to the JIT
45. Consider the following two statements and choose the most appropriate option:
Statement 1: Value types are allocated on a stack
Statement 2: Reference types are allocated on a managed CLR Heap
Answers:
a. Statement 1 is true and statement 2 is false
a. Statement 2 is true and statement 1 is false
a. Both statements 1 and 2 are true
a. Both statements 1 and 2 are false
46. Which of the following is used to notify all waiting threads of a change in the object’s state?
Answers:
a. The system.Threading.Monitor.ReferenceEquals method
a. The system.Threading.Monitor.Enter method
a. The system.Threading.Monitor.PulseAll method
a. The system.Threading.Monitor.TryEnter method
47. Which of the following manages the code during execution?
Answers:
a. Coding Manager
a. JIT
a. COde Manager
a. Coder Manager
48. Which type of parameter is passed in subroutines by default?
Answers:
a. ByRef
a. ByVal
49. Which of the following is not a member of the Exception class?
Answers:
a. StackTraceID
a. Message
a. InnerException
a. TargetSite
50. Which transport protocol is used to call a Web Service?
Answers:
a. SOAP
a. HTTP
a. SMTP
a. ALL
51. How many application domains can exist inside a Win32 process?
Answers:
a. 1
a. 2
a. Any number
a. 4
52. Which of the following helps Assemblies become self describing?:
Answers:
a. JIT
a. Manifest
a. CTS
a. Application Domain
53. How will you use the thread pool?
Answers:
a. By calling the ThreadPool.UserQueueWorkItem() method directly
a. By passing an instance of WaitCallback delegate to the ThreadPool.QueueUserWorkItem() method
a. By passing an instance of WaitCallback delegate to the ThreadPool.UserQueueWorkItem() method
a. By passing an instance of StayCallback delegate to the ThreadPool.QueueUserWorkItem() method
54. The runtime is started automatically by ______________ when the .exe is run.
Answers:
a. mscore.dll
a. mscoree.dll
a. mscor.dll
a. mscoren.dll
55. Because .NET treats all languages as equal, a class written in C# should be equivalent to a class written in VB.NET, and an interface defined in Managed C++ should be exactly the same as one that is specified in Managed COBOL. Languages must agree on the meanings of these concepts before they can integrate with one another.
Statement 2: Reference types are allocated on a managed CLR Heap
Answers:
a. Statement 1 is true and statement 2 is false
a. Statement 2 is true and statement 1 is false
a. Both statements 1 and 2 are true
a. Both statements 1 and 2 are false
46. Which of the following is used to notify all waiting threads of a change in the object’s state?
Answers:
a. The system.Threading.Monitor.ReferenceEquals method
a. The system.Threading.Monitor.Enter method
a. The system.Threading.Monitor.PulseAll method
a. The system.Threading.Monitor.TryEnter method
47. Which of the following manages the code during execution?
Answers:
a. Coding Manager
a. JIT
a. COde Manager
a. Coder Manager
48. Which type of parameter is passed in subroutines by default?
Answers:
a. ByRef
a. ByVal
49. Which of the following is not a member of the Exception class?
Answers:
a. StackTraceID
a. Message
a. InnerException
a. TargetSite
50. Which transport protocol is used to call a Web Service?
Answers:
a. SOAP
a. HTTP
a. SMTP
a. ALL
51. How many application domains can exist inside a Win32 process?
Answers:
a. 1
a. 2
a. Any number
a. 4
52. Which of the following helps Assemblies become self describing?:
Answers:
a. JIT
a. Manifest
a. CTS
a. Application Domain
53. How will you use the thread pool?
Answers:
a. By calling the ThreadPool.UserQueueWorkItem() method directly
a. By passing an instance of WaitCallback delegate to the ThreadPool.QueueUserWorkItem() method
a. By passing an instance of WaitCallback delegate to the ThreadPool.UserQueueWorkItem() method
a. By passing an instance of StayCallback delegate to the ThreadPool.QueueUserWorkItem() method
54. The runtime is started automatically by ______________ when the .exe is run.
Answers:
a. mscore.dll
a. mscoree.dll
a. mscor.dll
a. mscoren.dll
55. Because .NET treats all languages as equal, a class written in C# should be equivalent to a class written in VB.NET, and an interface defined in Managed C++ should be exactly the same as one that is specified in Managed COBOL. Languages must agree on the meanings of these concepts before they can integrate with one another.
Which of the following provides the specifications for this?
Answers:
a. CLS
a. CTS
a. MSIL
a. CLI
56. .Net assembly stores both data and IL code. A tool is available along with the .NET framework to view within the PE. Which of the following is that tool?
Answers:
a. ildasm.exe
a. disasm.exe
a. deassmbler.exe
a. deasm.exe
57. Which of the following services are provided by CLR?
Answers:
a. Application memory isolation
a. Code Management
a. Verification of type safety
a. Conversion of IL to native code
a. All of the above
58. Which of these files is used for debugging an application?
Answers:
a. demo.dll
a. demo.pdb
a. demo.res
a. Any of these can be used
59. Compilers of CLS compliant language generate:
Answers:
a. MSIL code and Metadata
a. MSIL code
a. Metadata
a. Machine code
60. Which of these is used to allow managed code to interoperate with unmanaged code?
Answers:
a. COM
a. COM Marshaler
a. XML
a. SOAP
61. Which of the following statements is correct.
(a)A Try block must include Catch or Finally sections.
(b)Using an empty Finally section is illegal.
Answers:
a. Only (a) is true
a. Only (b) is true
a. Both (a) and (b) are false
a. Both (a) and (b) are true
62. The _________________ methods are primarily meant for COM Interoperability use.
Answers:
a. System.AppDomain.ApplyPolicy
a. System.AppDomain.CreateComInstanceFrom
a. System.AppDomain.Load
a. System.AppDomain.GetAssemblies
63. How does CLR allow multiple applications to be run in a single process?
Answers:
a. By running them in a special application domain
a. By making sub process for each process
a. By loading them in separate application domains
a. None of the above
64. _____________ helped overcome the DLL conflict (faced by the versions prior to .NET).
Answers:
a. Strong-named assemblies
a. Version-aware code storage
a. Components executing in isolation
a. All of the above
65. __________ is used to generate the assembly from modules.
Answers:
a. soapsuds.exe
a. lldasm.exe
a. al.exe
a. PerfMon.exe
a. SN.exe
66. Which of the following is used as a Serializer for the web services?
Answers:
a. XmlSerializer
a. SoapSerializer
a. BinaryFormatter
a. SoapFormatter
67. The IL to native code compilation is done by:
Answers:
a. Code Manager
a. CTS
a. JIT
a. CLS
68. ____ is a subset of the CTS.
Answers:
a. CLI
a. cLS
a. CLR
a. None of these
69. Which of the following is valid and is included in the type definition?
Answers:
a. Any attribute that is defined in the type
a. The name of the type
a. The visibility of the type
a. The base types of the type
a. All of the above
a. None of the above
70. Which of the following statements is correct?
Answers:
a. For in-process communication between contexts within a single application domain, Serialization is used as an interception mechanism.
a. For in-process communication between contexts within a single application domain, Marshaling is used as an interception mechanism.
a. For in-process communication between contexts within a single application domain, Proxies are used as an interception mechanism.
a. All of the above
71. Which of the following are used in combination to create the identity of an assembly?
Answers:
a. Assembly name
a. Version
a. Culture
a. Public key
a. All of the above
72. Which of these Assemblies is used for doing Localization?
Answers:
a. Private
a. Public
a. Satellite
a. Both Public and Private
73. Which of the following is not a feature of .NET 2.0?
Answers:
a. Partial classes
a. Generics
a. Multiple Inheritance
a. Partial Methods
74. ___________ namespace is not defined in the base class library.
Answers:
a. System
a. System.CodeDom
a. System.IO
a. System.Threading
a. System.Text
75. Since .NET assemblies contain IL code, your proprietary algorithms can be seen by anyone. Which of the following tools protects your intellectual properties?
Answers:
a. Obfuscator
a. Befprotector
a. Obadministrator
a. Befmanager
76. For MSIL code to be executed in PE file, it is necessary to have:
Answers:
a. Assembly manifest
a. Modules
a. Files
a. Types
77. __________ assembly can be used to deploy language-specific resources for an application.
Answers:
a. Shared
a. Private
a. Satellite
a. Public
78. Which of the following can you use to resolve assemblies, types, and resources?
Answers:
a. System.AppDomain.CreateDomain
a. System.AppDomainSetup.ApplicationBase
a. System.AppDomainSetup.CreateComInstanceFrom
a. System.AppDomain.ApplyPolicy
79. .NET components are accessed from COM via a?
Answers:
a. RCW
a. CCA
a. CWA
a. CCW
80. How will you prevent concurrent access to your data?
Answers:
a. By using System.Threading.ThreadStart
a. By using System.Threading.Monitor.Enter/Exit methods
a. By using System.Threading.Monitor.start/End methods
a. By using System.Threading.ThreadEnter
81. Which of the following is correct for CTS?
Answers:
a. It establishes a framework that helps enable cross-language integration, type safety, and high performance code execution
a. It provides an object-oriented model that supports the complete implementation of many programming languages
a. It defines rules that languages must follow, which helps ensure that objects written in different languages can interact with each other
a. All of the above
82. Delay signing allows a shared assembly to be signed with:
Answers:
a. Private key at the initial stage
a. Private and Public key at the initial stage
a. Private key at a later stage
a. Public key at a later stage
83. What happens when enough memory is not available to be allocated to an object?
Answers:
a. MemoryFull exception is thrown
a. Garbage collector is automatically run to free up memory
a. OutOfMemory exception is thrown
a. The .Net worker process is restarted
84. You can create the remote application domain using:
Answers:
a. AppDomain.BuldDomain
a. AppDomain.MakeDomain
a. AppDomain.CreateDomain
a. AppDomain.GenerateDomain
85. Which base class do all web forms inherit from?
Answers:
a. System.Web.UI.Page
a. System.Web.UI.HtmlControls
a. System.Web.UI.WebControls
a. None of the above
86. Where is the application domain created?
Answers:
a. Outside a Process
a. Inside a Process
a. Can be created in both the places
a. None of the above
87. Microsoft .NET supports value types for performance reasons, but everything in .NET is ultimately an object. Value types are allocated on the stack by default, but they can always be converted into a heap-based, reference-type object.
What is this conversion called?
Answers:
a. Conving
a. Boxing
a. TypeModification
a. None of the above
88. A hashtable is serialized by using:
Answers:
a. XmlSerializer or SoapFormatter
a. XmlSerializer
a. SoapFormatter
a. XmlSerializer and SoapFormatter
89. The .NET framework comes with a few CLR hosts. Which of the following is a CLR host?
Answers:
a. ASP.NET
a. IE
a. Shell Executables
a. All of the above
90. Which of the following code is not ‘managed’ by default in .NET framework?
Answers:
a. Visual Basic
a. C#
a. C++
a. Jscript
91. .NET provides a distributed process framework. Which of the following technologies are used for similar function?
Answers:
a. Java Remote Method Invocation
a. Microsoft Distributed Component Object Model
a. Common Object Request Broker Architecture
a. Remote Procedure Calls
92. Which of the following is used to do garbage collection?
Answers:
a. gc.Collect
a. gc.KeepAlive
a. gc.SuppressFinalize
93. How many bits does the int datatype use in .NET?
Answers:
a. 16 bits
a. 32 bits
a. 64 bits
a. None of the above
94. Which of the following tools can be used to configure assemblies located in the GAC?
Answers:
a. Soapsuds.exe
a. Lldasm.exe
a. CASPol.exe
a. Mscorcfg.msc
a. SN.exe
95. You assigned the version number – 5.3.1.0 to your assembly.
Answers:
a. CLS
a. CTS
a. MSIL
a. CLI
56. .Net assembly stores both data and IL code. A tool is available along with the .NET framework to view within the PE. Which of the following is that tool?
Answers:
a. ildasm.exe
a. disasm.exe
a. deassmbler.exe
a. deasm.exe
57. Which of the following services are provided by CLR?
Answers:
a. Application memory isolation
a. Code Management
a. Verification of type safety
a. Conversion of IL to native code
a. All of the above
58. Which of these files is used for debugging an application?
Answers:
a. demo.dll
a. demo.pdb
a. demo.res
a. Any of these can be used
59. Compilers of CLS compliant language generate:
Answers:
a. MSIL code and Metadata
a. MSIL code
a. Metadata
a. Machine code
60. Which of these is used to allow managed code to interoperate with unmanaged code?
Answers:
a. COM
a. COM Marshaler
a. XML
a. SOAP
61. Which of the following statements is correct.
(a)A Try block must include Catch or Finally sections.
(b)Using an empty Finally section is illegal.
Answers:
a. Only (a) is true
a. Only (b) is true
a. Both (a) and (b) are false
a. Both (a) and (b) are true
62. The _________________ methods are primarily meant for COM Interoperability use.
Answers:
a. System.AppDomain.ApplyPolicy
a. System.AppDomain.CreateComInstanceFrom
a. System.AppDomain.Load
a. System.AppDomain.GetAssemblies
63. How does CLR allow multiple applications to be run in a single process?
Answers:
a. By running them in a special application domain
a. By making sub process for each process
a. By loading them in separate application domains
a. None of the above
64. _____________ helped overcome the DLL conflict (faced by the versions prior to .NET).
Answers:
a. Strong-named assemblies
a. Version-aware code storage
a. Components executing in isolation
a. All of the above
65. __________ is used to generate the assembly from modules.
Answers:
a. soapsuds.exe
a. lldasm.exe
a. al.exe
a. PerfMon.exe
a. SN.exe
66. Which of the following is used as a Serializer for the web services?
Answers:
a. XmlSerializer
a. SoapSerializer
a. BinaryFormatter
a. SoapFormatter
67. The IL to native code compilation is done by:
Answers:
a. Code Manager
a. CTS
a. JIT
a. CLS
68. ____ is a subset of the CTS.
Answers:
a. CLI
a. cLS
a. CLR
a. None of these
69. Which of the following is valid and is included in the type definition?
Answers:
a. Any attribute that is defined in the type
a. The name of the type
a. The visibility of the type
a. The base types of the type
a. All of the above
a. None of the above
70. Which of the following statements is correct?
Answers:
a. For in-process communication between contexts within a single application domain, Serialization is used as an interception mechanism.
a. For in-process communication between contexts within a single application domain, Marshaling is used as an interception mechanism.
a. For in-process communication between contexts within a single application domain, Proxies are used as an interception mechanism.
a. All of the above
71. Which of the following are used in combination to create the identity of an assembly?
Answers:
a. Assembly name
a. Version
a. Culture
a. Public key
a. All of the above
72. Which of these Assemblies is used for doing Localization?
Answers:
a. Private
a. Public
a. Satellite
a. Both Public and Private
73. Which of the following is not a feature of .NET 2.0?
Answers:
a. Partial classes
a. Generics
a. Multiple Inheritance
a. Partial Methods
74. ___________ namespace is not defined in the base class library.
Answers:
a. System
a. System.CodeDom
a. System.IO
a. System.Threading
a. System.Text
75. Since .NET assemblies contain IL code, your proprietary algorithms can be seen by anyone. Which of the following tools protects your intellectual properties?
Answers:
a. Obfuscator
a. Befprotector
a. Obadministrator
a. Befmanager
76. For MSIL code to be executed in PE file, it is necessary to have:
Answers:
a. Assembly manifest
a. Modules
a. Files
a. Types
77. __________ assembly can be used to deploy language-specific resources for an application.
Answers:
a. Shared
a. Private
a. Satellite
a. Public
78. Which of the following can you use to resolve assemblies, types, and resources?
Answers:
a. System.AppDomain.CreateDomain
a. System.AppDomainSetup.ApplicationBase
a. System.AppDomainSetup.CreateComInstanceFrom
a. System.AppDomain.ApplyPolicy
79. .NET components are accessed from COM via a?
Answers:
a. RCW
a. CCA
a. CWA
a. CCW
80. How will you prevent concurrent access to your data?
Answers:
a. By using System.Threading.ThreadStart
a. By using System.Threading.Monitor.Enter/Exit methods
a. By using System.Threading.Monitor.start/End methods
a. By using System.Threading.ThreadEnter
81. Which of the following is correct for CTS?
Answers:
a. It establishes a framework that helps enable cross-language integration, type safety, and high performance code execution
a. It provides an object-oriented model that supports the complete implementation of many programming languages
a. It defines rules that languages must follow, which helps ensure that objects written in different languages can interact with each other
a. All of the above
82. Delay signing allows a shared assembly to be signed with:
Answers:
a. Private key at the initial stage
a. Private and Public key at the initial stage
a. Private key at a later stage
a. Public key at a later stage
83. What happens when enough memory is not available to be allocated to an object?
Answers:
a. MemoryFull exception is thrown
a. Garbage collector is automatically run to free up memory
a. OutOfMemory exception is thrown
a. The .Net worker process is restarted
84. You can create the remote application domain using:
Answers:
a. AppDomain.BuldDomain
a. AppDomain.MakeDomain
a. AppDomain.CreateDomain
a. AppDomain.GenerateDomain
85. Which base class do all web forms inherit from?
Answers:
a. System.Web.UI.Page
a. System.Web.UI.HtmlControls
a. System.Web.UI.WebControls
a. None of the above
86. Where is the application domain created?
Answers:
a. Outside a Process
a. Inside a Process
a. Can be created in both the places
a. None of the above
87. Microsoft .NET supports value types for performance reasons, but everything in .NET is ultimately an object. Value types are allocated on the stack by default, but they can always be converted into a heap-based, reference-type object.
What is this conversion called?
Answers:
a. Conving
a. Boxing
a. TypeModification
a. None of the above
88. A hashtable is serialized by using:
Answers:
a. XmlSerializer or SoapFormatter
a. XmlSerializer
a. SoapFormatter
a. XmlSerializer and SoapFormatter
89. The .NET framework comes with a few CLR hosts. Which of the following is a CLR host?
Answers:
a. ASP.NET
a. IE
a. Shell Executables
a. All of the above
90. Which of the following code is not ‘managed’ by default in .NET framework?
Answers:
a. Visual Basic
a. C#
a. C++
a. Jscript
91. .NET provides a distributed process framework. Which of the following technologies are used for similar function?
Answers:
a. Java Remote Method Invocation
a. Microsoft Distributed Component Object Model
a. Common Object Request Broker Architecture
a. Remote Procedure Calls
92. Which of the following is used to do garbage collection?
Answers:
a. gc.Collect
a. gc.KeepAlive
a. gc.SuppressFinalize
93. How many bits does the int datatype use in .NET?
Answers:
a. 16 bits
a. 32 bits
a. 64 bits
a. None of the above
94. Which of the following tools can be used to configure assemblies located in the GAC?
Answers:
a. Soapsuds.exe
a. Lldasm.exe
a. CASPol.exe
a. Mscorcfg.msc
a. SN.exe
95. You assigned the version number – 5.3.1.0 to your assembly.
The four digits stand for:
Answers:
a. Revision, Built, Major Version, and Minor version
a. Revision, Built, Minor Version, and Major version
a. Built, Major version, Minor Version, and Revision
a. Major version, Minor Version, Built, and Revision
96. Which of the following is not correct about parameter arrays?
Answers:
a. A subroutine can have any numbers of parameter arrays
a. A parameter array must come last in the parameter list
a. All parameter lists are declared as ByVal
a. Parameter array values are implicitly optional
97. Which of the following is incorrect about Structures?
Answers:
a. Structures are value types
a. A structure can provide a constructor
a. Structures can implement inheritance
a. Structures support events
98. Which of the following is not a valid inheritance_mode?
Answers:
a. Overloads
a. Overrides
a. Overridable
a. MustOverridable
a. None of the above
99. In .NET framework, Reflection is used to:
Answers:
a. Create metadata of the modules/assemblies
a. Get metadata of the modules/assemblies
a. Reengineer the corrupted assemblies
a. Destroy the corrupted assemblies
100. Xcopy method is not sufficient for deployment:
Answers:
a. When application relies on shared assemblies
a. When application is downloaded on demand
a. When the number of assemblies is too large
a. None of the above
101. Dot Net Framework consists of :
Answers:
a. Common language runtime
a. Set of class libraries
a. Common language runtime and set of class libraries
a. Common language runtime, set of class Libraries, and ADO.NET
102. Which of the following statements is not correct with regard to .NET assemblies?
Answers:
a. Static assemblies can include classes, JPEG files, resource files etc.
a. Static assemblies are stored on disk in PE files.
a. The .NET Framework can create dynamic assemblies
a. Dynamic assemblies are automatically saved to disk before execution
103. Which of the following statements is correct with regard to Windows process memory allocation?
Answers:
a. Each process (instance of an application) gets its own RAM and prevents the OS from crashing when the process crashes
a. RAM is shared between the processes and saves OS crash with the process crash
a. Each process gets its own RAM and causes OS to crash with the process crash
a. RAM is shared between the processes and causes OS to crash with the process crash
104. The code written to target common language runtime services is called :
Answers:
a. Generated Code
a. Managed Code
a. Unmanaged Code
a. CLR Code
a. Service Code
105. Which of the following should you use to serialize instances of a class?
Answers:
a. XMlSerializer
a. It depends on the situtaion
a. SoapFormatter
a. BinaryFormatter
106. What are the core components of .NET framework data provider model?
Answers:
a. DataAdapter and DataReader
a. Connection and Command
a. DataAdapter, Connection, and Command
a. DataAdapter , DataReader, Connection, and Command
107. Which of the following can not be used with files?
Answers:
a. FileClose
a. FileInput
a. LineInput
a. LOF
a. PrintLine
108. ____________ class defines the set of information that constitutes input to security policy decisions in System.Security.Policy namespace.
Answers:
a. FileCodeGroup
a. ApplicationTrust
a. Evidence
a. PolicyLevel
a. PolicyStatement
Answers:
a. Revision, Built, Major Version, and Minor version
a. Revision, Built, Minor Version, and Major version
a. Built, Major version, Minor Version, and Revision
a. Major version, Minor Version, Built, and Revision
96. Which of the following is not correct about parameter arrays?
Answers:
a. A subroutine can have any numbers of parameter arrays
a. A parameter array must come last in the parameter list
a. All parameter lists are declared as ByVal
a. Parameter array values are implicitly optional
97. Which of the following is incorrect about Structures?
Answers:
a. Structures are value types
a. A structure can provide a constructor
a. Structures can implement inheritance
a. Structures support events
98. Which of the following is not a valid inheritance_mode?
Answers:
a. Overloads
a. Overrides
a. Overridable
a. MustOverridable
a. None of the above
99. In .NET framework, Reflection is used to:
Answers:
a. Create metadata of the modules/assemblies
a. Get metadata of the modules/assemblies
a. Reengineer the corrupted assemblies
a. Destroy the corrupted assemblies
100. Xcopy method is not sufficient for deployment:
Answers:
a. When application relies on shared assemblies
a. When application is downloaded on demand
a. When the number of assemblies is too large
a. None of the above
101. Dot Net Framework consists of :
Answers:
a. Common language runtime
a. Set of class libraries
a. Common language runtime and set of class libraries
a. Common language runtime, set of class Libraries, and ADO.NET
102. Which of the following statements is not correct with regard to .NET assemblies?
Answers:
a. Static assemblies can include classes, JPEG files, resource files etc.
a. Static assemblies are stored on disk in PE files.
a. The .NET Framework can create dynamic assemblies
a. Dynamic assemblies are automatically saved to disk before execution
103. Which of the following statements is correct with regard to Windows process memory allocation?
Answers:
a. Each process (instance of an application) gets its own RAM and prevents the OS from crashing when the process crashes
a. RAM is shared between the processes and saves OS crash with the process crash
a. Each process gets its own RAM and causes OS to crash with the process crash
a. RAM is shared between the processes and causes OS to crash with the process crash
104. The code written to target common language runtime services is called :
Answers:
a. Generated Code
a. Managed Code
a. Unmanaged Code
a. CLR Code
a. Service Code
105. Which of the following should you use to serialize instances of a class?
Answers:
a. XMlSerializer
a. It depends on the situtaion
a. SoapFormatter
a. BinaryFormatter
106. What are the core components of .NET framework data provider model?
Answers:
a. DataAdapter and DataReader
a. Connection and Command
a. DataAdapter, Connection, and Command
a. DataAdapter , DataReader, Connection, and Command
107. Which of the following can not be used with files?
Answers:
a. FileClose
a. FileInput
a. LineInput
a. LOF
a. PrintLine
108. ____________ class defines the set of information that constitutes input to security policy decisions in System.Security.Policy namespace.
Answers:
a. FileCodeGroup
a. ApplicationTrust
a. Evidence
a. PolicyLevel
a. PolicyStatement
No comments:
Post a Comment