Anda di halaman 1dari 6

1.Which of the following is not a .NET compatible language?

A.C#, J#
B.VB.NET
C.Managed C++
D.Java
E.COBOL.NET, Perl.NET
2.Common language specification (CLS)
A.is an execution engine for all .NET applications.
B.is similar to JVM as in Java.
C.defines standard rules for defining .NET compliant languages.
D.is a compiler.
3.Common Type Structure (CTS)
A.defines data types in order to be run by CLR.
B.defines a set of rules for all compilers to generate managed code for .NET.
C.describes a set of features that different languages have in common.
D.All of the above.
E.None of the above.
4. Which of the following statement is not correct?
A.CLR is an execution engine of .NET.
B.Assembly is a logical unit of deployment.
C.CLR executes managed code.
D.NET provides cross language interoperability using code access security.
5.Contents of assembly file can be investigated using
A.ILDASM.exe
B.ILDASM.dll
C.ILDASM.inc
D.ILDASM.aspx

6.Which of the following statements is correct about Managed Code?
A.Managed code is the code that is compiled by the JIT compilers.
B.Managed code is the code where resources are Garbage Collected.
C.Managed code is the code that is written to target the services of the CLR.
D.Managed code is the code that runs on top of Windows.
E.Managed code is the code that can run on top of Linux.
7..NET Framework contains the components (Choose all that apply)
A.Windows Applications
B.Windows Services
C.CLR
D.Framework Class Library
8.Which of the following jobs are performed by Garbage Collector? (Choose all that apply)
A.Managing memory leaks
B.Releasing memory on the stack
C.Managing database collections
D.Closing unclosed files
E.Releasing memory taken by unreferenced objects
9.The job of JIT or jitter is to (Choose all that apply)
A.Compile CIL into machine-specific-code.
B.Cache the compiled results in memory for later use.
C.Compile code into CIL.
D.All of the above.
E.None of the above.


10.Which of the following are correct controls in ASP.NET Source View?()
1.< asp:textbox runat="server" id="Msg" text="Hello, R4R" />
2.< asp:button runat="server" id="Send" text="Send" onclick="Send_Click" />
3. None
4. Both

Question :11
Which is used to add event code(on C# Code) for TextBox control in Source view ( ASP.NET)
1. MsgSent.Text = Msg.Text;
2. MsgSent.Text = Msg.Text
3. Both
4. None

Question :12
Which is used for code-in-line model?
1.< script runat="server">
2.< script javascript="server">
3.Both
4.None


Question :13
Which is code allows the modification of the head tag at runtime?
1 < head runat="server">
2.< script javascript="server">
3.Both
4.None

Question :14
How you can change the page title by changing the using C#
1.void buttonSet_Click(Object sender, EventArgs earg)
{
Header.Title :Msg.Text;
}
2.void buttonSet_Click(Object sender, EventArgs earg)
{
Msg.Text= Header.Title;
}
3.void buttonSet_Click(Object sender, EventArgs earg)
{
Msg.Text: Header.Title;
}
4.None

Question :15
Which is not used into @Page attributes
1. Async ,CodeFile
2. EnableTheming, MasterPageFile
3. MaintainScrollPositionOnPostback Theme
4. None
5. All

Question :16
Which is true to bind a method by setting the Master attribute in the ?
1. < configuration>
< system.web>
< pages masterpagefile="r4r.co.in.MasterPage" />

2. < pages>
< system.web>
< pages masterpagefile="r4r.co.in.MasterPage" />
3.Both
4.None

Question :17
@Page directive
The above syntax is used to make the Master property typed to the class that is stored in the referenced
master on ASP page.
1.Yes
2.No

Question :18
ASP.NET Supports Nested Master Page
1.Yes
2.No

Question :19
Which is true ?
1. Page Class is a derivative of the Control class.
2. Page Class inherits all properties, methods, and events exposed by the Control class.
3.Both
4. None




Question :20
Which of the following properties are not expose by Page Class?
1.Cache, IsPostBack
2 ErrorPage3,IsValid, Trace, and Validators
3.Both
4.None
Question :21
Correct syntax of ASP.NET directive:
1..
2..
3.<@ directive [attribute=value] %>.
4.<@ directive [attribute=value] >.

Question :22
The namespaces that are automatically imported into all ASP.NET pages
1.System,System.Collections, System.IO
2.System.Web,System. Web.UI
3.System.Web.UI.HtmlControls,System. Web.UI.WebControls
A . 1
B. 1,2,3
C, 2,3
D. None

Question :23
The ASP.NET pages directives are
1. @ Page,@ Control,@ Import,@ Register
2. @ Assembly, @ OutputCache
3. System.Web.UI.HtmlControls,System. Web.UI.WebControls
A . 1,2
B. 1,2,3
C, 2,3
D. None
Question :24
Choose correct for Custom Server Controls
1. Two ways of creating custom server controls.
2. The pagelet approach, which is easy to do but rather limited in functionality
3. Control base class (or UserControl) derivative approach
A. 1,2,3
B. 1,2
C. 3
D. 1,3
E. None

Question :25
Server-Side Object Tags are:
1.Statically declare and instantiate COM and .NET objects.
2. syntax to declare server-side objects is:
< object id="id" runat="server" class=".net class name">
< object id="id" runat="server" progid="COM ProgID">
< object id="id" runat="server" classid="COM classID">
3. 1 and 2
4. None

Anda mungkin juga menyukai