You are on page 1of 236

Ti liu n QFX Quarter 6 Ver 2

Cu 1 In a LINQ query, which of the following specifies the data source to access data? (7.3)
a Select
b Where
c from
d Group
c
Cu 2 In an envisioned automobile service centre, the automobile engineer, after fixing a motor car,
will be required to generate a report of the tasks performed by him on the car. While
developing a model of the automobile centre using the iterative approach, Generate Report
is identified as one of the use cases in an iteration. Based on this report, a Bill of Charges
will be printed for the customer to pay. As a result, Print Bill is identified as another use case.
This use case will be implemented in the next iteration.
How will you relate the Print Bill to the Generate Report in the second iteration?
a By using the Generalization relationship.
b By using the Association relationship.
c By using the Include relationship.
d By using the Extends relationship.
d
Cu 3 John has been assigned the responsibility for defining features that the Sales software
system should deliver. John assessed the economic, technical, and operational feasibility for
the proposed software system. He also identified the stakeholders and end users of the
proposed system. Which phase of Requirement management, is John working on? (3.16)
a Requirements analysis and negotiation
b Requirements specification
c Requirements gathering
d Requirements validation
c
Cu 4 Consider the following statements:
Statement A: While defining a theme, the name of the folder created in \App_Theme folder
must be the same as the name of the theme.
Statement B: While creating a skin file, the name of the skin file created must be the same
as the name of the theme.
a Both statements, A and B, are TRUE.
b Statement A is FALSE, Statement B is TRUE
c Statement A is FALSE, Statement B is TRUE
d Both statements, A and B, are FALSE.
b
Cu 5 Info Solutions needs to develop a payroll system that maintains salary information,
such as basic salary and house rent allowances. The payroll system should also
maintain information about the provident fund contribution of employees. Further,
Info Solutions wants some advance features in the payroll system, such as
calculation of income tax and perks based on the basic salary. The requirements for
the payroll system are not frozen and will evolve during the development process of
payroll system. Which of the following software development approaches is best
suited for the payroll system? (1.6)
a Incremental approach
b Spiral approach
c Prototyping approach
d Waterfall approach
b
Cu 6 Which of the following diagrams can be used to organize various constituents of a
software system in logical groups? (2.12)
a Deployment diagram
b Package diagram
c Object diagram
d Composite Structure diagram
b
Cu 7 Sam is creating a Web application. He has created atheme by the name of
DefaultGlobal and applied this theme to the entire application. The DefaultGlobal
theme defines the property settings for two different types of Label controls. Now, in
the default.aspx page, Sam has added two Label controls. Sam wants to apply two
different property settings for these Label controls. Which of the following attributes
of the Label control can be used to apply different property settings to the Label
controls using the same DefaultGlobal theme? (3.10)
a ThemelD
b ProfilelD
c PagelD
d SkinID
d
Cu 8 John is updating an existing Web application that displays data in an ASP.NET Web
page using ADO.NET. To increase performance of the application, John wants to
implement LINQ queries for benefits such as compile time checking of the query
syntax and also for better performance. The original ADO.NET code, is as follows:
SqlConnection MyConn = new SqlConnectionQ;
MyConn.ConnectionString = "DataSource=172.23.3.59;lnitial
Catalog=Music;User ld=sa; Password=password@l 23";
DataSet ds = new DataSet;
SqlDataAdapter da = new SqlDataAdapter("Select * from albums",
MyConn);
MyConn.Open;
da.Fill(ds);
DataTable album= ds.Tables[0];
Which of the following code snippets should John use to display the values of the
Album.Name database table field? (7.9)
a var q = from d in ds.AsEnumerableO select d;
foreach (var i in q)
{
Response.Write(i .Field<string>("Al bum _N am e") +
"<br>");
}
b var q = from d in album.AsEnumerable() select d;
foreach (var I in q) {
Response.Write(i .Field<stri ng>("Album _Nam e") +
"<br>"); }
c var q = from d in album select d;
foreach (var i in q) {
Response.Write(i.Field<string>("Album_Name") + "<br>"); }
d var q = from d in ds select d;
foreach (var i in q) {
Response.Write(i.Field<string>("Album_Name") + "<br>"); }
Cu 9 Jonathan is a Web developer at RedSky Inc. He is developing a page that will be
displayed on mobile devices. He wants to add a <mobile:lmage> control to the
mobile Web form. The <mobile:image> control should display colorCar.gif image if
the mobile device supports colors, otherwise monoCar.gif image should be
displayed. He adds the following markup in the page and creates appropriate
methods to support this functionality.
<mobiIe: I mage runat=server>
<DeviceSpeciflc>
<Choice Filter="isColor" Src="colorCar.gif />
<Choice Src="monoCar.gif7>
<l DeviceSpecific>
</mobile:lmage>
However, on running the application, the code gives an error. How can this error be
removed? (15.13)
a The given markup should be modified as:
<mobile:lmage runat=server>
<DeviceSpeciflc > ThemelD
<Choice isColor = "true" lmageURL="colorCar.git" />
<Choice ImageURL="monoCar.gif'/ >
</ DeviceSpeci fic>
</mobile:lmage>
b The given markup should be modified as:
<mobile:lmage runat=server>
<DeviceSpeciflc>
<Choice Filter="isColor" ImageURL="colorCar.gif />
<Choice ImageURL="monoCar.gif'/ >
</DeviceSpecific></mobile:lmage>
c The given code should be modified as:
<mobile:lmage runat=server>
<DeviceSpecifie >
<Choice isColor = "true" Src="colorCar.gif />
<Choice Src="monoCar.gif7>
</ DeviceSpeci fic>
</mobile:lmage>
d The given code should be modified as:
<mobile:lmage runat=server>
<DeviceSpecifie >
<Filter Choice = "isColor" Src="colorCar.gif />
<FiIter Src="monoCar.gi f'/ >
</DeviceSpecific>
</mobile:lmage>
Cu
10
Consider the following statements in context of ASP.NET 2.0 Caching Techniques
features: (5.28)
Statement A: You can cache a Web page by including the <%@>
OutputCache %> directive on the page.
Statement B: You can implement caching on a section of a page by
encapsulating that section in a user control and then adding the
@outputcache directive to that control.
Which of the preceding statements is TRUE?
a Statement B is TRUE and statement A is FALSE.
b Both statements, A and B, are FALSE.
c Both statements, A and B, are TRUE.
d Statement A is TRUE and statement B is FALSE.
c
Cu 11 Which of the following methods serializes objects and arrays into JSON text
format? (10.20)
a JSON.parse
b JSON.stringify
c JSON.text
d JSON.serialize
A
Cu 12 Which of the following view types enable you to define interactions among various
execution units?
a Module
b Component
c Allocation
d Connector
D
Cu 13 You are assigned the task of developing a retail automation system. Currently you
are working in the designing phase of the application. When you create a blueprint
for the application, you observe the following conditions applicable to the design:
A class can contain another class.
A class can record the instances of another class.
A class can use the objects of another class.
A class can provide information to initialize the objects of another class.
Keeping all these conditions in mind, which of the following design patterns should
you implement in the application so that it become more reusable and
manageable? (10.6)
a Expert
b Composite
c Creator
d Controller
C
Cu 14 You need to configure an existing Web Form as a content page. Which of the
following attributes will you add in the @Page directive of the content page in order
to refer to the master page? (3.12)
a Master
b MasterFile
c MasterPage
d MasterPageFile
D
Cu 15 Which of the following contains the cost benefit justification for a project?
a SRS document
b Interactive storyboard
c Questionnaire
d Business case
D
Cu 16 Which of the following classes provides methods for creating, deleting, and
updating user accounts, authenticating users, and managing passwords? (12.11)
a Members Class
b Membership Class
c FormsAuthentication Class
d Member Class
B
Cu 17 studies, namely, Elementary, Middle, and High School students. Bryan, while
designing the model creates a class Students. He also creates separate classes,
namely, Elementary, Middle, and High for each level of study group. In the class
diagram for the institute, he has related these three classes with the Students
class using a Generalization relationship symbol.
Analyze if the relationship amongst these classes is correctly depicted. Also
provide the correct relationship in case the existing relationship is incorrect.(3.23,
5.13)
a The relationship depicted amongst these classes is correct.
b The relationship depicted amongst these classes is incorrect. The classes should
be related using Dependency relationship.
c The relationship depicted amongst these classes is incorrect. The classes should
be related using Aggregation relationship.
d The relationship depicted amongst these classes is incorrect. The classes should
be related using Realization relationship.
A
Cu 18 Regarding logging of errors, which of the following statements is correct? (8.8)
a You can only log information about all the errors that occur at the page-level.
b Whenever an unhandled error occurs in a Web application, the Page_Error event
handler, written in the Global.asax file is executed.
c ASP.NET enables you to log unhandled errors only in a database.
d You need to import the System.Diagnostics namespace in order to use the
EventLog class of the .NET Framework.
D
Cu 19 Wilson Inc. has an assignment of University Management System automation. The
University wants to automate the student registration system, library management
system, and payroll system. In the first iteration, University plans to automate the
payroll system. Identify the actors for the payroll system use cases. (Choose the
best option.)
a Student, Faculty, and Finance Registrar
b Student, Librarian, and Finance Registrar
c Finance Registrar and Employee
d Student, Finance Registrar, and Faculty
c
Cu 20 To create a single assembly that combines all assemblies in a precompiled
website, which of the following options will you use with the aspnet_merge tool?
(13.10)
a -w
b -V
c -c
d -o
d
Cu 21 Which of following properties is used to set the ASP.NET theme programmatically
as each page loads? (3.9)
a Page.Theme
b Page.Skin
c Page.Skin.Value
d Page.Theme.Value
a
Cu 22 Tom is an analyst at Info Solutions Ltd. He is required to depict the
behavior of static constituents of a software system by using UML
diagrams.
Which of the following UML Modeling techniques will help him achieve
the desired requirement?
a Static Modeling
b Requirement Modeling
c Dynamic Modeling
d Architectural Modeling
C
Cu 23 Consider the following statements:
Statement A: Collaboration is a collection of instances of classes, relationship
among the instances of classes, and actors.
Statement B: Interaction diagrams depict how the constituents of a software
system interact to realize the use cases of the system. Which of the following
options is correct, with respect to the preceding statements?
a Both, Statement A and Statement B, are True.
b Statement A is False and Statement B is True.
c Statement A is True and Statement B is False.
d Both, Statement A and Statement B, are False.
A
Consider the following statements in context of Architectural modeling:
Statement 1: Component diagram depicts the constituents of a software system grouped
together based on a specific criteria.
Statement 2: Depoyment diagram depicts the various processing devices on which the
components of the software system executes.
Which of the preceding statements is TRUE?
Statement B is True and Statement A is False
Cu 24 You are creating a file editing application that will be run in the DOS mode. You
want the application to be Menu driven, and the menus should respond to Mouse
clicks. Which of the following Patterns will you make use of to simplify the
implementation of the mouse functionality in your application?
a Proxy pattern
b Facade pattern
c Composite pattern
d Decorator pattern
B
Cu 25 In a calculator application, the ArithmeticCalc class has the responsibility of
computing the sum of integers. The ArithmeticCalc class contains operations, such
as addition, subtraction, and division. Which of the following patterns represent the
responsibility assigned to the ArithmeticCalc class?
a Expert
b Creator
c Controller
d Factory
A
Cu 26 Which of the following phases of Software Development Life Cycle(SDLC)
includes translation of the requirements specified in the SRS into a logical
structure?
a Maintenance
b Design
c Coding
d Feasibility Analysis
B
Cu 28 JavaScript code of the page. In order to achieve this, what should John do?
a John should add the following code snippet fortheScriptManager control to the
page.
<asp:ScriptManager ID="sm" runat="server" ><l asp:ScriptManager>
b John can directly call the static page method from the JavaScript code without
adding the ScriptManager control.
c John should add the following code snippet fortheScriptManager control to the
page.
<asp:ScriptManager ID="sm" runat="server" EnablePageMethods="True"><l
asp:Scri ptManager>
d John should add the following code snippet fortheScriptManager control to the
page.
<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="True"></
asp:Scri ptManaqer>
C
Cu 29 In a program, a particular step is to be executed repeatedly, changing values of a
variable j from 1 to 5. How will you depict the execution of this step in a sequence
diagram?
a [j:=1..5]
b *[J:=1 ..5]
c [j:1..5]
d *[J = 1 ..5 ]
B
Cu 30 Which of the following is a use case that describes the software system in three
terms: information, input, and output?
a Facade use case
b Focused use case
c Filled use case
d Business use case
A
Cu 31 Sam is a developer at RedSky Inc. He is developing a Web application using
ASP.NET. He has created two themes in the App_Themes folder with the names
Green and Red.
Initially Sam has set the Green theme for the application by adding <pages theme
="Green"/> tag in Web.config file. Now he is required to set the Red theme to the
Profile.aspx page in such a way that the theme for the other pages remains the
same. To perform this action he has modified the previously added <pages> tag in
Web.config file as:
<pages theme ="Green">
<page src= "-/Profile.aspx" theme = "Red"/>
</pages>
However, this is not giving the desired results. How can this error be corrected so
that the application works as per requirement?
a Modify the existing code in the Web.config file as:
<pages defaulttheme ="Green" src = -/Profile.aspx theme ="Red"/>
b Modify the existing code in the Web.config file as:
<pages defaulttheme ="Green" src = -/Profile.aspx theme ="Red"/>
c Remove the <page src= /Profile.aspx theme = "Red"/> tag from the Web.config
file and add <Page theme = "Red" > tag in the Profile.aspx page
d Remove the <page src= /Profile.aspx theme = "Red"/> tag from the Web.config
file and add <%& Page theme = "Red" %> directive in the Profile.aspx page
D
Cu 32 this you have created a BookTransaction class that includes an operation named
CalculatePenalty. The operation needs to be invoked every time a book, borrowed
earlier, is returned by a member. This operation is used to calculate the penalty, if
applicable, to be paid by the member if the book is returned after the due date. No
other class is able to access this operation except for the container class. The
operation accepts two Date type parameters, namely, DateOflssue and
DateOfReturn and returns a float value to the invoking function.
Provide the correct syntax for the declaration of the above mentioned operation in
a class diagram.
a ~CalculatePenalty(DateOflssue:date,DateOfReturn: date): float
b #CalculatePenalty: (date: DateOflssue,date: DateOfReturn): float
c -CalculatePenalty: (date: DateOflssue,date: DateOfReturn): float
d -CalculatePenalty:float(DateOflssue:date,DateOfReturn:date)
C
Cu 33 Your team of developers has developed a Web application for your organization
and now the application needs to be deployed on a server. Your team manager
has informed you that the developers may be required to edit the ASPX files at the
destination site itself. Therefore while deploying the application, you should allow
for such updations. You have also been directed that the initial loading of the
pages should be quick and the Web pages should be quickly retrieved from the
server. The application should not contain any compilation errors.
Keeping in view the preceding requirements, which deployment mechanism will
you use for deploying the Web application?
a By using Virtual Network Computing (VNC)
b Windows Installer Setup Package
c Copy Web Site utility
d Publish Web Site utility
d
Cu 34 When you need to create a custom Web server control with entirely new
functionality, from which class should you derive the control?
a TraceContext
b Control
c UserControl
d CompositeControl
b
Cu 35 Which of the following represents the different types of -elationships between
classes and objects provided by UML?
a Association, Multiplicity, Dependency, and Generalization
b Association, Hybrid, Generalization, and Realization
c Association, Multiplicity, Dependency, and Realization
d Association, Dependency, Generalization, and Realization
D
Cu 36 Info Solutions needs to develop an operating system, which can support graphical
applications that require high memory and processing speed. The company plans
to first release the beta version of the operating system in the market. After
incorporating the feedback from users, the company plans to release the final
version of the operating system. Which of the following software approaches is
best suited for developing such an operating system?
a Prototyping approach
b Incremental approach
c Spiral approach
d Waterfall approach
C
Cu 37 John is working on a Web page containing multiple UpdatePanel controls. The
UpdatePanel control with ID UpdatePanell is responsible for loading and
displaying high resolution images dynamically. For this particular UpdatePanel
control, John wants to display an UpdateProgress control that will show a
message while the UpdatePanel control loads the image. The code of the
UpdatePanel control is as shown:
<asp:ScriptManager ID-"ScriptManagerl" runat-"server">
</asp:ScriptManager>
<asp:UpdatePanel ID-"UpdatePanell" runat-"server">
<ContentTemplate>
<asp:l_abel ID="Labell" runat="server" >
</asp: Label >
</ContentTernplate>
</asp:UpdatePanel>
Which of the following code should John use for displaying the update message?
a <asp:UpdateProgress ID="UpdateProgress1" runat="server"
AssodatedUpdatePanellD="UpdatePanell ">
<ProgressTernplate> Image loading... </ProgressTemplate>
</asp:UpdateProgress>
b <asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTernplate Assoi:iatedUpdatePanel="UpdatePanell ">
Image loading...
</ProgressTemplate>
</asp:UpdateProgress>
c <asp:UpdateProgress ID="UpdateProgress1" runat="server"
AssoidatedUpdatePanel="UpdatePanell ">
<ProgressTemplate> Image loading... </ProgressTemplate>
A
Cu 38 The incremental approach of software development includes three phases in each
increment. Identifythe correct sequence of phases from the following options.
a Analysis, Design, Implementation
b Design, Implementation, Analysis
c Implementation, Analysis, Design
d Design, Analysis, Implementation
B
Cu 39 Which of the following mobile controls can be used to accept multiple lines of text
from a user?
a Label
b TextView
c ObjectList
d TextBox
b
Cu 40 A team of developers headed by John is working on the development of
a Web application. John wants that whenever a run-time error occurs
while accessing the application, a standard detailed error message
should be displayed. To implement this he has written the following
lines of code in the global Web.config file:
<configuration>
<system.web>
<custornErrors defaultRedirect="GenericError.htm" mode="On">
</custom Errors>
</systern.web>
</configuration>
However, the standard detailed error message is not displayed to the developers
on the occurrence of an error. What modifications should John do to fulfill this
requirement?
a John should change value of the defaultRedirect attribute and provide the path
where the standard detailed error page is located.
b John should change the value of the mode attribute to "Off
c John should remove the defaultRedirect attribute along with its value from the
customErrors tag.
d John should write the code in the Web.config file for the
application instead of the global Web.config. He must also remove the
defaultRedirect attribute along with its value from the custornErrors tag..
A
Cu 41 In an activity diagram,_________convert the type of output
parameters of the outbound action to the required parameter type of the inbound
action.
a transformations
b joins
c forks
d pins
A
Cu 42 Consider the following statements:
Statement A: While defining atheme, the name of the folder created in
\App_Theme folder must be the same as the name of the theme.
Statement E: While creating a skin file, the name of the skin file created must be
the same as the name of the theme.
a Both statements, A and B, are TRUE.
b Statement A is TRUE, Statement E is FALSE.
c Both statements, A and B, are FALSE.
d Statement A is FALSE, Statement B is TRUE.
d
Cu 43 Which of the following is useful in making the design of a system reusable, solving
a problem in the most efficient way, and assigning responsibilities to classes?
a Package
b Pattern
c Interface
d Framework
b
Cu 44 You need to validate that a user has entered a valid URL in aTextEox control.
Which of the following validation controls will you use?
a CornpareValidator
b RequiredFieldValidator
c RangeValidator
d RegularExpressionValidator
d
Cu 45 Consider the following statements in context of query strings:
Statement A: Some browsers and client devices impose a 1 28-character limit on
the length of the URL while passing query strings from one page to another.
Statement E: For query string values to be available during page processing, the
page must be submitted using an HTTP POST command.
Which of the preceding statements are TRUE?
a Both statements, A and B, are TRUE.
b Statement B is TRUE and statement A is FALSE.
c Both statements, A and B, are FALSE.
d Statement A is TRUE and statement B is FALSE.
d
Cu 46 In the ASP.NET AJAX client architecture, which of the following provides
debugging support?
a Server controls
b Core services
c Components
d Web services
b
Cu 47 In the Waterfall approach, the phase that involves a macro leve study of the
customer requirements is known as the________phase.
a Analysis
b Conception
c Design
d Initiation
d
Cu 48 While creating a Web site that will be accessible from mobile phones, you needto
develop a mobile form that will check whether the mobile device accessing the site
has the functionality of placing telephone calls or not. If the device does not
support voice calls, a PhoneCal control named MakeCalls, already placed on the
mobile form should not be displayed to the user. Which of the following codes will
you write to fulfill this requirement?
a protected void Page_Load (object sender, EventArgs e]
{
if (! Request. Browser.CanlnitiateVoiceCall) MakeCalls.Visible = false;
}
b protected void Page_ Load (object sender, EventArgs e)
{
if (! Request.Browser.CanMakeVoiceCal I) MakeCalls.Visible = false;
}
c protected void Pag e_ Load (object sender, EventArgs e)
{
if (IRequest.Page.lnitiateVoiceCall) MakeCalls.Visible = false;
}
d protected void Page_Load(object sender, EventArgs e)
{
if (! Response.Browser.lnitiateVoi cecalI) MakeCalls.Visible = false;
}
a
Cu 49 Sam is a Web Developer at RedSky Inc. He is developing a Web
Application in ASP.NET. He has already configured the application to
enable ASP.NET profiles and defined the FavColor property to track
the user's favorite color. Next, he adds a Label control with ID
property = IblFavColor and Text property = (empty) in the
profiles.aspx page.
Sam wants that when the profiles.aspx page loads, the Text property
f the Label control should display the value cf FavColor property
for the current user. For this he has created the following event
handler:
void Page_Load(object sender, System.EventArgs e)
{
IblFavColor.Text = ProfilefFavColor");
}
However, when Sarn tried to build this application, there was a compile time error.
Identify the correct code to implement the specified requirement.
a void Page_Load(object sender, System.EventArgs e)
{
IblFavColor.Text = Properties, profile. FavColor;
}
b void Page_Load(object sender, System.EventArgs e)
{
IblFavColor.Text = Profile.properties.FavColor;
}
c void Page_Load(object sender, System.EventArgs e)
{
IblFavColor.Text - Profile.FavColor;
}
d void Page_Load(object sender, System.EventArgs e)
{
IblFavColor.Text - Profile.properties("FavColor");
}
c
Cu 50 Jonathan, aWeb Developer at RedSky Inc., is developing an ASP.NET
application. To enable this application to be properly viewed on a
mobile device he has developed a separate default page, default.aspx
in the MobileFonns director/ and written the following code in the
original default.aspx file to redirect a Web request from a mobile
device to the default.aspx page in the MobileFonns directory.
protected void Page_l_oad(object sender, EventArgs e)
{
if(Response.Browser.lsMobileDevice)
Request.Redirect("MobiIeForrns/ default, aspx")
}
He has also inserted an <httpRuntime
useFullyQualifiedRedirectURL="true"> tag in the Web.config file, but
when he tests this code it gives compile time errors. How can these
errors be corrected?
a Modify the given code as:
protected void Page_Load(object sender, EventArgs e)
{
if(Request.Browser.lsMobileDevice)
Response.Redirect("MobiIeForrns/default.aspx");
}
b Modify the given code as:
protected void Page_Load(object sender, EventArgs e)
{
if(Response.Device.lsMobile)
Request.Forward("MobiIeForrns/default.aspx");
}
c Modify the given code as:
protected void Page_Load(object sender, EventArgs e)
{
if(Response.Device.lsMobile)
Request.Redirect ("MobiIeForrns/default.aspx");
}
d Modify the given code as:
protected void Page_Load(object sender, EventArgs e)
{
if(Request.Device.lsMobile)
Response.Redirect("MobiIeForrns/default.aspx");
}
a
Cu 51 Consider the following statements in context of Deployment diagrams:
Statement 1: A set of components that are executed on a particular
node is called a communication unit.
Statement 2: In UML, a component is represented as a rectangle with
tabs.
Which of the preceding statements is TRUE?
a Statement B is True and Statement A is False.
b Both statements, A and B, are False.
c Both statements, A and B, are True.
d Statement A is True and Statement B is False.
a
Cu 52 BlueSoftware Solutions is developing an online Railway Reservation system. The
process of reservation involves a passenger enquiring about the availability of
seats in trains going to a particular destination on a specific date. The reservation
system then needs to check the availability of the seats based on the customer's
query. If the seat/seats are available, then the reservation is done. The use case,
Reserve Ticket, involves the interaction of the objects: pi of passenger class, rl of
reservation, and tl of ticket class. A sequence diagram is provided to show the
various objects and the messages that flow among them.
Identify the methods that each class implements in the Railway Reservation
system.
Click the Exhibit button to view the sequence diagram.
a Class passenger implements the method checkAvailability()
Class reservation implements the method reserveQ
Class Seat implements the method availableO
Class Ticket implements the method issue()
b Class passenger implements the method enquiry()
Class reservation implements the method check AvalIabiIity()
Class Seat implements the method availableO
Class Ticket implements the method issue()
c Class passenger implements the method reserve()
Class reservation implements the method checkAvaiIabiIity()
Class Seat implements the method available()
Class Ticket implements the method issue()
d Class passenger implements the method enquiry()
Class reservation implements the checkAvailabilityO
Class Seat implements the reserveO
Class Ticket implements the method issue()
d
Cu 53 Consider the following statements:
Statement A: The constituents of a Communication diagram are organized in such
a manner that the unrelated objects are closely placed.
Statement B. Communication diagrams represent the interaction between objects
in the form cf messages.
Which of the following options is correct, with respect to the preceding statements?
a Both, Statement A and Statement B, are True.
b Statement A is True and Statement B is False.
c Both, Statement A and Statement B, are False.
d statement A is False and Statement B is True.
d
Cu 54 Jonathan is working as an automobile mechanic in an automobile service centre.
Once he finishes repairing a motor car assigned to him, he records the tasks
performed by him on the car. On the basis of the tasks performed, a bill of charges
is generated that is payable by the customer. The record of tasks performed is
stored ir the object ofthe TaskPerformed class. The bill of charges is generated
bythe object ofthe Bill class.
Visualize the sequence diagram for the above scenario and identify
the messages and the components involved within the sequence diagram
that will generate the bill of charges.
a The sequence diagram should depict invoking ofthe following message:
TasksPerformed class invokes the GenerateBillQ method ofthe Bill class.
b The sequence diagram should depict invoking of the following messages:
Jonathan first invokes the EnterTasksQ method of the TasksPerformed class.
Jonathan then invokes the GenerateBill(TasksPerforrned) method of the Bill
class.
c The sequence diagram should depict invoking of the following message:
Jonathan first invokes the GenerateBi 11 (TasksPerformed) method of the Bill
class.
The Bill class then invokes the EnterTasksQ method of the TasksPerformed
class.
d The sequence diagram should depict invoking of the following message:
Bill class self-invokes the GenerateBill(TasksPerformed) method contained by
it.
b
Cu 55 Sam is creating a Web Part page for his ASP.NET application. He has added a
WebPartManager control to this page. Now he wants to a add few existing user
controls as Web Parts to this page. Before adding the user controls, which of the
following controls should he add to the Web Part page to provide the overall layout
for these controls?
a WebPartZone
b CatalogZone
c EditorZone
d ConnectionsZone
a
Cu 56 You are developing an Employee Monitoring System where the Department class
contains the objects of Employee class. Additionally, the Department class
initializes the object of Employee class by passing the EmployeelD as parameter
in the constructor.
Identify the patterns that best describes the above scenario?
a Builder
b Composite
c Decorator
d Creator
D
Cu 73 You have recently joined a software development company as a senior software
developer. As part of your first assignment, you have to add functionality to an
existing application. You are informed that the customer requirements have
changed, since the application was first developed. Therefore, you need to add
extra functionality to the toolbars, icons, and menu bars of the existing application.
Which of the following design patterns should you use to achieve the preceding
requirements?
a Proxy
b Faade
c Composite
d Decorator (chnh xac)
Cu 57 When an additional behavior is added to an existing use case to
obtain a new use case, then the use cases are said to share____
relationship amongst them.
a Generalization
b Composite
c Extend
d Include
C
Cu 58 Consider the following statements:
Statement A: When an actor interacts with a use case, it is called association
relation.
Statement b: When the characteristics of one actor can be derived from the other
abstract actor., the relationship is called generalization relation.
Which of the following is correct, with respect to the preceding statements?
a Statement A is False and Statement B is True.
b Statement A is True and Statement B is False.
c Both, Statements A and Statement B, are False.
d Both, Statements A and Statement B, are True.
D
Cu 59 During which of the following stages of a page life cycle does a content page get
merged with the master page?
a Page_Prelnit
b Page_lnit
c Page_Load
d Page.Render
A
Cu 60 John is updating an existing Web application that displays data in an ASP.NET
Web page using ADO.NET. To increase performance of the application, John
wants to implement LINQ queries for benefits such as compile time checking of the
query syntax and also for better performance. The original ADO.NET code, is as
follows:
SqlConnection MyConn = new SqlConnectionO;
MyConn.ConnectionString = "DataSource=l 72.23.3.59;Initial
Catalog=Music;User ld=sa; Password=password@l 23";
DataSet ds new DataSetQ;
SqlDataAdapter da = new SqlDataAdapter("Select w from albums",
MyConn);
MyConn.OpenQ;
da.Fill(ds);
DataTable alburn= ds.Tables[0];
Which of the following code snippets should John use to display the values of the
Alburn.Name database table field?
a var q - from d in album select d;
foreach (var i in q) {
Response.Write(i.Field<string>("Album_Name") + "<br>");
}
b var q = from d in ds select d; Foreach (var i in q)
{
Response.Write(i.Field<string>("Album_Name") + "<br>");
}
c var q = from d in album.AsEnumerableC select d, Foreach (var I in q)
{
Response.WritG(i.Field<string>("Album_Name") + "<br>");
}
d
C ALBUM.ASENUMERABLE
Cu 62 In a centralized event handler forthe click event of multiple button controls, which
of the following properties of the EventArgs parameter should be examined to
determine the object that raised the event?
a CommandName
b ID
c Name
d Value
A
Cu 63 Which of the following represents the different types of relationships between
classes and objects provided by UML?
a Association, Hybrid, Generalization, and Realization
b Association, Dependency, Generalization, and Realization
c Association, Multiplicity, Dependency, and Generalization
d Association, Multiplicity, Dependency, and Realization
B
Cu 64 Wilson Inc. has an assignment of University Management System automation. The
University wants to automate the student registration system, library management
system, and payroll system. In the first iteration, University plans to automate the
payroll system. Identify the actors for the payroll system use cases. (Choose the
best option.)
a Finance Registrar and Employee
b Student, Faculty, and Finance Registrar
c Student, Librarian, and Finance Registrar
d student, Finance Registrar, and Faculty
A
Cu 65 In a LINQ query, which of the following clauses specifies the type of the values
that will be returned by the query?
a where
b select
c group
d from
B
Cu 66 While using the Publish Web Site utility, when you choose to prevent editing of the
ASPX files at the destination site, the markup from the ASPX files is removed.
What does the utility create instead of the ASPX markup?
a Plaintext
b HTML code
c DLL assemblies
d .Exe file
C
Cu 67 Which of the following enables an analyst to know if all the requirement are fulfilled
in terms of static and dynamic constituents?
a Design view
b Implementation view
c Use case view
d Process view
C
Cu 27 Which of the following views of a system represents the physical system including
the files and components required to assemble the system?
a Implementation view (chinh xac)
b Design view
c Process view
d Deployment view
Cu 68 Which of the following AJAX server controls contains the Interval property?
a UpdateProgress
b Timer
c ScriptManager
d UpdatePanel
B
Cu
70
What type of relationship exists among packages when the constituents of one
package need to access the constituents of another package to implement a
particular function.
a Realization
b Access dependency
c Composition
d Generalization
B
Cu 71 Which of the following directories of an ASP.NET application stores references to
Web services that are used by the Web application?
a App_Local Resources
b App.WebReferences
c Bin
d App.Data
B
Cu 72 MainPage.aspx. The welcome message should be displayed in a label control,
IblWelcome, already placed on the page. The Welcome message should be
displayed only after ensuring that the WelcomePage was invoked using cross-
page posting. Which of the following code-snippets will you write to fulfill this
requirement?
a void Page_l_oad(Object sender, EventArgs e) { if (Page.PreviousPage != null &
Page.lsCrossPagePostEack) { TextBox input(string)
Page.PreviousPage.FindControl("lnputName"); IblWelcorne.Text "Hello, " +
input.Text; ) )
b void Page. Load (Object sender, EventArgs e) {
if (Page.PreviousPage != null & Page.PreviousPage.lsCrossPagePostBack) {
TextEox input=(TextEox) Page.PreviousPage.FindControl("lnputName");
IblWelcorne.Text "Hello, " + input.Text;
c void Page. Load (Object sender, EventArgs e) {
if (Page.PreviousPage != null & Page.PreviousPage.lsCrossPagePostBack) {
TextEox input=(TextEox) Page.PreviousPage.FindControl("lnputName");
IblWelcorne.Text "Hello, " + input.Text;
}}
d void Page. Load (Object sender, EventArgs e) { if (Page. Previous Page != null &
CrossPagePostEack=="True") ( TextEox input=(TextEox)
Page.PreviousPage.FindControl ("Input Name"); IblWelcome.Text = "Hello, " +
input.Text; } }
C
Cu 73 Which of the following data-bound controls displays one or more records from a
data source, one record at a time?
a DetailsView Control
b DataList Control
c GridView Control
d TreeView Control
A
Cu 74 Which of the following is a technique that involves the task of designing a series of
user interfaces on paper before developing a software system?
a Storyboarding
b Brainstorming
c Interviewing Stakeholders
d Preparing questionnaires
A
Cu 75 Bryan needs to model the functioning of a coaching institute, New Era Studies.
The coaching institute provides educational services and identifies the students in
three groups depending on their level of studies, namely, Elementary, Middle, and
High School students. Bryan, while designing the model creates a class Students.
He also creates separate classes, namely, Elementary, Middle, and High for each
level of study group. In the class diagram for the institute, he has related these
three classes with the Students class using a Generalization relationship symbol.
Analyze if the relationship amongst these classes is correctly depicted. Also
provide the correct relationship in case the existing relationship is incorrect.
a The relationship depicted amongst these classes is incorrect. The classes should
be related using Dependency relationship.
b The relationship depicted amongst these classes is correct.
c The relationship depicted amongst these classes is incorrect. The classes should
be related using Realization relationship.
d The relationship depicted amongst these classes is incorrect. The classes should
be related using Aggregation relationship.
B
Q.Which of the following data-bound controls displays one or more records from a data
source, one record at a time?
A.DetailsView Control.
Using which of the following can you maintain the state data of your web server control, even
when the ViewState property is disabled for the page?
A.ControlState data
Q.When a Web page uses a master page to help define its layout and functionality, it is
known as a _________ page.
A.Content
Q6 Software Sample Test
1
Chris wants to print numbers from 1 to 10 on the screen. Whenever he executes the following shell
script, the numbers from 1 to 9 are displayed. Identify the error(s) in the shell script.
a=1
until test $a -ge 10
do
echo "$a"
a=`expr $a +1`
done
1,The variable, a, should be initialized within the until loop.
2,The gt arithmetic operator should be used instead of ge.
3,The while loop should be used instead of the until loop.
4,The le arithmetic operator should be used instead of ge.
2
2
Blue Moon Computers is an educational institute that offers training in various professional computer
courses. Nancy J ones has written a shell script to determine the grades to be assigned to the students
on the basis of the marks obtained by them. A user is required to enter the marks obtained in four
subjects and the script will display the grade assigned to the student. Grades are assigned as follows:
If marks are greater than or equal to 90: Grade A
If marks are greater than or equal to 80 but less than 90: Grade B
If marks are greater than or equal to 60 but less than 80: Grade C
If marks are less than or equal to 60: No grade
When Nancy executes the following shell script, and enters marks between, 60 and 100, the shell
script displays the message, Grade C. Identify the error(s) in the shell script.
echo "Enter name"
read name
echo "Enter marks percentage obtained in four subjects"
read marks
if test $marks -ge 60
then
echo "Grade C"
elif test $marks -ge 80
then
echo "Grade B"
elif test $marks -ge 90
then
echo "Grade A"
else
echo "No grade"
fi
1,The arithmetic operators used to evaluate the conditions specified in the if and elif statements are
incorrect.
2,The conditions in the if and elif statements should specified in thebrackets.
3,The names and marks of students should be passed as command line arguments.
4,The conditions specified in the if and elif statements to determine the grades are incorrect.
4
3
Which test option checks that the specified file exists on your computer and the file is not empty?
1,test e filename
2,test f filename
3,test s filename
4,test l filename 3
4
Which string test option checks that the length of the string is zero?
1,string1 !=string2
2,-z string
3,-n string
4,string1 =string2 2
5
Which positional parameter will contain string of arguments passed at the command line?
1,$*
2,$#
3,$1
4,$2 1
6
Which command is used to resume execution at the beginning of the while loop?
1,exit
2,continue
3,break
4,until 2
7
What will be the output of the following command?
echo "The date is `date "+%D"` "
1,The command will generate an error when executed.
2,The command will display current date and time.
3,The command will display current date in the mm/dd/yy format.
4,The command will display the day of the month in digits. 3
8
Ronald, an employeeat Blue Moon Computers, gives the following command:
gzip S ".txt" *
Then, he gives the command:
gunzip *
What will be the output of both the commands?
1,The first command will compress all the files present in current directory and give .txt extension to
all compressed files. The second command will uncompress all compressed files.
2,The first command will compress all the files present in the root directory and give .txt extension to
all compressed files. The second command will uncompress all compressed files.
3,The first command will compress all the files present in current directory and give .txt extension to
all compressed files. The second command will give an error.
4,The first command will compress all the files that have .txt at the end of their file names present in
current directory. The second command will uncompress all compressed files. 3
9
Ronald, an employee at ABC Corp. gives the following command:
gzip S ".txt" *
Then, he gives the command:
gunzip S ".txt" *
What will be the output of both the commands?
1,The first command will compress all the files present in current directory and give .txt extension to
all compressed files. The second command will give an error.
2,The first command will compress all thefiles present in current directory and give .txt extension to
all compressed files. The second command will uncompress all compressed files, which were created
by the preceding command.
3,The first command will compress all the files that have .txt at the end of their file names present in
current directory. The second command will uncompress all compressed files having .txt extension.
4,Both the commands will show errors. 2
10
You have two files, File1 and File2. File1 contains the following content:
item price
Coke 10
Pepsi 20
Burgur 10
File2 contains the following content:
item price
Coke 10
Pepsi 11
Burgur 10
You sort the files, File1 and File2, by issuing the following command:
sort o File1 File1
sort o File2File2
You want to identify the records pertaining to the file, File1, which are not present in the file, File2.
Identify which of the following command should you use?
1,comm File1 File2
3
2,comm 12 File1 File2
3,comm 23 File1 File2
4,comm 13File1 File2
11
Phillip created a shell script that displays the calendar of a specified month or range of month. A part
of the shell script is shown below:
read month
echo month=August
echo 'The current month is $month.'
What output should be displayed when he executes this shell script with month specified as J uly?
1,month=August
The current month is J uly.
2,month=August
The current month is $month.
3,month=J uly
The current month is $month.
4,month=August
The current month is J uly. 2
12
Which command displays the same output as the who T command?
1,who t
2,who w
3,who H
4,who d 2
13
What will be the output of following command:
find /home/steve -mtime +2
1,The command will display all the files in the directory, /home/steve, which have been modified
within last two days.
2,The command will display all the files in the directory, /home/steve, which have been modified
exactly two days ago.
3,The command will display all the files in the directory, /home/steve, which have been modified
more last two days ago.
4,The command will give an error. 3
14
Consider the following statements:
Statement A: You can create a symbolic link to an existing or non-existing file.
Statement B: If the file does not exist, the link is known as a dangling link.
Which of the following is correct with respect to above two statements?
1,Statement A is True and Statement B is False.
2,Statement A is False and Statement B is True.
3,Both, Statement A and Statement B, are True.
4,Both, Statement A and Statement B, are False. 3
15
The CustomerCalls file present under the Customer directory needs to be edited. The Customer
directory is present in your home directory. Which of the following commands should you use to edit
the file?
1,cat ~/CustomerCalls
2,vi ~/CustomerCalls
3,vi ~/Customer/CustomerCalls
4,cat ~/Customer/CustomerCalls 3
16
Stella wants to change the password for her login id on the Linux server. She gives the command
passwd. As she enters her old password, the system displays passwd: Authentication token
manipulation error. What can be the reason?
1,Stella should have usedpassword command.
2,Stella does not have permission to change her password.
3,The old password entered by Stella is incorrect.
4,The Linux server is not running. 3
17
You need to change the prompt on the screen so that it displays, Welcome, with your current working
directory. Which of the following commands should you use?
1,PS1="Welcome \u >"
2,PS1 "Welcome \u >"
3,PS1="Welcome \w >"
4,PS1 "Welcome \w >" 3
18
Which GNOME Control Center module allows you to specify the mode to connect to the Internet?
1,Windows
2,Network Proxy
3,Password
4,Accessibility 2
19
Which is the default window manager of GNOME?
1,Enlightenment
2,KWin
3,KWM
4,Metacity 4
20
Which utility is available in the GNOME panel by default?
1,Calculator
2,KAlarm
3,KPaint
4,Print Manager 4
21
You need to change the file access permissions for the CustDetails file. The file and group owner
should have read and write permissions. The other users should have read permissions on the file.
Which of the following commands should you use to change the file access permission of the
CustDetails file?
1,chmod 664 CustDetails
2,chmod 755 CustDetails
3,chmod 711 CustDetails
4,chmod 611 CustDetails 1
22
Help on the grep command needs to be sought in Linux. Which of the following commands should
you use to get information about the grep command?
1,mesg grep
2,talk grep
3,man grep
4,who grep 3
23
Which of the following command can be used to append content of the file, emp, to the file,
new_emp?
1,cat emp new_emp
2,cat emp >new_emp
3,cat emp >>new_emp
4,cat emp <new_emp 3
24
Which shell is the original command processor developed at AT&T?
1,C Shell
2,Korne shell
3,Restricted Shell
4,Bourne Shell 4
25
Which shell can emulate all the features of the Korn shell and has the largest number of utilities, with
extensive documentation?
1,Zsh
2,Bash
3,Ash
4,Tcsh 1
26
Which type of variables is used to customize the shell prompt?
1,User-defined variables
2,Local variables
3,Global variables
4,Environment variables 4
27
Which command is used to print files?
1,lprm
2,lpq
3,lpc
4,lpr 4
28
___________ command is a fast and simple way to find the location of a file in the Linux system.
1,find
2,search
3,locate
4,seek 3
29
Which command will you use to search all files that contain sale in the file name in your home
directory?
1,find . -name "sale" print
2,find ~-name "sale" print
3,find /root/home -name "sale" print
4,find /home -name "sale" print 2
30
Identify the command that will format the file, message. The text should have double spacing between
the lines.
1,pr 2l message
2,pr d message
3,pr 2s message
4,pr L message 2
31
J elly, an employee at Red Sky IT Solutions, has given a number of printing commands. The system
administrator wants to know the status of a few important commands issued by her. The job ids are
26, 18, and 13. Which command should he use?
1,lpc 26 18 13
2,lpq 26 18 13
3,lpq jelly
4,lpc 26 18 13 jelly 2
32
Charlie, the system administrator at Blue Valleymanages the Linux network. He needs to search all
block special and characters special files in the root directory. What command should he specify?
1,find / -type c b
2,find / -type b, c
3,find . type b|c
4,find / -type c
find / -type c 4
33
Blue Valley has the Linux network. All the employees have been given permissions to work with
different file systems. Ronald has created a file, File1, on one file system. He wants to create link of
this file for another employee, Susan, who is working with a different file system. What command
should Ronald use?
1,ln File1 copyFile1
2,link File1 copyFile1
3,ln s File1 copyFile1
4,link s File1 copyFile1 3
34
Chris is working as a testing engineer in Quality Software Developers organization. Chris has just
finished testing a software on the GNOME desktop environment. After logging out of the GNOME
environment, Chris needs to test the software in the KDE environment. Therefore, Chris specifies the
following command at the Linux shell prompt:
$ startx
On specifying the above command, the GNOME desktop gets started again.
What is the cause of the problem and how can this be solved?
1,Chris needs to restart the machine before he can switch to another desktop.
2,Chris cannot change the desktop settings because he does not have access permissions to change the
desktop environment. He needs to login as a root user to change the desktop environment.
3,The current environment is set to GNOME. Chris needs to change the desktop environment to the
KDE before he can start KDE. Therefore, he needs to specify the following command before using
startx:
$ switchdesk KDE
4,The current environment is set to GNOME and Chris needs to change the desktop environment to
the KDE from GNOME. Therefore, he needs to specify the following command before using startx:
$ switchdesk GNOME 3
35
Philip has a file, Cust_records, containing details of all the customers of his company. The fields in
Cust_records file are separated by delimiter, -. The format of the file is given below:
Cust_ID-Cust_Name-State-Contact
He wants a list of the customer names who live in New York and their contacts. He also wants to
know the total number of customers residing in New York. Which command will he use to display
both results?
1,grep c "New York" Cust_records | tr s " " | cut d " " f2,3,4
2,grep "New York" Cust_records | cut d "-" f2,4; grep -c "New York" Cust_records
2
3,grep "New York" Cust_records | wc l | cut f2,3,8
4,grep "New York" Cust_records | tr s " " | wc f2,3,8 | wc l
36
Philip has a file, Emp_records, containing at least 1500 records of the employees who work in his
company. The fields in Emp_records file are separated by a space. The format of the file is as shown
below:
ID FirstName LastName Contact
Philip wants to sort all records on the basis of LastName, within which on the basis of FirstName, but
in descending order and redirect the output to SortEmplNames file. Which command will he use to
perform the above task?
1,sort +2 3 +1 2 r o SortEmplNames Emp_records
2,sort +1 2 +2 3 r o SortEmplNames Emp_records
3,sort -2 +1 3 +2 -r o SortEmplNames Emp_records
4,sort +1 2 3 r o SortedEmployeeNames Emp_records 1
37
The Collection file is being edited using the vi editor. While editing the file, the command <Esc>x is
given. Which of the following is true about the given command?
1,The command deletes a character at the current cursor position.
2,The command deletes the line at which the cursor is currently positioned.
3,The command saves the file.
4,The command saves the file and quits the vi editor. 1
38
__________ is an effective form of non-personal communication by a company about its products. It
is done to inform large number of consumers about the product and its key features. Fill in the blank
with the correct option.
1,Creating consent
2,Advertising
3,Declaring publicly
4,Selling 2
39
Which of the following is not a part of the Sales Cycle?
1,Territory Planning
2,Time Planning
3,Creation of Quotation
4,Development of Sale 3
40
Some examples of Manual processes are:
A. Maintaining the financial statements of the organization.
B. Keeping track of inventory.
C. Generating multiple reports using the same data simultaneously.
D. Providing after-sales services to customers.
Which of the statements given above is NOT an example of a manual process.
1,A
2,B
3,C
4,D 3
41
Soundsystems Inc., an electronic spare parts manufacturing company, has completed manufacturing
2000 speakers for sale. Now, the products have to be distributed across to the local retailers. The main
factors that are considered in the decision-making process include:
- The size, number and location of warehouse where the products will be stored.
- The mode of transport that will be used for carrying the products across.
Suggest another important factor that Soundsystems inc. needs to consider in this process.
1,The work force to be employed or hired.
2,The location where the transports will be parked.
3,The probability of rains in the city.
4,The probability of the employer falling sick. 1
42
Which of the following options best describes the Material Requirements Planning (MRP) procedure?
1,Material Requirements Planning includes information about parts and components that the product
requires, and describes the manner in which different parts and components are related to one another.
2,Material Requirements Planning is an inventory control process used to calculate the amount of raw
materials necessary to manufacture a specific product.
3,The Material Requirements Planning contains the list of materials required to produce a particular
product.
4,The Material Requirements Planning document shows the quantity of products to be made in a
specific period. 2
43
AirPhone Inc. is a cell phone service provider. The company caters to a vast clientele across USA.
These customers are also provided with the option of placing their orders online. The product bills are
automatically generated and handed over to the customers at the time of delivery. Identify the process
involved in the production process.
1,Mechanized Systems
2,Automated Systems
3,Manual Systems
4,Automatic Systems 2
44
Which do you think is the correct set of the golden rules of accounting?
1,Personal accounts: Debit all expenses/losses; credit all income/gains
Real accounts: Debit what comes in; credit what goes out
Nominal accounts: Debit the receiver; credit the giver
2,Personal accounts: Debit what comes in; credit what goes out
Real accounts: Debit all expenses/losses; credit all income/gains
Nominal accounts: Debit the receiver; credit the giver
3,Personal accounts: Debit the receiver; credit the giver
Real accounts: Debit what comes in; credit what goes out
Nominal accounts: Debit all expenses/losses; credit all income/gains
4,Personal accounts: Debit all expenses/losses; credit all income/gains
Real accounts: Debit the receiver; credit the giver
Nominal accounts: Debit what comes in; credit what goes out 3
45
The following steps are required to create a journal entry:
1. Enter the date of the transaction.
2. Enter the names of the accounts that are involved in the transaction.
3. Enter the page number in the Ledger folio column. Ledger folio indicates the page in the ledger
where the account is maintained.
4. Enter the amount or amounts to be debited from the various debtors.
5. Enter the amount or amounts to be credited to various accounts involved.
Identify the step that is incorrect.
1,Enter the date of the transaction.
2,Enter the page number in the Ledger folio column. Ledger folio indicates the page in the ledger
where the account is maintained.
3,Enter the amount or amounts to be debited from the various debtors
4,Enter the amount or amounts to be credited to various accounts involved 3
46
Two years ago, J ohn Denson started Links., an electronics good store, in his hometown. Since then,
J ohn has expanded operations to two outlets across the city. He plans to use the profits from the store
to institute a scholarship in his childrens school. Identify the type of organization Links Inc. is.
1,Corporation
2,Sole Proprietorship
3,Partnership
4,Franchisee 2
47
Consider the following statements:
Statement A: IT support includes processes for sourcing suppliers.
Statement B: IT Support includes processes for managing information processing and technology
development.
Select the correct option.
1,Statement A and Statement B are both false.
2,Both Statement A and Statement B are both true
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True. 4
48
Consider the following statements regarding people who interface with the Information System at
various stages:
Statement A: The first level of people are the personnel who enter data into the system.
Statement B: The third level of people are the Operations Managers who ensure that the data input
into the system is correct.
Which of the following is correct, with respect to the above statements?
1,Both statement A and statement B are true
2,Both statement A and statement B are false
3,Statement A is true and statement B is false
4,Statement A is false and statement B is true 3
49
StilletoShoes Inc., a footwear manufacturing company, needs to prepare a detailed plan to calculate
requirements for materials in the production-planning phase of their latest product. The following is a
list of items that the Production Manager needs information about to plan accurately.
Unprocessed leather
Sequins
Suede
Cloth
BOM
Identify the type of information form the options provided.
1,Structural information
2,Unstructured information
3,Strategic information
4,Unstrategic information 1
50
ChildKare Inc., is an up market retail chain offering a wide range of products for children. Despite
catering to the upper income bracket, ChildKare organizes an annual fair for underprivileged children.
This fair consists of various competitions that these children participate in. The grand prize for the
winner of these competitions is a lifelong scholarship sponsored by ChildKare. Identify the type of
Marketing described here.
1,Media marketing
2,Television marketing
3,Cause-related marketing
4,Discount marketing 3
51
_______________ application server is a high-performance and scalable transaction engine for
dynamic e-business applications.
1,J 2EE x Application Server
2,IBM WebSphere
3,J Boss
4,BEA WebLogic 2
52
Consider the following statements:
Statement A: The business logics can be encapsulated in .NET DLLs that are very easy to deploy and
update.
Statement B: The .NET framework does not support connection pooling.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are True.
2,Both, Statement A and Statement B are False.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True. 3
53
____________ is a computerized system installed at shops for billing purposes. Fill in the blank with
the correct option.
1,Sales Stratification
2,Point-of-sale
3,Sales Strategizing
4,Sales and Marketing 2
54
The end objective of marketing is ___________________. Fill in the blank with the correct option.
1,to incorporate a sense of recall among existing and potential customers regarding the product or
service.
2,to perceive customer needs and satisfy customer demands
3,to capitalize on the income of existing customers and convert potential ones
4,to interface with customers to hasten desirable transactions 1
55
The schema that is most commonly used in Dimensional Modeling is _________. Fill in the blank.
1,Fact Table schema
2, Star schema
3,Complex schema
4,Snow Fall schema. 2
56
As services have to be delivered to the customer directly, their ___________ and ___________ must
be defined and maintained. Fill in the blanks with the correct option
1,Price and Value
2,Process and Procedure
3,Quality and Standards
4,Packaging and Promotion 3
57
______________ provides managers with an insight into regular operations of an organization by
aiding them with plans to organize and control work efficiently. This helps the organization provide
accurate information to theconcerned decision-maker at the appropriate time and thereby, achieve
organizational targets. Fill in the blank with the correct option.
1,GIS
2,MIS
3,QIS
4,WIS 2
58
Which of the following statements correctly describes a Management Information System (MIS)?
1,Internal source of data for an MIS includes Enterprise Resource Planning Systems (ERP) and
related databases.
2,MIS supports employees at strategic management in an organization.
3,Internal source of data for an MIS includes Transaction Processing Systems (TPS) and Enterprise
Resource Planning Systems (ERP).
4,A good MIS makes management of applications more efficient and improves tracking and
monitoring of functional targets. 4
59
Dressmagic Inc., an apparel retail store chain, plans to conduct a customer and sales analyses of all its
supermarkets in Europe. For this purpose, their vendor, Webtricks Inc., develops a Logistics
Information System that can handle the analysis of millions of cash register transactions each week.
Dressmagic Inc. can now conduct sales and customer analyses efficiently. This Logistics Information
System also provides features of data scalability, enhanced speed of analytical processing, and the
ability to proactively distribute information to end users via e-mail and wireless devices. Identify
which of the options given below corrects the situation described above.
1,Replace Webtricks with Logistics Information System
2,Replace Logistics Information System with Webtricks System
3,Replace Logistics Information System with Business Intelligence System
4,Replace Webtricks with Business Intelligence System 3
60
Which of the following is a limitation of the prototyping model?
1,Product is not available for feedback until the end of development.
2,Development team requires a high-level of expertise for developing a prototype.
3,Revision of requirements not provided.
4,Guidance on tasks to be performed in each phase not provided. 2
61
Which phase of the spiral model involves deploying software at the customer site?
1,Customer communication
2,Engineering
3,Construction and release
4,Customer evaluation 3
62
Who is responsible for validating the design philosophy of the solution in terms of the IT platform
required and the various other modules that need to be a part of the IT system design?
1,Technical Consultant
2,Project Manager
3,Solution Architect
4,Business Manager 3
63
Which of the following statements holds true for the incremental model?
1,In the incremental model, the development process is repeated until all the activities of the project
activity list are implemented.
2,In the incremental model, the focus is on the components that can be reused.
3,In the incremental model, the customer evaluates the software and provides the feedback at the end
of first iteration.
4,In the incremental model, the development process is not repeated until all the activities of the
project activity list are implemented. 1
64
Which diagrams are used to describe the nature of the identified objects in a system and their
association with other objects and processes?
1,Data Flow Diagrams
2,Class Diagrams
3,Case Diagrams
4,Activity Diagrams 2
65
Consider the task, Prepare defect reports. Which of the following exit criteria correspond to the
specified task?
1,Updating Project Plan
2,Created and signed off Software Requirements Specifications Document
3,Created and signed off Prototype
4,Created and signed off Functional Specifications Document 3
66
Consider the following statements:
Statement A: In software engineering, software engineers focus on transforming customer needs,
expectations and constraints into product solutions and supporting these product solutions throughout
the life of the product.
Statement B: In system engineering, system engineers focus on applying systematic, disciplined and
quantifiable approaches to the development, operation and maintenance of software.
Whichof the following is true, with respect to the above statements?
1,Both Statement A and Statement B are False.
2,Both Statement A and Statement B are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True. 1
67
Which of the following CMMi maturity models provide a systematic approach that achieves a
collaboration of relevant stakeholders throughout the life of the product to satisfy customer needs,
expectations, and requirements?
1,Systems Engineering
2,Software Engineering
3,Integrated Product and Process Development
4,Supplier Sourcing 3
68
Maketh Ltd has launched black and white televisions in the market. The product was released and
evaluated by the customers. After receiving the feedback from customers, the company plans to
develop colored televisions with advanced features. Identify the model that is used by Maketh Ltd. for
developing products that are released in various versions.
1,Component-Based Development Model
2,Incremental Model
3,Win-Win Spiral Model
4,Spiral Model 4
69
Consider the following statements:
Statement A: The waterfall model describes the software development process in a non-linear
sequential flow.
Statement B: In the Waterfall model, once the project progresses to the next phase it is not possible to
go back to the previous phase of the model.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B are True
2,Both, Statement A and Statement B are False
3,Statement A is True and Statement B is False
4,Statement A is False and Statement B is True 4
70
Consider the following statements:
Statement A: The Stage- representation of CMMi model focuses on organizational maturity.
Statement B: The Staged representation of CMMi model also focuses on set of processes relating to a
single process area or specific practice.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B are True
2,Both, Statement A and Statement B are False
3,Statement A is True and Statement B is False
4,Statement A is False and Statement B is True 3
71
A bank wants to develop a software to automate the banking process for insurance services, personal
banking, home loans and automobile loans. The bank wants the automation of personal banking
system immediately, as it will enhance the customer services. The other features can be implemented
later. Which of the following SDLC models is best suitable in the above situation?
1,Waterfall model
2,Prototyping model
3,Incremental model
4,Spiral model 3
72
Consider an order processing system. The inventory department places a request for the machine parts
that are out of stock. Similarly, the inventory department also receives the supply to update the stocks.
In the scenario, who is the actor? In addition, what are the use cases for this actor?
1,In the scenario, Inventory Department is the actor that uses the system to place an order for the
parts. Order Parts and Accept Supply are the use cases for the actor.
2,In the scenario, supplier is the actor that accepts the order for the parts. Order Parts and Update the
stocks are the use cases for the actor.
3,In the scenario, order-processing system is the actor that places an order for the parts. Order Parts
and receives the supply are the use cases for the actor.
4,In the scenario, machine part is the actor that uses the system to place an order for the parts. Order
Parts and Accept Supply are the use cases for the actor. 4
73
Consider a bank that offers personal loan service to customers. To apply for loan, a customer needs to
take appointment from the loan officer. The help desk coordinator at the bank gives the appointment
to the customer after checking the appointment schedule of the loan officer. The loan officer verifies
the customer information such as income status and discusses the case of each customer with the loan
manager before sanctioning the loan. Identify the different use cases in the above scenario.
1,Maintaining customer information
Verification of customer information
Sanctioning of loan
2,Taking appointment
Maintaining customer information
Sanctioning of loan
3,Taking appointment
Maintaining customer information
Verification of customer information
4,Taking appointment
Maintaining customer information
Verification of customer information
Sanctioning of loan 4
74
InSite Corp. is currently developing an e-governance application for the local area authority. At the
start of the project, the local peoples representative, who is the customer contact, had stated that he
wanted to be informed about all the developments in the project. To keep the customer happy, the
team sent off the following documents during the Requirements phase:
Project Plan, Risk Management Plan, Configuration Management Plan, Standards and Guidelines,
Requirements Change Management Plan, Use cases of the existing system.
This confused the customer, who did have the time to go through all the documents. Which
documents should have been sent to the customer?
1,Project Plan, Risk Management Plan, Requirements Change Management Plan and Use cases of the
existing system
2,Project Plan, Requirements Change Management Plan, Standards and Guidelines and Use cases of
the existing system
3,Configuration Management Plan, Requirements Change Management Plan and Risk Management
Plan
4,Project Plan, Risk Management Plan, Configuration Management Plan and Requirements Change
Management Plan 4
75
Consider the following statements:
Statement A: The V model provides scope for changes that may happen at a later stage of
development.
Statement B: The V model considers the fact that the software is developed in a series of uncertainty
and change, where each uncertainty changes the behavior of the previous one.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B are True.
2,Both, Statement A and Statement B are False.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True. 2
76
Consider the following statements:
Statement A: As per the W model, the test activities should start at the beginning of the project.
Statement B: The W model helps review the budget as well.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B are True.
2,Both, Statement A and Statement B are False.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True. 1
77
Oracle Solutions is developing a library management system. However, the client makes
modifications in the requirements and cuts costs. The team at Oracle Solutions does the following to
complete the project:
A. Executes debugs changes and re-test activities at all stages from Unit Test to Acceptance Test to
remove errors and ensure a full proof plan.
B. Reviews the High-Level and Low-Level Design and simultaneously plans and prepares Integration
Test/Unit Test.
C. Reviews the list of project requirements and then prepares Acceptance Test.
D. Starts the test activities at the beginning of the project that also helps to cut costs.
The team later realizes that the steps followed above are incorrect. How would you reorganize the
above steps for Oracle Solutions?
1, B, C, D and A
2,C, A, B and D
3,D, C, B and A
4,A, C, B and D 3
78
Alpha Solutions is developing an employee record management system. The application should
provide all the details regarding the employees of a company. The team at Alpha Solutions prepares a
detailed list of project requirements after the Product Analysis is done and does the following to
complete the project:
Prepares the Unit Test Criteria with Level Design.
Prepares Integration Test Criteriaafter receiving Product Analysis Document
Develops the System Test Criteria while gathering the Requirements
Prepares the Integration Test Criteria with High Level Design
Identify the incorrect step from the list above.
1,Prepares the Unit Test Criteria with Level Design
2,Prepares Integration Test Criteria after receiving Product Analysis Document
3,Develops the System Test Criteria while gathering the Requirements
4,Prepares the Integration Test Criteria with High Level Design 2
79
Theta Solutions has to automate the Application Processing System of a Language Institute in 60-90
days. As the project scope is controlled the team does the following to complete the project:
Project Start up
Requirement Analysis and Prototyping
Beta Development
Customization and Testing
Acceptance
Warranty and Maintenance
Project Wind-up
Identify the software development process used by Theta Solutions.
1,Software Development Lifecycle (SDLC)
2,Support and Maintenance Project (SAM)
3,Rapid Application Development (RAD)
4,Incremental Process 3
80
The PictureHouse Inc. is organizing an exhibition of a renowned painter in a couple of months. The
gallery has been unable to advertise its exhibitions adequately in the past, which has resulted in a poor
attendance. However, this time they want J anesTechnologies to create a system based on their records
to create a database of their patrons. The system should generate mailers for all existing patrons. It
should also have appropriate options to store details of new patrons and their areas of interest. Which
is the appropriate software process model that needs to needs to be followed for the software
development in this scenario.
1,Rapid Application Development (RAD)
2,Incremental Model
3,Win-Win Spiral Model
4,Spiral Model 1
81
TravelAway Airlineshas introduced an online reservation system. The system has been designed to
make online reservations through credit cards. A large amount of transactions are being performed
using the online reservation system. It was found that there have been an increased number of fake
transactions. TravelAway Airlines has a fraud alert system, which detects the fraud transactions.
However, the current version is not able to trap the growing complexities of the fraudulent operations.
To solve this problem TravelAway Airlines wants StarMoon Technologies to modify and upgrade
their current system.
The above project is a Support and Maintenance project. The team at StarMoon Technologies starts
the project. When the development team has made the required modifications, they perform system
testing on the modified system against the test cases identified in the design phase. This is followed
by regression testing. Why does the team need to perform regression testing?
1,To validate that the modified code has not introduced faults that did not exist before the
maintenance activity.
2,To identify changes in documentation, update detailed analysis report, review and update Project
Plan.
3,To fix errors through code changes.
4,To study the feasibility and scope of modification and to devise a preliminary plan for design,
1
implementation, test and delivery.
82
J ohn is a senior software analyst, working in an insurance company. The management of the company
needs to keep a track of payment done by their customers and this information should be kept
confidential. For this purpose, an application server needs to bechosen that can support three-tier
architecture and can provide a high level of performance. Which of the following servers, should J ohn
recommend to his company?
1,IBM WebSphere because it allows deploying an operating environment that works as a platform,
which is capable of handling secure transactions and web services.
2,J Boss Application Server because it is capable of handling secure transactions and web services.
3,J 2EE 1.4 Application Server because it allows to deploy an operating environment that works as a
platform.
4,BEA WebLogic because it does not allow to deploy an operating environment. 1
83
A Web site needs to be developed. The objective of creating this Web site is to bring awareness about
good health to people. Information such as homemade remedies, exercises, fitness machine will be
provided in the Web site.
You are given the responsibility to design the type of architecture for the above Web site. The type of
architecture should be such that, it provides location transparency between tiers. In addition, the
components implementing the business rule should be able to participate in transactions. Which type
of architecture will you select to perform the specified task?
1,Single-Tier Architecture
2,Two-Tier Architecture
3,Three-Tier Architecture
4,Multi-Tier Architecture 4
Consider the statements:
Statement A: The extend relationship exists among use cases when the functions of a use
case, which is implemented in intial interations, are enhanced in successive iterations, are
enhanced in successive iterations.
Statement B: Collaboration is a collection of classes and objects that interact with each other
to achieve the functions of use case.
Statement A is true and statement B is false.
Consider the following statements:
Statement A: The constituents of a Communication diagram are organized in such a manner
that the unrelated objects are closely placed.
Statement B: Communication diagrams represent the interaction between objects in the form
of messages.
Which of the following options is correct, with respect to the preceding statements?
A: The constituents of a Communication diagram are organized in such a maner that
unrelated objects are closely placed.
B: Communication diagrams represent that interaction between objects in the form of
messages.
which of the following options is correct, with respect to the preceding statements?
Statement A is Flase, B is True.
Consider the following statements in context of Component diagrams:
Statement 1: Deployment components include the components that form the executable
system.
Statement 2: Executiom components include the components that are created when a system
is running.
Which of the preceding statements is TRUE?
Both A and B are True.
Consider the following statements in context of the Copy Web Site utility:
Statement A: if the Web site contains source files that do not complie, they will not get copied
by the copy web site utlity.
Statement B: If the Copy Web Site utility is used a deployment mechanism, other users will
also be able to view and change the source code file.
Which of the precedeing statements are True?
Statement A is TRUE and Statement B is FALSE
Consider the following statements:
Statement A: A branch represents the set of alertnative paths or a decision, which the flow
takes depending on the input.
Statement B: The alternative paths are depicted by a set of transitions that flow from the
branch element such that only on path is followed based on condition.
Which one of the following options is correct, with respect to the above statements?
Both, Statement A and Statement B, are True
Consider the following statements in context of Architecrual modeling:
Statement 1: Component diagram depicts the constituents of a software system grouped
together based on a specific criteria.
Statement 2: Deployment diagram depicts the various processing devices on which the
components of the software system excutes.
Which of the preceding statements is TRUE?
Statement B is True and Statement A is Flase
Consider the following statements in context of connection strings:
Statement A: The SqlCommand object can be used to specify select, insert, update and
delete queries.
Statement B: A connection string can be programmatically retrieved from the Web.config file
using the Configuration class.
Which of the preceding statements is TRUE?
Both statement, A and B, are TRUE
Consider the following statements:
Statement A: A state machine depicts are various states of an object that change in response
to events during the lifetime of the object.
Statement B: A state refers to the condition of an object during its existence in memory.
Which of the following option is correct, with respect to the preceding statements?
Both, Statement A and Statement B, are True.
Consider the following statements in context of ASP.NET 2.0 Caching Techniques features:
Statement A: You can cache a Web page by including the <%@ OutputCache %> directive
on the page.
Statement B: You can implement caching on a section of a page by encapsulating that
section in a user control and then adding the @outputcache directive to that control.
Which of the preceding statements is TRUE?
Both statement, A and B, are TRUE.
Consider the following statements n context of Deployment diagrams:
Statement 1: A set of components that are executed on a particular node is called a
communication unit.
Statement 2: In UML, a component is represented as a rectangle with tabs.
Which of the preceding statements is TRUE?
Statement B is True and Statement A is False.
Consider the following statements:
Statement A: A state machine depicts the various states of an object that change in repsonse
to event during the lifetime of the object.
Statement B: A state refers to the condition of an object during its existence in memory.
Which of the following options is correct, with respect to the preceding statements?
Both, Statement A and Statement B, are True.
You need to create an ASP.NET Web application that will be hosted on your system using
the IIS Web Server. The Web site to hosted should be accessible to other machines located
over the network. To prevent the system from slowing down, you want that only one user
should be able to debug IIS at any given time. List the steps that you will perform to create
such a site.
1. In Microsoft Visual Studio 2008, on the File menu, point to New ad then click Web
Site.
2. Under Visual Studio installed templates, select ASP.NET Web Site.
3. In the Location list, click File-System.
4. In the Language list, click the language you want to use as the default programming
language for the Web application.
5. In the Location text box, type the path and folder where you want to create the Web
site.
6. Click OK
You can use the ASP.NET dynamic compilation feature to test your control in a page without
precompiling the control into an assembly.
Which of the following is the folder in which you should place the source file for your control
so that the changes to the control are immediately reflected in the pages containing them?
App_Code
Which of the following diagrams shows how a class reacts when an event occurs?
State Machine diagram
The customer of a telecommunication company lodge their complaints related to the various
subscribed services on the companys Web site. The complaints are stored in an object of the
CustComplaint class in the Customer Care system. These complaints are addressed by the
customer care executives appointed by the company. While addressing complaint text. The
system use the object of the CustComplaint class to provide these details to the executives.
The process of providing the complaint number and the complaint text to the executives using
the object of the CustComplaint class needs to be depicted in an activity diagram. Which of
the following elements will you use in the activity diagram to depict the conversion of an
object of the CustComplaint class into complaint number and complaint text?
Transformation
Johnathan is developing an ASP.NET application for mobile devices. He has writen a
comparison filter to test the color display capabilities of the mobile device. He adds the
following mark up in th Web.config file.
<system.web>
<deviceFilters>
<filter name=TestIsColor method=IsColor argument=true/>
</deviceFilters>
</system.web>
But when he runs the application, the comparison filter written is show erros. How can this
error be remove?
Modify the given mark up as:
<system.web>
<deviceFilters>
<filter name=TestIsColor compare=IsColor argument=true/>
</deviceFilters>
</system.web>
In the QuickHeal Hospital, three departments, namely, Neurology Cardiology, and
Orthopedics have been set up for treatment of patients with respective ailments. As a result,
the doctors attached with each department are categorized as Neurology Cardiology, and
Orthopedics.
How will you relate the Neurology Cardiology, and Orthopedics doctors with the Doctor
behavior in your design for the hospital system?
By using the Generalization relationship
The existing Inventory Management System of a department store enables the store
manager to maintain detailed information about all the items sold in the store. The system
enables the store manager to generate an order to purchase items. Whenever any item is
purchased, its quantity is increased and when an item is sold, the quantity is decreased. Blue
Valley Inc. has been assigned the task to upgrade the system and add a new functionality
assigned the task to upgrade the system and add a new functionality in it. As soon as the
item reaches the reorder level, a message should be generated to inform the store manager
that the reorder level of the item is reached. Identify the relationship between the following:
-- Generate purchase order to purchase the items
-- Issue reorder of the items
Association
The Business Process model of the Student Registration System consists of four business
use cases, which are:
--Fill the registration form
--Submit the registration form
--Fees deposit
--Get registration number
The business actors of the Students Registration System are student, faculty, cashier, and
registrar.
Which of the following Business actor can act as Business worker for the fees deposit use
case?
Cashier
Which of the following patterns can be used when you need to represent an object that is
time consuming to create, with a simpler object>
Proxy
To implement page-level error handling, which of the following will you use?
try-catch block
The ____ enables you to focus on the functions performed by the software system in each
iteration
System boundary
Which of the following controls allows a user to initiate a telephone call?
PhoneCall
You are a Software designer at Smart solutions. You are working on the requirement phase
of SDLC, where you have to identify the end user expectations of the Software System.
Which of the followingUML diagrams will you use to represent the end user expectations
which you have identified during the requirement phase?
Use case, Class, and Activity diagrams
Which of the following software development approaches applies a combination of the
iterative approach as well as the linear approach for development of a software system?
Waterfall approach
Which of the following phases involves examining whether or not the implemented code of
the software system complies with the requirements stated by the customer?
Testing phase
Regarding rendering content on mobile Web pages, which of the following statements is
correct?
For device-specific rendering of mobile Web controls, the Render() method of the
ControlAdapter class is invoked.
In your Web application, you need to ensure that the format of the pages that you display is
supported by the requesting browsers. Which of the following is a property that can be used
to detect the type of the browser requesting the pages, so that they can be displayed
accordingly
Request.Browser.Browser
Which of the following classes of the Microsoft AJAX Library raises events?
Application
To allow ASP.NET to use the language preferences communicated by the browser, you must
enable automatic culture determination in your Web page. Which of the following lines of
code will correctly enable the same?
<%@ Page uiculture=auto %>
Regarding LINQ to XML, which of the following classes loads an XML document?
XDocument
Regarding the life cycle of an AJAX- enabled Web page, which of the following is the correct
sequence?
1. A browser initiates an HTTP request
2. The server returns the response along with a JavaScript AJAX engine
3. The browser sends XMLHttpRequest to the AJAX engine.
4. The AJAX engine forwards the XMLHttpRequest as HTTP request to the server
5. The server return back XML data as response to AJAX engine
6. The AJAX engine returns the response as HTML mark up to the browser
Which of the following is also called a template class?
Parameterized class
Which of the following is NOT a part of the basic process that involves displaying of data from
relational databases on Web pages?
Register the data source control on the page using the @ Register
James is working as a Web developer for RedSky Inc. He has been asked to display the
name of all the employees that are members of the Sales role in a label on a Web page.
Which of the following lines of code will help him complete this task?
MembershipUserCollection EveryOne = Membership.GetAllUsers();
foreach(MembershipUser userCurrent in EveryOne)
{
if(Roles.IsUserInRole(userCurrent.UserName,Sales))
{
lblSales.Text += userCurrent.UserName + <br>;
}
}
Which of the following business modeling constructs shows how a particular function
described in a use case is implemented?
Collaboration
Which of the following business modeling constructs represents an external entity that
interacts with the business process?
Business actor
Which of the following controls will you use to display an image button on a mobile device?
Command
Which of the following modes of a Web part page enables users to drag Web parts around
the page but does not allow them to edit the properties of the Web parts?
Design Mode
Which of the following visibility option for attributes and operation of a class indicates that the
attribute or operation in the base class is visible to derived classes?
Protected
In a master page, which of the following attributes will you add within the @Master directive to
reference a code-behind file?
CodeFile
Which of the following is NOT a type of Web site that can be created using Visual Studio
2008?
Dynamic Web sites
Which of the following is a Web site deployment tool that examines the files on both, the
source and the destination sites and makes sure that files on both sites are up to date.
Copy Web Site Utility
Which of the following is the correct expansion of LINQ?
Language-Integrated Query
____ are the sequence of actions that form a single unit of work for an actor.
Use cases
A class that has multiple objects having the same attribute values is known as a ___
Factory class
Which of the following elements of an activity diagram can be used to model parallel flow of
activities?
Forks
Resources accessible to every page in a website are usually place in which of the following
folders?
App_GlobalResources
A user wants to create a user Control for his ASP.NET application with the name
FeedbackControl. Which of the following steps will help him correctly perform this task?
1. Create a new file with the same FeedbackControl.ascx
2. Create an @Register directive at the top of the page and use the tagprefix and
tagname attributes to declare how the controls tags will be named
3. Create required user interface elements in the file.
4. Create required properties in the control that will be used to share between user
control and the hosting page.
Which of the following is an example of a non-human actor?
Date or time
Regarding LINQ to ADO.NET DataSet, which of the following represents a database
connection?
SqlConnection
RedSky Inc, has appointed a new legal advisor for the company. According to the policies of
the company there can be only one legal advisor at any given time.
What kind of pattern does legal advisor class represent?
Singleton
__ defines the features that are common to similar applications belonging to a particular
domain.
Framework
Which of the following options does not contain an attribute?
Interface
Sam has create a Web Part page for his ASP.NET application. He has added several Web
Part control in a Web Part Zone of the page. He has also added a DropDownList control to
the page to change the drop-down list at run time. Now Sam wants to modify the appearance
of a Web part control while running the application. Which of the following display modes
should he select from the DropDownList control to perform this activity?
Edit
Regarding recompilation of an ASP.NET Web application, which of the following statements
is correct?
You can precompile an application by using the aspnet_compiler.exe command-line tool
Your team of developers has developed a Web application for you organization and now the
application needs to be deployed on a server. The Web application contains a number of
ASPX and HTML files. One of the main requirements that you have is that your team should
be able to edit the files directly at the location where the application will be deployed. After
you have deployed the application, you want the files on the server and the source files on
your system to remain up-to-date with each other without requiring manual copying of the
files from one location to another each time they are edited. Keeping in view these
requirements, which deployment mechanism will you use?
Copy Web Site utility
Which of the following views focuses on assembling and configuring the component to
release the required software system?
Process view
Regarding an ASP.NET Web application, which of the following statements is correct?
After creating an ASP.NET application, the application files need to be stored on the Web
server.
Regarding LINQ, which of the following statements is correct?
You can iterate through the results of a LINQ using the foreach loop.
Which of the following is a Web site deployment tool that examines the file on both, the
source and the destination sites and makes sure that all files on both sites are up to date.
Copy Web Site Utility
John is updating an ASP.NET Web application currently hosted at www.MusicMania.com.
John needs to enable efficient error handling and logging facilities in the application. For that,
John has decided to log all application errors in a weblog log file. John has also created a
custom error page, named ErrorPage.aspx that will be displayed whenever any applications
error occurs.
Which of the following code snippets should John use in the Global.asax file to implement the
logging and error handling features?
String Log_File = Weblog;
string eventSource = www.weblog.com;
EventLog log = new EventLog();
if(!EventLog.SourceExists(eventSource))
{EventLog.CreateEventSource(eventSource,Log_File);
}
log.Source = eventSource;
log.WriteEntry(Error:,EventLogEntryType.Error);
Identify the correct syntax for declaring an attribute in a class diagram form the following
option
Visibility name: type multiplicity = default {property string}
You are assigned the task of developing a retail automation system. Currently you are
working in the designing phase of the application. When you create a blueprint for the
application, you observe the following conditions applicable to the design:
--A class can contain another class.
--A class can record the instances of another class
--A class can use the objects of another class
-- A class can provide information to initialize the objects of another class.
Keeping all these conditions in mind, which of the following design patterns should you
implement in the application so that it become more reusable and manageable?
Creator
Sam is a Web Developer at RedSky Inc. He wants to configure his application to store a
profile property PrefLocation in each user profile for all types of users whether they have
logged in or are visiting the site as anonymous users. To configure the profile properties for
this Web application, he has added the following mark up in the Web.config file:
<system.web>
<allowAnonymous enable = true>
<profile>
<properties>
<add name = PrefLocation type = System.String/>
</properties>
</profile>
</system.web>
However, on running the application the PrefLocation property is not stored for anonymous
users. How can the preceding markup be modified to correctly store the desired profile
properties for anonymous users?
<system.web>
<anonymousIdentification enable = true>
<profile>
<properties>
<add name = PrefLocation type = System.String allowAnonymous=true/>
</properties>
</profile>
</system.web>
Jonathan, a Web Developer at RedSky Inc., is developing an ASP.NET application. To
enable this application to be properly viewed on a mobile device he has developed a
separate default page, default.aspx in the MobileForms directory and written the following
code in the original default.aspx file to redirect a Web request from a mobile device to the
default.aspx page in the MobileForms directory.
protected void Page_Load(object sender, EventArgs e)
{
if(Response.Browser.IsMobileDevice)
Request.Redirect(MobileForms/default.aspx);
}
He has also inserted an <httpRuntime useFullQualifiedRedirectURL=true> tag in the
Web.config file, but when he tests this code it fives compile time errors. How can these error
be corrected?
Modify the given code as :
protected void Page_Load(object sender, EventArgs e)
{
if(Request.Browser.IsMobileDevice)
Response.Redirect(MobileForms/default.aspx);
}
Jonathan is working as a Service Engineer in an automobile service centre. He is required to
repair and fix the motor cars that are brought to the service center. He may be required to
replace the old parts of the motor cars with new spare parts. His responsibilities, therefore,
include updating of the inventory records with the current status of the availability of parts.
Also, when the stock of spare parts reaches its re-order level, he is required to forward a
requisition for the particular spare part to the parts supplier.
Identify the role of Jonathan in the above scenario to create the Business Process model
Business actor only
Which of the following directories of an ASP.NET application stores references to Web
services that are used by the Web application?
App_WebReferences
Consider the following markup in the file, MainPage.aspx:
<%@ Page Language=C# %>
<html>
<body>
<form id=Form1 runnat=server>
<asp:TextBox ID=InputName runnat=server />
<asp:Button ID=Button1 Text=Submit your details
PostBackUrl=WelcomePage.aspx runnat=server />
</form>
</body>
</html>
In the preceding code snippet, there is a textbox control named inputName and a buton
control that has its PostBackUrl property set to WelcomePage.aspx. When a user enters
his/her name in the textbox control and clicks the button, the form is submitted to the
Welcomepage.aspx page.
MainPage.aspx. The welcome message should be displayed in a label control, lblWelcome,
already placed on the page. The Welcome message should be displayed only after ensuring
that the WelcomePage was invoked using cross-page posting. Which of the following code-
snippet will you write to fulfill this requirement?
Void Page_Load(Object sender, EventArgs e)
{
if(Page.PreviousPage != null & Page.PreviousPage.IsCrossPagePostBack)
{
TextBox input = (TextBox) Page.PreviousPage.FindControl(inputName);
lblWelcome.Text = Hello, + input.Text;

John has been assigned the responsibility for the defining features that the Sales software
system should deliver. John assessed the economic, technical, and operational feasibility for
the proposed software system. He also identified the stakeholders and end users of the
proposed system. Which phase of Requirement management, is John working on?
Requirements gathering
The City Departmental Store has announce heavy discounts on some of its products during
the ongoing festive season. The store has also announced that the customers who are not
satisfied with the product they purchased can return the same within 10 days of purchase.
The store needs to keep a track of all the products so that they can be re-ordered whenever
the need be. They also need to keep a track of the products that are defective so that they
can be replaced. Robin a designer is required to develop the model for the functioning of the
departmental store. While developing the State Machine diagram for the products in the
store, Robin identified the following states of the products:
-- In Stock
-- Out Stock
-- Returned
However, the design was reject by the systems design specialist. Analyze the scenario and
provide the most suitable states that Robin should incorporate in his design.
The correct states for the products should be identified as:
-- In Stock
-- Out of Stock
-- Being Sold
-- Sold
-- Returned
-- Defected
NIIT-THANGLONG.NET
SUPPORT: Yahoo: cuocdoi_sangtrang8405
Ti Liu QFX Quarter 6 Ver 2
When a Web page uses a master page to help define its layout and functionality,
it is known as a_________ page.
1, Web Farm
2, Content
3, Web Form
4, Nested Master
2
2
Using which of the following can you maintain the state data of your web server
control, even when the ViewState
property is disabled for the page?
1, ControlState data
2, Session.Start
3, Application.Start
4, StateServer Mode
1
3
Which of the following data-bound controls displays one or more records from a
data source, one record at a time?
1, GridView Control
2, TreeView Control
3, DetailsView Control
4, DataList Control 3
4
Which of the following controls features hierarchical data-binding and may be
bound to an XmlDataSource or a
SiteMapDataSource?
1, DropDownList Control m
2, Menu Control m
3, DataList Control m
4, GridView Control m
2
5
Which of the following classes provides methods for creating, deleting, and
updating user accounts, authenticating users,
and managing passwords?
1, Members Class m
2, Membership Class m
3, Member Class m
4, FormsAuthentication Class m 2
6
Which of the following data-bound controls displays multiple records, typically
in a table and does not provide a
predetermined layout for the data.
1, Menu Control m
2, DataList Control m
3, GridView Control m
4, DetailsView Control m
2
7
Which of the following uses a separate resource file for each culture? m
1, Globalization m
2, Implicit Localization m
3, Explicit Localization m
4, Localization m
2
8
The public methods and properties of a master page can be accessed in a content
page by assigning a class name to the
master page. Which directive can be used to assign a class name to the master
page? M
1, <%@ Master %> m
2, <%@ Page %>m
3, <%@ MasterType %>m
4, <%@ Control %>m
1
9
Which of the following is NOT a feature of composite Web server controls?
1.They have a user interface that is composed of several custom Web server
controls.
2, They derive from the System.Web.UI.WebControls.CompositeControls class.
3, They create the child controls by overriding the CreateChildControlsmethod.
4, They are compiled into an assembly in the Bin folder before you deploy the
application. 1
10
Repeater, DataList, and GridView Web server controls are examples of which
type of controls?
1, User Controls m
2, Custom Web server controls m
3, Template controls m(ng)
4, Navigation controls m
3
11
Which of the following can be used to configure the way encryption is used to
protect forms authentication cookies and
view state information in a Web form?
1, <trace>
2, <machine Key>(ng)
3, <custom Errors>
4, <script>m
2
12
To use the objects of GDI+, an object of the Graphics class must be created.
Which of the following methods of the
Graphics class is used to free all the resources being used bythe currently loaded
graphic? M
1, Flush m
2, Dispose m(ng)
3, Clear m
4, Kill m 2
13
The Alternate View class can be used to embed an attachment to an E-mail
message. Which of the following enables the
Alternate View class to embed images in a message? M
1, Attachment m
2, Base Uri m
3, Content Link m
4, Linked Resources m(ng)
4
14
There are different ways of specifying security permissions in your code. Which
of the following uses code attributes to
specify the permissions that are required to execute an assembly? M
1, Imperative syntax m
2, caspol.exe m
3, Declarative syntax m(ng)
4, TlbImp.exe m
3
15
Host evidence is the evidence from the application domain or the host in which
an assembly executes. Which of the
following is NOT a type of host evidence? M
1, Site m
2, Zone m
3, Subscriber m(ng)
4, Hash m 3
16
"Consider the following statements in context of the encryption classes available
in .Net Framework 2.0:
Statement A: The Rijndael algorithm in the .Net Framework supports an
encryption key from 40 bits to 128 bits in
increments of 8 bits.
Statement B: RC"
1, Statement A is TRUE and statement B is FALSE. M
2, Statement B is TRUE and statement A is FALSE. M
3, Both statements, A and B, are TRUE. M
4, Both statements, A and B, are FALSE. M(ng)
4
17
ASP.NET profiles can be best described by which of the following options? M
1, An ASP.NET profile consists of a set of named properties that is stored
for each user. M(ng)
2, An ASP.NET a profile is a collection of property settings that enable a
developer to define the look of pages and controls
and then applies the look consistently across pages. M
3, An ASP.NET profile provides a tracing system that can be used to generate
the diagnostic information which can be
written to logs, text file, or the screen. M
4, An ASP.NET profile enables a developer to store objects and data in the
server's memory for reuse. m
1
18
ASP.NET themes can be best described by which of the following options?
1, An ASP.NET theme consists of a set of named properties that is stored for
each user. M
2, An ASP.NET theme is a collection of property settings that enable a
developer to define the look of pages and controls
and then applies the look consistently across page(ng)
3, An ASP.NET theme provides a tracing system that will used to generate the
diagnostic information which can be written
to logs, text file or the screen.
4, An ASP.NET theme enables a developer to store object and data in the
server's memory for reuse. m
2
19
After storing the name of the preferred theme for each user in the Preferred
Theme property of the user's ASP.NET profile,
which of the following code snippets can be used to set this theme
programmatically as each page loads? M
1, <@ Page Theme =Profile.PreferedTheme %>m
"2,<configuration>
<system.web>
<pages theme =Profile.PreferedTheme />
</system.web>
</configuration>m" "
3, void Page_PreInit (object sender, EventArgs e)
{
Page. Theme = Profile.PreferredTheme;
} " (ng)
4, void Page_Load (object sender, EventArgs e)
{
Page. Theme =Profile.PreferredTheme;
}m"
3
20
Which of the following can be used to set the "BlueSky" theme for the entire
application in the Web.config file? M
1, <@ Page Theme ="BlueSky" %>m
"2, <configuration>
<system.web>
<pages theme = "" BlueSky"" />
</system.web>
</configuration> m" " (ng)
3, void Page_PreInit(object sender, EventArgs e)
{
Page.Theme ="" BlueSky"" ;
}m"
"
4, void Page_Laod (object sender, EventArgs e)
{
Page. Theme ="BlueSky" ;
}m"
2
21
"Consider the following statements:
Statement A: While defining a theme, the name of the folder created in
App_Theme folder must be the same as the name
of the theme.
Statement B: While creating a skin file, the name of the skin file created must be
the"
1, Statement A is TRUE, Statement B is FALSE. M(ng)
2, Statement A is FALSE, Statement B is TRUE. M
3, both statements, A and B, are TRUE. M
4, both statements, A and B, are FALSE. M 1
22 "Consider the following statements in context of the Copy Web Site utility:
Statement A: If the Web site contains source files that do not compile, they will
not get copied by the Copy Web Site
utility.
Statement B: If the Copy Web Site utility is used as"
1, Statement A is TRUE and Statement B is FALSE. M
2, Statement A is FALSE and statement B is TRUE. M(ng)
3, both statements, A and B, are TRUE. M
4, both statements, A and B, are FALSE. M 2
23
While using the Publish Web Site utility, when you choose to prevent editing of
the ASPX files at the destination site, the
markup from the ASPX files is removed. What does the utility create instead of
the ASPX markup? M
1, .Exe file m
2, DLL assemblies m(ng)
3, HTML code m
4, Plain text m2
24 You can select "Allow this precompiled site to be updateable" option, to
be able to bring about changes in the aspx files
after publishing the site. What type of changes can you make to the aspx files on
selecting this option? m
1, Changes to the code of the ASPX files. m
2, Changes to the layout of the ASPX files. m
3, Changes to the location of the ASPX files. m
4, Changes to the extension of the ASPX files. m
2
25
Visual Studio 2005 includes Device Emulator 1.0. Which of the following is
NOT emulated by this software? M
1, Microsoft Windows CE 5.0 m
2, Microsoft Pocket PC 2003 m
3, Symbian OS S60 m
4, Microsoft Smartphone 2003 m 3
26
Which of the following Mobile controls is used to group child controls and can
modify several child controls in a single
operation? M
1, ObjectList m
2, Form m
3, Panel m
4, List m 3
27 In an application you are creating, the icon associated with MS Paint is to be
displayed to the users. This is required to
indicate that MS Paint will be opened if the users request to open any image files
within the application. Which of the
following code:
1, Icon PaintIcon =
Icon.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.exe"); m
2, SystemIcons PaintIcon =
SystemIcons.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.exe");
3, Icon PaintIcon =
IconConverter.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.exe");
4, SystemIcons PaintIcon =
SystemIcons.FromHandle("C:\WINDOWS\system32\mspaint.exe"); m 1
28
You are working as a System Administrator with RedSky Inc. You need to set
and configure the Security Policies to be granted to the assemblies being
created by the different developers in the organization. Before you carry out
this task, you want to view
1, Ienumerator policyEnum = SecurityManager.PolicyHierarchy();
while(policyEnum.MoveNext())
{PolicyLevel currentLevel = (PolicyLevel)policyEnum.Current;
Console.WriteLine(""Policy Level {0}:"", currentLevel.Label); } m"
2, Ienumerator policyEnum =SecurityManager.PolicyHierarchy();
while(policyEnum.MoveNext())
{PolicyStatement currentStatement =
(PolicyStatement)policyEnum.Current;Console.WriteLine(""Policy Level
{0}:"", currentStatement.Label); } m"
3, Ienumerator policyEnum =Assembly.PolicyHierarchy();
while(policyEnum.MoveNext())
{PolicyStatement currentStatement =
(PolicyStatement)policyEnum.Current;
Console.WriteLine(""Policy Level {0}:"", currentStatement.Label);
} m
4, Ienumerator policyEnum =SecurityManager.PolicyHierarchy();
while(policyEnum.MoveNext())
{Policy currentLevel =(Policy)policyEnum.Current;
Console.WriteLine(""Policy Level {0}:"", currentLevel.Label); } m"
1
29
Bryan has created an inventory control application. Now, for the assembly of this
application he wishes to provide certain customized metadata such as the version
number, creator's name, and description of the assembly. Which of the following
should Bryan?
1, Assembly class m
2, AssemblyInfo file m
3, Reflection m
4, PropertyInfo class m
2
30 .A memory management application developed by you needs to access certain
functions provided in kernel32.dll file
located in "C:\windows\system32" directory. Howwill you locate and call the
function included in kernel32.dll from your
application? m
1, Use Delegates. m
2, Use Platform Invoke. m
3, Copy the file in the application folder and reference it in the application.
4, Include the complete path of the file in the application's code. m 2
31
To eliminate the problem of flickering occurring on the screen while rendering
graphics, you have decided to implement double buffering in your code. You
need to allocate memory to a specific object for implementing double buffering
using the BufferedGrap
1, Graphics class m
2, BufferredGraphicsManager class m
3,SystemColors class m
4, BufferredGraphics class m
2
32 "Sam wants to configure his ASP.NET application to enable profiles and
define a FavColor property to track each user's
favorite color.
Sam also wants to configure the property to track both anonymous users and
logged-on users. He has already checked that
1, <system.web>
<properties>
<profile>
<anonymousIdentification enabled=""true"" />
<add name =""FavColor"" type=""System.String"" allowAnonymous=
""true""/>
</profile>
</propertie" "
2, <system.web>
<profile><properties>
<anonymousIdentification enabled=""true"" />
<add name =""FavColor"" type=""System.String"" allowAnonymous=
""true""/>
</properties>
</profile>
</system.web>m"
"
3, <system.web>
<anonymousIdentification enabled= ""true"" />
<profile>
<properties>
<add name = ""FavColor"" type= ""System.String"" allowAnonymous=
""true""/>
</properties>
</profile>
</system.web> m"
"
4, system.web>
<anonymousIdentification enabled=""true"" />
<properties><profile>
<add name =""FavColor"" type=""System.String"" allowAnonymous=
""true""/>
</profile>
</properties>
</system.web>m"
3
33 "Sam wants to definehis own page theme for his Web application with a
name LabelThm. The theme should be defined in
such a way that all Label controls
on the page should appear with the following settings:
Fore color =red
Font size=14pt
Font name=Verd"
1, a) Create a new folder LabelThm_Theme in \App_Themes folder for the
application.
b) In the LabelThm_Theme folder add a skin file with the name LabelThm.skin.
c) In the LabelThm.skin file, add the following definitions:
<asp:Label runat=" "
2, a) Create a new folder LabelThm in \App_Themes folder for the
application.
b) In the LabelThm folder, add a skin file with the name LabelThm.skin.
c) In the LableThm.skin file, add the following definitions:
<asp:Label runat= ""serve"
"
3, a) Create a new folder LabelThm_Theme in \App_Themes folder for the
application.
b) In the LabelThm_Theme folder, add a skin file with the name
LabelThm.aspx.skin.
c) In the LableThm.aspx.skin file, add the following definitions:
<asp:Label"
4, a) Create a new folder LabelThm in \App_Themes folder for the application.
b) In the LabelThm folder, add a skin file with the name LabelThm.aspx.skin.
c) In the LableThm.aspx.skin file, add the following definitions: <asp:Label
runat=""server" 2
34 ."Sam has created two themes with the names Theme1 and Theme2. Sam
wants to implement these themes at run time on
the basis of values of theme variables in the QueryString.
In case value of the theme variable is Thm1, Theme1 should be applied.
In case val"
"
1, void Page_Load (object sender, EventArgs e)
{switch (Request.QueryString[""theme""])
{
case ""Thm1"":
Page.Theme =""Theme1"";
break;
case ""Thm2"":
Page.Theme =""Theme2"";
break;
}
} m"
"
2, void Page_PreInit(object sender, EventArgs e)
{switch (Request.QueryString[""theme""])
{
case ""Thm1"":
Page.Theme(""Theme1"");
break;
case ""Thm2"": Page.Theme (""Theme2"")
3,
void Page_Load (object sender, EventArgs e)
{
switch (Request.QueryString[""theme""])
{
case ""Thm1"":
Page.Theme(""Theme1"");
break;
case ""Thm2"":
Page.Theme(""Theme2"");
break;
}
} m"
"
70 "For optimizing the performance of an inventory management system, J im
gathers the performance data for the application
by using the VTune performance Analyzer.
From the options given below, identify the next step he needs to perform to
successfully compl"
1,He needs to analyze alternatives before identifying issues that necessitate
application enhancement. M
2,He needs to implement enhancements and identify the data that necessitate
enhancement before generating
alternatives. M
3,He needs to analyze the gathered data and identify the performance issues
before generating alternatives. M
4,He needs to generate the possible enhancements. m 3
71 J ack develops a payroll application. He implements enhancements for the
application and tests the optimized version. He notices that results that the
optimized version computed are correct. However, the optimized version does
not reach the desired level o
1,He needs to analyze the application for system calls and implement
enhancements. M
2,He needs to identify alternatives and optimize issues that necessitate
application enhancement. M
3,He needs to optimize memory operations, floating point operations, and system
calls. M
4,He needs to reiterate through the entire optimization process step-by-step
and stop the optimization process when the
desired level of optimization is achieved. m 4
72 Sam has written a code to search for a string from the give list. However, on
carefully analysing the code, Sam found that a lot of imeis wasted in performing
an additional task of checking the end of the search string. How should Sam
optimize his code?
1,Use unrolling m
2,Use sentinel value m
3,Reduce work inside loops m
4,Combine loops m 2
73 Sam has developed an application in C#whose performance needs to be
analysed using Vtune. Sam wants to use the
tuning assistant feature of Vtune to get some advice for optimizing the
application. After invoking the tuning the assistant,
Sam wishes to vie
1,Workload insights m
2,System Info m
3,Hotspot insights m
4,Module insights m 2
74 Henry needs to collect remote sampling data for a remote J ava application.
He has prepared the target and controlling
systems by installing VTune Performance Analyzer on the controlling system,
enabling all three DCOM components on
target system, and spec
1,He needs to install the remote agent configuration required for
performing remote sampling on the target system and
enable the remote agent on target system. M
2,He needs to install the J ava application on the controlling system and restart
the target system. M
3,He needs to install a remote agent on the controlling system as on the target
system. M
4,He needs to install a fourth DCOM component on the target system. m
1
75 ."J im, a graphics designer at Websolutions Inc., is analyzing an application
which
is a web page developed using ASP.NET. The application is located on the
remote server, which has Windows 2000 Server
operating system and Intel P4 processor.
Suggest a feasi"
1, He needs to copy the application to his computer and then optimize the source
code. M
2, He needs to analyze the system level performance of the server. M
3, He needs to analyze the performance of the remote application on the
remote system using VTune
Performance Analyzer. M
4, He needs to launch the application in interactive mode on his local computer .
m
3
76 "In order to analyze the performance of a remote application, J ack installed
the VTune Performance Analyzer on the
controlling system and restarted the system. Hehas performed the following
steps:
A. Enabled the remote agent on the target system
B. Enable"
1,J ack did not install the remote application on the controlling system before
starting with remote data
collection. M
2,J ack did not specify the address of the controlling system on the target system.
M
3,J ack did not check if the configuration of the target system was same as that of
the controlling system before
starting with remote data collection. M
4,Jack did not install the DCOM component DbgExeCtrl on the target
system before starting with remote data
collection. m
4
77
"Sam needs to launch an application interactively on 100 mobile phones using
VTune Performance Analyzer.
Which of the following would enable Sam to launch the application
interactively? m"
1, He needs to install the full VTune analyzer product on all the mobile phones
and configure each one of them
system to act as the controlling system.
2, He needs to install the full VTune remote agent on all the mobile phones
and configure controlling system by installing Vtune analyzer on it. M
3, He needs to install the full VTune analyzer product on at least half of the
mobile phones and configure these
systems to act as the controlling systems. M
4, He needs to install the full VTune analyzer product on at least half ofthe
mobile phones and configure these
systems to act as the target systems. m
2
78 Henry needs to optimize the memory operations and system calls for a web
application. This application is a static web
page that accepts and displays information about the products and services of a
company. This information is stored in a
database. Which
1,He needs to write code that accesses memory sequentially and built
custom routines for accessing operating system
services.
2,He needs to reduce the number of floating-point operations and load data into
the memory before executing instructions,
so that the process need not wait for data. m
3,He needs to use large data structures. M
4,He needs to identify the floating-point operations and build custom routines so
that the process need not wait for data. m
1
79 .Henry needs to optimize an e-commerce application at the system-level and
application-level. Which of the below given options states the optimization goals
at these levels? M
1,At system level, improve application interaction with the system with
respect to DLLs and APIs and at application level, improve algorithms. M
2,At system level, improve algorithms and at application level, improve
application interaction with the system.
3,At system level, tune the processor according to the application and at
application level, improve algorithms.
4,At system level, improve algorithms and at application level, improve
application interaction with the
processor. m
1
80
"Consider the statements:
Statement A: The speed of the I/O operations is not limited by the speed of
memory.
Statement B: Floating-point operations consume both space and time.
Which of the following is true, with respect to the above statements? m"
1,Statement A is true and statement B is
false
.
2,Statement A is false and statement B is true.
3,Both, statements A and B, are true.
4,Both, statements A and B, are false.
2
82
Mike Womack is working as a software developer at SuperGraphics Inc. He
needs to use VTune to collect data for a
specific performance counter. In addition, he wants to analyze the performance
of the system during runtime to identify
system-related perform
1,Invoke Tuning Assistant for Counter-monitor based advice m
2,Invoke Tuning Assistant for call graph results m
3,Invoke Tuning Assistant for time-based sampling results m
4,Invoke Tuning Assistant for event-based sampling results m
1
83 Tom Wilkins is working as a software developer at Technology Systems.
Tom
needs to measure the performance of the processor that he is working on to
identify the level of achievable optimization.
He needs to measure the program execution time and a standa
"1,Calculate execution time as:
Execution time for a program =SUM (Execution time for each instruction).
Use the CPI standard metric to measure processor performance. m""
2,Calulate execution time as:
Execution time for a program =Number of instructions * (Clock cycles per
instruction) * (Number of seconds per clock
cycle). Use the Instructions Retired standard metric to measure processor
performance.
3,Calculate execution time as:
Execution time for a program = SUM (Execution time for each
instruction).Use the Instruction Retired standard metric to measure
processor performance. m"
"4,Calculate execution time as:
Execution time for a program =Number of instructions * (Clock cycles per
instruction) * (Number of seconds per clock
cycle). Use the Percentage of Floating-Point Instructions standard metric to
measure processor performance"
3
84 J im Lewis is working as a software developer at Technology Systems. J im
observes that the chat application developed by him performs slowly because the
processor has to wait for the data to be loaded into the cache. In addition, the
capacity of cache is a
1,Only A m
2,Only B m
3,Both A and B m
4,Both B and C m
1
85 /Pat Greene is working as a software developer. He is assigneda task of
developing an application that will be used by a
space research organization to launch a satellite. The performance of the
application should be the top priority. Pat
develops the app
1,One sampling run with minimal advice m
2, A few sampling runs with some advice m
3,Many sampling runs with more advice m
4,One sampling run with minimal advice or A few sampling runs with some
advice m
3
86
Ken Burton is working as a software developer at SuperGraphics Inc. Ken
observes that the performance of the phone book
application is slow due to the time taken during memory reads and writes. In
addition, the capacity of the cache is limited
and data ne
1,Only A m
2,Only B m
3,Both A and B m
4,Both B and C m
1
87 ."Pat Greene is working as a software developer at Super Graphics. He
develops a .Net application, which helps to store,
edit and retrieve reminders. He analyzes the performance of the code in VTune
Performance Analyzer.
Pat needs to view information about"
1,Module insights and the MoreInformation window m
2,Hotspots insights and System Info m
3,Top Insights and Relevance scale m
4,Top insights and the More Information window m
3
88 .True Travel Services uses a .Net application for reservation of tickets.
However, the users complain that the application takes more time than usual to
close after the details of the customers are entered. Donna Bard is working as a
software developer at
1,Top Insights m
2,Workload Insights m
3,Module Insights m
4,System Info m
1
89 .J im Lewis is working as a software developer at GoodGraphics Inc. The
performance of the inventory management application that he has developed is
affected due to mismatch in process and memory speed.He wants to optimize his
application in such a way so t
1,Temporal locality and paging m
2,Cache Efficiency m
3, Software Prefetch m
4,Data Alignment m 3
90 .Larry Williams wants to view the insights that have significant impact on the
performance of his application. Which of the
following options should Larry view using the tuning assitant? M
1,Workload Insights m
2,Static Analysis m
3,Top Analysis m
4,System Info m
3
91
91.Pat Greene is working as a software developer at Technology Systems. Pat
has developed a jukebox application on J ava
platform. Now, he needs to view the possible optimization that can be made to
the performance of the code using VTune.
Pat uses Sampling W
1,Check the "One sampling run with minimal advice" option and view the
Module insights for a selected process. M
2,Check the "One sampling run with minimal advice" option. M
3,Check the "Few sampling run with some advice" option and view the Hotspots
insights for a selected process. M
4,Check the "Many sampling run with more advice" option and view the
Modules insights for a selected process. m
4
92 "Ken Burton, a Software developer at Red Sky IT Systems, has developed a
chat application. However, it is observed that
the application is performing slowly. Some files of the application, such as .dll
files, interact at system level.
To analyze performan"
"
1,
1. Click the Select Range to Zoom/Drill Down button.
2. Select the range of interest in the Logged Data view to choose the
process for which Tuning Advice is required.
3. Select the Get Tuning Advice option from the View option of the
menu bar
2,
1. Select the Get Tuning
Advice option from the View option of the menu bar
to launch the Tuning Assistant.
2. Click the Select Range to Zoom/Drill Down button. m"
3,
1. Click the
Select Range to Zoom/Drill Down button.
2. Select the Get Tuning Advice option from the View option of the menu
bar
to choose the process for which
Tuning Advice is required.
3. Select the range of interest in the Logged Data view t
4,
1. Click the Select Range to Zoom/Drill Down button
2. Select the range of interest in theLogged Data view to choose the process
for
which Tuning Advice is required.
m" 1
93 Ken Burton is working as a software developer at InfoSuper Corp. Ken needs
to
t
rack system activity during runtime to determine if reduced available memory or
file I/O performance slows down applications. He uses Counter Monitor Wizard
of VTune to collec
1,View Top Insights. M
2,View Hotspots Insights. M
3,View Module Insights. M
4,View Relevance Scale. m
4
94 .Steve Irwin is working as a software developer at Blue Moon Computer Inc.
ocated at Texas. Steve develops a chat
application in J ava for an educational institute. The chat application enables
students at remote locations to communicate with each
other. H
1, Software Prefetch m
2, Data Alignment m
3, Cache Compulsory Loads m
4, Cache Conflict Loads m
1
95 "Tom Wilkins is working as a software developer at Technology Systems. He
needs to use Sampling Wizard to collect
performance data and analyze the performance of a code using Vtune.
He wants to configure the wizard to automatically generate the tuning adv"
1, Check the automatically generate tuning advice option. m
2, Check the automatically generate tuning advice option, use Tuning
Assistant to compare multiple sampling activity results. m
3, Uncheck the automatically generate tuning advice option. m
4, Invoke Tuning Assistant by using the F8 key. M
2
96 "You are working as an application developer. You develop a C#application
and written the following code:
For (k =0; k <last; k++)
{// Value of t and p is constant
a[k] =b[k] * t . P;
}When you run the application you find that the applicant"
1, Split the for loop into two separate for loops. M
2, Use Sentinel Values. M
3, Reduce work inside loops m
4, Use Unrolling. M
3
97 "Consider the statements:
Statement A: The time complexity is the amount of time taken to compute the
steps involved in an algorithm.
Statement B: The space complexity is the amount of memory that a program
requires to accomplish a task.
Which of the follow"
1, Statement A is true and statement B is false. M
2, Statement A is false and statement B is true. M
3, both, statements A and B, are true. M
4, both, statements A and B, are false. M
3
98 .J ohn develops an application using C programming language. The
application is used to draw various pie charts and bar
diagrams. Which of the following categories of performance library should he
use to optimize the performance of this application? m
1, Graphic Libraries m
2, Image Processing Libraries m
3, Math Libraries m
4, Audio/Video Libraries m
1
99 ."Identify the optimization technique that can be used to improve the
performance of the following code:
For (j=1; j <700; j++)
For (I =1; I <455; i++)
a =a +b [i, j]; m"
1, using unrolling m
2, Using sentinel values m
3, Using faster functions m
4, Changing the order of loops m 4
100 "Consider the statements:
Statement A: Space complexity is the amount of memory that a program requires
to accomplish a task.
Statement B: Space complexity is the only criterion to measure the efficiency of
a program.
Which of the following is true, with r"
1, Statement A is true and statement B is false. m
2, Statement A is false and statement B is true. m
3, both, statements A and B, are true. m
4, both, statements A and B, are false. m
1
101
Identify the level of memory hierarchy that speeds up the execution of
instructions by providing fast access to intermediate
values computed during a calculation. m
1, Virtual Memory m
2, Main Memory m
3, Level1 Cache m
4, Registers m
4
102 Identify the processor performance parameter that indicates the amount of
time it takes to execute a particular process. m
1, Turnaround Time m
2, Instruction Execution Time m
3, Program Execution Time m
4, Response Time m
1
103 Which of the following indicates the number of processes that complete
their execution per unit time? m
1, Throughput m
2, Turnaround time m
3, Instruction execution time m
4, Program execution time m
1
104 Which one of the following options enables a processor to load a specific
location of memory before it is required for
processing? m
1, Cache conflict loads m
2, Cache capacity loads m
3, Data alignment m
4, Software Prefect m 4
105 A high value of which of the following processor's utilization measures,
indicates low resource utilization? m
1, Clocks Cycles Per Instructions Retired (CPI) m
2, Percentage of floating-point instructions m
3, CPU bursts m
4, Waiting time m
1
106 J im is a software developer, working with SSPT Corporation, develops a
process-intensive application. J im needs to perform micro architecture-level
tuning to increase the performance of the application. J im decides to use the
Vtune Performance Analyzer to
1,Sampling m
2,Call Graph m
3,Counter Monitor m
4,Tuning Assistant m 1
107 J im Lewis, the software developer at Global Systems Inc, develops an
application on .NET platform. J im decides to use
VTune Performance Analyzer to monitor the system-level performance
information, such as resource consumption, during the
execution of the
1,Call Graph m
2,Counter Monitor m
3,Sampling m
4,Both Call Graph and Sampling m
2
108 "Consider the statements:
Statement A: Summary view represents the summary data for each selected
counter as a bar diagram.
Statement B: Legend provides the minimum, maximum, and average values for
the selected counter.
Which of the following is true, with"
1,Statement A is true and statement B is false. m
2,Statement A is false and statement B is true. m
3,Both, statements A and B, are true. m
4,Both, statements A and B, are false. m
3
109 Larry Williams is a software developer at Red Sky IT System. Larry
develops a networking application on J ava platform
for a New York based banking organization. Larry needs to tune the performance
of the application using VTune performance
Analyzer. Larry
1,Call Graph m
2,Time-based Sampling m
3,Event-based Sampling m
4,Counter Monitor m 4
110 J im is a software developer, working with InfoSuper Corp, develops a
gamming application on J ava platform. J im finds that the application is
performing slowly. He decides to tune the application by observing the
functional flow of the application and imp
1,Counter Monitor m
2,Time-based Sampling m
3,Event-based Sampling m
4,Call Graph m
4
111 Which of the following enables you to identify the threads that are running
serially and the threads that are running in
parallel? m
1,Counter Monitor view m
2,Sampling Over Time view m
3,Call Graph view m
4,Hotspots view m
2
113 J ohn Barrett is working as a Software developer. J ohn develops a gaming
application on the .NET platform. He finds that
the application is performing slowly. He decides to use the Intel Vtune
Performance Analyzer to monitor the performance of the
applica
1,Sampling Wizard m
,Quick Performance Analysis Wizard m
3,Complete Setup Wizard m
4,Advance Activity Configuration m
4
114 Sam has developed an application in C#whose perfornamce needs to be
analyzed using the sampling feature of Vtune.
Sam decides to use the Over Time view to gather various information relating to
the application. Which of the following option Sam
will not
1,Context Switching m
2,Function calling Sequence m
3,Thread interaction m
4,Processor
116 utilization m Which of the one following options enables you to tune
application performance and its usage of system resources? m
1, Sampling m
2, Call Graph m
3, Counter Monitor m
4, Tuning Assistant m
117 Which feature of tuning assistant suggests steps to remove or avoid a
problem? m
1, Insight m
2, Relevance Scale m
3, Advice m
4, Workload m
118
Which feature of Tuning Assistant indicates the problem that could be hindering
the performance of the application? m
1, Insight m
2, Relevance Scale m
3, Advice m
4, Workload m
119
Which feature of Tuning Assistant mentions about the applications that were
running when VTune Performance Analyzer
was profiling the system? m
1, Insight m
2, Relevance Scale m
3, Advice m
4, Workload m
120
Which of the following is NOT true about remote data collection in Intel Vtune?
m
1, To initiate remote data collection, you need to enable the remote agent on the
target system. m
2, To initiate remote data collection, you need to disable DCOM components
on the target system. m
3, To initiate remote data collection, you need to enable the controlling system
from which the remote performance data needs to be
collected. m
4, To initiate remote data collection, you need to specify the target system on
which the remote application is running. m 2
121 . Which of the following is NOT true about threads? m
1, Threads increases the performance and the ability to use multi-core
processors. m
2, Threads do not facilitate data sharing. m
3, Threads enables you to effectively utilize the hardware resources. m
4, Improper use of threads leads to degraded performance. m
2
122
According to which condition for a deadlock to occur, a resource can be released
by a thread holding it? m
1, Mutual exclusion m
2, No preemption m
3, Hold and wait m
4, Circular wait m
123 What is hold and wait condition in a deadlock? m
1, A condition where a resource is either available or assigned to one thread m
2, A condition where threads already holding resources may request for new
resources m
3, A condition where a thread holding a resource can only release it m
4, A condition where two or more threads form a circular chain where each
thread waitsfor a resource that the next thread in chain holds
124
What is a race condition? m
1, A condition when two or more threads simultaneously access the same
memory location while atleast one thread is updating that
location. m
2, A condition that occurs when a programmer assumes a particular order of
execution and guarantees that order through
synchronization. m
3, A condition that occurs when a thread does not progress on assigned
computations, but the thread is not blocked or waiting. m
4, A condition that occurs when a thread does not progress on assigned
computations because it is blocked or waiting. m 1
125 . What is mutual exclusion? m
1, It refers to a program logic in which only one thread should be executing
in a critical region at any time. m
2, It is a portion of code that access shared variables. m
3, It is a situation in which a thread waits for a resource which is currently held
by some other thread. m
4, It is a measure of how busy the threads are during parallel computations. m 1
126 Sam is a Web Developer at RedSky Inc. He is developing a Web
Application in ASP.NET. He has already configured the
application to enable ASP.NET profiles and defined the FavColor property to
track the user's favorite color. Next, he adds a Label
control w "1,void Page_Load(object sender, System.EventArgs e)
{
lblFavColor.Text =Profile.properties(""FavColor"");
}m"
"2,void Page_Load(object sender, System.EventArgs e)
{
lblFavColor.Text = Profile.FavColor;
}m"
"3,void Page_Load(object sender, System.EventArgs e)
{
lblFavColor.Text =Profile.properties.FavColor;
}m"
"4,void Page_Load(object sender, System.EventArgs e)
{
lblFavColor.Text =Properties.profile.FavColor;
}m"
127
Sam is developing an ASP.NET application which displays values of controls on
the review.aspx page according to the
language and culture settings preferred by the user. For this, he wants to use
implicit localization on the review.aspx page. He creates a
1,Store the resource file in App_GlobalResources folder in place of
App_LocalResources folder. M
2,Enable automatic culture determination for the page by adding
uiculture="auto" to the <% Page%> directive. 3,Enable automatic
culture determination for the page by adding uiculture="true" to the
<%Page%> directive. 4,Rename the file "review.aspx.fr.resx" as
"review.aspx.en.fr.resx". m
128 Sam is developing an ASP.NET application which displays values of
controls on the review.aspx page according to the language and culture preferred
by the user. He creates a default resource file review.aspx.resx and a
review.aspx.fr.resx resource file for
1,Store the resource files in the App_LocalResources folder in place of
App_GlobalResources folder. M
2,Enable automatic culture determination for the page by adding uiculture="true"
to the <%Page%>directive. M
3,Rename the file "review.aspx.fr.resx" as "review.aspx.en.fr.resx" m
4,Enable automatic culture determination for the page by adding
uiculture="enable" to the <%Page%>directive. m
129
Sam is developing an ASP.NET application which contains an
enquiry.aspx page. This page accepts three parameters from
the user as "name", "city" and "country". To improve the performance of the
application he wants to cache multiple versions of the
enquir
"
1,Response.Cache.VaryByParams(""country"", true);
Response.Cache.VaryByParams(""city"", true); m"
2,Response.Cache.VaryByParams[*] =true; m
"
3,Response.Cache.VaryByParams[""country""] = true;
Response.Cache.VaryByParams[""city""] = true; m"
4,Response.Cache.VaryByParams["country", "city"] =true; m
130. Sam is the administrator of the shopping site of RedSky Inc. In the
SurveyReport.aspx page of this site he wants to add the
code that will log data in the Microsoft Windows event log. This data will
contain the time when the loading of SurveyReport.aspx p
"
1,The given code should be modified as:
DateTime dtmStart =DateTime.Now;
if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey""))
{
System.Diagnostics.EventLog.CreateEventSource(""LoadTime_Survey"", ""
RedSky_Shopping "");
}System.Diagnostics.E"
"
2,The given code should be modified as:
DateTime dtmStart = DateTime.Now;
if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey""))
{
System.Diagnostics.EventLog.CreateEventSource(""LoadTime_Survey"",
"" RedSky_Shopping "");
}System.Diagnostics.E"
"
3,The given code should be modified as:
DateTime dtmStart =DateTime.Now;
if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey""))
{
System.Diagnostics.EventLog.CreateEventSource(""LoadTime_Survey"", ""
RedSky_Shopping "");
}System.Diagnostics.E"
"
4,The given code should be modified as:
DateTime dtmStart =DateTime.Now;
if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey""))
{
System.Diagnostics.EventLog.CreateEventSource("" RedSky_Shopping "",
""LoadTime_Survey"");
}System.Diagnostics.E"
2
131
"Sam is a Web developer at RedSky Inc. He needs to create custom
server controls for his application with the name
WelcomeLabel.
For that he creates a file called WelcomeLabel.cs and adds the following code to
this file.
using System;
using System.W"
"
1,Modify the code for the WelcomeLabel class as:
public class WelcomeLabel:CustomControl
{
protected override void RenderControl (HTMLTextWriter writer)
{
writer.Write(""Welcome"");
}
}m"
"
2,Modify the code for the WelcomeLabel class as:
public class WelcomeLabel:CompositeControl
{
protected override void RenderContents (HTMLTextWriter writer)
{
writer.Write(""Welcome"");
}
} m"
"
3,Modify the code for the WelcomeLabel class as:
public class WelcomeLabel:WebControl
{
protected override void RenderControl (HTMLTextWriter writer)
{
writer.Write(""Welcome"");
}
}m"
"
4,Modify the code for the WelcomeLabel class as:
public class WelcomeLabel:WebControl
{
protected override void RenderContents (HTMLTextWriter writer)
{
writer.Write(""Welcome"");
}
}m"
4
Reviewed Questions
01. Creating User Services
1
____________ uses business objects for handling business rules and data access. 1,Three-
tier architecture
2,Two-tier architecture
3,Single-tier architecture
4,N-tier architecture
Answer: 4
2
A cross-platform, hardware and software independent markup language that enables you to
store data in a structured format by using meaningful tags that can be interpreted by any
computer system is________________.
1,XML
2,HTML
3,DHTML
4,JavaScript
Answer: 1
3
______________ helps you to create logical groups of related classes and interfaces that can be used by
.NET products.
1,Assembly
2,Class Libraries
3,Namespaces
4,Portable executable
Answer: 3
4
Which of the following statements is true for an assembly?
1,An assembly helps you to create logical groups of related classes and interfaces.
2,An assembly contains the declaration of properties, methods, and events.
3,An assembly contains information about the implementation of classes, structures, and
interfaces.
4,An assembly provides the functionality for security, debugging, and exception handling.
Answer: 3
5
Consider the following statements:
Statement A: The .NET Framework consists of Web Forms, Windows Forms, and Console
applications that pertain to the presentation layer of an application.
Statement B: Web Forms are used in Web-based applications, whereas Windows Forms are
used in Windows-based applications for providing an interactive user interface.
Which of the following is true with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 2
6
Which of the following tab becomes active by default when you finish creating a Help Project file?
1,Project
2,Index
3,Content
4,Options
Answer: 1
Page 1 of 24
01. Creating User Services
7
Sam has build up a help system and now he wants to link the help system with his application.
Which of the following property of HelpProvider control he should choose to do this?
1,HelpNamespace
2,HelpKeyword
3,HelpNavigator
4,ShowHelp
Answer: 1
8
Consider the following statements:
Statement A: Language interoperability is the ability of an application to interact with another
application written in a different programming language.
Statement B: The CLR supports language interoperability by specifying and enforcing a common
type system and by providing metadata.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 2
9
Consider the following statements:
Statement A: The CLR provides the garbage collection feature for managing the life cycle of an
object.
Statement B: The objects whose life cycle is managed by the garbage collection process are
called managed data.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 2
10
Consider the following statements:
Statement A: A syntax error occurs when an application attempts to perform an operation that is
not allowed. An example of such an error is division by zero
Statement B: A run-time error occurs when the compiler cannot compile the code.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 1
Page 2 of 24
01. Creating User Services
11
You have created a data access application. You have compiled and run the application
successfully. However, you identify that the application has failed to give the expected results.
Which of the following statements hold true for the scenario?
1,You have not created appropriate logic in the application for the expected results.
2,You have not coded for handling exceptions. Therefore, the application has not given the
expected results.
3,You have not set break points in the application at appropriate code statements. Therefore, the
application has not given the expected results.
4,There is syntax error in the application.
Answer: 1
12
Which of the following sequences will give a reverse and sorted array a (20) as the output?
1,a.sort();
a.reverse();
2,a.reverse();
a.sort();
3,a.preserve();
a.reverse();
4,a.sort();
a.redim();
Answer: 1
13
Identify the error in the following lines of code:
Public Function dialogbox()
Dim FileDlg As New FileDialog()
FileDlg.ShowDialog()
End Function
1,The parentheses after the FileDialog class are not required.
2,ShowDialog() is not a member function of the FileDialog class.
3,An instance of the FileDialog class cannot be declared inside a Function procedure.
4,You cannot create an instance of the FileDialog class because it is an abstract class.
Answer: 4
14
When using a parameterized query, which of the following is the best place for using the Fill() method of
the data adapter to fill the dataset object?
1,In the Load event of the form
2,In the Activate event of the form
3,In the RowUpdated event of the OleDbDataAdapter object
4,In the Click event of a button specified for the execution of the parameterized query
Answer: 4
Page 3 of 24
01. Creating User Services
15
You need to display the transaction details and the description for all products stored in the
SalesTransaction table. The product details are stored in the Products table. Transaction details
are stored in the SaleTransaction table. The product details must be displayed in text controls,
while the transaction details must be displayed in a DataGrid control. Identify the correct
sequence of steps that need to be performed to display product details in text box controls and
the corresponding transaction details in a DataGrid control.
1,1. Create a single connection.
2. Create OleDbDataAdapter for the SalesTransaction table.
3. Create OleDbDataAdapter for the Products table.
4. Generate a single dataset for the two data adapters.
5. Create a relationship between the two tables.
2,1. Create a single connection.
2. Create a relationship between the two tables.
3. Create OleDbDataAdapter for the SalesTransaction table.
4. Create OleDbDataAdapter for the Products table.
5. Generate a single dataset for the two data adapters.
3,1. Create a single connection.
2. Create OleDbDataAdapter for the SalesTransaction table.
3. Create a relationship between the two tables.
4. Create OleDbDataAdapter for the Products table.
5. Generate a single dataset for the two data adapters.
4,1. Create a relationship between the two tables.
2. Create a single connection.
3. Create OleDbDataAdapter for the SalesTransaction table.
4. Create OleDbDataAdapter for the Products table.
5. Generate a single dataset for the two data adapters.
Answer: 1
16
A crystal report named crystalreport1 is present in the application. The Report needs to be
refreshed when a button (button1) is clicked. Which code snippet ensures that the report will
refresh with the details in it?
1,Private Sub CrystalReportViewer1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles CrystalReportViewer1.Load
CrystalReportViewer1.ReportRefresh
End Sub
2,Private Sub CrystalReportViewer1_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles CrystalReportViewer1.GotFocus
CrystalReportViewer1.ReportRefresh
End sub
3,Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
CrystalReportViewer1.ReportRefresh
End Sub
4,Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
CrystalReportViewer1.Refresh
End Sub
Answer: 4
Page 4 of 24
01. Creating User Services
17
The logjam company needs to view a summarized report containing the order details for the
products with sale price greater than $300. The company also needs to view the percentage of
the sale price paid as advance for each order. What is the correct sequence of performing tasks
to achieve the desired result?
1,Retrieve the filtered data from the database.
Create a crystal report manually and group the data.
Create the formula for calculating percentage.
Host the Crystal Report.
Write the code to fill the Dataset.
View the Crystal report.
2,Retrieve the filtered data from the database.
Create a crystal report manually and group the data.
Host the Crystal Report.
Create the formula for calculating percentage.
Write the code to fill the Dataset.
View the Crystal report.
3,Retrieve the filtered data from the database.
Create a crystal report manually and group the data.
Create the formula for calculating percentage.
Host the Crystal Report.
View the Crystal report.
4,Retrieve the filtered data from the database.
Create a crystal report manually and group the data.
Host the Crystal Report.
Write the code to fill the Dataset.
Create the formula for calculating percentage.
View the Crystal report.
Answer: 1
18
Consider the following statements:
Statement A: Constructors are special methods that allow control over the initialization of objects.
Statement B: Destructors are special methods that are used to store the instance of a class in
the memory.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 1
2. Creating and Managing Components and .NET Assemblies
19
The ability of a class to implement functions with the same name that are performing different actions
depending on how they are called is known as ____________.
1,Assembly
2,Inheritance
3,Abstract classes
4,Polymorphism
Answer: 4
Page 5 of 24
02. Creating and Managing Components and .NET Assemblies
20
Which project template should be chosen from the Visual Basic Projects list to create a
component class?
1,Class Library
2,Windows Control Library
3,Windows Application
4,Web Control Library
Answer: 1
21
Consider the following statements:
Statement A: A component can contain a private constructor.
Statement B: A component cannot contain the friend constructor.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 3
22
Consider the following statements:
Statement A: A class becomes a component when it follows defined standards of interaction
provided by the IComponent interface.
Statement B: Implements keyword can also be used to inherit an interface from another
interface.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 3
23
David is making changes to an application, in which he is resizing the control. He wants that
whenever he changes the size of the control, the control should be redrawn. Which of the
following step will he follow to achieve this?
1,Change the size of the ClipRectangle object.
2,Set ResizeDraw property of the control to True.
3,Override the OnPaint() method.
4,Change the value of PaintEventArgs object that is going as an argument of OnPaint() method.
Answer: 2
24
You want to create a new control. This control should be reusable and should include the
interface of a button and a textbox. What mechanism will you use to create the control? 1,Create
a user control and add a button and a textbox to the control in the user control designer view.
2,Customize a button control to include a textbox control.
3,Create a user control and inherit it from a button control and a textbox control.
4,Implement the control class and add a button and a textbox object to it.
Answer: 1
Page 6 of 24
02. Creating and Managing Components and .NET Assemblies
25
Which of the following information is NOT present in WSDL document?
1,Available Web services for a given Web site.
2,Types of parameters that need to be passed to a Web service.
3,Type of value that is returned by a Web service.
4,Type of protocol to be used for accessing the Web service.
Answer: 4
26
Consider the following statements:
Statement A: Component Object Model (COM) is a language independent architecture that
defines specifications for component interoperability.
Statement B: COM objects or ActiveX DLLs created using earlier versions of Visual Basic can be
called from .NET code.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 2
27
Consider the following statements:
Statement A: Delegates are objects that you use to call the methods of other objects.
Statement B: Delegates are said to be object oriented function pointers since they allow a
function to be invoked indirectly by using a reference to the function.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 2
3. Consuming and Manipulating Data
28
Which property of the DataView is used to specify an expression to filter the records? 1,Sort
Property
2,Table Property
3,RowStateFilter Property
4,RowFilter Property
Answer: 4
29
Which of the following collection objects stores the rows of the data table?
1,DataColumn
2,DataRow
3,DataTable
4,Rows
Answer: 2
Page 7 of 24
03. Consuming and Manipulating Data
30
You need to calculate percentage field in a blank report. Which field should be selected from Field
Explorer windows to perform this task?
1,Formula Fields.
2,Running Total Fields.
3,Group Name Field.
4,Special Fields.
Answer: 1
31
The Break list box only appears for __________ type fields.
1,Datetime
2,String
3,Number
4,Boolean
Answer: 1
32
Which of the following properties of data adapter represents the data command to be executed when the
connection is opened?
1,Connection
2,CommandText
3,CommandType
4,Parameters
Answer: 2
33
Consider the following statements:
Statement A: A CurrencyManager object handles the binding to the data source by keeping a
pointer to the current item in the record list.
Statement B: A BindingContext object is used to keep track of the existing CurrencyManager
objects on a form.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 2
4. Testing, Debugging, and Deploying Windows-based applucations
34
Consider the following statements:
Statement A: An interface contains the declaration of properties, methods, and events.
Statement B: An assembly is a single deployable unit that contains all the information about the
implementation of classes, structures, and interfaces.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B are False.
2,Both, Statement A and Statement B are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 2
Page 8 of 24
04. Testing, Debugging, and Deploying Windows-based applucations
35
Consider the following statements:
Statement A: A Web Service is an application or business logic that is accessible through
standard Internet protocols such as HTTP and SOAP.
Statement B: A Web service can be identified by a URL and its public interfaces and bindings
are described using XML.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 2
36
What is the extension of the file that is generated by .NET after building a Web setup project? 1,.msm
2,.msi
3,.msl
4,.cab
Answer: 1
37
Which of the following files contains the debug information about the project? 1,.exe
2,.dll
3,.pdb
4,.vb
Answer: 3
38
Consider the following statements:
Statement A: You can use the On Error GoTo 0 statement to disable any error handler.
Statement B: You can use the On Error GoTo 0 statement to specify that when an error occurs,
the control should pass to the next line of code.
Which of the following is true, with respect to the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer: 3
Page 9 of 24
04. Testing, Debugging, and Deploying Windows-based applucations
39
Which of the following options correctly describe the process flow for debugging an application by
tracing and rectifying an error.
1,1. Write code for an application
2. Set a breakpoint
3. Start the application by using the Start option from the Debug menu.
4. Execution halts at the breakpoint that you had set
5. Trace the sequence of execution by using the Step Into, Step Out, Step Over statements.
6. Resume the execution or Stop the execution, rectify the error, and start the application again.
2,1. Write code for an application
2. Trace the sequence of execution by using the Step Into, Step Out, Step Over statements.
3. Start the application by using the Start option from the Debug menu.
4. Set a breakpoint
5. Execution halts at the breakpoint that you had set
6. Resume the execution or Stop the execution, rectify the error, and start the application again.
3,1. Write code for an application
2. Set a breakpoint
3. Start the application by using the Start option from the Debug menu.
4. Trace the sequence of execution by using the Step Into, Step Out, Step Over statements.
5. Execution halts at the breakpoint that you had set
6. Resume the execution or Stop the execution, rectify the error, and start the application again.
4,1. Start the application by using the Start option from the Debug menu.
2. Set a breakpoint
3. Write code for an application
4. Execution halts at the breakpoint that you had set
5. Trace the sequence of execution by using the Step Into, Step Out, Step Over statements.
6. Resume the execution or Stop the execution, rectify the error, and start the application again.
Answer: 1
5. Maintaining, Supporting, Configuring and Securing a Windows-based Application
40
Which property of a control specifies the type of user interface element?
1,AccessibleName
2,AccessibleDescription
3,AccessibleRole
4,Text
Answer: 3
41
What do you understand by localization?
1,The process of customizing the application for specific cultures or regions.
2,The process of testing whether the applications executable code is independent of the culture
and language-specific or not.
3,The first step in building the world-ready application.
4,The process of writing culture-neutral and language-neutral code for an application.
Answer: 1
42
Which of the following files is NOT the correct type of security policy level?
1,Enterprise policy
2,Machine policy
3,User policy
4,Server policy
Answer: 4
Page 10 of 24
05. Maintaining, Supporting, Configuring and Securing a Windows-based Application
43
Which of the following is NOT a property of the SecurityException class?
1,PermissionState Property
2,PermissionType Property
3,GrantedSet Property
4,ObjectData Property
Answer: 4
44
You are creating an application in which you are adding tool tip. You want that when you move
mouse pointer from one tool tip region to another, the tool tip should take 1sec to appear. Which
of the following value will you set for AutomaticDelay property so that ReshowDelay property
comes to 1secs?
1,4000
2,1000
3,4
4,4
Answer: 1
45
Mary is updating an application for PressInfo company. The client wants that the application
should be France specific, and the currency used should be U.S. dollars. Which of the following
syntax she should follow to achieve this?
1,Imports System.Globalization
Imports System.Threading

Dim newCulture as new CultureInfo(fr-FR)
newCulture.NumberFormat.CurrencySymbol=$
Thread.CurrentThread.CurrentCulture=newCulture
2,Imports System.Globalization
Imports System.Threading

Dim newCulture as new CultureInfo(fr-FR)
newCulture.NumberFormat. TextInfo =$
3,Imports System.Globalization

Dim newCulture as new CultureInfo(fr-FR)
newCulture.NumberFormat.CurrencySymbol=$
4,Imports System.Globalization
Imports System.Threading

Dim newCulture as new CultureInfo(fr-FR)
newCulture.NumberFormat.TextInfo=$
Thread.CurrentThread.CurrentCulture=newCulture
Answer: 1
6. Creating User Services in ASP.NET
Page 11 of 24
06. Creating User Services in ASP.NET
46
You have developed a Web application for Webshoppe shopping site. You want to keep track of
the number of times a page has been requested. You want to ensure that when multiple users
access the same page, there should not be any deadlock situation. Which of the following lines
of code will enable you to accomplish the task?
1,Application.UnLock ();
if (Application["PageCounter "] == null)
Application["PageCounter "]=0;
Application["PageCounter"]=(int)Application["PageCounter"]+1;
Response.Write(Application["PageCounter"]);
Application.Lock();
2,Application.Lock();
if (Application["PageCounter "] == null)
Application["PageCounter "]=0;
Application["PageCounter"]=(int)Application["PageCounter"]+1;
Response.Write(Application["PageCounter"]);
Application.UnLock();
3,Application.Lock();
Application["PageCounter"]=(int)Application["PageCounter"];
Response.Write(Application["PageCounter"]);
4,PageCounter
Application["PageCounter"]=Application["PageCounter"]+1;
Response.Write(Application["PageCounter"]);
Application.UnLock();
Answer: 2
47
The IsPostBack property of the page allows you to check whether the page is being requested
for the first time. How will you ensure that the initialization code on the page runs only once?
1,By setting the IsPostBack property of the Web page to 0.
2,By setting the IsPostBack property of the Web page to False.
3,By setting the IsPostBack property of the Web page to 1.
4,By setting the IsPostBack property of the Web page to True.
Answer: 2
48
Consider the following two statements:
Statement A: The ID property of HtmlSelect control gets or sets the unique identifier to the
HtmlSelect control for reference at client side.
Statement B: The Name property of HtmlSelect control gets or sets the unique identifier to the
HtmlSelect control for reference at server side.
Which of the following is true, with respect to the above statements?
1,Statement A is True and statement B is False.
2,Statement A is False and statement B is True.
3,Both, Statement A and Statement B, are True.
4,Both, Statement A and Statement B, are False.
Answer: 4
49
While using graphics for Web sites, which of the following design guideline should NOT be followed?
1,Use alternate text for image
2,Ensure proper size of the image
3,Increase the image resolution for clarity.
4,Use Image map to define links with meaning full alternate text
Answer: 3
Page 12 of 24
06. Creating User Services in ASP.NET
50
Which of the following features of ASP.NET enables user to manage Web applications by storing the
configuration information in an Extensible Markup Language (XML) file.
1,Manageability
2,Scalability
3,Security
4,Extensibility
Answer: 1
51
Consider the following two statements:
Statement A: The AdvertisementFile property of the AdRotator control is used to set the name of
the advertisement file containing the advertisement to be displayed.
Statement B: The Target property is used to specify the name of the Web browser window that
will display the contents of the linked Web page when the AdRotator control is clicked.
Which of the following is true, with respect to the above statements?
1,Statement A is True and statement B is False.
2,Statement A is False and statement B is True.
3,Both, Statement A and Statement B, are True.
4,Both, Statement A and Statement B, are False.
Answer: 2
52
Which of the following programming models are used in ASP.NET? 1,Web
Forms and Web Components
2,Web Console and Web Forms
3,Web services and Web Forms
4,Web services and Web Components
Answer: 3
53
In the process of making an application ready for international customers consider the following
statements:
Statement A: Globalization phase involves testing of an application.
Statement B: Localization is the phase for designing and implementing user specific locale.
Which of the following is True, with respect to the above statements?
1,Both, Statement A and Statement B, are True.
2,Both, statement A and Statement B, are
False. 3,Statement A is True and statement B is
False. 4,Statement A is False and statement B
is True. Answer: 2
54
Which of the following statement is true regarding the code given here:
If Page.IsPostBack Then
ViewState("color") =txtColor.text
Else
txtColor.text=ViewState("color")
End If
1,This code cannot be compiled as there is no ViewState() function available.
2, This code is only storing the value of the txtColor in ViewState variable color.
3,This code is storing the value of the txtColor in ViewState variable color when the form is
posted and retrieved back to save in txtColor textbox.
4,This code is only storing the value of the ViewState variable color in txtColor.
Answer: 3
Page 13 of 24
06. Creating User Services in ASP.NET
55
When designing international applications which of the following factor should you consider. 1,The
size and color of the font.
2,Number of images per web page
3,The date format and currency to be used for displaying cost, fee etc.
4,The placement of web links
Answer: 3
56
You want to provide alternate color scheme in row of a Repeater control. Which of the following statement
is correct in this context?
1,By assigning the value of bgcolor in the <HeaderTemplate>.
2,By assigning the value of bgcolor in the <ItemTemplate>.
3,By assigning the value of bgcolor in the <AlternatingItemTemplate>.
4,By assigning the different bgcolor values in the <ItemTemplate> and
<AlternatingItemTemplate>.
Answer: 4
57
Consider the following statements:
Statement A: Mirroring is the transformation of coordinates for the languages that are read from
right to left.
Statement B: Language that does not follow Latin script is called Non-Latin language.
Which of the following is True, with respect to the above statements?
1,Statement A is True and statement B is False.
2,Statement B is True and statement A is False.
3,Both, statement A and Statement B, are
False. 4,Both, Statement A and Statement B,
are True. Answer: 4
7. Consuming and Manipulating Data in ASP.NET
58
In an ASP.NET application, you want to bind the XML document, Products.xml, to the DataGrid
control, DataGrid1. For this, which code will you write in the Load event of the page? 1,DataSet
ds = New DataSet();
ds.ReadXml (MapPath(Products.xml));
DataGrid1.DataSource = ds;
DataGrid1.DataBind();
2,DataSet ds = New DataSet();
ds.WriteXml (MapPath(Products.xml));
DataGrid1.DataSource = ds;
DataGrid1.DataBind();
3,DataSet ds = New DataSet();
ds.ReadXml (MapPath(Products.xml));
DataGrid1.DataBind();
4,DataSet ds = New DataSet();
ds.ReadXml (MapPath(Products.xml));
DataGrid1.DataSource = ds;
Answer: 1
59
Which of the following commands is used to add data to a database? 1,Add
2,Fetch
3,Insert
4,Update
Answer: 3
Page 14 of 24
07. Consuming and Manipulating Data in ASP.NET
60
Consider the following statements:
Statement A: A repeater control cannot display data from different sources by using customized
layouts.
Statement B: It is possible to create tables, grids, and comma-separated lists to display data in a
repeater control.
Which of the following is true, with respect to the above statements?
1,Statement A is True and Statement B is False.
2,Statement A is False and Statement B is True.
3,Both, Statement A and Statement B, are True.
4,Both, Statement A and Statement B, are False.
Answer: 2
61
Identify the sequence of execution of the given code added to the Page_Load event of a Web Form:
if (!Page.IsPostBack)
{
// emp is a ListBox control
ArrayList EmpName = new ArrayList();
EmpName.Add ("Joe");
EmpName.Add ("Harry");
EmpName.Add ("Stephan");
emp.DataSource = Empname;
emp.DataBind();
lbldisc.Visible=false;
}
1,The following is the sequence of the output of the above code:
The above code creates an array list named EmpName.
The employee names are stored in the array list by using the Add() method of the array list.
The arraylist is bound to the DataSource.
2,The following is the sequence of the output of the above code:
The above code creates an array list named EmpName.
The employee names are stored in the array list by using the Add() method of the array list.
After all the values are stored in the list, the ListBox control emp is bound to the array list, and
the DataBind() method of emp is called to evaluate the data binding expression at runtime.
3,The following is the sequence of the output of the above code:
The above code creates an array named arraylist.
The employee names are stored in the array by using the Add() method of the array.
After all the values are stored in the array, the DataBind() method of the control emp is bound to
the array list.
4,The following is the sequence of the output of the above code:
The above code creates an array list named EmpName.
The employee names are stored in the array list by using the Add() method of the array list.
After all the values are stored in the list, the DataBind() method emp is bound to the array list.
Answer: 2
Page 15 of 24
07. Consuming and Manipulating Data in ASP.NET
62
Which of the following codes will you write in the Click event of the Button to add a record in a database
when a user clicks the Button?
1,SqlCommand insertcmd = new SqlCommand(insert into Orders (InvId) values (@invid),
myconnection);
insertcmd.Parameters.Add(@invid, SqlDbType.Nchar,10);
insertcmd.Parameters[@invid].Value = txtinvid.Text;
insertcmd.Connection,Open();
insertcmd.ExecuteNonQuery();
insertcmd.Connection.Close();
2,SqlCommand insertcmd = new SqlCommand(insert into Orders (InvId) values (@invid),
myconnection);
insertcmd.Parameters(@invid, SqlDbType.Nchar,10);
insertcmd.Parameters[@invid].Value = txtinvid.Text;
insertcmd.Connection,Open();
insertcmd.ExecuteNonQuery();
insertcmd.Connection.Close();
3,SqlCommand insertcmd = new SqlCommand(insert into Orders (InvId) values (@invid),
myconnection);
insertcmd.Parameters.Add(@invid, SqlDbType.Nchar,10);
insertCmd.Parameters[@invid].Value = txtinvid.Text;
insertCmd.Connection,Open();
insertCmd.ExecuteNonQuery();
insertCmd.Connection.Close();
4,SqlCommand insertcmd = new SqlCommand(insert into Orders (InvId) values (@invid),
myconnection);
insertcmd.Parameters.Add(@invid, SqlDbType.Nchar,10);
insertcmd.Parameters[@invid].Value = txtinvid.Text;
insertcmd.ExecuteNonQuery();
insertcmd.Connection.Close();
Answer: 1
63
You have added rows to a Repeater control using the ItemTemplate. Now, you want to specify a
different layout for every alternate row of the Repeater control. Which template will you use for
this purpose?
1,HeaderTemplate
2,FooterTemplate
3,SeparatorTemplate
4,AlternatingItemTemplate
Answer: 4
64
Consider the following statements:
Statement A: System.Data namespace should be included to implement XML DOM.
Statement B: XML DOM allows the user to access and manipulate the elements and attributes
present in an XML document programmatically.
Which of the following is true, with respect to the above statements?
1,Statement A is True and Statement B is False.
2,Statement A is False and Statement B is True.
3,Both, Statement A and Statement B, are True.
4,Both, Statement A and Statement B, are False.
Answer: 2
Page 16 of 24
07. Consuming and Manipulating Data in ASP.NET
65
Consider the following code to delete records from the customer table:
SqlConnection conn;
conn=new SqlConnection("server=localhost;database=CallCenter");
SqlCommand dc=new SqlCommand("Delete from customer where custid=@cid",conn);
dc.Parameters.Add(new SqlParameter("@cid",SqlDbType.Char,10));
dc.Parameters["@cid"].Value=DropDownList1.SelectedItem.ToString();
dc.Connection.Open();
dc.ExecuteNonQuery();
dc.Connection.Close();
Identify the error in the above code.
1,Char is not a property of SqlDbType.
2,The SqlCommand object does not support the Parameter property.
3,The DropDownList control does not support the SelectedItem property.
4,The connection for the DataCommand object need not be opened explicitly.
Answer: 1
8. Creating and Managing Components in ASP.NET
66
_____ is a standard communication protocol for interchanging information in a structured format in a
distributed environment.
1,XML
2,SOAP
3,WSDL
4,UDDI
Answer: 2
67
Given the following options, identify the correct directive to add a user control mycontrol1.ascx to a
webform
1,<%@Page Inherits=MyControls Language=C# %>
2,<%@Register Inherits= mycontrol1.ascx Language=C# %>
3,<%@Register TagPrefix="ABC" TagName="Header"
Src="mycontrol1.ascx" %>
4,<%@UserControl TagPrefix="ABC" TagName="Header"
Src="mycontrol1.ascx" %>
Answer: 2
68
Which of the following best defines XML?
1,Is used by developers of a client application to know the methods exposed by the Web service.
2,Is a standard communication protocol for interchanging information in a structured format in a
distributed environment.
3,Is a standard mechanism to register and discover a created Web service.
4,Enables data interchange, a standard data representation format that can be understood by
any platform over the Web.
Answer: 4
Page 17 of 24
08. Creating and Managing Components in ASP.NET
69
Consider the following statements:
Statement A: The Common Language Runtime only creates one Runtime Callable Wrapper
object for a COM component even if it is referred more than one time in an application.
Statement B: Runtime Callable Wrapper stores the number of references attached to it in an
internal cache.
Which of the following is true, with respect to the above statements?
1,Statement A is True and Statement B is False.
2,Statement A is False and Statement B is True.
3,Both, Statement A and Statement B, are True.
4,Both, Statement A and Statement B, are False.
Answer: 3
70
You are creating an ASP.NET application for BlueSeas Systems. Your application will call an
XML Web service run by Janes Technologies. The XML Web service will return an ADO.NET
DataSet object containing a list of companies that purchase wine. You need to make the XML
Web service available to your application. What should you do?
1,On the .NET tab of the Reference dialog box, select System.Web.Services.dll.
2,In the Web References dialog box, type the address of the XML Web service.
3,Add a using statement to your Global.asax.cs file, and specify the address of the XML Web
service.
4,Write an event handler in the Global.asax.cs file to import the .wsdl and .disco files associated
with the XML Web service.
Answer: 2
71
Which of the following markup languages describes a Web service?
1,UDDI
2,XML
3,WSDL
4,SOAP
Answer: 3
72
Which of the following CANNOT be used to make a call to a Web service? 1,HTTP
Get
2,HTTP Post
3,TCP/IP
4,SOAP
Answer: 3
9. Exception Handling and Debugging Web Applications
73
Which property outputs the session ID of the trace information, when page tracing is enabled for a page?
1,Control tree
2,Request details
3,Trace information
4,Server variables
Answer: 2
Page 18 of 24
09. Exception Handling and Debugging Web Applications
74
You have inserted the following lines in your web.config file. However, this code generates an error
each time you compile your application.
<configuration>
<appSettings>
<add key="EmailAddress" value="sales@website.com"/>
</configuration>
From the given options, identify the cause of error.
1,EmailAddress cannot be used as a key name.
2,<appSettings> tag does not contain the ending tag.
3,<add> element does not contain the ending tag.
4,This code cannot be inserted in web.config file.
Answer: 2
75
Identify the error in the following code added to the HTML view for a Repeater control:
<HeaderTemplate>
<tr>
<td>
<b>User name</b>
</td>
<td>
<b>password</b>
</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%#DataBinder.Eval(uname)%>
</.td>
<td>
<%#DataBinder.Eval(pwd)%>
</td>
1,The DataBinder.Eval() method does not need any parameters.
2,The DataBinder.Eval() method needs a Container.DataItem parameter.
3,The DataBinder.Eval() method needs DataItem parameter.
4,The DataBinder.Eval() method needs an Item parameter.
Answer: 2
76
Which attribute should be changed to view the tracing information during application level tracing on the
local computer only?
1,Enabled
2,RequestLimit
3,LocalOnly
4,PageOutput
Answer: 3
Page 19 of 24
09. Exception Handling and Debugging Web Applications
77
Consider the following code snippet about the try block and find out error, if any?
try{
//execute you code that might generate runtime error
}
catch{
//catch the error
}
catch(Exception err ){
//use err object to find out the cause of the error
}
finally{
//Perform some task against exception
}
Choose correct option.
1,Try block cannot contain two catch statements.
2,There is no error in the above code snippet.
3,Catch method cannot take Exception class as parameter.
4,Catch block can only take SystemException as a parameter.
Answer: 2
78
You have added the following code in an aspx page:
<body>
<form method=post action=somepage.aspx runat=server> <asp:TextBo
id=txtError runat=server/>
</form>
</body>
What will happen when the code is run?
1,Code will not generate any error and will run successfully.
2,Code will generate compilation error on line no. 3 as the ending tag for <asp: textbox> is not
defined.
3,Code will generate a parse error on line no. 3 as <asp: textbo> type is not defined.
4,Code will generate an error on line no 2 as form cannot be defined at runat=server
Answer: 3
Page 20 of 24
09. Exception Handling and Debugging Web Applications
79
Which of the following code snippet will remove a trace listener from a Web application?
1,<configuration>
<system >
<trace autoflush="true" indentsize="0">
<listeners>
<remove name="Default" />
</listeners>
</trace>
</system >
</configuration>
2,<configuration>
<system.diagnostics>
<trace autoflush="false" indentsize="#">
<listeners>
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
</configuration>
3,<configuration>
<system.diagnostics>
<listener>
<remove name="Default" />
</listener>
</system.diagnostics>
</configuration>
4,<configuration>
<system.diagnostics>
<trace autoflush="true" indentsize="0">
<listeners>
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
</configuration>
Answer: 4
Page 21 of 24
09. Exception Handling and Debugging Web Applications
80
Consider the following code: <%@
Page Language="C#" %>
<script language="C#" runat=server>
void Page_Load(Object sender , EventArgs e)
{
lblMessage.Value = "hello!";
}
</Script>
<html>
<head><title>Compilation.aspx</title></head>
<body>
<asp:Label
ID="lblMessage"
Runat="Server" />
</body>
</html>
What type of error will this code generate?
1,Compilation error
2,Runtime error
3,Configuration error
4,Parser error
Answer: 1
10. Managing and Deploying Web Applications
81
Consider the following statements:
Statement A: The Web.config file is created in the applications root directory and contains the
settings of an individual application.
Statement B: All elements of the Web.config file are encapsulated within the root<compilation>
element.
Which of the following is True, with respect to the above statements?
1,Statement A is True and statement B is False.
2,Statement A is False and statement B is True.
3,Both, Statement A and Statement B, are True.
4,Both, statement A and Statement B, are
False. Answer: 1
82
Identify the step, which is not required to start Web Project Setup wizard? Select
File ( Add Project ( New Project.
Select Project type as Setup and Deployment
Choose Setup Wizard option as a template
Select Web Application folder in the File System Editor
Enter the name of setup project.
1,Select Project type as Setup and Deployment
2,Choose Setup Wizard option as a template
3,Enter the name of setup project
4,Select Web Application folder in the File System Editor
Answer: 4
Page 22 of 24
10. Managing and Deploying Web Applications
83
Consider the following two statements:
Statement A: The hidden field in a Web form cannot store page-specific information without
accessing any Web server or Web browser resource.
Statement B: The hidden field can be implemented in an ASP.NET Web form page by just
adding the HtmlInputHidden control to a Web page and using the Value property of the control.
Which of the following is true, with respect to the above statements?
1,Statement A is True and statement B is False.
2,Statement A is False and statement B is True.
3,Both, Statement A and Statement B, are True.
4,Both, Statement A and Statement B, are False.
Answer: 2
84
Which deployment editor provides the functions to add a file search to the deployment project?
1,Registry Editor
2,Launch Conditions Editor
3,User Interface Editor
4,Custom Actions Editor
Answer: 2
85
You create English, French, and German versions of your ASP.NET application. You have
separate resource files for each language version. You need to deploy the appropriate resource
files based on the language settings of the server. What should you do?
1,Create an installer and set the Installer.Context property for each version of your application.
2,Create an installer that has a launch condition to verify the locale settings.
3,Create an installer that has a custom action to install only location-specific files.
4,Create an installer that has an MsiConfigureProduct function to install the appropriate version.
Answer: 3
86
Consider the following statements:
Statement A: Configuration information for ASP.NET applications is defined in the Web.config file.
Statement B: The Web.config file is in the XML format.
Which of the following is True, with respect to the above statements?
1,Statement A is True and statement B is False.
2,Statement A is False and statement B is True.
3,Both, Statement A and Statement B, are True.
4,Both, statement A and Statement B, are
False. Answer: 3
87
Consider the following lines of web.config file.
<appSettings>
<add key="cnnString"
value="server=(local)\NetSDK;database=WebShoppe;Trusted_Connection=yes"/>
<appSettings>
Identify what is invalid about above lines.
1,<appSettings> tag cannot be used in web.config file.
2,<add> element is invalid because it does not contain a name attribute.
3,<appSettings> tag does not contain ending tag </appSettings>.
4,<add> element is invalid as it does not contain end tag </add>
Answer: 3
Page 23 of 24
10. Managing and Deploying Web Applications
88
Which deployment project available in Visual Studio.Net helps to unite all files, registry entries,
resources, and the setup logic required to deploy the package as one unit?
1,Setup project
2,Web Setup project
3,Merge module
project 4,CAB project
Answer: 3
89
Which client-side management option enables you to retain page and control-specific values between
round trips?
1,View State
2,Hidden Fields
3,Cookies
4,Query Strings
Answer: 1
90
Which client-side management option does not render in a Web browser? 1,View
State
2,Hidden Fields
3,Cookies
4,Query Strings
Answer: 2
91
Consider the following code and choose correct statement?
DataView Cache_Source = (DataView)Cache["Data1"];
if (Cache_Source == null) {
SqlConnection Conn = new
SqlConnection("server=localhost;uid=sa;pwd=;database=product_DB");
SqlDataAdapter Cmd = new SqlDataAdapter("select * from Products", Conn);
DataSet ds = new DataSet();
Cmd.Fill(ds, "Products");
Cache_Source = new DataView(ds.Tables["Products"]);
Cache["Data1"] = Cache_Source;
}
1,Above code will generate runtime error on line no 5.
2,Above code will create data connection and save data to cache.
3,Above code will test the existence of data in cache and save the data to cache if cached data
is not available.
4,Above code will destroy data from cache.
Answer: 3
Page 24 of 24
Reviewed Questions
No Question
7 Which element of the process-component refers to the Sociology dimension?
1)Output
2)Activity
3)Task
4)Role
Answer: 4
8 Consider the following statements:
Statement A: Modelling enhances the quality of software products because it enables you to
understand the existing software system and create the desired software system.
Statement B: In a software development process, UML is used to visualize, specify, construct,
and document the software artefacts of an object-oriented design.
Which one of the following options is correct,with respect to the above
statements? 1)Both, Statements A and Statement B, are False.
2)Both, Statements A and Statement B, are True.
3)Statement A is True and Statement B is False.
4)Statement A is False and Statement B is True.
Answer: 2
9 Consider the following statements:
Statement A: Role describes the responsibilities of the people in a process.
Statement B: Activity describes the actions that a role performs in a process.
Which of the following is correct about the above statements?
1)Both, Statements A and Statement B, are False.
2)Both, Statements A and Statement B, are True.
3)Statement A is True and Statement B is False.
4)Statement A is False and Statement B is True.
Answer: 2
10 Wilson Inc. needs to develop an e-commerce Web site for a client. The Graphic User Interface
(GUI) of the software should be user friendly because people who are the new to computer usage
will also use the e-commerce Web site. During the design of the Web site, a lot of interaction
between the developers and the client is required. Which SDLC model is best suited for
developing the Web site?
1)Spiral model
2)Waterfall model
3)Prototyping model
4)Incremental
model Answer: 3
Page 1
10 The Account class of a Bank ATM System consists of the following operations:
InsertCard()
EnterPIN()
ChangePIN()
CloseAccount()
The complexity of each operation is 4, 5, 6, and 7, respectively. What is the Weighted Method per
Class metric for the Account class?
1)4
2)22
3)8
4)7
Answer: 2
6. Red Sky Inc. is a multimedia software development company. They have released software by the
name of PhotoLabAssistant 1.0. The product was released by the company and then evaluated by the
customers. After getting the feedback from customers about PhotoLabAssistant 1.0, Red Sky Inc.
plans to develop a new version of PhotoLabAssistant 2.0 to incorporate customer feedback.
Which of the following SDLC models is best suited for the above
scenario? 1)Waterfall model
2)Spiral model
3)Incremental
model 4)Prototyping
model Answer: 2
7. The project manager of InfoSolution Inc. plans to implement the 3000 process components in the
first iteration and 5000 in the second iteration. The first and second iterations take three and six
months time, respectively. However, in the first iterations only 1800 process components have
been implemented. What is the adjustment factor and revised estimate time for the second
iteration?
1)1.66 and 4 month
2)1.66 and 8 month
3)0.6 and 10 month
4)0.6 and 8 month
Answer: 3
8. Which of the following aspects of UML identifies that the code can be generated from a UML
model?
1)UML is a language for specifying artifacts.
2)UML is a language for visualizing artifacts.
3)UML is a language for constructing artifacts.
4)UML is a language for documenting
artifacts. Answer: 3
9. Which UML diagram represents interaction between objects in the form of messages ordered in
a sequence, by time?
1)Collaboration diagram
2)Sequence diagram
3)Class diagram
4)Component diagram
Answer: 2
Page 2
10. In an iterative approach, the following steps enable you to establish a project scope:
1. Identify the requirements of the system.
2. Analyze the impact of implementing each requirement of the system.
3. Assess the effort required for implementing the requirements.
4. Set priorities for the requirements to identify successive iterations.
Identify the correct sequence for the above
steps. 1) 3, 2, and 4
2)1, 4, 2, and 3
3)1, 2, 4, and 3
4)1, 4, 3, and 2
Answer: 4
11. Which view of software system architecture should the project managers of RedSky Inc use to plan
the release of their new product?
1)Process view
2)Implementation
view 3)Design view
4)Deployment view
Answer: 2
12. Blue Valley Inc., a software development organization, has various departments. The organization
has directed each department to place its requisition for computers to the purchase department.
The purchase department invites price quotations from different companies to purchase
computers. After comparing all the quotations, the purchase department generates the purchase
order for the company that has given the most suitable quotation.
Identify the entity, actor, business workers, and business use case in the above scenario?
1)Entity: Quotations
Actor: Purchase department of Blue Valley Inc.
Business worker: Companies sending quotations
Business use case: Departments giving
requisition 2)Entity: Quotations
Actor: Companies sending quotations
Business worker: Purchase department of Blue Valley
Inc. Business use case: Departments giving requisition
3)Entity: Departments giving requisition
Actor: Purchase department of Blue Valley Inc.
Business worker: Companies sending
quotations Business use case: Quotations
4)Entity: Purchase department of Blue Valley Inc.
Actor: Quotations
Business worker: Companies sending quotations
Business use case: Departments giving
requisition Answer: 1
13. The business process model of the Student Registration System consists of four business use
cases, which are:
Fill the registration form
Submit the registration form
Fees deposit
Get registration number
The business actors of the Student Registration System are student, faculty, cashier, and registrar.
Page 3
Which of the following business actor can act as business worker for the fees deposit use
case? 1)Student
2)Faculty
3)Cashier
4)Registrar
Answer: 3
14. Which type of class provide the mechanism that enables you to use operations and classes to work
with different data types?
1)Implementation
2)Type
3)Parameterised
4)Abstract
Answer: 3
15. Which relation represents the static relationship shared among objects of two
classes? 1)Association
2)Dependency
3)Generalization
4)Realization
Answer: 1
16. While computation of salary, number of leave without pay (LWP) affects the monthly salary of an
employee. Which kind of relationship exists between LWP class and Salary class?
1)Association
2)Multiplicity
3)Generalization
4)Dependency
Answer: 4
17. You can classify the students of a university into two categories, full-time and part-time courses.
Therefore, the Fulltime and Parttime classes inherit the attributes from the Student class. Which
kind of relationship does exist among the Customer class and the Fulltime and the Parttime
class? 1)Association
2)Multiplicity
3)Generalization
4)Dependency
Answer: 3
18. The use cases for a Student Registration System are identified as:
Fill up a registration form
Submit the registration form
Deposit fee
Generate fee receipt Verify
the registration form Get
registration number
Which one of the following options represent classes for the above use cases?
(Choose the best option)
1)FillForm, SubmitForm, GenerateFees, and
RegistrationNumber 2)FillForm, SubmitForm, and DepositFees
3)Student, RegistrationForm, and FeesReceipt
4)RegistrationForm and FeesReceipt
Page 4
Answer: 3
19. InfoSolution wants to automate its recruitment system. The requirements for implementing the
system are:
Store the resumes of candidates in the database.
Short list candidates based on the percentage of marks obtained in the qualifying
examination. Create separate test papers for C, C++, Java, Oracle, and Linux.
Evaluate test papers attempted by the candidates and provides the
result. Identify the classes for the above requirements?
1)Resume, TestPaper, C, C++, Java, Oracle, and Linux
2)Candidate, TestPaper, and Resume
3)C, C++, Java, Oracle, and Linux
4)Candidate, Resume, C, C++, Java, Oracle, and
Linux Answer: 1
20. There are three classes in a class diagram of a Bank ATM System: Account, SavingsAccount, and
CurrentAccount. The attributes of the Account class are AccountNumber and Balance. The
operation of the Account class is CalculateInterest, which is implemented by the SavingsAccount
and CurrentAccount classes. The attribute of the SavingsAccount and CurrentAccount classes is
InterestRate. The operation, CalculateInterest, calculates the amount of interest on the available
balance for the SavingsAccount and CurrentAccount classes. Which object oriented feature and
relationship exists between the classes of the Bank ATM System.
1)Generalization
2)Association
3)Composition
4)Realization
Answer: 1
21. Consider the attribute and operation declared in a class:
-IssueDate: Date [1] = 01-01-04 (Monday)
+BookIssueRequest(BookName:String): Boolean (No)
Which of the following options represents the parameter name, default value, and return type?
1)BookIssueRequest, 01-01-04, and Boolean
2)IssueDate, Monday, and Date
3)BookName, 01-01-04, and Boolean
4)BookName, Monday, and String
Answer: 3
22. Which part of a transition in the state diagram refers to the response of an object to an event?
1)Source state
2)Event trigger
3)Target state
4)Action
Answer: 4
Page 5
23. Which of the following diagrams depict the condition and activities of an object during its
lifecycle? 1)State diagram
2)Collaboration diagram
3)Sequence diagram
4)Iteration diagram
Answer: 1
24. Consider the following statements:
Statement A: The constituents of a collaboration diagram are organized in such a manner that
the unrelated objects are closely placed.
Statement B. Collaboration diagrams represents the interaction between objects in the form
of messages.
Which of the following is correct about the above statements?
1)Both, Statement A and Statement B, are False.
2)Both, Statement A and Statement B, are True.
3)Statement A is True and Statement B is
False. 4)Statement A is False and Statement B
is True. Answer: 4
25. Consider the following statements:
Statement A: Collaboration is a collection of instances of classes, relationship among the instances
of classes, and actors.
Statement B: Interaction diagrams depict how the constituents of a software system interact to
realize the use cases of the system.
Which of the following is correct about the above statements?
1)Both, Statement A and Statement B, are False.
2)Both, Statement A and Statement B, are True.
3)Statement A is True and Statement B is
False. 4)Statement A is False and Statement B
is True. Answer: 2
26. The figure provided represents the book issue process of a library management system of the
National University. Which of the following modeling technique is used to represent the book
issue request?
1)Requirement
2)Static
3)Dynamic
4)Architecture
Answer: 3
27. RedSky Inc. has a stores database that stores the information when a new item arrives. The
manager intimates the vendor and orders items when the stock of a part reaches its reorder level.
To design the system, the development team creates collaboration for the use case, order items,
which is realized through the interaction of Order object and the stores database. What are the
various interactions to realize the use case, order items?
1)-- Request by the Stores Manager actor to the object, O1 Orders class, to perform the operation,
issueOrder().
-- Request by the issueOrder() operation to the database to store the information about the order.
-- Signal sent by the database to the object, O1 Orders, to intimate that the data storage
operation is complete.
Page 6
2) -- Request by the Stores Manager actor to the object, O1 Orders class, to perform the
operation, issueOrder().
-- Request by the issueOrder() operation to the database to store the information about the order.
3) -- Request by the Stores Manager actor to the object, O1 Orders class, to perform the
operation, issueOrder().
-- Request by the issueOrder() operation to the database to store the information about the order.
-- Signal sent by the database to the object, O1 Orders, to
intimate that the data storage operation is complete.
-- Signal sent by the object, O1 Orders, to application to close the application.
4)-- Request by the Stores Manager actor to the object, O1 Orders class, to perform the operation,
issueOrder().
-- Request by the issueOrder() operation to the database to store the information about the order.
-- Signal sent by the object, O1 Orders, to application to close the application.
Answer: 1
28. Which event of an activity diagram occurs outside the process but still have an impact on
the process?
1)Partitions
2)Signals
3)Transformations
4)Operations
Answer: 2
29. Which of the following notation is used to represent tokens in the states of an activity
diagram? 1)Diamond
2)Circle
3)Dot
4)Rectangular box
Answer: 3
30. Which type of component form a complete software system which includes the components
that form the executable system?
1)Deployment components
2)Work product components
3)Execution components
4) COM Components
Answer: 1
31. Which relationship exists when one constituent of a particular package calls constituents of
another package for performing a task?
1)Access Dependency
2)Generalization
3)Association
4)Realization
Answer: 1
32. Which viewtype enables you to define interactions among various execution
units? 1)Module
2)Component
3)Connector
4)Allocation
Answer: 3
Page 7
33. Which pattern enables you to represent a tree in which the complex objects represent the nodes
and simple objects represent leaves of the tree?
1)Proxy
2)Decorator
3)Chain of Command
4)Composite Answer:
4
34. While testing a GUI application Peter, a software tester at RedSky Inc., finds that an end user
might find it inconvenient to select commonly used options, such as cut, copy, and paste, because
they are present as menu items. Peter informs the software development team to include toolbars
in the application to make the GUI design more user-friendly. Which design pattern should the
development team use in order to do implement Peters suggestion?
1)Facade
2)Decorator
3)Adapter
4)Composite
Answer: 2
35. In a bank, a customer fills an application form to open an account. The customer submits the
application to the front desk clerk who validates the form and asks the customer to make changes
if necessary. Then the application is forwarded to the bank manager, who conducts an interview
with the customer. If the bank manager is satisfied, the application form is stamped and customer
is then allowed to open the account. Which pattern is used to define the process followed by the
bank to open an account?
1)Command
2)Proxy
3)Composite
4)Chain of Responsibility
Answer: 4
36. Which pattern separates the construction of a complex object from its representation?
1)Builder
2)Factory
3)Singleton
4)Decorator
Answer: 1
37. Consider that you have an abstract base class, Shape, with an abstract method, makeShape(), to
draw a shape on the screen. Two classes, Circle and Square, are derived from the Shape class
and provide definitions of the makeShape() method. Depending upon the specification by an end
user, either a circle or an square is drawn. To draw the any shape, you need to create and use
object of either Circle class or Square class and use the makeShape() method of the Shape
abstract class.
To solve this problem you apply a design pattern, according to which, you need another class that
provides a method to create the objects of the Circle and Square classes. Which design pattern is
applied here?
1)Facade
2)Decorator
3)Factory
4)Proxy
Page 8
Answer: 3
38. <B> Customer
</B> <p>
Michelle Abraham <br>
Salmonella Apartments<br>
Programmer<br>
</p>
Peter is asked to represent the information given in the HTML code snippet above in XML.
He represents the information as follows:
<CUSTOMER>
<NAME> Michelle Abraham
<ADDRESS> Salmonella Apartments </NAME> </ADDRESS>
<PROFESSION> Programmer </PROFESSION>
</CUSTOMER>
Identify the error in the above code and suggest a solution for the same.
1)Error on line: <NAME> Michelle Abraham
Solution: The closing tag, </NAME>, of the <NAME> element should be given.
2)Error on line: <ADDRESS> Salmonella Apartments </NAME> </ADDRESS>
Solution: The closing tag, </NAME> is not required in this line.
3)Error on line: <NAME> Michelle Abraham
<ADDRESS> Salmonella Apartments </NAME> </ADDRESS>
Solution: The closing tag of the Name element should be written before the ADDRESS
element. 4)Error on line: <NAME> Michelle Abraham
<ADDRESS> Salmonella Apartments </NAME> </ADDRESS>
Solution: The closing tag of the Name element should be written after the closing tag of
the ADDRESS element.
Answer: 3
39. Shopping Unlimited is a retail store with branches spread across the globe. The store sends its
product information from the head office to the branch offices. The product details must be stored
in a consistent format at all branches. Restrictions must be placed on the type of data that can be
saved in the data store to ensure uniformity and consistency of information. The products sold by
Shopping Unlimited are organized into various categories. Product details include the product
name, a brief description, product price, and the available quantity on hand. A product ID uniquely
identifies each product.
Stella, an XML developer has been hired by Shopping Unlimited for developing a data structure for
the same. Identify the tasks and the sequence in which Stella should perform the tasks to
accomplish the goal.
1)1. Identify the elements required to store data.
2. Identify a method to store data.
3. Identify a method to declare the elements to be used to store data.
4. Identify a method to validate the data structure.
5. Store data.
6. Validate the data structure
2)1. Identify the elements required to store data.
2. Identify the attributes.
3. Identify a method to store data.
Page 9
4. Identify a method to declare the elements to be used to store data.
5. Identify a method to declare attributes.
6. Identify a method to validate the data structure.
7. Declare elements and attributes.
8. Store data.
9. Validate the data structure
3)1. Identify the elements required to store data.
2 Identify a method to declare the elements to be used to store data.
3 Identify a method to validate the data structure.
4 Declare elements.
5 Store data.
6 Validate the data structure
4)1. Identify the elements required to store data.
2. Identify the attributes.
3. Identify a method to declare the elements to be used to store data.
5. Identify a method to declare attributes.
6. Declare elements and attributes.
7. Store data.
8. Validate the data structure.
Answer: 2
2 You want to declare an optional attribute named category in an XML schema. Which of the
following attributes of the xsd:attribute element will you use to specify that the element is
optional?
1)use
2)optional
3)default
4)fixed
Answer: 1
3 Which component of an XML document is used to provide documentation information?
1)Element
2)Comment
3)Entity
4)Attribute
Answer: 2
4 Which of the following XSD elements allows you to specify the base data type for a user-defined
simple type?
1)xsd:pattern
2)xsd:element
3)xsd:restriction
4)xsd:sequence
Answer: 3
5 Assertion: Implementing EDI involves high costs.
Reason: EDI is built on fixed transaction set.
Which of the following hold true for this Assertion-Reason?
1)BOTH the assertion and the reason are TRUE, and the reason is a correct explanation of
the assertion.
2)BOTH the assertion and the reason are TRUE, but the reason IS NOT a correct explanation of
the assertion.
3)The assertion is TRUE and the reason is FALSE.
Page 10
4)The assertion is FALSE and hence the reason DOES NOT apply.
Answer: 2
44. Which of the following is a rule for creating a well-formed XML document?
1)Every element must have an attribute, which provides additional information about the element.
2)Every XML document must contain parent and child elements.
3)Every empty element must be closed using a forward slash (/) before the closing angular
bracket. 4)Elements must overlap.
Answer: 3
45. Which component of an XML document is used to provide additional information about elements?
1)Processing instruction
2)Tag
3)Entity
4)Attribute
Answer: 4
46. Identify the type of content of the PRODUCT element in the following XML code
fragment. <PRODDET>
<PRODUCT>
<PRODID=P001></PRODID>
<PRODDESC>Baby Food </PRODDESC>
<PRICEPERUNIT> 12 </PRICEPERUNIT>
</PRODUCT>
</PRODDET>
1)Element
2)Simple
3)Mixed
4)Empty
Answer: 1
47. Identify the correct syntax for declaring an internal DTD.
1)<!DOCTYPE rootelement PUBLIC [element and attribute declarations]>
2)<!DOCTYPE rootelement [element and attribute declarations]>
3)<!DOCTYPE rootelement SYSTEM [element and attribute declarations>
4)<!DOCTYPE rootelement SYSTEM|PUBLIC "name-of-file">
Answer: 2
48. Consider the following statements:
Statement A: You can use the <!ATTLIST> statement in a DTD to declare an attribute for an
element.
Statement B: A single <!ATTLIST> statement can be used to declare multiple attributes for an
element.
Which of the following is correct about the above statements?
1)Statement A is True, and Statement B is False.
2)Both, Statement A and Statement B, are True.
3)Both, Statement A and Statement B, are False.
4)Statement A is False, and Statement B is True.
Page 11
Answer: 2
49. Consider the following statements:
Statement A: nonNegativeInteger is an example of a primitive datatype
Statement B: nonNegativeInteger is any value greater than or equal to zero
Which of the following is correct about the above statements?
1)Statement A is True, and Statement B is False.
2)Both, Statement A and Statement B, are
False. 3)Both, Statement A and Statement B,
are True. 4)Statement A is False, and Statement
B is True. Answer: 4
50. You need to create a simple type called empid. You also need to ensure that the employee ID
contains the E as the first character, followed by 4 digits. Which of the following code snippets
will you use to declare the simple type?
1)<xsd:simpleType name="empid">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\d[E]{1}-
\d{4}"/> </xsd:restriction>
</xsd:simpleType>
2)<xsd:simpleType name="empid">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\[E]{1}\d{4}">
</xsd:restriction>
</xsd:simpleType>
3)<xsd:simpleType name="empid">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[E]{1}\d{4}"/>
</xsd:restriction>
</xsd:simpleType>
4)<xsd:simpleType name="empid">
<xsd:restriction base="xsd:string">
<xsd:pattern value="{1}[E]-{4}\d"/>
</xsd:simpleType>
Answer: 3
51. When using an XML parser in a custom XML processing module, the SAX parser interface is
most useful when:
1)Documents must be processed in a sequential fashion.
2)Processor memory is not an issue.
3)Random processing of the XML documents is sufficient.
4)The output of the process is an XML document.
Answer: 1
Page 12
2 Consider the following statements:
Statement A: CSS can be used to reorder, add, delete, or perform operations on elements.
Statement B: CSS uses less memory than XSLT.
Which of the following is correct about the above
statements? 1)Statement A is True, and statement B is
False. 2)Statement A is False, and statement B is True.
3)Both statements are True.
4)Both statements are
False. Answer: 2
3 You want to create an attribute named baseprice with a default value of 200 for the product
element. The attribute should accept integer values. Which of the following statements will you use
to declare the attribute?
1)<xsd:attribute name="baseprice" default= 200 type="xsd:integer"/>
2)<xsd:attribute name="baseprice" type="xsd:integer" use= default value=200/>
3)<xsd:attribute name="baseprice" default= 200 type="xsd:integer"/>
4)<xsd:attribute element="product" name="baseprice" default= 200 type="xsd:integer"/>
Answer: 2
4 Which of the following statements will you use to display the value of an attribute named
partno? 1)<xsl:text select=partno/>
2)<xsl:value-of select= @partno
/> 3)<xsl:value-of select= partno
/> 4)<xsl:value-of select=
@partno> Answer: 2
5 Which of the following attributes of the xsl:sort element will you use to specify whether elements
should be sorted in the ascending or descending order?
1)case-order
2)order
3)select
4)data-type
Answer: 2
6 The details of the products listed on an e-commerce Web site are stored in an XML document. The
document has the PRODUCTDATA element that contains all the other elements. The PRODUCT
element represents the details about each product. Each product is uniquely identified by the value
assigned to the PRODID attribute. Which of the following code snippets will you use to display a
bulleted list of products in the ascending order of their product ID?
1)<xsl:template match="/">
<xsl:for-each select="PRODUCTDATA/PRODUCT">
<xsl:sort select="@PRODID" order="ascending"/>
<LI>
<xsl:text>Product ID: </xsl:text> <xsl:value-
of select="@PRODID"/> <xsl:text>Product
Name: </xsl:text> <xsl:value-of
select="PRODUCTNAME"/> <xsl:text>Price
Per Unit </xsl:text> <xsl:value-of
select="PRICE"/>
</LI> </xsl:for-
each>
</xsl:template>
Page 13
2)<xsl:template match="/">
<xsl:for-each select="PRODUCTDATA/PRODUCT">
<xsl:sort select="@PRODID" order="ascending">
<LI>
<xsl:text>Product ID: </xsl:text> <xsl:value-
of select="@PRODID"/> <xsl:text>Product
Name:</xsl:text> <xsl:value-of
select="PRODUCTNAME"/> <xsl:text>
Price Per Unit </xsl:text> <xsl:value-of
select="PRICE"/>
"/LI>
</xsl:sort>
</xsl:for-each>
</xsl:template>
3)<xsl:template match="/">
<xsl:for-each select="PRODUCTDATA/PRODUCT">
<LI>
<xsl:sort select="@PRODID" order="ascending"/>
<xsl:text>Product ID:</xsl:text>
<xsl:value-of select="@PRODID"/>
<xsl:text> Product Name: </xsl:text>
<xsl:value-of select="PRODUCTNAME"/>
<xsl:text> Price Per Unit</xsl:textr>
<xsl:value-of select="PRICE"/>
</LI>
</xsl:sort>
</xsl:for-each>
</xsl:template>
4)<xsl:template match="/">
<xsl:for-each select="PRODUCTDATA/PRODUCT">
<xsl:sort select="@PRODID"order="ascending">
<LI>
<xsl:text>Product ID:</xsl:text> <xsl:value-
of select="@PRODID"/> <xsl:text> Product
Name:</xsl:text> <xsl:value-of
select="PRODUCTNAME"/> <xsl:text>Price
Per Unit </xsl:text> <xsl:value-of
select="PRICE"/>
</LI> </xsl:for-
each>
</xsl:template>
Answer: 1
57. Consider the following XML
document: <?xml version="1.0"?>
<ORDERDETAILS>
<PRODUCT ID="P001" NAME="Mini Bus" PRICE="75">
<ORDER ID="O001">
<SHIP_ADD>10 NEWSLAND ESTATE, NY</SHIP_ADD>
<QUANTITY>30</QUANTITY>
</ORDER>
<ORDER ID="O002">
<SHIP_ADD>11 NEWSLAND ESTATE, NY</SHIP_ADD>
<QUANTITY>50</QUANTITY>
Page 14
</ORDER>
</PRODUCT>
</ORDERDETAILS>
Which of the following code snippets will you use to display the product of price and quantity?
1)<xsl:for-each select="ORDERDETAILS/PRODUCT">
ORDER VALUE: <xsl:value-of select='(../@PRICE) * (QUANTITY) '/>
</xsl:for-each></xsl:for-each>
2)<xsl:for-each select="ORDERDETAILS/PRODUCT">
<xsl:for-each select="ORDER">
ORDER VALUE:<xsl:value-of select='(../@PRICE) * (QUANTITY) '/>
</xsl:for-each>
</xsl:for-each>
3)<xsl:for-each select="ORDERDETAILS/PRODUCT">
<xsl:for-each select="ORDER">
ORDER VALUE: <xsl:value-of select='(../PRICE) * (QUANTITY) '/>
</xsl:for-each>
</xsl:for-each>
4)<xsl:for-each select="ORDERDETAILS/PRODUCT">
ORDER VALUE: <xsl:value-of select='(../PRICE) * (QUANTITY) '/>
</xsl:for-each>
Answer: 2
58. Consider the following statements:
Statement A: The ref attribute of the xsd:attribute element is used to reference a user-
defined attribute declared in the same or any other XML schema.
Statement B: You can use the name and ref attributes together in an attribute
declaration statement.
Which of the following is correct about the above
statements? 1)Statement A is True, and statement B is
False. 2)Statement A is False, and statement B is True.
3)Both statements are True.
4)Both statements are
False. Answer: 1
59. Consider the following Employees.xml document:
<Employees> <Emp id="075">
<name>Cathy</name>
<surname>Symcox</surname></Emp>
<Emp id="057"> <name>Steven</name>
<surname>Lara</surname> </Emp>
</Employees>
The preceding document is manipulated using the following JavaScript code:
var xml_doc = new ActiveXObject("Microsoft.XMLDOM");
xml_doc.async = false;
xml_doc.load("employees.xml");
var root = xml_doc.documentElement;
var empnode = xml_doc.getElementsByTagName("name");
document.write(empnode[0].firstChild.nodeValue);
Page 15
What would be the output of applying the preceding code to the Employees.xml
document? 1)Cathy
2)Cathy Symcox
3)Cathy Symcox Steven
Lara 4)075 Cathy Symcox
Answer: 1
60. Which of the following code snippets will you use to load an XML schema called product.xsd and
associate it with an XML document represented by the object xmlDoc?
1)var namespace=xmlDoc.documentElement.namespaceURI;
xmlDoc.validateOnParse=true;
var xsdschemacache = new ActiveXObject("Msxml2.XMLSchemaCache.4.0");
xsdschemacache.add(namespace, "product.xsd");
xmlDoc.schemas=xsdschemacache;
2)var namespace=xmlDoc.namespaceURI;
xmlDoc.validateOnParse=true;
var xsdschemacache = new ActiveXObject("Msxml2.XMLSchemaCache.4.0");
xsdschemacache.load(namespace, product.xsd);
xmlDoc.schemas=xsdschemacache;
3)var namespace=xmlDoc.documentElement.namespaceURI;
xmlDoc.validateOnParse=true;
var xsdschemacache = new ActiveXObject("Msxml2.XSDSchemaCache.4.0");
xsdschemacache.load(namespace, product.xsd);
xmlDoc.schemas=xsdschemacache;
4)var namespace=xmlDoc.documentElement.namespaceURI;
xmlDoc.validateOnParse=true;
var xsdschemacache = new ActiveXObject("Msxml2.XSDSchemaCache.4.0");
xsdschemacache.add(namespace, product.xsd);
xmlDoc.schemas=xsdschemacache;
Answer: 1
61. The data about orders is stored in an XML document. Each order is represented using the Order
element. The Order element has an attribute named ProductID. You want to extract all Order
elements that have a ProductID value of 1. Which of the following code fragments should you use
to do so?
1)<xsl:template match="Order[@ProductID=1]">
2)<xsl:template match="Order[ProductID=1]">
3)<xsl:template select="Order[@ProductID=1]"/>
4)<xsl:apply-templates
select="@ProductID=1"/> Answer: 1
62. Which of the following values of the xlink:show attribute is specified to insert the content of a linked
object within the source document at the link position?
1)insert
2)replace
3)new
4)embed
Answer: 4
Page 16
63. Bob, an XML programmer, is developing an online library. The library should allow the readers to
hold online discussions and do research work. Bob is using XLink to enhance and improve the
linking capabilities of the documents generated and accessed online. He also wants to give
additional information regarding the method of activating a link. This should be done for all
possible links in the Web site. What should Bob do to achieve this task?
1)Use the xlink:actuate attribute and assign it the value other.
2)Use the xlink:show attribute and assign it the value other.
3)Use the xlink:actuate attribute and assign it the value
OnLoad. 4)Use the xlink:show attribute and assign it the value
OnLoad. Answer: 1
64. Which attribute of the ElementType element is used to specify whether or not the element
should contain other elements, text, or both?
1)Content
2)Name
3)Dt:type
4)Model
Answer: 1
65. Identify the top-level element of a SOAP
message. 1)envelope
2)header
3)body
4)target
Answer: 1
66. Cindy uses the following SQL statement to fetch data from the Students table, which contains
information about the students in the Name, ID, and Marks columns:
SELECT * FROM STUDENTS FOR XML AUTO, ELEMENTS
Which of the following XML document formats would be generated on using the preceding SQL
statement?
1)<Root>
<Students>
<Name>Bob</Name>
<ID>S235</ID>
<Marks>74</Marks>
</Students>
<Students>
<Name>Cynthia</Name>
<ID>S347</ID>
<Marks>69</Marks>
</Students>
<Students>
<Name>Steve</Name>
<ID>S349</ID>
<Marks>86</Marks>
</Students>
</Root>
2)<Root>
<Students Name=Bob ID= S235 Marks=74/>
<Students Name=Cynthia ID= S347 Marks=69/>
<Students Name=Steve ID= S349 Marks=86/>
</Root>
3)<Root>
Page 17
<row Students Name=Bob ID= S235 Marks=74/>
<row Students Name=Cynthia ID= S347 Marks=69/>
<row Students Name=Steve ID= S349 Marks=86/>
</Root>
4)<Root>
<row Name=Bob ID= S235 Marks=74/>
<row Name=Cynthia ID= S347
Marks=69/> <row Name=Steve ID= S349
Marks=86/> </Root>
Answer: 1
2 The Emp table stores information about the employees in the Name, ID, Dept, Address, and
DOJ columns. Mark wants to display the details of an employee with the ID E74 in an XML
document. Which of following options can Mark use to perform the given task?
1)Build a URL Query and execute it with the FOR XML clause with Explicit mode.
2)Build an XPath query and execute it against the schema representing the structure of the
required XML document.
3)Build a URL query and execute it against the schema representing the structure of the required
XML document.
4)Build an XPath Query and execute it with the FOR XML clause with Explicit mode.
Answer: 2
3 Consider the following statements:
Statement A: SOAP provides a mechanism for structured information interchange in a distributed
environment.
Statement B: SOAP enables components of heterogeneous applications to send and receive
messages.
Which of the following is correct about the above
statements? 1)Statement A is True, and Statement B is
False. 2)Statement A is False, and Statement B is True.
3)Both, Statement A and Statement B, are True.
4)Both, Statement A and Statement B, are
False. Answer: 3
4 Michael wants to display the perishable products from the Items table in the Greenbay database,
An XML file, perish.xml is created which contains the schema information. It is required that the
products must be consumed before 11th Mar, 2005. He uses the following XPath query to
perform the task:
http://localhost/ITEMS/schema/GREENBAY[@DUE_DATE
='11-03-2005']?root=root.
However, the query results in an error. Which of the following options describes the cause of the
error and the accurate query that should have been used?
1)Michael did not mention the name of the schema in the query. The correct query
is: http://localhost/ITEMS/schema/perish.xml/GREENBAY[@ DUE_DATE='11-03-
2005']?root=root
2)Michael typed in the database name instead of the table name. The correct query
is: http://localhost/ITEMS/schema/ITEMS[@
DUE_DATE='11-03-2005']?root=root
3)Michael did not type the schema name in the query. The database name is also incorrectly used
instead of the table name. The correct query is:
http://localhost/ITEMS/schema/perish.xml/ITEMS[@
DUE_DATE='11-03-2005']?root=root
Page 18
4)Michael should type in the database name at the localhost position and the schema name in
the query. The correct query is:
http://GREENBAY/ITEMS/schema/perish.xml/ITEMS[@
DUE_DATE='11-03-2005']?root=root
Answer: 3
70. William uses the following XPath query to generate an XML document containing data about the
employees:
http://localhost/Employees/format/Employees.xml/Employees[@
Department='Sales']?root=root
Which of the following statements best describes the XML document created using the above
XPath query?
1)The XML document contains the data retrieved from the Employees database in a format that is
similar to the Employees.xml document
2)The XML document contains data retrieved from the Employees table using the schema
name Format. The data is about the employees belonging to the Sales department.
3)The XML document contains data retrieved from the Employees database using the schema
name Format. The data is about the employees belonging to the Sales department.
4)The XML document contains data retrieved from the Employees table in a format that is similar
to the Employees.xml document. The data is about the employees belonging to the Sales
department.
Answer: 2
71. Brian needs to display data stored in an SQL Server 2000 database as an XML document. He
wants only the column names and the values stored in the columns to be displayed, and does not
want the table name to be displayed. Which of the following modes of the FOR XML clause should
Brian use to perform the given task?
1)AUTO mode
2)EXPLICIT mode
3)RAW mode
4)AUTO mode with Elements option
Answer: 3
72. Andrew wants to fetch data from the Names and Address columns, which belong to the Emp and
Details tables respectively, and display the tables as nested elements. Which of the following code
snippets should Andrew use to perform the given task?
1)SELECT Emp.Names,
Details.Address FROM Emp, Details
FOR XML AUTO, ELEMENTS
2)SELECT Emp.Names,
Details.Address FROM Emp, Details
FOR XML RAW
3)SELECT Emp.Names,
Details.Address FROM Emp, Details
FOR XML AUTO
4)SELECT Emp.Names,
Details.Address FROM Emp, Details
FOR XML EXPLICIT
Answer: 3
Page 19
73. Which object(s) of SMO can be used to build a SOAP message?
1)WSDLReader
2)SOAPMessage
3)SOAPClientMessage and SOAPServerMessage
4)SoapSerializer
Answer: 4
UML Review
Question :Which phase of SDLC involves implementation of changes or implementation of new
features once the deployment of the software is complete?
1,Maintenance
2,Design
3,Coding
4,Testing
Answer correct is: 1
---------------
Question :Which phase of SDLC involves the analysis of the software system that needs to
developed within the given environment, requirements, and characteristics from the users point
of view?
1,Maintenance
2,Design
3,Coding
4,Feasibility analysis
Answer correct is: 4
---------------
Question :Which extension element enables you to extend the semantics of building blocks of
UML to tailor UML for specific application domains?
1,Stereotypes
2,Constraints
3,Tagged values
4,Semantics
Answer correct is: 2
---------------
Question :Which element of the process-component refers to the Sociology dimension?
1,Output
2,Activity
3,Task
4,Role
Answer correct is: 4
---------------
Question :Which quality check of the software development process includes tasks, such as
organizing resources, forming teams, setting objectives, prioritising scope, and controlling
risks?
1,Management quality
2,Process quality
3,Model or architecture quality
4,Data quality
Answer correct is: 1
---------------
Question :Which one of the following options correctly identifies the action involved in design
phase of SDLC?
(Choose the best option.)
1,Analysis of project requirements in terms of input data and desired output, processing
required to transform input into output, cost- benefit analysis, and schedule of the project.
2,Gathering, analysing, validating, and specifying requirements. At the end of this phase, the
Software Requirement Specification (SRS) document is prepared.
3,Translation of requirements specified in the SRS into a logical structure that can be
implemented in a programming language.
4,Implementation of design specified in the design document into executable programming
language code.
Answer correct is: 3
---------------
Question :Consider the following statements:
Statement A: The Booch model involves both the micro and macro process of software
development.
Statement B: The Rumbaugh model involves designing software at four levels of abstraction.
Which of the following is correct about the above statements?
1,Both, Statements A and Statement B, are False.
2,Both, Statements A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 3
---------------
Question :Consider the following statements:
Statement A: Modelling enhances the quality of software products because it enables you to
understand the existing software system and create the desired software system.
Statement B: In a software development process, UML is used to visualize, specify, construct,
and document the software artefacts of an object-oriented design.
Which one of the following options is correct,with respect to the above statements?
1,Both, Statements A and Statement B, are False.
2,Both, Statements A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 2
---------------
Question :Consider the following statements:
Statement A: Role describes the responsibilities of the people in a process.
Statement B: Activity describes the actions that a role performs in a process.
Which of the following is correct about the above statements?
1,Both, Statements A and Statement B, are False.
2,Both, Statements A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 2
---------------
Question :Consider the following statements:
Statement A: Estimating the number of dimensions of the process-components for each
iteration is known as the planned productivity.
Statement B: The adjustment factor enables you to determine the schedule slippage of the
software project.
Which one of the following options is correct with respect to the above statements?
1,Both, Statements A and Statement B, are False.
2,Both, Statements A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 2
---------------
Question :Which type of component form a complete software system which includes the
components that form the executable system?
1,Deployment components
2,Work product components
3,Execution components
4, COM Components
Answer correct is: 1
---------------
Question :Wilson Inc. needs to develop an e-commerce Web site for a client. The Graphic
User Interface (GUI) of the software should be user friendly because people who are the new to
computer usage will also use the e-commerce Web site. During the design of the Web site, a
lot of interaction between the developers and the client is required. Which SDLC model is best
suited for developing the Web site?
1,Spiral model
2,Waterfall model
3,Prototyping model
4,Incremental model
Answer correct is: 3
---------------
Question :Info Solutions needs to develop a payroll system that maintains salary information,
such as basic salary and house rent allowances. The payroll system should also maintain
information about the provident fund contribution of employees. Further, Info Solutions wants
some advance features in the payroll system, such as calculation of income tax and perks
based on the basic salary. The requirements for the payroll system are not freezed and will
evolve during the development process of payroll system. Which SDLC model is best suited for
the payroll system?
1,Prototyping model
2,Incremental model
3,Spiral model
4,Waterfall model
Answer correct is: 3
---------------
Question :Info Solutions needs to develop an operating system, which can support graphical
applications that require high memory and processing speed. The company plans to first
release the beta version of the operating system in the market. After incorporating the feedback
from users, the company plans to release the final version of the operating system. Which
SDLC model is best suited for developing such an operating system?
1,Win-win spiral model
2,Incremental model
3,Spiral model
4,Component-based development model
Answer correct is: 3
---------------
Question :During the design of the class diagram of a bank ATM system, the software designer
feels that there are various methods of implementing the class. Therefore, the software
designer adds a modeling construct in the class diagram of the bank ATM that describes the
alternate method to implement that class. Identify which of the following modeling construct will
the designer use to specify the alternate method.
1,Comment
2,Note
3,Tagged Value
4,Stereotype
Answer correct is: 3
---------------
Question :The Account class of a Bank ATM System consists of the following operations:
-- InsertCard()
-- EnterPIN()
-- ChangePIN()
-- CloseAccount()
The complexity of each operation is 4, 5, 6, and 7, respectively. What is the Weighted Method
per Class metric for the Account class?
1,4
2,22
3,8
4,7
Answer correct is: 2
---------------
Question :Red Sky Inc. is a multimedia software development company. They have released
software by the name of PhotoLabAssistant 1.0. The product was released by the company
and then evaluated by the customers. After getting the feedback from customers about
PhotoLabAssistant 1.0, Red Sky Inc. plans to develop a new version of PhotoLabAssistant 2.0
to incorporate customer feedback.
Which of the following SDLC models is best suited for the above scenario?
1,Waterfall model
2,Spiral model
3,Incremental model
4,Prototyping model
Answer correct is: 2
---------------
Question :Wilson Inc. has to develop an ATM software for the National Bank. Wilson Inc. has
vast experience of developing bank ATM software and has a programming team having skills to
complete the ATM project successfully. Therefore, The Wilson Inc. has well understood the
requirements of National Bank.
Which of the SDLC model is best suited for the bank ATM software?
1,Waterfall model
2,Spiral model
3,Incremental model
4,Prototyping model
Answer correct is: 1
---------------
Question :The class diagram of the Library Management System consists of four classes,
Library, Member, Book, and BookCopy. The number of operations in the Library, Member,
Book, and BookCopy classes are 6, 4, 4, and 2 respectively. In addition, the BookCopy class
inherits all operations of the book class. What is the Method Inherited Factor of the class
diagram?
1,16
2,20
3,1.25
4,0.8
Answer correct is: 4
---------------
Question :The project manager of InfoSolution Inc. plans to implement the 3000 process
components in the first iteration and 5000 in the second iteration. The first and second
iterations take three and six months time, respectively. However, in the first iterations only 1800
process components have been implemented. What is the adjustment factor and revised
estimate time for the second iteration?
1,1.66 and 4 month
2,1.66 and 8 month
3,0.6 and 10 month
4,0.6 and 8 month
Answer correct is: 3
---------------
Question :You are writing an online test of 50 questions and your computer switches off due to
power failure after the ninth question. When you switch on the computer again, the tenth
question is displayed. Which modeling construct is used in static modeling to represents the
last state of the online test software?
1,Deep History State
2,Shallow History State
3,Tagged Value
4,Stereotypes
Answer correct is: 2
---------------
Question :Which of the following aspects of UML identifies that the code can be generated
from a UML model?
1,UML is a language for specifying artifacts.
2,UML is a language for visualizing artifacts.
3,UML is a language for constructing artifacts.
4,UML is a language for documenting artifacts.
Answer correct is: 3
---------------
Question :Which UML diagram represents interaction between objects in the form of messages
ordered in a sequence, by time?
1,Collaboration diagram
2,Sequence diagram
3,Class diagram
4,Component diagram
Answer correct is: 2
---------------
Question :Which one of the following type of modeling enables you to depict the behavior of
static constituents using the following diagrams?
-- Collaboration diagram
-- Sequence diagram
-- Activity diagram
-- State diagram
1, Requirements modeling
2, Static modeling
3, Dynamic modeling
4, Architectural modeling
Answer correct is: 3
---------------
Question :Which modeling technique depicts the design of the software system in multiple
views, such as presentation, business, and resource?
1,Requirement modeling
2,Static modeling
3,Architectural modeling
4,Dynamic modeling
Answer correct is: 3
---------------
Question :Which view represents the physical system including the files and components
required to assemble the system?
1,Deployment view
2,Design view
3,Implementation view
4,Process view
Answer correct is: 3
---------------
Question :In an iterative approach, the following steps enable you to establish a project scope:
1. Identify the requirements of the system.
2. Analyze the impact of implementing each requirement of the system.
3. Assess the effort required for implementing the requirements.
4. Set priorities for the requirements to identify successive iterations.
Identify the correct sequence for the above steps.
1, 3, 2, and 4
2,1, 4, 2, and 3
3,1, 2, 4, and 3
4,1, 4, 3, and 2
Answer correct is: 4
---------------
Question :Arrange the steps to generate test cases from use cases.
1. Identify instances of a use case.
2. Identify the conditions required for execution of each use case instance.
3. Add test input values to complete the test cases.
4. Identify test input and expected results for each instance of the use case.
Identify the correct sequence for the above steps.
1, 3, 2, and 4
2,1, 4, 2, and 3
3,1, 2, 4, and 3
4,1, 4, 3, and 2
Answer correct is: 2
---------------
Question :The constituents of a software system, such as classes, need to interact with other
classes to depict their response. Which constituents depict such responses and relations
between classes by using messages at the design phase?
1,Static constituents
2,Dynamic constituents
3,Grouping constituents
4,Annotational constituents
Answer correct is: 2
---------------
Question :Which UML notation enables you to represent the functions of a particular sub
process in the existing process?
1,Business actor
2,Business entity
3,Business structure
4,Business use case
Answer correct is: 3
---------------
Question :Which view of software system architecture should the project managers of RedSky
Inc use to plan the release of their new product?
1,Process view
2,Implementation view
3,Design view
4,Deployment view
Answer correct is: 2
---------------
Question :Blue Valley Inc., a software development organization, has various departments.
The organization has directed each department to place its requisition for computers to the
purchase department. The purchase department invites price quotations from different
companies to purchase computers. After comparing all the quotations, the purchase
department generates the purchase order for the company that has given the most suitable
quotation.
Identify the entity, actor, business workers, and business use case in the above scenario?
1,Entity: Quotations
Actor: Purchase department of Blue Valley Inc.
Business worker: Companies sending quotations
Business use case: Departments giving requisition
2,Entity: Quotations
Actor: Companies sending quotations
Business worker: Purchase department of Blue Valley Inc.
Business use case: Departments giving requisition
3,Entity: Departments giving requisition
Actor: Purchase department of Blue Valley Inc.
Business worker: Companies sending quotations
Business use case: Quotations
4,Entity: Purchase department of Blue Valley Inc.
Actor: Quotations
Business worker: Companies sending quotations
Business use case: Departments giving requisition
Answer correct is: 1
---------------
Question :The business process model of the Student Registration System consists of four
business use cases, which are:
Fill the registration form
Submit the registration form
Fees deposit
Get registration number
The business actors of the Student Registration System are student, faculty, cashier, and
registrar.
Which of the following business actor can act as business worker for the fees deposit use
case?
1,Student
2,Faculty
3,Cashier
4,Registrar
Answer correct is: 3
---------------
Question :Wilson Inc. has an assignment of University Management System automation. The
University wants to automate the student registration system, library management system, and
payroll system. In the first iteration, University plans to automate the payroll system. Identify the
actors for the payroll system use cases.
(Choose the best option.)
1,Student, Finance Registrar, and Faculty
2,Student, Librarian, and Finance Registrar
3,Student, Faculty, and Finance Registrar
4,Finance Registrar and Employee
Answer correct is: 4
---------------
Question :Wilson Inc. has been assigned to automate the airline reservation system of Flyway,
an airline company. A passenger can book the ticket and pay online using the automation
software. In the payment option of ticket, passenger has to enter six-digit password for the
secure transaction. If the passenger does not enter the correct password suggest:
The alternate flow
The expected results
The execution condition
The state
1,Software system prompts to enter a valid password
Passenger is able to book the ticket
Passenger enters a valid password for confirmation
I
2,Software system accepts the entered password
Passenger is able to book the ticket
Passenger enters a valid password for confirmation
I
3,Passenger enter a invalid password and software system prompts to enter a valid password
Passenger is not able to book the ticket
Passenger enters a valid password
I
4,Software system prompts to enter a valid password
Passenger is not able to book the ticket
Passenger enters a valid password
V
Answer correct is: 3
---------------
Question :Which type of relationships among classes and objects represents how a super
class is related to sub classes?
1,Association
2,Multiplicity
3,Generalization
4,Realization
Answer correct is: 3
---------------
Question :Which relationship represents the number of objects of a class that are connected to
an object of another class?
1,Association
2,Multiplicity
3,Generalization
4,Realization
Answer correct is: 2
---------------
Question :Which type of class provide the mechanism that enables you to use operations and
classes to work with different data types?
1,Implementation
2,Type
3,Parameterised
4,Abstract
Answer correct is: 3
---------------
Question :Which class allows you to declare the operations and associations modeled through
type classes and not define them.
1,Implementation
2,Type
3,Parameterised
4,Abstract
Answer correct is: 2
---------------
Question :Which relation represents the static relationship shared among objects of two
classes?
1,Association
2,Dependency
3,Generalization
4,Realization
Answer correct is: 1
---------------
Question :A customer can purchase multiple products, but a product can be sold to only one
customer. Therefore, an object of the Customer class is associated with multiple objects of the
Product class. Which kind of relationship exists between the Customer class and the Product
class?
1,Association
2,Multiplicity
3,Generalization
4,Realization
Answer correct is: 2
---------------
Question :While computation of salary, number of leave without pay (LWP) affects the monthly
salary of an employee. Which kind of relationship exists between LWP class and Salary class?
1,Association
2,Multiplicity
3,Generalization
4,Dependency
Answer correct is: 4
---------------
Question :Consider the following statements:
Statement A: Class notations are used for analyzing the requirements of the system by
depicting the attributes and operations.
Statement B: Class notations are also used for implementing the requirements of the system at
the implementation phase.
Which of the following is correct about the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 2
---------------
Question :You can classify the students of a university into two categories, full-time and part-
time courses. Therefore, the Fulltime and Parttime classes inherit the attributes from the
Student class. Which kind of relationship does exist among the Customer class and the
Fulltime and the Parttime class?
1,Association
2,Multiplicity
3,Generalization
4,Dependency
Answer correct is: 3
---------------
Question :Which view of a software system is important to the client and developers because it
enables them to identify the hardware and network configuration required to install the software
system.
1,Use case view
2,Design view
3,Process view
4,Deployment view
Answer correct is: 4
---------------
Question :The use cases for a Student Registration System are identified as:
Fill up a registration form
Submit the registration form
Deposit fee
Generate fee receipt
Verify the registration form
Get registration number
Which one of the following options represent classes for the above use cases?
(Choose the best option)
1,FillForm, SubmitForm, GenerateFees, and RegistrationNumber
2,FillForm, SubmitForm, and DepositFees
3,Student, RegistrationForm, and FeesReceipt
4,RegistrationForm and FeesReceipt
Answer correct is: 3
---------------
Question :The responsibilities of a Library Management System are:
1. Maintaining member information, such as name, address, and contact number
2. Maintaining records of books available in the library
3. Maintaining details of issued and returned books
4. Calculating penalty for books that are returned after the due date
5. Keeping track of library member, such as adding new members, deleting existing members,
or renewing membership
Which one of the following options identify the above responsibilities?
1,Librarian, Library, Member, and Book
2,Library, Member, Book, and BookCopy
3,Librarian, Member, Book, and BookCopy
4,Library, Member, BookRecord, and Penalty
Answer correct is: 2
---------------
Question :InfoSolution wants to automate its recruitment system. The requirements for
implementing the system are:
Store the resumes of candidates in the database.
Short list candidates based on the percentage of marks obtained in the qualifying examination.
Create separate test papers for C, C++, Java, Oracle, and Linux.
Evaluate test papers attempted by the candidates and provides the result.
Identify the classes for the above requirements?
1,Resume, TestPaper, C, C++, Java, Oracle, and Linux
2,Candidate, TestPaper, and Resume
3,C, C++, Java, Oracle, and Linux
4,Candidate, Resume, C, C++, Java, Oracle, and Linux
Answer correct is: 1
---------------
Question :InfoSolution wants to automate its Payroll System. The company has three
categories of employees; managers, engineers, and other supporting staff. The supporting staff
is further divided as part time and full time employees. Which option identifies the classes for
the Payroll System?
1,Employee, Manager, Engineer, SupportingStaff, FullTimeStaff, and PartTimeStaff.
2,Employee, Manager, Engineer, SupportingStaff,
3,Manager, Engineer, SupportingStaff, FullTimeStaff, and PartTimeStaff.
4,Employee, SupportingStaff, FullTimeStaff, and PartTimeStaff.
Answer correct is: 1
---------------
Question :The Account class of a banking system has an operation called CalculateInterest.
The return type of the operation is float. The operation is not visible to any other class of the
system. Balance and InterestRate are the two float type parameters of the operation. Which of
the following options represents the correct declaration of the operation?
1,-float CalculateInterest(Balance:float,CalculateInterest:float)
2,+CalculateInterest(Balance:float,CalculateInterest:float):float
3,+ float CalculateInterest(Balance::float,CalculateInterest::float)
4,-CalculateInterest(Balance:float,CalculateInterest:float):float
Answer correct is: 4
---------------
Question :There are three classes in a class diagram of a Bank ATM System: Account,
SavingsAccount, and CurrentAccount. The attributes of the Account class are AccountNumber
and Balance. The operation of the Account class is CalculateInterest, which is implemented by
the SavingsAccount and CurrentAccount classes. The attribute of the SavingsAccount and
CurrentAccount classes is InterestRate. The operation, CalculateInterest, calculates the
amount of interest on the available balance for the SavingsAccount and CurrentAccount
classes. Which object oriented feature and relationship exists between the classes of the Bank
ATM System.
1,Generalization
2,Association
3,Composition
4,Realization
Answer correct is: 1
---------------
Question :Consider the attribute and operation declared in a class:
-IssueDate: Date [1] = 01-01-04 (Monday)
+BookIssueRequest(BookName:String): Boolean (No)
Which of the following options represents the parameter name, default value, and return type?
1,BookIssueRequest, 01-01-04, and Boolean
2,IssueDate, Monday, and Date
3,BookName, 01-01-04, and Boolean
4,BookName, Monday, and String
Answer correct is: 3
---------------
Question :An ATM consists of a card scanner, display screen, and cash dispenser. What
relationships should exist between the following classes of the ATM System:
-- ATM and CardScanner
-- ATM and CashDispenser
-- ATM and DisplayScreen
1,-- Generalization
-- Composition
-- Aggregation
2,-- Aggregation
-- Aggregation
-- Composition
3,-- Aggregation
-- Composition
-- Composition
4,-- Aggregation
-- Composition
-- Realization
Answer correct is: 3
---------------
Question :How the collection of instances of classes, relationship among the instances of
classes, and actors are represented in an interaction diagram?
1,Using Collaboration
2,Using Interaction
3,Depicting Relationship
4,Applying operation
Answer correct is: 1
---------------
Question :How the flow of control in an operation or among use cases is represented in
interaction diagram?
1,Using Collaboration
2,Using Interaction
3,Depicting Relationship
4,Applying Operation
Answer correct is: 2
---------------
Question :Which of the following UML diagram represents interaction among actor, object,
messages, and links?
1,Interaction diagram
2,Object diagram
3,Use case diagram
4,Collaboration diagram
Answer correct is: 4
---------------
Question :Which part of a transition in the state diagram refers to the response of an object to
an event?
1,Source state
2,Event trigger
3,Target state
4,Action
Answer correct is: 4
---------------
Question :Which of the following diagrams depict the condition and activities of an object
during its lifecycle?
1,State diagram
2,Collaboration diagram
3,Sequence diagram
4,Iteration diagram
Answer correct is: 1
---------------
Question :Consider the following statements:
Statement A: A state machine depicts the various states of an object that change in response
to events during the lifetime of the object.
Statement B: A state refers to the condition of an object during its existence in memory.
Which of the following is correct about the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 2
---------------
Question :Consider the following statements:
Statement A: The constituents of a collaboration diagram are organized in such a manner that
the unrelated objects are closely placed.
Statement B. Collaboration diagrams represents the interaction between objects in the form of
messages.
Which of the following is correct about the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 4
---------------
Question :Consider the following statements:
Statement A: Collaboration is a collection of instances of classes, relationship among the
instances of classes, and actors.
Statement B: Interaction diagrams depict how the constituents of a software system interact to
realize the use cases of the system.
Which of the following is correct about the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 2
---------------
Question :
Consider the following statements:
Statement A: A branch represents the set of alternative paths or a decision, which the flow
takes depending on the input.
Statement B: The alternative paths are depicted by a set of transitions that flow from the branch
element such that only one path is followed based on a condition.
Which of the following is correct about the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 2
---------------
Question :
Consider the following statements:
Statement A: Transformations often result in breaking an input parameter into more than one
parameter to match the output parameters of the other action.
Statement B: Transformations convert the type of output parameters of the outbound action to
the required parameter type of the inbound action.
Which one of the following options is correct, with respect to the above statement?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 2
---------------
Question :
Which of the following model represents the various parts of the order processing system?
Click the Exhibit button to view the figure.
1,Requirement
2,Static
3,Dynamic
4,Architecture
Answer correct is: 4
---------------
Question :
The figure provided represents the cash withdrawal process of an ATM system. Which of the
following model represents the cash withdrawal feature?
Click the Exhibit button to view the class diagram.
1,Requirement
2,Static
3,Dynamic
4,Architecture
Answer correct is: 3
---------------
Question :
Wilson Inc. has been assigned to develop a banks ATM system software for National Bank.
Before starting the development process, a system analyst of Wilson Inc. gathers, validates,
and freezes the requirements with the National bank. After the requirement gathering phase,
static and dynamic modeling of the system is performed. Once, the design is over, the software
is developed and delivered to the client. How will the system analyst view the architecture of
the bank ATM system?
1,Implementation view
2,Design View
3,Use case View
4,Deployment View
Answer correct is: 3
---------------
Question :
The figure provided represents the book issue process of a library management system of the
National University. Which of the following modeling technique is used to represent the book
issue request?
1,Requirement
2,Static
3,Dynamic
4,Architecture
Answer correct is: 3
---------------
Question :
RedSky Inc. has a stores database that stores the information when a new item arrives. The
manager intimates the vendor and orders items when the stock of a part reaches its reorder
level.
To design the system, the development team creates collaboration for the use case, order
items, which is realized through the interaction of Order object and the stores database. What
are the various interactions to realize the use case, order items?
1,-- Request by the Stores Manager actor to the object, O1 Orders class, to perform the
operation, issueOrder().
-- Request by the issueOrder() operation to the database to store the information about the
order.
-- Signal sent by the database to the object, O1 Orders, to intimate that the data storage
operation is complete.
2, -- Request by the Stores Manager actor to the object, O1 Orders class, to perform the
operation, issueOrder().
-- Request by the issueOrder() operation to the database to store the information about the
order.
3, -- Request by the Stores Manager actor to the object, O1 Orders class, to perform the
operation, issueOrder().
-- Request by the issueOrder() operation to the database to store the information about the
order.
-- Signal sent by the database to the object, O1 Orders, to
intimate that the data storage operation is complete.
-- Signal sent by the object, O1 Orders, to application to close the application.
4,-- Request by the Stores Manager actor to the object, O1 Orders class, to perform the
operation, issueOrder().
-- Request by the issueOrder() operation to the database to store the information about the
order.
-- Signal sent by the object, O1 Orders, to application to close the application.
Answer correct is: 1
---------------
Question :
Which element of an activity diagram represents the control flow of an operation?
1,Action State
2,Activity State
3,Transition
4,Decision
Answer correct is: 3
---------------
Question :
Which event of an activity diagram occurs outside the process but still have an impact on the
process?
1,Partitions
2,Signals
3,Transformations
4,Operations
Answer correct is: 2
---------------
Question :
Which of the following notation is used to represent tokens in the states of an activity diagram?
1,Diamond
2,Circle
3,Dot
4,Rectangular box
Answer correct is: 3
---------------
Question :
Which of the following is NOT a valid mode to implement an extension region?
1,Concurrent mode
2,Iterative mode
3,Stream mode
4,Output mode
Answer correct is: 4
---------------
Question :
Which one of the following special symbol depicts the action state that does not have any
outgoing transition?
1,Flow final
2,Fork
3,Join
4,Expansion
Answer correct is: 1
---------------
Question :
Which one of the following views focuses on assembling and configuring the component to
release the required software system?
1,Deployment view
2,Implementation view
3,Process view
4,Design view
Answer correct is: 2
---------------
Question :
Which relationship exists between package classes that are related to each other?
1,Realization
2,Composition
3,Association
4,Generalization
Answer correct is: 2
---------------
Question :
Which relationship exists when one constituent of a particular package calls constituents of
another package for performing a task?
1,Access Dependency
2,Generalization
3,Association
4,Realization
Answer correct is: 1
---------------
Question :
Which viewtype enables you to define interactions among various execution units?
1,Module
2,Component
3,Connector
4,Allocation
Answer correct is: 3
---------------
Question :
The __________ viewtype enables you to specify modules that implement a particular
functionality.
1,Module
2,Component
3,Connector
4,Allocation
Answer correct is: 1
---------------
Question :
As a senior analyst of system designing, you are responsible for representing the structure and
design of a software system for automating Human resource department. You need to depict
the various operations that a system performs. Which UML diagram enables you to perform the
task?
1,Class diagram
2,Object diagram
3,Deployment diagram
4,Use case diagram
Answer correct is: 4
---------------
Question :
Which pattern enables you to represent a tree in which the complex objects represent the
nodes and simple objects represent leaves of the tree?
1,Proxy
2,Decorator
3,Chain of Command
4,Composite
Answer correct is: 4
---------------
Question :
Consider the statements:

Statement A: Requirements modeling involves depicting the requirements of the software
system using use case diagrams.
Statement B: Requirements modeling involves depicting the behavior of static constituents.
Which of the following is correct about the above statements?
1,Both, Statement A and Statement B, are False.
2,Both, Statement A and Statement B, are True.
3,Statement A is True and Statement B is False.
4,Statement A is False and Statement B is True.
Answer correct is: 3
---------------
Question :
Peter is appointed as a project manager and is responsible to define the architecture of a
software system to automate production plant. Peter needs to evaluate the execution of
processes in terms of performance and scalability. Which view of the software system enables
him to perform the specified task?
1,Process view
2,Implementation view
3,Deployment view
4,Design view
Answer correct is: 1
---------------
Question :
Which one of the following options depicts the role of a class diagram during the requirement
analysis phase of SDLC?
1,Depicts the classes, their attributes and operations, and the relationship between classes.
2,Depicts the classes and their dependencies for the primary requirements of the system.
3,Depicts the various classes that are grouped together depending on their functionality.
4,Depicts the layout of the software components over the network.
Answer correct is: 2
---------------
Question :
While testing a GUI application Peter, a software tester at RedSky Inc., finds that an end user
might find it inconvenient to select commonly used options, such as cut, copy, and paste,
because they are present as menu items. Peter informs the software development team to
include toolbars in the application to make the GUI design more user-friendly. Which design
pattern should the development team use in order to do implement Peters suggestion?
1,Facade
2,Decorator
3,Adapter
4,Composite
Answer correct is: 2
---------------
Question :
RedSky Inc. has a developed a home security software, which can detect security breaches
and fires in a building. When there is a breach of security or fire, the software dials 911 and
report the emergency security operator with the nature of problem. The operator dials the
respective authorities and dispatches the service. Which design pattern does the 911 operator
represent?
1,Adapter
2,Decorator
3,Facade
4,Proxy
Answer correct is: 3
---------------
Question :
A university offers multiple courses to its students. A course consists of various subjects.
Therefore, the Course class is responsible for using the objects of the Subject class. Which
pattern represents the responsibility of Course class?
1,Creator
2,Expert
3,Controller
4,Decorator
Answer correct is: 1
---------------
Question :
On an online auction site, various users bid for different articles by entering their bid amount in
a user interface. The main auctioneer monitors the bids and is responsible for accepting or
rejecting the bidding amount. The acceptance of the bid changes the bid price, which is
intimated to all of the bidders in the form of a new bid amount. When the auctioneer clicks the
Itemsold button, the bidding for the item stops. Which design pattern provides the guideline for
handling the event generated by clicking the Itemsold button?
1,Creator
2,Expert
3,Controller
4,Proxy
Answer correct is: 3
---------------
Question :
In a bank, a customer fills an application form to open an account. The customer submits the
application to the front desk clerk who validates the form and asks the customer to make
changes if necessary. Then the application is forwarded to the bank manager, who conducts an
interview with the customer. If the bank manager is satisfied, the application form is stamped
and customer is then allowed to open the account. Which pattern is used to define the process
followed by the bank to open an account?
1,Command
2,Proxy
3,Composite
4,Chain of Responsibility
Answer correct is: 4
---------------
Question :
You have recently joined a software development company as a senior software developer. As
part of your first assignment, you have to add functionality to an existing application. You are
informed that the customer requirements have changed, since the application was first
developed. Therefore, you need to add extra functionality such as toolbars, icons, and menu
bars to the existing application. Which design pattern helps you to achieve that?
1,Structural
2,Decorator
3,Facade
4,Command
Answer correct is: 2
---------------
Question :
You have developed a Web-based application for a bank. The application stores all the
information about its employees and customers. The database used in the bank application
also stores photographs of its employees and customers along with their personal details. In
the testing phase, you have realized that the application is taking a long time to display the
output. As a result, you decided to change the design of the application to improve its
performance. Which design pattern will you apply to the application to improve its
performance?
1,Chain of Responsibility
2,Proxy
3,Composite
4,Observer
Answer correct is: 2
---------------
Question :
Consider that you have an abstract base class, Shape, with an abstract method, makeShape(),
to draw a shape on the screen. Two classes, Circle and Square, are derived from the Shape
class and provide definitions of the makeShape() method. Depending upon the specification by
an end user, either a circle or an square is drawn. To draw the any shape, you need to create
and use object of either Circle class or Square class and use the makeShape() method of the
Shape abstract class.
To solve this problem you apply a design pattern, according to which, you need another class
that provides a method to create the objects of the Circle and Square classes. Which design
pattern is applied here?
1,Facade
2,Decorator
3,Factory
4,Proxy
Answer correct is: 3
---------------
Question :
You are assigned to create an application for the bank that calculated interest amount on each
type of the bank account. Consider that you have an abstract base class, Account, with an
abstract method, CalculateInterest(), to calculate interest on saving account, current account,
loan account. Three classes, SavingsAccount and CurrentAccount, and LoanAccount are
derived from the Account class and provide definitions of the CalulateInterest() method.
Depending upon the specification by a bank clerk, either the interest amount on a saving
account or current account or loan account is calculated. To calculate interest, you need to
create and use object of either SavingsAccount or CurrentAccount, or LoanAccount class and
use the CalculateInterest() method of the Account abstract class.
Which design pattern will you implement on the Account Manager class?
1,Provider
2,Composite
3,Builder
4,Factory
Answer correct is: 4
---------------
Question :
You are assigned the task of developing an RAS application. Currently you are working in the
designing phase of the application. When you create a blueprint for the application, you
observe the following conditions applicable to the design:
-- A class can contain another class.
-- A class can record the instances of another class.
-- A class can use the objects of another class.
-- A class can provide information to initialise the objects of another class.
Keeping all these conditions in mind, which design pattern should you implement in the
application so that it become more reusable and manageable?
1,Creator
2,Expert
3,Controller
4,Composite
Answer correct is: 1
---------------
Question :
UML is a language for:
a. specifying artifacts
b. visualizing artifacts
c. constructing artifacts
d. documenting artifacts of a software-intensive system
Identify the correct option.
1,Only a
2,a and b
3,a, b, and c
4,a, b, c, and d
Answer correct is: 4
---------------
Question :
Dynamic constituents of a software system consist of:
1,Classes, interfaces, and objects
2,Use cases and collaborations
3,Components and nodes
4,Messages and states
Answer correct is: 4
---------------
Question :
Which diagram shows the physical placement of components in nodes over a network?
1,Activity diagram
2,Component diagram
3,Deployment diagram
4,Object diagram
Answer correct is: 3
---------------
Question :
Which pattern separates the construction of a complex object from its representation?
1,Builder
2,Factory
3,Singleton
4,Decorator
Answer correct is: 1
--------------
Question :
Which of the following functions takes a numeric value as an argument and returns the smallest
integer that is greater than or equal to the argument?
1,sum()
2,round()
3,floor()
4,ceiling()
Answer correct is: 4
---------------
Question :
Consider the following statements:
Statement A: SOAP provides a mechanism for structured information interchange in a
distributed environment.
Statement B: SOAP enables components of heterogeneous applications to send and receive
messages.
Which of the following is correct about the above statements?
1,Statement A is True, and Statement B is False.
2,Statement A is False, and Statement B is True.
3,Both, Statement A and Statement B, are True.
4,Both, Statement A and Statement B, are False.
Answer correct is: 3
-----------------------------------------------------------------------------------------------------------------------------------
1 When a Web page uses a master page to help define its layout and functionality, it is known as a
_________ page.
1, Web Farm
2, Content
3, Web Form
4, Nested Master 2
2 Using which of the following can you maintain the state data of your web server control, even when
the ViewState
property is disabled for the page?
1, ControlState data
2, Session.Start
3, Application.Start
4, StateServer Mode 1
3 Which of the following data-bound controls displays one or more records from a data source, one
record at a time?
1, GridView Control
2, TreeView Control
3, DetailsView Control
4, DataList Control 3
4 Which of the following controls features hierarchical data-binding and may be bound to an
XmlDataSource or a
SiteMapDataSource?
1, DropDownList Control m
2, Menu Control m
3, DataList Control m
4, GridView Control m 2
5 Which of the following classes provides methods for creating, deleting, and updating user accounts,
authenticating users,
and managing passwords?
1, Members Class m
2, Membership Class m
3, Member Class m
4, FormsAuthentication Class m 2
6 Which of the following data-bound controls displays multiple records, typically in a table and does not
provide a
predetermined layout for the data.
1, Menu Control m
2, DataList Control m
3, GridView Control m
4, DetailsView Control m 2
7 Which of the following uses a separate resource file for each culture? m
1, Globalization m
2, Implicit Localization m
3, Explicit Localization m
4, Localization m 2
8The public methods and properties of a master page can be accessed in a content page by assigning a
class name to the
master page. Which directive can be used to assign a class name to the master page? M
1, <%@ Master %>m
2, <%@ Page %>m
3, <%@ MasterType %>m
4, <%@ Control %>m 1
9 Which of the following is NOT a feature of composite Web server controls?
1.They have a user interface that is composed of several custom Web server controls.
2, They derive from the System.Web.UI.WebControls.CompositeControls class.
3, They create the child controls by overriding the CreateChildControls method.
4, They are compiled into an assembly in the Bin folder before you deploy the application. 1
10 Repeater, DataList, and GridView Web server controls are examples of which type of controls?
1, User Controls m
2, Custom Web server controls m
3, Template controls m
4, Navigation controls m 3
11 Which of the following can be used to configure the way encryption is used to protect forms
authentication cookies and
view stateinformation in a Web form?
1, <trace>
2, <machine Key>
3, <custom Errors>
4, <script>m 2
12 To use the objects of GDI+, an object of the Graphics class must be created. Which of the following
methods of the
Graphics class is used to free all the resources being used by the currently loaded graphic? M
1, Flush m
2, Dispose m
3, Clear m
4, Kill m 2
13 The Alternate View class can be used to embed an attachment to an E-mail message. Which of the
following enables the
Alternate View class to embed images in amessage? M
1, Attachment m
2, Base Uri m
3, Content Link m
4, Linked Resources m 4
14 There are different ways of specifying security permissions in your code. Which of the following uses
code attributes to
specify the permissions that are required to execute an assembly? M
1, Imperative syntax m
2, caspol.exe m
3, Declarative syntax m
4, TlbImp.exe m 3
15 Host evidence is the evidence from the application domain or the host in which an assembly executes.
Which of the
following is NOT a type of host evidence? M
1, Site m
2, Zone m
3, Subscriber m
4, Hash m 3
16 "Consider the following statements in context of the encryption classes available in .Net Framework
2.0:
Statement A: The Rijndael algorithm in the .Net Framework supports an encryption key from 40 bits to
128 bits in
increments of 8 bits.
Statement B: RC"
1, Statement A is TRUE and statement B is FALSE. M
2, Statement B is TRUE and statement A is FALSE. M
3, Both statements, A and B, are TRUE. M
4, Both statements, A and B, are FALSE. M 4
17 ASP.NET profiles can be best described by which of the following options? M
1, An ASP.NET profile consists of a set of named properties that is stored for each user. M
2, An ASP.NET a profile is a collection of property settings that enable a developer to define the look of
pages and controls
and then applies the look consistently across pages. M
3, An ASP.NET profile provides a tracing system that can be used to generate the diagnostic information
which can be
written to logs, text file, or the screen. M
4, An ASP.NET profile enables a developer to store objects and data in the server's memory for reuse. m
1
18 ASP.NET themes can be best described by which of the following options?
1, An ASP.NET theme consists of a set of named properties that is stored for each user. M
2, An ASP.NET theme is a collection of property settings that enable a developer to define the look of
pages and controls
and then applies the look consistently across page
3, An ASP.NET theme provides a tracing system that will used to generate thediagnostic information
which can be written
to logs, text file or the screen.
4, An ASP.NET theme enables a developer to store object and data in the server's memory for reuse. m 2
19 After storing the name of the preferred theme for each user in the Preferred Theme property of the
user's ASP.NET profile,
which of the following code snippets can be used to set this theme programmatically as each page loads?
M
1, <@ Page Theme =Profile.PreferedTheme %>m
"2, <configuration>
<system.web>
<pages theme =Profile.PreferedTheme />
</system.web>
</configuration>m" "
3, void Page_PreInit (object sender, EventArgs e)
{
Page. Theme =Profile.PreferredTheme;
} "
4, void Page_Load (object sender, EventArgs e)
{
Page. Theme =Profile.PreferredTheme;
} m" 3
20 Which of the following can be used to set the "BlueSky" theme for the entire application in the
Web.config file? M
1, <@ Page Theme ="BlueSky" %>m
"2, <configuration>
<system.web>
<pages theme ="" BlueSky"" />
</system.web>
</configuration>m" "
3, void Page_PreInit(object sender, EventArgs e)
{
Page.Theme ="" BlueSky"" ;
} m" "
4, void Page_Laod (object sender, EventArgs e)
{
Page. Theme ="BlueSky" ;
} m" 2
21 "Consider the following statements:
Statement A: While defining a theme, the name of the folder created in App_Theme folder must be the
same as the name
of the theme.
Statement B: While creating a skin file, the name of the skin file created must be the"
1, Statement A is TRUE, Statement B is FALSE. M
2, Statement A is FALSE, Statement B is TRUE. M
3, both statements, A and B, are TRUE. M
4, both statements, A and B, are FALSE. M 1
22 "Consider the following statements in context of the Copy Web Site utility:
Statement A: If the Web site contains source files that do not compile, they will not get copied by the
Copy Web Site
utility.
Statement B: If the Copy Web Site utility is used as"
1, Statement A is TRUE and Statement B is FALSE. M
2, Statement A is FALSE and statement B is TRUE. M
3, both statements, A and B, are TRUE. M
4, both statements, A andB, are FALSE. M 2
23 While using the Publish Web Site utility, when you choose to prevent editing of the ASPX files at the
destination site, the
markup from the ASPX files is removed. What does the utility create instead of the ASPX markup? M
1, .Exe filem
2, DLL assemblies m
3, HTML code m
4, Plain text m 2
24 You can select "Allow this precompiled site to be updateable" option, to be able to bring about
changes in the aspx files
after publishing the site. What type of changes can you make to the aspx files on selecting this option? m
1, Changes to the code of the ASPX files. m
2, Changes to the layout of the ASPX files. m
3, Changes to the location of the ASPX files. m
4, Changes to the extension of the ASPX files. m 2
25 Visual Studio 2005 includes Device Emulator 1.0. Which of the following is NOT emulated by this
software? M
1, Microsoft Windows CE 5.0 m
2, Microsoft Pocket PC 2003 m
3, Symbian OS S60 m
4, Microsoft Smartphone 2003 m 3
26 Which of the following Mobile controls is used to group child controls and can modify several child
controls in a single
operation? M
1, ObjectList m
2, Form m
3, Panel m
4, List m 3
27 In an application you are creating, the icon associated with MS Paint is to be displayed to the users.
This is required to
indicate that MS Paint will be opened if the users request to open any image files within the application.
Which of the
following code:
1, Icon PaintIcon =Icon.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.exe"); m
2, SystemIcons PaintIcon =
SystemIcons.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.exe");
3, Icon PaintIcon =IconConverter.ExtractAssociatedIcon("C:\WINDOWS\system32\mspaint.exe");
4, SystemIcons PaintIcon =SystemIcons.FromHandle("C:\WINDOWS\system32\mspaint.exe"); m 1
28 You are working as a System Administrator with RedSky Inc. You need to set and configure the
Security Policies to be
granted to the assemblies being created by the different developers in the organization. Before you carry
out this task, you
want to view
1, Ienumerator policyEnum =SecurityManager.PolicyHierarchy();
while(policyEnum.MoveNext())
{
PolicyLevel currentLevel =(PolicyLevel)policyEnum.Current;
Console.WriteLine(""Policy Level {0}:"", currentLevel.Label);
} m" "
2, Ienumerator policyEnum =SecurityManager.PolicyHierarchy();
while(policyEnum.MoveNext())
{
PolicyStatement currentStatement =(PolicyStatement)policyEnum.Current;
Console.WriteLine(""Policy Level {0}:"", currentStatement.Label);
} m" "
3, Ienumerator policyEnum =Assembly.PolicyHierarchy();
while(policyEnum.MoveNext())
{
PolicyStatement currentStatement =(PolicyStatement)policyEnum.Current;
Console.WriteLine(""Policy Level {0}:"", currentStatement.Label);
} m" "
4, Ienumerator policyEnum =SecurityManager.PolicyHierarchy();
while(policyEnum.MoveNext())
{
Policy currentLevel =(Policy)policyEnum.Current;
Console.WriteLine(""Policy Level {0}:"", currentLevel.Label);
} m" 1
29 Bryan has created an inventory control application. Now, for the assembly of this application he
wishes to provide certain
customized metadata such as the version number, creator's name, and description of the assembly. Which
of the following
should Bryan?
1, Assembly class m
2, AssemblyInfo file m
3, Reflection m
4, PropertyInfo class m 2
30 A memory management application developed by you needs to access certain functions provided in
kernel32.dll file
located in "C:\windows\system32" directory. How will you locate and call the function included in
kernel32.dll from your
application? m
1, Use Delegates. m
2, Use Platform Invoke. m
3, Copy the file in the application folder and reference it in the application.
4, Include the complete path of the file in the application's code. m 2
31 To eliminate the problem of flickering occurring on the screen while rendering graphics, you have
decided to implement
double buffering in your code. You need to allocate memory to a specific object for implementing double
buffering using
the BufferedGrap
1, Graphics class m
2, BufferredGraphicsManager class m
3,SystemColors class m
4, BufferredGraphics class m 2
32 "Sam wants to configure his ASP.NET application to enable profiles and define a FavColor property
to track each user's
favorite color.
Sam also wants to configure the property to track both anonymous users and logged-on users. He has
already checked that
" "
1, <system.web>
<properties>
<profile>
<anonymousIdentification enabled=""true"" />
<add name =""FavColor"" type=""System.String"" allowAnonymous=""true""/>
</profile>
</propertie" "
2, <system.web>
<profile>
<properties>
<anonymousIdentification enabled=""true"" />
<add name =""FavColor"" type=""System.String"" allowAnonymous=""true""/>
</properties>
</profile>
</system.web>m" "
3, <system.web>
<anonymousIdentification enabled=""true"" />
<profile>
<properties>
<add name =""FavColor"" type=""System.String"" allowAnonymous=""true""/>
</properties>
</profile>
</system.web>m" "
4, system.web>
<anonymousIdentification enabled=""true"" />
<properties>
<profile>
<add name =""FavColor"" type=""System.String"" allowAnonymous=""true""/>
</profile>
</properties>
</system.web>m" 3
33 "Sam wants to define his own page theme for his Web application with a name LabelThm. The theme
should be defined in
such a way that all Label controls
on the page should appear with the following settings:
Fore color =red
Font size=14pt
Font name=Verd" "
1, a) Create a new folder LabelThm_Theme in \App_Themes folder for the application.
b) In the LabelThm_Theme folder add a skin file with the name LabelThm.skin.
c) In the LabelThm.skin file, add the following definitions:
<asp:Label runat=" "
2, a) Create a new folder LabelThm in \App_Themes folder for the application.
b) In the LabelThm folder, add a skin file with the name LabelThm.skin.
c) In the LableThm.skin file, addthe following definitions:
<asp:Label runat=""serve" "
3, a) Create a new folder LabelThm_Theme in \App_Themes folder for the application.
b) In the LabelThm_Theme folder, add a skin file with the name LabelThm.aspx.skin.
c) In the LableThm.aspx.skin file, add the following definitions:
<asp:Label" "
4, a) Create a new folder LabelThm in \App_Themes folder for the application.
b) In the LabelThm folder, add a skin file with the name LabelThm.aspx.skin.
c) In the LableThm.aspx.skin file, add the following definitions:
<asp:Label runat=""server" 2
34 "Sam has created two themes with the names Theme1 and Theme2. Sam wants to implement these
themes at run time on
the basis of values of theme variables in the QueryString.
In case value of the theme variable isThm1, Theme1 should be applied.
In case val" "
1, void Page_Load (object sender, EventArgs e)
{
switch (Request.QueryString[""theme""])
{
case ""Thm1"":
Page.Theme =""Theme1"";
break;
case ""Thm2"":
Page.Theme =""Theme2"";
break;
}
} m" "
2, void Page_PreInit(object sender, EventArgs e)
{
switch (Request.QueryString[""theme""])
{
case ""Thm1"":
Page.Theme(""Theme1"");
break;
case ""Thm2"":
Page.Theme (""Theme2"")
" "
3, void Page_Load (object sender, EventArgs e)
{
switch (Request.QueryString[""theme""])
{
case ""Thm1"":
Page.Theme(""Theme1"");
break;
case ""Thm2"":
Page.Theme(""Theme2"");
break;
}
} m" "
4, void Page_PreInit(object sender, EventArgs e)
{
switch (Request.QueryString[""theme""])
{
case ""Thm1"":
Page.Theme =""Theme1"";
break;
case ""Thm2"":
Page.Theme =""Theme2"";
" 4
35 Sam is developing a Web application. He has already configured his Web site to track a profile
property
FavColor. Now he wants to create a page "profile.aspx" to set the value of FavColor profile. In the
profile.aspx page, he has
created a Textbox control
"1, void SetFavColor_Click(object sender, System.EventArgs e)
{
Profile.FavColor =Server.HTMLEncode(textFavColor.Text);
}
2 void SetFavColor_OnClick(object sender, System.EventArgs e)
{
Profile.FavColor =Server.HTMLEncode(textFavColor.Text);
} m
3, void SetFavColor_OnClick(object sender, System.EventArgs e)
{
FavColor.Profile =Server.HTMLEncode(textFavColor.Text);
} m" "
4, void SetFavColor_Click(object sender, System.EventArgs e)
{
FavColor.Profile=Server.HTMLEncode(textFavColor.Text);
} m" 1
36 Sam wants to configure his ASP.NET application to enable profiles. He wants to define a group of
two properties,
FirstName and LastName under the group name Person to track each user's name. Sam wants to
configure this property to
track only logged-on use "
1, <system.web>
<properties>
<anonymousIdentification enabled=""false""/>
<profile >
<add groupName=""Person"" name=""FirstName"" type=""System.String"" allowAnonymous=""false""
/>
<add groupName =""Person"" " "
2, <system.web>
<properties>
<anonymousIdentification enabled=""false""/>
<profile >
<group name=""Person"">
<add name=""FirstName"" type=""System.String"" allowAnonymous=""false"" />
" "
3, <system.web>
<anonymousIdentification enabled=""false""/>
<profile >
<properties>
<group name=""Person"">
<add name=""FirstName"" type=""System.String"" allowAnonymous=""false"" />
<add name=""LastName"" type" "
4 , <system.web>
<anonymousIdentification enabled=""false""/>
<profile >
<properties>
<add groupName =""Person"" name=""FirstName"" type=""System.String""
allowAnonymous=""false"" />
<add groupName=" 3
37 You have created a Web application using ASP.NET. Now you want to test it for compatibility with
mobile devices
running Microsoft Pocket PC 2003 SE, by connecting to its Device Emulator using Microsoft
ActiveSync. Which of the following
sequence of steps "
1, 1. In Visual Studio, on the Tools menu, click Device Emulator Manager.
2. In the Device Emulator Manager, on the Actions menu, click Cradle.
3. In the Device Emulator Manager, right-click the emulator you want to use and t then click Connect. "
"
2, 1. In Visual Studio, on the File menu, click Device Emulator Manager.
2. In the Device Emulator Manager, right-click the emulator you want to use and then click Connect.
3. In the Device Emulator Manager, on the Actions menu, click Cradle.
4. The Activ" "
3, 1. In Visual Studio, on the Tools menu, click Device Emulator Manager.
2. In the Device Emulator Manager, right-click the emulator you want to use and then click Connect.
3. In the Device Emulator Manager, on the Actions menu, click Cradle.
4. The Acti" "
4, 1. In Visual Studio, on the File menu, click Device Emulator Manager
2. In the Device Emulator Manager, right-click the emulator you want to use and then click Connect.
3. The ActiveSync Connection Wizard starts and guides you through making a connecti" 3
38 "Bryan needs to deploy the Web application developed by him. For this he has decided to create a
Web Setup project in the
Microsoft Visual Studio
2005 IDE and then add the project output of the Web application to be deployed to the Web Setup
project. What" "
1, 1. Using Visual Studio 2005, open the solution containing the Web site to be deployed.
2. On the File menu, point to Addand then click New Project. The Add New Project dialog box appears.
3. In the Templates section of the Add New Project dialog box, " "
2, 1. Using Visual Studio 2005, open the solution containing the Web site to be deployed.
2. On the File menu, point to Add and then click New Project. The Add New Project dialog box appears.
3. Expand the Other Project Types node in the Project types tre" "
3, 1. Using Visual Studio 2005, open the solution containing the Web site to be deployed.
2. On the Tools menu, point to Add and then click New Project. The Add New Project dialog box
appears.
3. Expand the Other Project Types node in the Project types tr" "
4, 1. Using Visual Studio 2005, open the solution containing the Web site to be deployed.
2. On the File menu, point to Add and then click New Project. The Add New Project dialog box appears.
3. In the Templates section of the Add New Project dialog box, " 2
39 Bryan needs to deploy the Web application developed by him. For this he has created a Web Setup
project in the Microsoft
Visual Studio 2005 IDE. Now he needs to add the project output of the Web application to be deployed
to the Web Setup project.
Which o "
1, 1. In Solution Explorer, right-click the new Web Setup project that has been added to the solution.
2. Point to Add on the shortcut menu and then click Project Output. The Add Project Output Group
dialog box appears.
3. Ensure that the Web site project" "
2, 1. In Solution Explorer, right-click the new Web Setup project that has been added to the solution.
2. Point to Add on the shortcut menu and then click Project Output. The Add Project Output Group
dialog box appears.
3. Click Content Files.
4. Ensure t" "
3, 1. In Solution Explorer, right-click the new Web Setup project that has been added to the solution.
2. Point to Add on the shortcut menu and then click Project Output. The Add Project Output Group
dialog box appears.
3. Ensure that Content Files is not" "
4, 1. In Solution Explorer, right-click the new Web Setup project that has been added to the solution.
2. Point to Add on the shortcut menu and then click Project Output. The Add Project Output Group
dialog box appears.
3. Ensure that Content Files is not" 2
40 Bryan is a Web developer at RedSky Inc. He has created an intranet application for the employees of
RedSky Inc. Now he
needs to distribute the application to the various branches of his organization. The application will be
installed on a centrally locate
"
1, 1. In Solution Explorer, right-click the Web Setup project, point to View on the shortcut menu, and
then click User
Interface.
2. Right-click the Progress node in the Install section of the tree-view and then click Add Dialog on the
shortcut menu. The
"
2, 1. In Solution Explorer, right-click the Web Setup project, point to View on the shortcut menu, and
then click User
Interface.
2. Right-click the Start node in the Administrative Install section of the tree-view and then click Add
Dialog on the
shortcu" "
3 , 1. In Solution Explorer, right-click the Web Setup project, point to View on the shortcut menu, and
then click User
Interface.
2. Right-click the Start node in the Install section of the tree-view and then click Add Dialog on the
shortcut menu. The
Add" "
4, 1. In Solution Explorer, right-click the Web Setup project, point to View on the shortcut menu, and
then click User
Interface.
2. Right-click the Progress node in the Administrative Install section of the tree-view and then click Add
Dialog on the
shor" 3
41 "J ohn needs to test his website's compatibility on different mobile devices. To test his site on the
Pocket PC 2003 SE, he
needs to browse a
Web page of his Web Site on the corresponding Emulator. The IP address of the host computer is
172.23.4.227. Which" "
1, 1. In the Device Emulator Manager, select Pocket PC 2003 SE Emulator.
2. On the Actions menu, click Connect.
3. In the Device Emulator Manager, on the Actions menu, click Cradle. ActiveSync connects to the
emulator and
synchronizes.
4. Once the synchro" "
2, 1. In the Device Emulator Manager, select Pocket PC 2003 SE Emulator.
2. On the Actions menu, click Cradle.
3. In the Device Emulator Manager, on the Actions menu, click Connect. ActiveSync connects to the
emulator and
synchronizes.
4. Once the synchro" "
3, 1. In the Device Emulator Manager, select Pocket PC 2003 SE Emulator.
2. In the Device Emulator Manager, on the Actions menu, click Cradle.
3. In the Address box, type the address http://172.23.4.227/page.aspx
4, 1. In the Device Emulator Manager, select Pocket PC 2003 SE Emulator.
2. On the Actions menu, click Connect.
3. In the Device Emulator Manager, on the Actions menu, click Clear Save State. ActiveSync connects to
the emulator and
synchronizes.
4. Once t" 1
42 J ohn is creating a Web site that allows users to shop online for different products. The site should
allow users to select
goods from different categories spanning over different pages on the website. The selected goods are to
be added to a shopping cart
1, ControlState m
2, ViewState m
3, Session object m
4, Application object m 3
43 A web application created by J im in Microsoft Visual Studio 2005 has several forms which connect
and store user
information in a single database in the SQL Server 2005. Instead of creating a connection on each form,
he has created a connection
string with
"1, string dbStr =
Configuration.ConnectionStrings
[""NewConString""].ConnectionString;
System.Data.SqlClient.SqlConnection sqlConn =new
System.Data.SqlClient.SqlConnection(dbStr);
sqlConn.Open();
m" "
2, string dbStr =
ConfigurationManager.ConnectionStrings
[""NewConString""].ConnectionString;
System.Data.SqlClient.SqlConnection sqlConn =new
System.Data.SqlClient.SqlConnection(dbStr);
sqlConn.Open();
m" "
3, string dbStr =
ConfigurationSettings.ConnectionStrings
[""NewConString""].ConnectionString;
System.Data.SqlClient.SqlConnection sqlConn =new
System.Data.SqlClient.SqlConnection(dbStr);
sqlConn.Open();
m" "
4, string dbStr =
ConfigurationSection.ConnectionStrings
[""NewConString""].ConnectionString;
System.Data.SqlClient.SqlConnection sqlConn =new
System.Data.SqlClient.SqlConnection(dbStr);
sqlConn.Open();
m" 2
44 Samantha, a developer with RedSky Inc. has created a Web application which caters to different users
based on their
membership types. Samantha wants that access to certain directories on the website should only be given
to some particular users and
the re
"1, Samantha should write the following code in Web.config instead of the one already written:
<credentials>
<allow roles=""Samantha""/>
<allow roles=""Bryan""/>
<allow roles=""J ohn""/>
<deny users=""*""/>
</credentials>
m" "
2, Samantha should write the following code in Web.config instead of the one already written:
<authorization>
<allow roles=""Samantha""/>
<allow roles=""Bryan""/>
<allow roles=""J ohn""/>
<deny users=""*""/>
</authorization>
m" "
3, Samantha should write the following code in App.config instead of the one already written in
Web.config:
<credentials>
<allow roles=""Samantha""/>
<allow roles=""Bryan""/>
<allow roles=""J ohn""/>
<deny users=""*""/>
</credentials>
m" "
4, Samantha should write the following code in Web.config instead of the one already written:
<authorization>
<allow users=""Samantha""/>
<allow users=""Bryan""/>
<allow users=""J ohn""/>
<deny users=""*""/>
</authorization>
m" 4
45 "J ohn, a software engineer workingwith NewTech Books has written the following code snippet for
adding the username,
password, and country for a new user on the site:
Membership NewLogin =Membership.CreateUser(""J im"",
""pass@123"",""jim@newtechbooks.com"");
"
1, J ohn should use the AddUser method of the Membership class instead of the CreateUser method. M
2, J ohn should instantiate NewLogin as an object of MembershipUser class. m
3, J ohn should use AddUser method of the MembershipUser class. m
4, J ohn should use the CreateUser method with the MembershipUser class instead of the Membership
class. m 2
46 J ohn is working as a software developer at BlueMoon Inc., He needs to create a Web page that will
enable the users to
provide reviews for various products. To accomplish this task, he has decided to use a FormView control
that uses Reviews.cs file as a
bu
1, <ItemTemplate>m
2, <EmptyDataTemplate>m
3, <InsertItemTemplate>m
4, <InsertParameters>m 2
47 Which of the following is NOT used to load an assembly dynamically? m
1, The Load method of the AppDomain class m
2, The Load method of the Assembly class m
3, The LoadFrom method of the Assembly class m
4, The LoadTo method of the Assembly class m 4
48 ApplicationBase, ApplicationName, and ConfigurationFile are the properties of which class? m
1, AppDomainSetup class m
2, ApplicationDomain class m
3, AppDomain class m
4, Assembly class m 1
49 To create a Windows service application, you must create a Windows application containing a class
that extends the
_________ class. m
1, ServiceInstaller class m
2, ServiceController class m
3, ServiceBase class m
4, ServiceProcessInstaller class m 3
50 Which of the following classes can be used to access the metadata of assemblies during reflection? M
1, Assembly class m
2, FieldInfo class m
3, PropertyInfo class m
4, MethodInfo class m1
51 Which of the following classes does NOT implement symmetric encryption? M
1, DES m
2, RC2 m
3, DSA m
4, Rijndael m 3
52 While creating a file-system Web site, where can the files be stored other than a folder in the local
computer's file system?
M
1, They may be stored in a shared network folder. M
2, They may be stored in a shared local folder. M
3, They may be stored in a shared folder on the remote web server. M
4,They may be stored in a local folder that is not shared. M 1
53 Which of the following files contains the ASP.NET application root settings? M 1, machine.config m
2, web.config m
3, app.config m
4, config.sys m 2
54 Which of the following does ASP.NET use to determine which procedures to call when objects raise
events? M
1, Centralized Event Handlers m
2, Event Wire-Ups m
3, Non-Default Event Handlers m
4, Default Event-Handlers m 2
55 Which of the following is a .NET Framework object that is converted by ASP.NET to an HTML
element at run time? M
1, HTML Control m
2, Web Farm m
3, WebPart m
4, Web Server Control m 4
56 J ohn works as as software developer in GamingApp Pvt. Ltd. He is assigned a taskt to develop an
application that
generates the sales report on a monthly basis in the form of a pic chart and bar diagrams. Which type of
performance
library should J ohn use t
1,Graphic Library m
2,Math Library m
3,Image Processing Library m
4,Engineering and Scienc Library m 1
57 J ohn works as a software developer in Quick Solutions Pvt. Ltd. He is required to develop a software
that keeps track of th
records of the employees. The application should be capable of storing and retrieving, and editing the
photo of the
employees. Which
1,Math Library m
2,Image Processing Library m
3,Graphic Library m
4,Enguneering and Science Library m2
58 Consider the following code snippet:
for (i=0; i<100; i++)
{ a=a+i; }
for(i=0; i<100; i++)
{ b=b+i; }
By observing the preceeding code snippet, identify the correct method that would optimize the
preceeding code snippet. M
1, Combining Loops m
2,Remove unwanted parts of Loops m
3,Reduce work inside loops m
4,Use setinel value m 1
59 "Identify the technique that needs to be used to optimize the following code snippet:
int y [500] [220];
void xmpl17 (int *x)
{ int i, j;
for (i=0; i<220; i++)
for (j=0; j<500; j++)
y[j] [i] =y[j] [i] +x[2*j];
} m"
1,Use sentinel values m
2,Interchange loops m
3,Use pointers m
4,Combine loops m 2
60 "Consider the statements:
Statement A: Input/output(I/O) operations accesses memory to read or write data.
Statement B: The speed of I/O operations is limited by the speed of memory.
Which of the below given options is true? m"
1,Statement A is true and Statement B is false m
2,Statement A is false and Statement B is true. M
3,Both, statements A and B, are true. M
4,Both, statements A and B, are false. m 3
61 "Consider the statements:
Statement A: At the computer-architecture level, optimization involves tuning the processor architecture
according to the application.
Statement B: If the processor is tuned for a specific task, there might be a possibility that "
1,Statement A is true and Statement B is false. M
2,Statement A is false and Statement B is true. M
3,Both, statements A and B, are true. M
4,Both, statements A and B, are false. m 3
62 "Consider the statements:
Statement A: To collect performance-related data with reference to the time taken for execution, you can
use a stopwatch, a timing
function inserted in code, or a performance-analyzing tool to measure the time.
Statement B: After "
1,Statement A is true and Statement B is false. M
2,Statement A is false and Statement B is true. M
3,Both, statements A and B, are true. M
4,Both, statements A and B, are false. m 3
63 Tom Wilkins is working as a software developer at Good Graphics Inc. Tom is analyzing the
performance of a C#
application. Tom identifies that a data structure that is too large, is retarding the application performance.
What should
Tom Wilkins do to reso
1,Optimize memory operations m
2,Increase the number of MFLOPS of the processor m
3,Optimize floating-point operations m
4,Optimize system calls m 1
64 "Consider the statements:
Statement A: For optimizing memory operations, you need to write code that accesses memory
sequentially.
Statement B: Accessing memory locations that are located at a distance from each other will require
more processor time
and "
1,Statement A is true and Statement B is false. M
2,Statement A is false and Statement B is true. M
3,Both, statements A and B, are true. M
4,Both, statements A and B, are false. m 3
65 What are the levels at which Application Optimization is done? M
1,System, Application, micro Architecture m
2,Only System and Application m
3,System, Software, Peripherals m
4,Only System Configuration and Hardware m 1
66 Which is the key factor that a developer can optimize to suit different specifications and obtain best
performance
on a given hardware? M
1,System resources m
2,Source code m
3,Hardware resources m
4,Processor performance m 2
67 A small code executed independently by the processor that enables a computer to perform several
tasks simultaneously is
known as: m
1,Library m
2,Performance library m
3,Module m
4,Thread m4
68 Why is Application optimization used? Select the best answer. M
1,To make the best use of available resources and as an alternative to upgrading hardware resources. M
2,As an alternative to upgrading hardware resources. M
3,To debug the application and as an alternative to upgrading hardware resources.
4,To obtain error free results and as an alternative to upgrading hardware resources. m 1
69 Which of the following levels of optimization will be used to tune application performance with
respect to system level
DLLs and APIs? M
1,Application Level m
2,Computer Architecture Level m
3,System Level m
4,Application Level and Computer Architecture Level m 3
70 "For optimizing the performance of an inventory management system, J im gathers the performance
data for the application
by using the VTune performance Analyzer.
From the options given below, identify the next step he needs to perform to successfully compl"
1,He needs to analyze alternatives before identifying issues that necessitate application enhancement. M
2,He needs to implement enhancements and identify the data that necessitate enhancement before
generating
alternatives. M
3,He needs to analyze the gathered data and identify the performance issues before generating
alternatives. M
4,He needs to generate the possible enhancements. m 3
71 J ack develops a payroll application. He implements enhancements for the application and tests the
optimized version. He
notices that results that the optimized version computed are correct. However, the optimized version does
not reach the
desired level o
1,He needs to analyze the application for system calls and implement enhancements. M
2,He needs to identify alternatives and optimize issues that necessitate application enhancement. M
3,He needs to optimize memory operations, floating point operations, and system calls. M
4,He needs to reiterate through the entire optimization process step-by-step and stop the optimization
process when the
desired level of optimization is achieved. m 4
72 Sam has written a code to search for a string from the give list. However, on carefully analysing the
code, Sam found that a
lot of ime is wasted in performing an additional task of checking the end of the search string. How
should Sam optimize his
code?
1,Use unrolling m
2,Use sentinel value m
3,Reduce work inside loops m
4,Combine loops m 2
73 Sam has developed an application in C#whose performance needs to be analysed using Vtune. Sam
wants to use the
tuning assistant feature of Vtune to get some advice for optimizing the application. After invoking the
tuning the assistant,
Sam wishes to vie
1,Workload insights m
2,System Info m
3,Hotspot insights m
4,Module insights m 2
74 Henry needs to collect remote sampling data for a remote J ava application. He has prepared the target
and controlling
systems by installing VTune Performance Analyzer on the controlling system, enabling all three DCOM
components on
target system, and spec
1,He needs to install the remote agent configuration required for performing remote sampling on the
target system and
enable the remote agent on target system. M
2,He needs to install the J ava application on the controlling system and restart the target system. M
3,He needs to install a remote agent on the controlling system as on the target system. M
4,He needs to install a fourth DCOM component on the target system. m 1
75 "J im, a graphics designer at Websolutions Inc., is analyzing an application which
is a web page developed using ASP.NET. The application is located on the remote server, which has
Windows 2000 Server
operating system and Intel P4 processor.
Suggest a feasi"
1, He needs to copy the application to his computer and then optimize the source code. M
2, He needs to analyze the system level performance of the server. M
3, He needs to analyze the performance of the remote application on the remote system using VTune
Performance Analyzer. M
4, He needs to launch the application in interactive mode on his local computer . m 3
76 "In order to analyze the performance of a remote application, J ack installed the VTune Performance
Analyzer on the
controlling system and restarted the system. He has performed the following steps:
A. Enabled the remote agent on the target system
B. Enable"
1,J ack did not install the remote application on the controlling system before starting with remote data
collection. M
2,J ack did not specify the address of the controlling system on the target system. M
3,J ack did not check if the configuration of the target system was same as that of the controlling system
before
starting with remote data collection. M
4,J ack did not install the DCOM component DbgExeCtrl on the target system before starting withremote
data
collection. m 4
77 "Sam needs to launch an application interactively on 100 mobile phones using VTune Performance
Analyzer.
Which of the following would enable Sam to launch the application interactively? m"
1, He needs to install the full VTune analyzer product on all the mobile phones and configure each one of
them
system to act as the controlling system. m
2, He needs to install the full VTune remote agent on all the mobile phones and configure controlling
system by
installing Vtune analyzer on it. M
3, He needs to install the full VTune analyzer product on at least half of the mobile phones and configure
these
systems to act as the controlling systems. M
4, He needs to install the full VTune analyzer product on at least half ofthe mobile phones and configure
these
systems to act as the target systems. m 2
78 Henry needs to optimize the memory operations and system calls for a web application. This
application is a static web
page that accepts and displays information about the products and services of a company. This
information is stored in a
database. Which
1,He needs to write code that accesses memory sequentially and built custom routines for accessing
operating system
services.
2,He needs to reduce the number of floating-point operations and load data into the memory before
executing instructions,
so that the process need not wait for data. m
3,He needs to use large data structures. M
4,He needs to identify the floating-point operations and build custom routines so that the process need
not wait for data. m
1
79 Henry needs to optimize an e-commerce application at the system-level and
application-level. Which of the below given options states the optimization goals at these levels? M
1,At system level, improve application interaction withthe system with respect to DLLs and APIs and at
application level, improve algorithms. M
2,At system level, improve algorithms and at application level, improve application interaction with the
system.
M
3,At system level, tune the processor according to the application and at application level, improve
algorithms.
M
4,At system level, improve algorithms and at application level, improve application interaction with the
processor. m 1
80 "Consider the statements:
Statement A: The speed of the I/O operations is not limited by the speed of memory.
Statement B: Floating-point operations consume both space and time.
Which of the following is true, with respect to the above statements? m" 1,Statement A is true and
statement B is
false
. 2,Statement A is false and statement B is true.
3,Both, statements A and B, are true.
4,Both, statements A and B, are false. 2
81 "J ack needs to analyze the performance of a mobile phone from a remote location. He plans to use the
utility of analyzing
remote application performance provided by VTune Performance Analyzer.
Identify the first requirement that he needs to fulfill in ord"
1,He needs to install the remote agent on the controlling system from where he would be accessing the
remote
application. M
2,He needs to install the remote agent on the controlling computer on which the remote application was
created.
M
3,He needs to install the remote agent on the mobile phone on which the remote application is located. M
4,He needs to install the remote application on the controllingsystem from where he would be analyzing
remote
performance. m 3
82 Mike Womack is working as a software developer at SuperGraphics Inc. He needs to use VTune to
collect data for a
specific performance counter. In addition, he wants to analyze the performance of the system during
runtime to identify
system-related perform
1,Invoke Tuning Assistant for Counter-monitor based advice m
2,Invoke Tuning Assistant for call graph results m
3,Invoke Tuning Assistant for time-based sampling results m
4,Invoke Tuning Assistant for event-based sampling results m 1
83 Tom Wilkins is working as a software developer at Technology Systems. Tom
needs to measure the performance of the processor that he is working on to identify the level of
achievable optimization.
He needs to measure the program execution time and a standa
"1,Calculate execution time as:
Execution time for a program =SUM (Execution time for each instruction).
Use the CPI standard metric to measure processor performance. m""
2,Calulate execution time as:
Execution time for a program =Number of instructions * (Clock cycles per instruction) * (Number of
seconds per clock
cycle).
Use the Instructions Retired standard metric to measure processor performance.
3,Calculate execution time as:
Execution time for a program =SUM (Execution time for each instruction).
Use the Instruction Retired standard metric to measure processor performance. m"
"4,Calculate execution time as:
Execution time for a program =Number of instructions * (Clock cycles per instruction) * (Number of
seconds per clock
cycle).
Use the Percentage of Floating-Point Instructions standard metric to measure processor performance" 3
84 J im Lewis is working as a software developer at Technology Systems. J im observes that the chat
application developed by
him performs slowly because the processor has to wait for the data to be loaded into the cache. In
addition, the capacity of
cache is a
1,Only A m
2,Only B m
3,Both A and B m
4,Both B and C m 1
85 Pat Greene is working as a software developer. He is assigned a task of developing an application that
will be used by a
space research organization to launch a satellite. The performance of the application should be the top
priority. Pat
develops the app
1,One sampling run with minimal advice m
2, A few sampling runs with some advice m
3,Many sampling runs with more advice m
4,One sampling run with minimal advice or A few sampling runs with some advice m 3
86 Ken Burton is working as a software developer at SuperGraphics Inc. Ken observes that the
performance of the phone book
application is slow due to the time taken during memory reads and writes. In addition, the capacity of the
cache is limited
and data ne
1,Only A m
2,Only B m
3,Both A and B m
4,Both B and C m 1
87 "Pat Greene is working as a software developer at Super Graphics. He develops a .Net application,
which helps to store,
edit and retrieve reminders. He analyzes the performance of the code in VTune Performance Analyzer.
Pat needs to view information about"
1,Module insights and the More Information window m
2,Hotspots insights and System Info m
3,Top Insights and Relevance scale m
4,Top insights and the More Information window m 3
88 True Travel Services uses a .Net application for reservation of tickets. However, the users complain
that the application
takes more time than usual to close after the details of the customers are entered. Donna Bard is working
as a software
developer at
1,Top Insights m
2,Workload Insights m
3,Module Insights m
4,System Info m 1
89 J im Lewis is working as a software developer at GoodGraphics Inc. The performance of the inventory
management
application that he has developed is affected due to mismatch in process and memory speed.He wants to
optimize his
application in such a way so t
1,Temporal locality and paging m
2,Cache Efficiency m
3, Software Prefetch m
4,Data Alignment m 3
90 Larry Williams wants to view the insights that have significant impact on the performance of his
application. Which of the
following options should Larry view using the tuning assitant? M
1,Workload Insights m
2,Static Analysis m
3,Top Analysis m
4,System Info m 3
91 Pat Greene is working as a software developer at Technology Systems. Pat has developed a jukebox
application on J ava
platform. Now, he needs to view the possible optimizationthat can be made to the performance of the
code using VTune.
Pat uses Sampling W
1,Check the "One sampling run with minimal advice" option and view the Module insights for a selected
process. M
2,Check the "One sampling run with minimal advice" option. M
3,Check the "Few sampling run with some advice" option and view the Hotspots insights for a selected
process. M
4,Check the "Many sampling run with more advice" option and view the Modules insights for a selected
process. m
4
92 "Ken Burton, a Software developer at Red Sky IT Systems, has developed a chat application.
However, it is observed that
the application is performing slowly. Some files of the application, such as .dll files, interact at system
level.
To analyze performan" "
1, 1. Click the Select Range to Zoom/Drill Down button.
2. Select the range of interest in the Logged Data view to choose the process for which Tuning Advice
is required.
3. Select the Get Tuning Advice option from the View option of the menu bar 2, 1. Select the Get
Tuning
Advice option from the View option of the menu bar to launch the Tuning Assistant.
2. Click the Select Range to Zoom/Drill Down button. m"
3, 1. Click the Select Range to Zoom/Drill Down button.
2. Select the Get Tuning Advice option from the View option of the menu bar to choose the process
for which
Tuning Advice is required.
3. Select the range of interest in the Logged Data view t
4, 1. Click the Select Range to Zoom/Drill Down button
2. Select the range of interest in the Logged Data view to choose the process for which Tuning Advice
is required.
m" 1
93 Ken Burton is working as a software developer at InfoSuper Corp. Ken needs to track system activity
during
runtime to determine if reduced available memory or file I/O performance slows down applications. He
uses Counter Monitor
Wizard of VTune to collec
1,View Top Insights. M
2,View Hotspots Insights. M
3,View Module Insights. M
4,View Relevance Scale. m 4
94 Steve Irwin is working as a software developer at Blue Moon Computer Inc. ocated at Texas. Steve
develops a chat
application in J ava for an educational institute. The chat application enables students at remote locations
to communicate with each
other. H
1, Software Prefetch m
2, Data Alignment m
3, Cache Compulsory Loads m
4, Cache Conflict Loads m 1
95 "Tom Wilkins is working as a software developer at Technology Systems. He needs to use Sampling
Wizard to collect
performance data and analyze the performance of a code using Vtune.
He wants to configure the wizard to automatically generate the tuning adv"
1, Check the automatically generate tuning advice option. m
2, Check the automatically generate tuning advice option, use Tuning Assistant to compare multiple
sampling activity results. m
3, Uncheck the automatically generate tuning advice option. m
4, Invoke Tuning Assistant by using the F8 key. M 2
96 "You are working as an application developer. You develop a C#application and written the
following code:
For (k =0; k <last; k++)
{ // Value of t
and p
is constant
a[k] =b[k] * t . P;
}
When you run the application you find that the applicant"
1, Split the for loop into two separate for loops. M
2, Use Sentinel Values. M
3, Reduce work inside loops m
4, Use Unrolling. M 3
97 "Consider the statements:
Statement A: The time complexity is the amount of time taken to compute the steps involved in an
algorithm.
Statement B: The space complexity is the amount of memory that a program requires to accomplish a
task.
Which of the follow"
1, Statement A is true and statement B is false. M
2, Statement A is false and statement B is true. M
3, both, statements A and B, are true. M
4, both, statements A and B, are false. M 3
98 J ohn develops an application using C programming language. The application is used to draw various
pie charts and bar
diagrams. Which of the following categories of performance library should he use to optimize the
performance of this application? m
1, Graphic Libraries m
2, Image Processing Libraries m
3, Math Libraries m
4, Audio/Video Libraries m 1
99 "Identify theoptimization technique that can be used to improve the performance of the following
code:
For (j=1; j <700; j++)
For (I =1; I <455; i++)
a =a +b [i, j]; m"
1, using unrolling m
2, Using sentinel values m
3, Using faster functions m
4, Changing the order of loops m 4
100 "Consider the statements:
Statement A: Space complexity is the amount of memory that a program requires to accomplish a task.
Statement B: Space complexity is the only criterion to measure the efficiency of a program.
Which of the following is true, with r"
1, Statement A is true and statement B is false. m
2, Statement A is false and statement B is true. m
3, both, statements A and B, are true. m
4, both, statements A and B, are false. m 1
101 Identify the level of memory hierarchy that speeds up the execution of instructions by providing fast
access to intermediate
values computed during a calculation. m
1, Virtual Memory m
2, Main Memory m
3, Level1 Cache m
4, Registers m 4
102 Identify the processor performance parameter that indicates the amount of time it takes to execute a
particular process. m
1, Turnaround Time m
2, Instruction Execution Time m
3, ProgramExecution Time m
4, Response Time m 1
103 Which of the following indicates the number of processes that complete their execution per unit
time? m
1, Throughput m
2, Turnaround time m
3, Instruction execution time m
4, Programexecution time m 1
104 Which one of the following options enables a processor to load a specific location of memory before
it is required for
processing?m
1, Cache conflict loads m
2, Cache capacity loads m
3, Data alignment m
, Software Prefect m 4
105 A high value of which of the following processor's utilization measures, indicates low resource
utilization? m
1, Clocks Cycles Per Instructions Retired (CPI) m
2, Percentage of floating-point instructions m
3, CPU bursts m
4, Waiting time m 1
106 J im is a software developer, working with SSPT Corporation, develops a process-intensive
application. J im needs to
perform micro architecture-level tuning to increase the performance of the application. Jim decides to use
the Vtune Performance
Analyzer to
1,Sampling m
2,Call Graph m
3,Counter Monitor m
4,Tuning Assistant m 1
107 J im Lewis, the software developer at Global Systems Inc, develops an application on.NET platform.
J im decides to use
VTune Performance Analyzer to monitor the system-level performance information, such as resource
consumption, during the
execution of the
1,Call Graph m
2,Counter Monitor m
3,Sampling m
4,Both Call Graph and Sampling m 2
108 "Consider the statements:
Statement A: Summary view represents the summary data for each selected counter as a bar diagram.
Statement B: Legend provides the minimum, maximum, and average values for the selected counter.
Which of the following is true, with"
1,Statement A is true and statement B is false. m
2,Statement A is false and statement B is true. m
3,Both, statements A and B, are true. m
4,Both, statements A and B, are false. m 3
109 Larry Williams is a software developer at Red Sky IT System. Larry develops a networking
application on J ava platform
for a New York based banking organization. Larry needs to tune the performance of the application using
VTune performance
Analyzer. Larry
1,Call Graph m
2,Time-based Sampling m
3,Event-based Sampling m
4,Counter Monitor m 4
110 J im is a software developer, working with InfoSuper Corp, develops a gamming application on J ava
platform. J im finds
that the application is performing slowly. He decides to tune the application by observing the functional
flow of the application and
imp
1,Counter Monitor m
2,Time-based Sampling m
3,Event-based Sampling m
4,Call Graph m 4
111 Which of the following enables you to identify the threads that are running serially and the threads
that are running in
parallel? m
1,Counter Monitor view m
2,Sampling Over Time view m
3,Call Graph view m
4,Hotspots view m 2
113 J ohn Barrett is working as a Software developer. J ohn develops a gaming application on the .NET
platform. He finds that
the application is performing slowly. He decides to use the Intel Vtune Performance Analyzer to monitor
the performance of the
applica
1,Sampling Wizard m
,Quick Performance Analysis Wizard m
3,Complete Setup Wizard m
4,Advance Activity Configuration m 4
114 Sam has developed an application in C#whose perfornamce needs to be analyzed using the
sampling feature of Vtune.
Sam decides to use the Over Time view to gather various information relating to the application. Which
of the following option Sam
will not
1,Context Switching m
2,Function calling Sequence m
3,Thread interaction m
4,Processor utilization m 2
116 Which of the one following options enables you to tune application performance and its usage of
system resources? m
1, Sampling m
2, Call Graph m
3, Counter Monitor m
4, Tuning Assistant m 4
117 Which feature of tuning assistant suggests steps to remove or avoid a problem? m
1, Insight m
2, Relevance Scale m
3, Advice m
4, Workload m 3
118 Which feature of Tuning Assistant indicates the problem that could be hindering the performance of
the application? m
1, Insight m
2, Relevance Scale m
3, Advice m
4, Workload m 1
119 Which feature of Tuning Assistant mentions about the applications that were running when VTune
Performance Analyzer
was profiling the system? m
1, Insight m
2, Relevance Scale m
3, Advice m
4, Workload m 4
120 Which of the following is NOT true about remote data collection in Intel Vtune? m
1, To initiate remote data collection, you need to enable the remote agent on the target system. m
2, To initiate remote data collection, youneed to disable DCOM components on the target system. m
3, To initiate remote data collection, you need to enable the controlling system from which the remote
performance data needs to be
collected. m
4, To initiate remote data collection, you need to specify the target system on which the remote
application is running. m 2
121 Which of the following is NOT true about threads? m
1, Threads increases the performance and the ability to use multi-core processors. m
2, Threads do not facilitate data sharing. m
3, Threads enables you to effectively utilize the hardware resources. m
4, Improper use of threads leads to degraded performance. m 2
122 According to which condition for a deadlock to occur, a resource can be released by a thread holding
it? m
1, Mutual exclusion m
2, No preemption m
3, Hold and wait m
4, Circular wait m 2
123 What is hold and wait condition in a deadlock? m
1, A condition where a resource is either available or assigned to one thread m
2, A condition where threads already holding resources may request for new resources m
3, A condition where a thread holding a resource can only release it m
4, A condition where two or more threads form a circular chain where each thread waits for a resource
that the next thread in chain
holds m 2
124 What is a race condition? m
1, A condition when two or more threads simultaneously access the same memory location while atleast
one thread is updating that
location. m
2, A condition that occurs when a programmer assumes a particular order of execution andguarantees
that order through
synchronization. m
3, A condition that occurs when a thread does not progress on assigned computations, but the thread is
not blocked or waiting. m
4, A condition that occurs when a thread does not progress on assigned computations because it is
blocked or waiting. m 1
125 What is mutual exclusion? m
1, It refers to a program logic in which only one thread should be executing in a critical region at any
time. m
2, It is a portion of code that access shared variables. m
3, It is a situation in which a thread waits for a resource which is currently held by some other thread. m
4, It is a measure of how busy the threads are during parallel computations. m 1
126 Sam is a Web Developer at RedSky Inc. He is developing a Web Application in ASP.NET. He has
already configured the
application to enable ASP.NET profiles and defined the FavColor property to track the user's favorite
color. Next, he adds a Label
control w "1,void Page_Load(object sender, System.EventArgs e)
{
lblFavColor.Text =Profile.properties(""FavColor"");
}
m" "2,void Page_Load(object sender, System.EventArgs e)
{
lblFavColor.Text =Profile.FavColor;
}
m" "3,void Page_Load(object sender, System.EventArgs e)
{
lblFavColor.Text =Profile.properties.FavColor;
}
m" "4,voidPage_Load(object sender, System.EventArgs e)
{
lblFavColor.Text =Properties.profile.FavColor;
}
m" 2
127 Sam is developing an ASP.NET application which displays values of controls on the review.aspx
page according to the
language and culture settings preferred by the user. For this, he wants to use implicit localization on the
review.aspx page. He creates a
1,Store the resource file in App_GlobalResources folder in place of App_LocalResources folder. M
2,Enable automatic culture determination for the pageby adding uiculture="auto" to the <% Page%>
directive. 3,Enable automatic
culture determination for the page by adding uiculture="true" to the <%Page%>directive. 4,Rename the
file "review.aspx.fr.resx" as
"review.aspx.en.fr.resx". m 2
128 Sam is developing an ASP.NET application which displays values of controls on the review.aspx
page according to the
language and culture preferred by the user. He creates a default resource file review.aspx.resx and a
review.aspx.fr.resx resource file
for
1,Storethe resource files in the App_LocalResources folder in place of App_GlobalResources folder. m
2,Enable automatic culture determination for the page by adding uiculture="true" to the <%Page%>
directive. m
3,Rename the file "review.aspx.fr.resx" as "review.aspx.en.fr.resx" m
4,Enable automatic culture determination for the page by adding uiculture="enable" to the <%Page%>
directive. m 1
129 Sam is developing an ASP.NET application which contains an enquiry.aspx page. This page accepts
three parameters from
the user as "name", "city" and "country". To improve the performance of the application he wants to
cache multiple versions of the
enquir "
1,Response.Cache.VaryByParams(""country"", true);
Response.Cache.VaryByParams(""city"", true); m"
2,Response.Cache.VaryByParams[*] =true; m "
3,Response.Cache.VaryByParams[""country""] =true;
Response.Cache.VaryByParams[""city""] =true; m"
4,Response.Cache.VaryByParams["country", "city"] =true; m 3
130 Sam is the administrator of the shopping site of RedSky Inc. In the SurveyReport.aspx page of this
site he wants to add the
code that will log data in the Microsoft Windows event log. This data will contain the time when the
loading of SurveyReport.aspx p
"
1,The given code should be modified as:
DateTime dtmStart =DateTime.Now;
if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey""))
{
System.Diagnostics.EventLog.CreateEventSource(""LoadTime_Survey"", "" RedSky_Shopping "");
}
System.Diagnostics.E" "
2,The given code should be modified as:
DateTime dtmStart =DateTime.Now;
if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey""))
{
System.Diagnostics.EventLog.CreateEventSource(""LoadTime_Survey"", "" RedSky_Shopping "");
}
System.Diagnostics.E" "
3,The given code should be modified as:
DateTime dtmStart =DateTime.Now;
if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey""))
{
System.Diagnostics.EventLog.CreateEventSource(""LoadTime_Survey"", "" RedSky_Shopping "");
}
System.Diagnostics.E" "
4,The given code should be modified as:
DateTimedtmStart =DateTime.Now;
if (!System.Diagnostics.EventLog.SourceExists(""LoadTime_Survey""))
{
System.Diagnostics.EventLog.CreateEventSource("" RedSky_Shopping "", ""LoadTime_Survey"");
}
System.Diagnostics.E" 2
131 "Sam is a Web developer at RedSky Inc. He needs to create custom server controls for his
application with the name
WelcomeLabel.
For that he creates a file called WelcomeLabel.cs and adds the following code to this file.
using System;

using System.W" "


1,Modify the code for the WelcomeLabel class as:
public class WelcomeLabel:CustomControl
{
protected override void RenderControl (HTMLTextWriter writer)
{
writer.Write(""Welcome"");
}
}
m" "
2,Modify the code for the WelcomeLabel class as:
public class WelcomeLabel:CompositeControl
{
protectedoverride void RenderContents (HTMLTextWriter writer)
{
writer.Write(""Welcome"");
}
} m" "
3,Modify the code for the WelcomeLabel class as:
public class WelcomeLabel:WebControl
{
protected override void RenderControl (HTMLTextWriter writer)
{
writer.Write(""Welcome"");
}
}
m" "
4,Modify the code for the WelcomeLabel class as:
public class WelcomeLabel:WebControl
{
protected override void RenderContents (HTMLTextWriter writer)
{
writer.Write(""Welcome"");
}
}
m" 4
132 How can a content page refer to a master page at run time? m
1,By using Master.FindControl method. m
2,By setting the Page.MasterPageFile property. m
3,By setting the value of masterPageFile attribute in the <%@ Page%>directive as <%@Page
masterPageFile ="xxx"%>. m
4,By setting the value of virtualPath attribute in the<%@ MasterType %>directive as <%@ MasterType
virtualPath ="xxx"%>. m
2
133 Which of the following statements is NOT true about user controls? m
1,A user control is saved as a file with .ascx extension. m
2,A user control must contain at least one <form>tag. m
3,A user control contains a <%@Control%>directive. m
4,User control inherits methods and properties from the System.Web.UI.UserControl class. m 2
134 Which of the following statements correctly describes a custom Web server control? m
1,A custom Web server control is saved as a file with an extension of .acsx. m
2,Custom Web server controls are written entirely by managed code and have no markup file. m
3,Custom Web server controls have a user interface that is composedof several existing Web Server
controls. m
4,Custom Web server control is a special kind of Composite Control that gives the developer more power
over the presentation of data
on the page. m 2
135 What happens after adding the attribute trace="true" to the <%@Page%>directive in an ASP.NET
page? m
1, ASP.NET tracing information will be sent to a System.Diagnostics listener. M
2, ASP.NET tracing information will be sent to a Tracing Listener object which receives the tracing
output and writes it to logs. m
3, ASP.NET will generate and display diagnostic information at the bottom of the rendered page. m
4, ASP.NET will generate the diagnostic information and write it to logs. m 3
136 To cache a page, the user includes the <%@OutputCache%>directive in the page markup as:
<%OutputCache Duration
="60" VaryByParam="None"%>. In addtion, the user marks certain sections of the page by surrounding
them with an ASP.NET
Substitution control.
1,Application Cache m
2,Page Output Cache for caching a complete, single page m
3,Page Output Cache with Partial Page Caching m
4,Page Output Cache with support for caching multiple page versions m 3
137 What would be the extension of the skin file created with name MyTheme? m
1,MyTheme.theme m
,MyTheme.aspx.theme m
3,MyTheme.skin m
4,MyTheme.aspx.skin m 3
138 While configuring profile properties in the Web.config file for an application which of the following
tags defines name,
type, and allowAnonymous attributes? m
1,<profile>m
2,<properties>m
3,<add>m
4,<configuration>m 3
139 Which of the following objects is NOT a part of an ASP.NET theme? m
1,StyleSheet m 2,Skin Files m 3,Supporting images m 4,XML file m 4
140 To apply an existing theme to the entire application, which of the following tags needs to be added
in the Web.configfile
under the <System.Web>section? m
1,<pages theme="XXX">m
2,<profile theme="XXX">m
3,<properties theme="XXX">m
4,<configuration theme="XXX">m 1
141 To enable users to personalize a page, you must set the Page.Theme property. During or before
whichevent handler should
this be done? m
1,Page_PreRender ( ) m
2,Page_Load ( ) m
3,Page_PreInit ( ) m
4,Page_Render ( ) m 3
142 "Sam is a developer at RedSky Inc. He is developing a Web application using ASP.NET. He has
created two themes in the
App_Themes folder with the names Green and Red.
Initially Sam has set the Green theme for the application by adding <pages theme =""Green""" "
1,Modify the existing code in the Web.config file as:
<pages defaulttheme =""Green"" src =~/Profile.aspx theme =""Red""/>m" "
2,Modify the existing code in the Web.config file as:
<pages defaultTheme =""Green"">
<page src=~/Profile.aspx theme =""Red""/>
</pages>m" "
3,Remove the <page src=~/Profile.aspx theme =""Red""/>tag from the Web.config file and add
<%@ Page theme =""Red"" %>directive in the Profile.aspx page m" "
4,Remove the <page src=~/Profile.aspx theme =""Red""/>tag from the Web.config file and add
<Page theme =""Red"" >tag in the Profile.aspx page m" 3
143 "Sam is a developer at RedSky Inc. He is developing a Web application using ASP.NET. In the
application, he creates an
ASP.NET theme with the name
GlobalRed and adds a sample.aspx page to the application. To apply the theme to the page he adds <%@
Page Th" "
1,Modify the code in Web.config file as:
<configuration>
<system.web>
<%@ Page DeafultTheme =""GlobalRed"" %>
</system.web>
</configuration>
m" "
2,Modify the code in Web.config file as:
<configuration>
<system.web>
<pages DeafultTheme =""GlobalRed"" />
</system.web>
</configuration>
m" "
3,Modify the code in Web.config file as:
<configuration>
<system.web>
<pages theme =""GlobalRed""/ >
</system.web>
</configuration>
m" "
4,Modify the code in Web.config file as:
<configuration>
<system.web>
<% Page DeafultTheme =""GlobalRed"" %>
</system.web>
</configuration>
m" 3
144 "Sam is a developer at RedISky Inc. He is developing a Web application using ASP.NET. In this
application he has created
an ASP.NET theme with the name GlobalRed. In this theme he has created a Red.skin file with the
following code:
<asp:Button runat=""ser" "
1,Modify the first line of Red.skin file as:
<asp:Button runat=""server"" BackColor=""Black"" />m" "
2,Modify the second line of Sample.aspx as:
<asp:Button ID=""BkButton"" runat=""server"" Text=""Cancel"" BackColor=""Black"" />m" "
3,Modify the second line of Sample.aspx as:
<asp:Button ID=""btnCancel"" runat=""server"" Text=""Cancel"" BackColor=""BkButton"" />m" "
4,Modify the second line of Sample.aspx as:
<asp:Button ID=""btnCancel"" runat=""server"" Text=""Cancel"" SkinID=""BkButton"" />m" 4
145 Sam is a Web developer at RedSky Inc. He wants to configure his application to store a profile
property "PrefLocation" in
each user profile for all types of users whether they have logged in or are visiting the site as anonymous
users. To configure the pr
"
1,The given code can be modified as follows to correct the error
<system.web>
<profile>
<properties>
<add name =""PrefLocation type =""System.String"" allowAnonymous=""true""/>
</properties>
</profile>
</system.web>m" "
2,The given code can be modified as follows to correct the error
<system.web>
<anonymousIdentification enabled=""true""/>
<profile>
<properties>
<add name =""PrefLocation type =""System.String"" allowAnonymous=""true""/>
</pro" "
3,The given code can be modified as follows to correct the error
<system.web>
<anonymousIdentification enabled=""true""/>
<profile>
<properties>
<add name =""PrefLocation type =""System.String""/>
</properties>
</profile" "
4,The given code can be modified as follows to correct the error
<system.web>
<allowAnonymous enable =""true"">
<profile>
<properties>
<add name =""PrefLocation type =""System.String"" allowAnonymous enable =""true""/>
</prop" 2
146 You are creating a site and you want that on a page requested by a client, if the server generates an
error with status codes
500 or 404, a custom error page "PageNotFound.htm" should be displayed. In case an error is generated
with a status code differen
"
1, <configuration>
<system.web>
<customErrors defaultRedirect=""GenericError.htm"" mode=""RemoteOnly"">
<error statusCode=""500"" redirect=""PageNotFound.htm""/>
<error statusCode=""404"" redirect=""PageNotFound.htm""/>
</customErrors>
</system.web>
</configuration>
" "
2, <configuration>
<system.web>
<customErrors defaultRedirect=""GenericError.htm"" mode=""RemoteOnly"">
<error statusCode=""500"" Or ""404"" redirect=""PageNotFound.htm""/>
</customErrors>
</system.web>
</configuration>
m" "
3, <configuration>
<system.web>
<customErrors>
<statusCode=""500"" redirect=""PageNotFound.htm""/>
<statusCode=""404"" redirect=""PageNotFound.htm""/>
</customErrors>
</system.web>
</configuration>
m" "
4, <configuration>
<system.web>
<customErrors error=""404"" Or ""500"" redirect=""PageNotFound.htm"" mode=""RemoteOnly"">
</customErrors>
</system.web>
</configuration>
m" 1
147 You want to specify the default programming language for your entire ASP.NET Web application as
C#. You also want to
specify the number of recompiles to perform before the application gets unloaded and loaded again.
Which of the following
configuration se "
1, <configuration>
<system.web>
<defaultLanguage=""C#""/>
<compilation numRecompilesBeforeAppRestart=""10"">
</compilation>
</system.web>
</configuration>
2, <configuration>
<system.web>
<compilation>
defaultLanguage=""C#"" numRecompilesBeforeAppRestart=""10""
</compilation>
</system.web>
</configuration>
m" "
3, <configuration>
<system.web>
<compilation defaultLanguage=""C#"">
numRecompilesBeforeAppRestart=""10""
</compilation>
</system.web>
</configuration>
m" "
4, <configuration>
<system.web>
<compilation defaultLanguage=""C#"" numRecompilesBeforeAppRestart=""10""></compilation>
</system.web>
</configuration>
m" 4
148 You are required to provide an option to the customers of a restaurant for giving feedback about its
services through its
website.The customer can choose to give feedback about the "Home Delivery Service" or the "Food
Quality" by clicking the
correspondin "
1, switch (Response.QueryString[""Feedback""])
{
case ""HomeDelivery"":
Page.Header.Title =""Feedback about our Home Delivery Services"";
break;
case ""FoodQuality"":
Page.Header.Tit" "
2, switch (QueryString[""Feedback""])
{
case ""HomeDelivery"":
Page.Header.Title =""Feedback about our Home Delivery Services"";
break;
case ""FoodQuality"":
Page.Header.Title =""Fee" "
3, switch (Request.QueryString[""Feedback""])
{
case ""HomeDelivery"":
Page.Header.Title =""Feedback about our Home Delivery Services"";
break;
case ""FoodQuality"":
Page.Header.Titl" "
4, switch (Request.QueryString(""Feedback""))
{
case ""HomeDelivery"":
Page.Header.Title =""Feedback about our Home Delivery Services"";
break;
case ""FoodQuality"":
Page.Header.Titl" 3
149 On the feedback form of your website, you have created a text box which is a Web server control.
The user enters his name
in this text box and clicks the Submit button. The name entered by the user should be retrieved and
stored in a variable declared in
1, string sName =txtName.Value.ToString(); m
2, TextBox txtName =(TextBox)Page.PreviousPage.FindControl(""txtName"");
string sName =txtName.Text.ToString(); m" "
3, TextBox txtName =(TextBox)Page.PreviousPage.FindControl(""txtName"");
string sName =txtName.Value.ToString(); m"
4, string sName.Text =(TextBox)Page.PreviousPage.FindControl("txtName"); m 2
150 "You want some common options and graphics to be displayed in all the Web pages of your site.
However, you do not
want to copy the common
code in all the pages. You decide to write this code in a master page and include that page in all other
pages of you"
1, <%@ Page MasterPageFile="~/MasterPages/SampleMaster.master" %>m
2, <%@ Page MasterPage="~/MasterPages/SampleMaster.master" %>m
3, <%@ Page Master="~/MasterPages/SampleMaster.master" %>m
4, <%@ Page MasterPageFile:"~/MasterPages/SampleMaster.master" %>m 1
151 Which of the following is NOT a type of Web site that can be created using Visual Studio 2005? m
1, Local IIS Web sites m
2, Remote IIS Web sites m
3, FTP sites m
4, Dynamic Web sites m 4
152 When you type code in the Source view, a drop down list is displayed that helps you complete the
syntax of the code.
Which feature of Visual Studio makes this possible? m
1, ComboBox m
2, IntelSense m
3, Intellisense m
4, ListView m 3
153 In your web application, you need toensure that the format of the pages that you display is
supported by the requesting
browsers. Which of the following is a property that can be used to detect the type of the browser
requesting the pages, so that they c
1, Request.Browser m
2, Response.Browser m
3, Request.Browser.Browser m
4, Request.Browser.Type m 3
154 Using the CompareValidator control, you can compare the user input to which type of value? m
1, Constant value m
2, Variable value m
3, Memory address m
4, URL m 1
155 "Consider the following statements in context of the validation controls available in ASP.NET:
Statement A: The validation controls can perform simple validation in the user's Web browser by
generating VBScript code, if the
browser supports it.
Statement "
1, Statement A is TRUE and statement B is FALSE. m
2, Statement A is FALSE and statement B is TRUE. m
3, Both statements, A and B, are TRUE. m
4, Both statements, A and B, are FALSE. m 2
156 Which mechanism is provided by ASP.NET that preserves the contents and state of the controls on a
Web page when a
user enters data and submits the form and when the page is re-displayed? m
1, StateServer m
2, ViewState m
3, HttpSessionState m
4, HttpApplicationState m 2
157 In the context of ASP.NET, when the server needs to free the memory, it can remove an item from
the application's cache.
What is this process known as? m
1, Absolute expiration m
2, Sliding expiration m
3, Flush m
4, Scavenging m 4
158 Which of the following is a delegate that defines the signature to use for an event handlers that
responds when an item is
deleted from the cache? m
1, onRemoveCallback m
2, CacheItemRemovedCallback m
3, CacheItemRemovedReason m
4, RemovedCallback m 2
159 "Which of the following can you configure to retrieve data from the following:
-- XML files
-- Web services that return XML data
-- String variables that contain XML data m"
1, XmlDataDocument objects m
2, XmlDataSource control m
3, SqlDataSource control m
4, FormView control m 2
160 Which of the following is NOT an authentication mechanism provided by ASP.NET? m
1, Windows authentication m
2, Logon authentication m
3, Forms authentication m
4, Passport authentication m 2
161 Which of the following is a File Status displayed by the Copy Web Site tool? m
1, Edited m
2, Modified m
3, Changed m
4, Converted m 3
162 How does the Copy Web tool make sure that all files on the local and remote sites are up to date? m
1, By synchronizing the sites m
2, By publishing the sites m
3, By copying the new files in place of old files m
4, By deploying the sites m 1
163 Which of the following tags should be inserted into the Web.Config file to handle the mobile devices
that do not accept
relative URLs? m
1, <httpRuntime>tag m
2, <DeviceSpecific>tag m
3, <Filter>tag m
4, <deviceFilters>tag m 1
164What is the file extension of a Microsoft Windows Installer file that is used to distribute and install
an application? m
1, .exe m
2, .msc m
3, .msi m
4, .jar m 3
165 A mobile web page must contain at least one __________ tag. m
1, <mobile:Form>tag m
2, <mobile>tag m
3, <MobileForm>tag m
4, <IsMobileDevice>tag m 1
166 J oanne, a software developer with EverSoft Inc. had developed an inventory control application,
StockNInventory 1.0,
using COM components. Now, the requirements and the processes followed by the users have become
complicated. Therefore, J oanne
has upgrade
1,She should create assemblies in her application providing the same features as the previously created
components. m
2,She should create an assembly that will handle converting the .Net Framework types to the
corresponding types of the COM
components being used by the application. m
3,She should place the COM components in the same directory as the Assembly for the upgraded
application and reference the
components in the assembly. m
4,She should create a Shared assembly for her application to communicate with the COM components. m
2
167 Ben had developed an application which used a COM component to provide certain functionality.
He has now upgraded
the application using .Net Framework. In his upgraded application, he has created a .Net Framework
component with which the
previously availa
1,Ben implemented the default class interface for the .Net Framework component. m
2,Ben did not create a public constructor with no parameters for the .Net Framework component. m
3,Ben created the constant fields and static methods of the .Net Framework component as Public
members. m
4,Ben created a public constructor with no parameters for the .Net Framework component. m 2
168 Bryan has created an application that processes credit card information supplied to it by the users,
encrypts it using the
DES encryption class and stores it in a database. However, he has been receiving complaints from the
users that their credit card i
1,Bryan should call theClear method of the cryptographic class. m
2,Bryan should wait for the garbage collector to finish its execution before storing the values. m
3,Bryan should Flush the memory by calling the Flush method of the cryptographic class. m
4,Bryan should Kill theobject values by calling the Kill method of the cryptographic class. m 1
169 You have created a simple file processing application. The application performs simple tasks such as
copying, renaming,
and creating files and folders. Each task is performed using a separate thread that is created for that
purpose. After execution of the
1,The Thread class should be used to implement threading. m
2,The ThreadPool class should be used to implement threading. m
3,The Monitor class should be used to monitor and increase the application performance. m
4,The ParameterizedThreadStart class should be used to control the behavior of the threads. m 2
170 J onathan has created a Web application which requires the users to register prior to browsing and
availing the services
offered by it. The application needs to store and update various tables in its database with user details.
The user is also sent a welc
1,J onathan should make individual calls to these methods from within the class that executes the
registration process. m
2,J onathan should use singlecasting. m
3,J onathan should use Multithreading. m
4,J onathan should use multicasting. m 4
171 To use GDI+objects, an object of the ________ class must be created. m 1,SystemColors m
2,Pen m
3,Graphics m
4,Image m 3
172 The _______ class provides the primary access point for code to interact with the security system. m
1,SecurityManagement m
2,SecurityManager m
3,PolicyLevel m
4,CodeGroup m 2
173 Asymmetric encryption is also known as _____________. m
1,Private key encryption m
2,Public key encryption m
3,Public/Private key encryption m
4,Protected key encryption m 2
174 The ________ allows the .NET Framework to communicate with the COM component by providing
a middle layer
between your .NET Framework code and the COM component. m
1,Interop assembly m
2,Shared assembly m
3,Multifile assembly m
4,Private assembly m 1
175 The primary class used to manage threads directly is the ______ class. m
1,ThreadStart class m
2,Thread Class m
3,ParameterizedThreadStart class m
4,ThreadPool class m 2
-------------------------------------------------------------------------------------------------------------
Which of the following controls is not a part of the Standard sections of the Toolbox?
GridView
Regarding ASP.NET Web applications, which of the following statements is correct?
An ASP.NET Web page can contain programming code along with HTML markup
While working as a Web developer in organization, you are creating a Web application on your
system. The application includes code for implementing HTTP based authentication. You want
that multiple developers should be able to work on the application at the same time. How will you
fulfill these requirement?
By creating a Local IIS Web site
Identify from the following, the data source control used for accessing the data managed by
business objects.
ObjectDataSource controls
You created an ASP.NET page named default.aspx, using the single-file page model. Over the
time, the programming involved on the page became very complex now you have decided to
separate the programming section from the markup section by splitting the Web page in two
pages. You have copied the programming section from default.aspx in a file named
default.aspx.cs. How will you specify that the Defaut.aspx file contains the code for the
Default.aspx file?
By including the following directive in the Default.aspx file:
<%@ Page Language=C# Inherits=Default.aspx.cs %>
You need to retrieve data from two different tables. Which of the following operations will you
perform?
Joining
Which mechanism is provided by ASP.NET that preserves the contents and state of the controls
on a Web page when a user enters data and submits the form and when the page is re-
displayed?
HttpSessionState
Consider the following statements in context of the ViewState mechanism:
Statement A: A Web page does not have a ViewState property
Statement B: The information added to the ViewState property is stored in a hidden filed.
Which of the preceding statements is TRUE?
Statement B is TRUE and statement A is FALSE
Sam is developing an ASP.NET application. In this application, he uses ASP.NET Membership to
manage users. He is creating a page to modify the E-mail, the current user. The E-mail address
of the user is displayed in the txtEmail TextBox control. Which of the following code snippets will
successfully modify and save the E-mail of the user?
MembershipUser currentUser = Membership.GetUser (UserName);
currentUser.Email = txtEmail.Text:
Membership.UpdateUser(currentUser);
Which of the following options will you use to specify the physical path of the application to be
compiled in the aspnet_complier.exe tool?
-p
Which of the following controls includes the functionality that is provided by the DataGrid control?
List
Which of the following mobile controls is the equivalent of a Button control on a Web Form?
Command
Which of the following options is NOT a feature of composite Web server controls?
They create the child controls by overriding the CreateChildControls method
Which of the following is a valid ASP.NET AJAX server control?
UpdatePanel
Which of the following options can be used to set the BlueSky theme for the entire application in
the Web.config file?
<configuration>
<system.web>
<pages theme =BlueSky />
</system.web>
</configuration>
Sam wants to configure his ASP.NET application to enable profiles and define a FavColor property to track each
user's favorite color. Sam also wants to configure the property to track both anonymous users and logged-on
users. He has already checked that Web.config file exists for the Web site. Which of the following configure
settings can be added in the Web.config file to perform this activity?
<system.web>
<anonymousIdentification enabled= ""true"" />
<profile>
<properties>
<add name = ""FavColor"" type= ""System.String"" allowAnonymous= ""true""/>
</properties>
</profile>
</system.web>
Sam is a Web Developer at RedSky Inc. He is developing a Web Application in ASP.NET. He has
already configured the application to enable ASP.NET profiles and defined the FavColor property to
track the user's favorite color. Next, he adds a Label control with ID property = IblFavColor and Text
property = (empty) in the profiles.aspx page. Sam wants that when the profiles.aspx page loads, the
Text property of the Label control should display the value cf FavColor property for the current user.
For this he has created the following event handler:
void Page_Load(object sender, System.EventArgs e)
{
IblFavColor.Text = ProfilefFavColor");
}
However, when Sam tried to build this application, there was a compile time error. Identify the
correct code to implement the specified requirement.
void Page_Load(object sender, System.EventArgs e)
{
IblFavColor.Text - Profile.FavColor;
}
John wants to add connection information to file WebPartManager control by opening the Web part
page in the Source view. Which of the following marups John use to create the connection?
Which of the following phases of Software Development Life Cycle (SDLC) includes transtraction of
the requirements specified in the SRS document into a logical structure?
Desgin
Sam is assigned the task of detecting errors in the code of the banking software. In which SDLC
phase is Sam currently working?
Testing
The incremental approach of software development includes three phases in each increment.
Identify the phases from the following options.
Design, Implementation, Analysis
The ___ enables you to focus on the functions performed by the software system in each iteration.
System boundary
John is assigned the task of documenting the inputs provided by the stakeholders. While
documenting the inputs, be missed to mention the probability of change in the various requirements
in future. Which of the following attributes did John miss to mention in the document?
Stability
You need to develop a Library Management System for a library. For this, you have created a
BookTransaction class that includes an operation named CalculatePenalty. The operation needs to
be invoked every time a book, borrowed earlier, is returned by a member. This operation is used to
calculate the penalty, if applicable, to be paid by the member if the book is returned after the due
date. No other class is able to access this operation except for the container class. The operation
accepts two Date type parameters, namely, DateOflssue and DateOfReturn and returns a float
value to the invoking function.
Provide the correct syntax for the declaration of the above mentioned operation in a class diagram.
-CalculatePenalty: (date: DateOflssue:date, DateOfReturn): float
Thomas a photographer created the requirements for a website to display some of hist digiatal
photos. Among various requirements, one of the requirements that he identified was that the user
should be able to easily upload photos. For this, he needs to frist select a photo for upload, seclect
a photo for upload, select or create a gallery for the photo that to be uploaded, optionally add photo
realted details such as camera and artists comments.
Which one of the following options specifies an invalid use case instance for the given scenario?
User selects a link to upload a photo
The systems prompts the user to select a photo for upload
The user select a photo
The system prompts the user to create a new gallery or select the gallery to which the photo needs
to be uploaded
The user selects an existing gallery
The photo is uploaded to the selectd gallery
The system prompts the user to specify photo details.
The user enters and submits photo details.
Jonathan is developing an activity diagram for the Library Management System. Presently, he
needs to depict the Book Return process in the diagram. When a member returns books, the delay
in returning each book and the penalty applicable should be calculate .Once penalty is calculated
for each book returned by a member, the total penalty should be calculated and the system should
print a consolidated penalty slip to be issued to the concerned member. The activity diagram should
depict the correct flow of the sub processes. Suggest which of the following elements of an activity
diagram should Jonathan use to depict the sub process for calculating delay and penalty for each
book?
Forks and Joins
John is a part of a software development team that focuses on the quality of the code being
generated using UML models. Identify the quality aspect that John needs to focus on.
Quality of specification
The activity diagram of Student Registration System, consists of the following activity states:
--Verify the student detail
--Fill application form
--Assign registration number
--Deposit the fees
--Register the student
--Generate fees receipt
--Validate the student detail
--Submit application form
--Collect the fees
The actors of the Student Registration System are Student, Faculty, Cashier, and Registrar. Which
one of the following action states are associated with the actor, Student?
(Kim tra Theo th t)
Fill => Submit => Deposit => Generate => Verify => Get
Consider a scenario of an inventory management system. Whenever an inventory item is ordered,
the inventory manager issues the requested items and simultaneously update the database to keep
a track of the total number of inventory item that are currently present. Recently, an enhanced
version of a particular inventory item has been introduced in the market, which the inventory
manager wants to keep in the store. However, the inventory store has a limited capacity. There fore,
until the old version of such inventory items are not sold out, the new enhance version cannot be
introduced in the store. You need to graphically represent this scenario by using state machine
diagram. Which feature of state machine will you use in this case to represent such a scenario?
Activities
Question: An ATM consists of a card scanner, display screen, and cash dispenser. What
relationships should exist between the following classes of the ATM System:
-- ATM and CardScanner
-- ATM and CashDispenser
-- ATM and DisplayScreen
-- Aggregation
-- Aggregation
-- Aggregation
Consider the following statements in context of Component diagrams:
Statement 1: Deployment components include the components that form the executable system.
Statement 2: Execution components include the components that are created when a system is
running.
Which of the preceding statements is TRUE?
Both satetments, A and B, are True.
Sam has developed a desgin model for a library management system by using various class and
methods. He now need to generate code by using this design . To begin with, he needs to generate
code for the class diagram shown in the following figure.
Which of the following diagrams can be used to organize various constituments of a software
system in logical groups?
Package diagram
Whate does distributed data processing describe in the context of the guidelines for determining the
degree of influence of GSCs?
It describes the degree to which the response time and throughput performance of a software
application is influenced at the time of development.
Which of the following options is true about Function Point (FP) estimation technique?
It can be used to determine the effort required to develop a project

You might also like