PRN292 EXAM WITH COMPLETE
SOLUTION
A - Answer Which variables can use only by one user but in all pages?
A Session
B. Application
C. ViewState
D. Cookie
B - Answer Choose one correct statement about server-side codes quizlet
A. Server side code is executed on the browser
B. Server side code is executed at the server side on IIS in ASP.NET framework
C - Answer Which variables can use by all users and in all pages?
[A] Session
[B] Cookie
[C] Application
[D] ViewState
A - Answer Which property of Control type is used to set a widget should be attached to
which side (or sides) of a Form?
A.Dock
B.Top
C.Anchor
D.Left
A - Answer The...method of the ...object is used to redirect the user to another page.
[A] Redirect, Response
[B] Redirect, Request
[C] Form.Let, Request
[D] Form.Get, Request
,D - Answer Which element of a.Net assembly defines numerous flags that enable the
runtime to understand the layout of managed file?
A.win32 file header
B.CIL code
C.type metadata
D. A CLR file header
A - Answer Which is the most suitable statement to fill the missing code (line 12), if you
want to build an in-house XML Web service?
A. [WebServiceBinding(ConformsTo
=WsiProfiles.BasicProfile1_1,EmitConformanceClaims = false)]
B. [WebServiceBinding(ConformsTo =WsiProfiles.None,EmitConformanceClaims =
false)]
C. [WebServiceBinding(ConformsTo
=WsiProfiles.BasicProfile1_1,EmitConformanceClaims = true)]
D. [WebServiceBinding(ConformsTo =WsiProfiles.BasicProfile1_1)]
A - Answer Which senten about Application variables is Correct?
A.you cannot change value of an Application variable
B.Application variable cannot be share among all users
C.Application variable cannot be share accross all pages
D.Application variable is maintained by an instance of the HttpApplicationState
A - Answer What is CTS?
a. CTS is a formal specification that documents how types must be defined in order
to be hosted by the CLR.
b. CTS is a set of rules provided to ensure that products of compilers will work
properly in .NET environment.
c. CTS is physically represented by mscore.dll library.
d. CTS is a language that sits above any particular platform-specific instruction set.
A - Answer uppose we have multi-file assembly as follows: lib.dll, part1.netmodule,
part2.netmodule, part3.netmodule.
, Which file is the manifest information located in?
a. In lib.dll
b. In part1.netmodule
c. In part2.netmodule
d. Each file contains a piece of manifest information
B - Answer What can be Parameter modifier of a given method
A.Public and Private
B. out ,ref and params
C.params only
D.out and ref only
D - Answer Which of the following can be defined as generic? (Choose one answer)
[A] Structures
[B] Delegates
[C] Methods. Classes. Interfaces
[D] All of the others
A - Answer What is output of the following code?
using System;
class Program
{
delegate void Display();
static void Main()
{
Display d1 = new Display(DisplayHello);
d1();
}
static void DisplayHello()
{
SOLUTION
A - Answer Which variables can use only by one user but in all pages?
A Session
B. Application
C. ViewState
D. Cookie
B - Answer Choose one correct statement about server-side codes quizlet
A. Server side code is executed on the browser
B. Server side code is executed at the server side on IIS in ASP.NET framework
C - Answer Which variables can use by all users and in all pages?
[A] Session
[B] Cookie
[C] Application
[D] ViewState
A - Answer Which property of Control type is used to set a widget should be attached to
which side (or sides) of a Form?
A.Dock
B.Top
C.Anchor
D.Left
A - Answer The...method of the ...object is used to redirect the user to another page.
[A] Redirect, Response
[B] Redirect, Request
[C] Form.Let, Request
[D] Form.Get, Request
,D - Answer Which element of a.Net assembly defines numerous flags that enable the
runtime to understand the layout of managed file?
A.win32 file header
B.CIL code
C.type metadata
D. A CLR file header
A - Answer Which is the most suitable statement to fill the missing code (line 12), if you
want to build an in-house XML Web service?
A. [WebServiceBinding(ConformsTo
=WsiProfiles.BasicProfile1_1,EmitConformanceClaims = false)]
B. [WebServiceBinding(ConformsTo =WsiProfiles.None,EmitConformanceClaims =
false)]
C. [WebServiceBinding(ConformsTo
=WsiProfiles.BasicProfile1_1,EmitConformanceClaims = true)]
D. [WebServiceBinding(ConformsTo =WsiProfiles.BasicProfile1_1)]
A - Answer Which senten about Application variables is Correct?
A.you cannot change value of an Application variable
B.Application variable cannot be share among all users
C.Application variable cannot be share accross all pages
D.Application variable is maintained by an instance of the HttpApplicationState
A - Answer What is CTS?
a. CTS is a formal specification that documents how types must be defined in order
to be hosted by the CLR.
b. CTS is a set of rules provided to ensure that products of compilers will work
properly in .NET environment.
c. CTS is physically represented by mscore.dll library.
d. CTS is a language that sits above any particular platform-specific instruction set.
A - Answer uppose we have multi-file assembly as follows: lib.dll, part1.netmodule,
part2.netmodule, part3.netmodule.
, Which file is the manifest information located in?
a. In lib.dll
b. In part1.netmodule
c. In part2.netmodule
d. Each file contains a piece of manifest information
B - Answer What can be Parameter modifier of a given method
A.Public and Private
B. out ,ref and params
C.params only
D.out and ref only
D - Answer Which of the following can be defined as generic? (Choose one answer)
[A] Structures
[B] Delegates
[C] Methods. Classes. Interfaces
[D] All of the others
A - Answer What is output of the following code?
using System;
class Program
{
delegate void Display();
static void Main()
{
Display d1 = new Display(DisplayHello);
d1();
}
static void DisplayHello()
{