Brainbench assessments on .NET

原创 2007年09月20日 09:15:00

 

.NET Architectural Overview
.NET Utilities/Tools
Application Domains
Deployment Strategies
Features/Benefits
.NET Framework Class Library
Application Classes
Base Classes
Data Classes
.NET Metadata
Attributes
General Knowledge
Reflection
.NET Programming
Delegates and Events
Distributed Applications
Exception Handling
Generics
Multithreading and Concurrency
Security
Serialization
Transactions
Assemblies
General Knowledge
Manifests/MSIL
Portable Executable (PE) File
Versioning
CLS and CTS
Features/Benefits
Value and Reference Types
Common Language Runtime (CLR)
Features/Benefits
Garbage Collection
JIT Compilation
Runtime Hosts
 

 

 

1.         Which one of the following is NOT a valid ThreadState?
A: Unstarted   B: Background              C: Suspended        D:Terminated             E: Running
2.         Which one of the following determines where a type is stored?
A: All types larger than 64 bits are stored on the stack.
B: All types are stored on the stack.
C: The Common Language Runtime (CLR) determines whether a type is stored on the stack or heap based on space availability.
D: All types are stored on the heap.
E: If the type is a reference type, it is stored on the managed heap. A value type is stored on the stack.
3.         Which one of the following namespaces of the .NET Framework do you use to create metadata dynamically at runtime?
A: System.AppDomainSetup        B: System.Management
C: System.Reflection.Emit              D: System.Activator
E: System.Runtime
4.         Which one of the following explains how .NET Framework alleviates DLL Hell?
A: The Common Language Runtime (CLR) and Assemblies can only use the version of a component with which they were compiled.
B: The Common Language Runtime (CLR) does not allow administrators to change the version of a component that an Assembly references externally.
C: The identity and state of all managed code is maintained in the system registry at runtime.
D: The Common Language Runtime (CLR) only allows a single version of a component to be registered in the Global Assembly Cache (GAC).
E: The Common Language Runtime (CLR) and Assemblies specify and enforce versioning rules and allow side-by-side execution of a software component.
5.         When is a reference type released?
A: When the developer explicitly invokes its Finalize method
B: When the developer explicitly invokes its Dispose method
C: When the reference counter reaches 0
D: When the developer explicitly sets its value to nothing and the garbage collector moves the object to generation zero
E: When the garbage collector finds that no roots reference it during a collection
6.         Joan registers a strongly named assembly in the Global Assembly Cache (GAC). She does this so that a hash is performed on the assembly file containing the manifest with the public key, and she verifies it against the hash of the manifest created with the private key at build time.
Question: Given the scenario above, when is this comparison performed?
A: Each time the Common Language Runtime (CLR) loads the assembly
B: Each time a runtime host loads the Common Language Runtime (CLR)
C: When the assembly is registered with the GAC
D: When the sn.exe program is executed
E: When the JIT compiler in the Common Language Runtime (CLR) compiles the assembly
7.         Which one of the following public methods of a delegate is new in .NET 2.0?
A: Invoke()            B: BeginInvoke()   C: InvokeMethod()
D: EndInvoke()      E: DynamicInvoke()
8.         Brian has a custom business object model. He needs to instantiate a strongly typed collection of one of his domain objects.
Question: In which one of the following namespaces does Brian find classes suited to the task described in the scenario above?
A: System.Collections.Specialized        B: System.Collections
C: System.Data            D: System.Collections.StrongTyping           E: System.Collections.Generic
9.         In order to create a custom role based security mechanism, which one of the following interfaces do you implement?
A: ISecurityToken         B: IRoleProvider           C: IPrinciple
D: IIdentity            E: IUser
10.     Scenario:Steve wants to create a .NET application that is accessible over HTTP, offers its payload
                     in XML, and is accessible programmatically.
       Question: Given the scenario above, what type of application does Steve create?
       A: Windows console application    B: Web Service
       C: Windows Service                           D: Windows GUI application
       E: Distributed COM
11.     When enumerating over a Dictionary<T, K>, which one of the following types of objects does the enumerator return?
A: DictionaryEntry<T, K>                    B: IEnumerable<K>
C: KeyValuePair<T, K>               D: LookupEntry<T, K>
E: You cannot enumerate a Dictionary<T, K>.
12.     Which one of the following is NOT true concerning exceptions?
       A: Throwing an exception is a costly operation.  
B: All exceptions have an InnerException property.
C: Exceptions should be used to handle basic program flow.
D: You can obtain a stack trace from an exception.
E: All exceptions ultimately inherit from Exception.
13.     Scenario: Steve wants to view the underlying object type of an integer in the .NET Framework class library.
    Question: Given the scenario above, in which one of the following namespaces does Steve look?
     A: System                             B: System.Runtime
     C: System.Data                            D: Microsoft.Win32
     E: System.Reflection
14.     While the DateTime type has a variety of ways of displaying the date as a string, which one of the following is NOT a valid display option?
A: DateTime.ToDateString()         B: DateTime.ToString("dddd  MMMM %d yyyy")
C: DateTime.ToLongDateString() D: DateTime.ToShortDateString()
E: DateTime.ToString("D")
15.     Scenario: Gail wants to compile her Visual Basic .NET source code.
Question: Given the scenario above, which one of the following command-line tools does Gail use?
A: vbnet.exe                               B: cl.exe
C: vbc.exe                                 D: vb.exe
E: csc.exe
16. How do you deterministically release unmanaged resources held by a reference object?
       A: Use a destructor.                           
B: Let the garbage collector release the resources automatically.
C: Use a Finalize method.
D: Use the Release method
E: Use a Dispose method.
16.     The Common Language Runtime (CLR) is very efficient for creating objects on the managed heap for which one of the following reasons?
A: It uses a pointer to the next object location that is incremented by the size of the last object.
B: It uses linked lists to manage objects.
C: It uses a First-In-First-Out (FIFO) stack of typed pointers to manage heap objects.
D: It uses a round robin queue that has three generations.
E: It uses directed graphs to manage objects consisting of only reachable objects.
17.     Scenario: Linda has registered a strongly named assembly in the Global Assembly Cache with a higher version number than one that already has been registered
Question: Given the scenario above, which one of the following statements is true regarding the side-by-side execution of Linda's assembly?
A: The two assemblies can run at the same time, but only in different processes.
B: The two assemblies can run at the same time only if they are both registered against the COM+ catalog.
C: The two assemblies cannot run at the same time, but either one can run at any one time.
D: The two assemblies can run at the same time, but they must be in the same process.
E: The two assemblies can run at the same time, but they must be in the same application domain.

 

ibatis.net 按实体insert数据,批量insert,同时解决ON DUPLICATE KEY

一、insert 单条model(entity)动态xml如下:              insert intocartype(CarTypeId,CarTypeName,parking_id,S...
  • hddd2009
  • hddd2009
  • 2015年12月02日 20:02
  • 1910

net-snmp(5.6.1) 编译 安装 运行调试全记录

net-snmp 5.6.1 代码下载编译安装的过程相对比较简单,而且有官方的Guide,在此不再重复叙述,ubuntu 12.04 32bits/64bits 按照下面这个Guide 都测试成功了。...
  • chenqiang0721
  • chenqiang0721
  • 2013年09月13日 10:24
  • 2180

xilinx时钟问题 IBUFG

xilinx时钟问题 之前用altera没有什么问题,都是直接连接上的,  我在XILINX平台上做DDR2,需要200m的时钟信号,我就用DCM倍频了一个,直接接在DDR2的ipcore上面,出现...
  • qishi2014
  • qishi2014
  • 2015年02月28日 13:40
  • 2452

ASP.NET 安全认证(四)——巧妙实现 Form 表单认证跨站点、跨服务器的单点登录(Single Sign On)

【原创】ASP.NET 安全认证(四) ——巧妙实现 Form 表单认证跨站点、跨服务器的单点登录(Single Sign On) 作者:寒羽枫(cityhunter172) 第四部分 Fo...
  • anihasiyou
  • anihasiyou
  • 2014年08月19日 16:48
  • 884

How to run 32 bit .NET Windows apps on 64 bit Windows (including with IEExec)

Suppose you have a 32 bit .NET Windows application (whether it is a console or GUI Windows applica...
  • killer000777
  • killer000777
  • 2012年07月10日 16:42
  • 871

关于robocup3d在linux上的安装//详细信息http://simspark.sourceforge.net/wiki/index.php/Installation_on_Linux#Opti

Fedora The most easy way on Fedora systems to install simspark, is to open a terminal and type "yum...
  • cHikerstruggle
  • cHikerstruggle
  • 2011年09月28日 17:27
  • 1430

ASP.NET on Mac OS X Snow Leopard at one fell swoop using mod_mono

原文链接:http://www.ienablemuch.com/2010/10/aspnet-on-mac-os-x-snow-leopard-at-one.html Enable Apache f...
  • zhanglei5415
  • zhanglei5415
  • 2011年12月29日 17:00
  • 16560

Call to hostname/x.x.x.x:9000 failed on connection exception:java.net.ConnectException

这两天都是在宿舍编程调试mahout的,所以打算直接使用另外一个笔记本,远程另外一个笔记本(B),省的这个笔记本(A)内存占用太多了,基本都是1.7 ,1.8左右了,开着虚拟机跑hadoop很卡。虽然...
  • fansy1990
  • fansy1990
  • 2013年08月04日 02:00
  • 3155

Force .NET application to run in 32bit process on 64bit OS

Introduction Our clients install our product on different environments. Some of them have 32bit ser...
  • killer000777
  • killer000777
  • 2012年06月20日 11:46
  • 678

Property startTransmit/stopTransmit not found on flash.net.NetStream

Property startTransmit/stopTransmit not found on flash.net.NetStream
  • sotower
  • sotower
  • 2015年01月15日 10:26
  • 942
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Brainbench assessments on .NET
举报原因:
原因补充:

(最多只允许输入30个字)