PRN292 Exam Q&A: ASP.NET Framework Concepts, Exams of Advanced Education

A series of questions and answers related to the prn292 exam, focusing on asp.net framework concepts. It covers topics such as session and application variables, server-side code execution, control properties, xml web services, cts, assemblies, parameter modifiers, generics, delegates, application-level variables, object instantiation, form events, strong names, command builders, method overriding, client-side scripting, wsdl, and various controls and functionalities within the .net environment. The questions test understanding of core concepts and their practical application in web development using asp.net. This material is useful for students preparing for exams or seeking to reinforce their knowledge of asp.net fundamentals.

Typology: Exams

2024/2025

Available from 07/16/2025

Prof-Cornel
Prof-Cornel 🇺🇸

4.9K documents

1 / 28

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c

Partial preview of the text

Download PRN292 Exam Q&A: ASP.NET Framework Concepts and more Exams Advanced Education in PDF only on Docsity!

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.

Console.WriteLine("Hello"); } } a. Hello b. Compile error at line: delegate void Display(); c. Compile error at line: d1(); d. Runtime error D - Answer Suppose a Generic class called SortObjects is to be made capable of sorting objects of any type (Integer, Single, Byte etc.). Which of the following programming constructs should be used to implement the comparision function? A. Namespace B. Interface C. Encapsulation D. Delegate E. Attribute A - Answer We can use ... and ... methods to ensure that application-level variables are not updated by more than one user simultaneously. [A] Block and Unblock [B] Lock and Unlock [C] Server and Session [D] Lock and Key D - Answer Which of the following statements is true? [A] A class is the implementation of an objec t [B] A class is the instantiation of an objec t [C] An object is the implementation of a class. [D] An object is the instantiation of a class. B - Answer What of the folllowings is correct if we want to set the AChild form as a child form of the parent form named TheParent A. AChild.MdiChild = TheParent

B. AChild.MdiParent = TheParent C. TheParent.AChild = true D. TheParent.MdiChild = AChild E. AChild.TheParent = true C - Answer The ____ event of the Form control is used to perform tasks such as allocating resources used by the form [A] Allocate [B] Activate [C] Load [D] Activated B - Answer Which of the following information is NOT included in a strong name of a .NET assembly? A. The version number of the Assembly B. External assemblies of the assembly C. The public key value D. The friendly name of the Assembly D - Answer A command builder is only able to autogenerate SQL commands for use by a data adapter, if A. The SELECT command interacts with only a single table and the single table has been attributed with a primary key. B. The SELECT command interacts with only a single table. C. .NET does not support to autogenerate SQL commands. D. The SELECT command interacts with only asingle table, the single table has been attributed with a primary key, and the column(s) representing the primary key is accounted for in your SQL statement. D - Answer Override method ______ A. Is declared with virtual key word B. Is a method is overridden by an override declaration C. Is an instance method declaration includes an override modifier

A - Answer How many interfaces a class can implement? a. Many. b. Only one. c. A class cannot implement any interfaces.

B - Answer how do you create a permanent cookie? A. We cannot create a permanent cookie? B. By setting the expiry date of the cookie to a later time

B - Answer Which type of the System. Threading namespace can be used to resolve the issue of concurrency? [A] Timer [B] Monitor [C] Thread [D] ThreadPool

A - Answer By default can we delete a folder that contains subdirectories and files? [A] No [B] Yes

B - Answer what is the first step to define an event A. Declare an event using the C# event key B. Define a delegate that contains the method to be called when the event is fired C. Define a method that is called when the event is fired D. Declare an event in term of the related delegate

B - Answer ____are the visual effects supported in WinForms Application

A. Control Anchoring,Class Libraries,Transparent Forms B. Control Anchoring,Cotrol Docking,Transparent Forms C. Control Anchoring,Cotrol Docking,Class Libraries D. Transparent Forms,Cotrol Docking,Class Libraries

A - Answer can you store object different date types in an arrayList? A.yes B.No

A - Answer which sentence about background threads is correct?

[A] Background threads are viewed by the CLR as expendable paths of execution that can be ignored at any point in time. [B] Background threads have the ability to prevent the current application from terminating. [C] You cannot create any background threads. [D] By default every thread that is created via the Thread Start() method is automatically a background thread

A - Answer nt[] myArray = new int[10]; What will be the value of myArray[1]? a. 0 b. Nullc. 10 d. A null reference exception would be thrown unless myArray[1] is first initialized to a value

B - Answer What is the TrackBar control?

[A] The TrackBar control allows user to select to choose an item from a range of possible selections, using a pair of small up and down arrows

[D] Post and Get

D - Answer A .Net a programming language (C#, VB.NET, J# etc.) does not compile into executable code; instead it complies into an intermediate code called _______ A. VB# B. C# C. Java# D. MSIL

A - Answer Which of the following associations of try, catch and finally is INVALID? A.catch {} finally {} B. try {} finally {} C.try {} catch {} finally D. try {} catch {}

A - Answer When a *.dll or an *.exe has been created using a .NET-aware compiler, the resulting module is bundled into an _______ A. assembly B. manifest C. meta-data D. None of the others

C - Answer You want to add a control to your form that allows you to set a particular option on or off. Which control would you choose? [A] Button [B] ListBox [C] CheckBox [D] CheckedListBox

C - Answer Which of the following are the correct ways to declare a delegate for calling the function func() defined in the sample class given below? class Sample { public int func(int i, Single j) { /* Add code here. */ } } A. delegate d(int i, Single j); B. delegate void d(int, Single); C. delegate int d(int i, Single j); D. delegate void (int i, Single j); E. delegate int sample.func(int i, Single j);

A - Answer Which sentence about Connection object is correct? A. Connection object is used to establish a session with the data source. B. Connection object is used to execute a SQL command. C. Connection object is used to obtain information from a data source.

D - Answer ________property is used to get or set the data source that the gridview is displaying data for. A. DataSet B. DataMember C. DataSender D. DataSource E. DataSrc

Console.WriteLine(ds.Tables.Count): } } A. Compile error B. 0 C. 1 D. Runtime error

B - Answer (Choose 1 answer) What are two properties that any ASP.NET server controls must have? A. runat and text B. id and runat C. text and BackColor D. BackColor and id

D - Answer (Choose 1 answer) Which sentences are correct? A. A form is only used to present information to the user. B. A form is only used to receive information from the user. C. A form is not a control. D. A form is a class.

D - Answer (Choose 1 answer) A command builder is only able to autogenerate SQL commands for use by a data adapter, if.

A. The Select command interacts with only a single table and the single table has been attributed with a primary key. B. NET does not support to autogenerate SQL commands. C. The Select command interacts with only a single table.

D. The Select command interacts with only a single table. the single table has been attributed with a primary key. and the column(s) representing the primary key is accounted for in your SQL Select statement.

B - Answer (Choose 1 answer) What is UDDI? A. UDDI is a protocol to move information between consumers and web services. B. UDDI is a language is used to describe a XML web service. C. UDDI is the white pages for XML web services. D. UDDI is a language is used to build a XML web service.

D - Answer (Choose 1 answer) Which event handler is called when the web application is shutting down? A. Session_End() B. Session_Start() C. Application_Start() D. Application_End()

B - Answer (Choose 1 answer) The _______ describes all possible data types and programming constructs supported by the run time. specifies how these entities can interact with each other. and details how they are represented in the .NET metadata format. A. .NET Platform B. CTS C. CLS D. CLR

  • Answer (Choose 1 answer) Which sentence is correct? A. Static data describes information for individual objects. B. Object data describes information for all objects of a class.

C. Data D. All of them

C - Answer (Choose 1 answer) What is the first step to define an event? A. Define a method that is called when the event is fired. B. Declare an event using the C# event keyword. C. Define a delegate that contains the method to be called when the event is fired. D. Declare an event in term of the related delegate.

D - Answer What is output of the following code? using System; class Program { static void Main(){ Display<System.Int32>(); } static void Display() { Console.WriteLine(typeof(T).ToStringQ); } } A. Runtime error B. ToString() C. Compile error D. System.Int

A - Answer (Choose 1 answer) Where can you change "Default Namespace" of Visual Studio? A. The Application tab of the project's Properties window.

B. The Resources tab of the project's Properties window. C. The Build tab of the project's Properties window. D. The Debug tab of the project's Properties window.

C - Answer (Choose 1 answer) The _____ is a related specification that defines a subset of common types and programming constructs that all NET programming languages can agree on. A. .NET Platform B. CTS C. CLS D. CLR

  • Answer (Choose 1 answer) Is consuming a shared assembly the same as doing with a private assembly? A. No B. Yes
  • Answer (Choose 1 answer) Which building block helps clients to resolve the location of the XML web service? A. A discovery service. B. A description service. C. A transport protocol.

D - Answer (Choose 1 answer) Which control is usually used to input text? A. CheckBox B. RadioButton C. Label D. TextBox

s += Hello; s(); }

A. Hello world B. Hello visual C# C. Compile error D. Hello world Hello visual C#

A - Answer (Choose 1 answer) Which sentence about code library is correct? A. A code library can be an executable file. B. You cannot reuse the library which is written by C# in any other .NET programming language. C. A code library must take a *.d11 extension. D. You cannot create a code library in C#.

A - Answer (Choose 1 answer) What is utility allows you to view the set of all content files and referenced assemblies? A. Solution Explorer. B. Class View. C. Object Browser. D. Code Definition Window.

B - Answer (Choose 1 answer) Which kind of threads is automatically killed when the application domain unloads? A. Foreground threads B. Background threads

C - Answer (Choose 1 answer) Which type of the System.Threading namespace can be used to resolve the issue of concurrency? A. Timer B. ThreadPool C. Monitor D. Thread

D - Answer (Choose 1 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?

[WebService(Description = "The Calculator Web Service", Name = "CalculatorliebService")] public class Service : System.Web.Services.WebService {

[Webmethod(Description = "Subtracts two integers.")] public int Subtract(int x, int y) ( return x - y; ) [Webmethod(Description= "Adds two float.", NessageName = "AddFloa public float Add(float x, float y) ( return x + y; ) [Webmethod(Description = "Adds two integers.", liessageName = "AddI public int Add(int x, int y) ( return x + y; ) }

A. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] B. [WebServiceBinding(ConformsTo = WsiProfiles.None, EmitConformanceClaims = false)] C. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1, EmitConformanceClaims = true)] D. [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1,