Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2,He
should
Jack is database developer create a 3,He
in DoITnow, Inc,. He needs 1,He should managed should
to store the details of one of create a stored create a 4,He should
the tables into an XML file. managed user- procedure managed use T-SQL
TM2002 What should he do? m defined type m m trigger m m 2
James, a database
developer of
AdventureWorks has
implemented Service Broker
in the database. He needs
to send a message from
one of the service to
another. Which of the
following protocol will 3,DIALOG
TM2004 James use for that? m 1,HTTP m 2,SOAP m m 4,TCP m 3
CREATE TRIGGER
trgDelete1 ON
HumanResources.Employe
e
AFTER
DELETE 3, 4,
AS 1, 2, sp_settrigg sp_settrigge
PRINT 'This is the first sp_settriggeror sp_settrigg erorder rorder
trigger' der erorder 'trgDelete2' 'HumanRes
'HumanResour 'trgDelete1', , ources.trgD
CREATE TRIGGER ces.trgDelete2' 'SECOND', 'SECOND', elete1',
trgDelete2 ON , 'FIRST', 'DELETE' 'DELETE' 'FIRST',
TM2011 HumanResources.Em 'DELETE' m m m 'DELETE' m 1
4, Create
another
procedure
3, Alter the displaying
prcDisplay the
2, Create EmpDetails manager id
You have created a stored another stored and title of
procedure named procedure procedure all the
prcDisplayEmpDetails in the displaying to display employees
AdventureWorks database. the the and call this
This procedure displays the employee employee procedure
Employee Id, and 1, Delete the id, login id, id, login id, from the
Login Id of all the prcDisplayEmp manager id manager id prcDisplayE
employees. Now, you are Details stored and title of and title of mpDetails
also required to display the procedure and all the all the stored
Manager id and title of the create a new employees. employees. procedure.
TM2012 employees al one. m m m m 3
CREATE FUNCTION
fx_Employee( @EmployeeI
D int )
RETURNS table 2,
AS EXECUTE 3, SELECT
RETURN ( 1, EXECUTE FUNCTION * FROM 4, SELECT
SELECT * fx_Employee(1 fx_Employe fx_Employ fx_Employe
TM2013 )m e(1) m ee(1) m e(1) m 3
4, CREATE
2, CREATE PROCEDU
PROCEDU RE
RE prcEmpDet
prcEmpDet ails
ails @ManagerI
1, CREATE @Employe 3, D
PROCEDURE eID int CREATE AS
prcEmpDetails AS PROCEDU BEGIN
@ManagerID BEGIN RE SELECT
int SELECT prcEmpDet EmployeeID
AS EmployeeI ails FROM
BEGIN D FROM AS HumanRes
SELECT HumanRes BEGIN ources.Emp
EmployeeID ources.Em SELECT loyee
FROM ployee EmployeeI WHERE
You need to display a report HumanResour WHERE D FROM ManagerID
containing the employee ids ces.Employee EmployeeI HumanRes =
of all the employees who WHERE D= ources.Em @Employee
work with a specific ManagerID = @Employe ployee ID
manager. How will you @ManagerID eID END END
TM2014 implement this? m END m END m m m 1
Statement A: Multiple
relationships CAN also exist
between the same entities.
Statement B: A relationship 2,Statemen 4,Both,
CANNOT associate an t A is True 3,Statemen Statement
entity with itself. 1,Both, and t A is False A and
Which of the following Statement A Statement and Statement
option is true with respect to and Statement B is False. Statement B, are
TM2058 above statement B, are True m m B is True m False. m 2
John has been assigned the
task to create the Employee
database design. During the
normalization process, he
has reached to a point 4,None, as
where every non-key the tables
attributes are functionally are already
dependent only on the in the
primary key. At the same 1, Second NF 2,Third NF 3,Boyce- normalized
TM2059 time, he found that the tabl m m Codd NF m form. m 3
Statement A: In a relational
database, a common field
existing in any two tables
creates a relationship 2,Statemen 3, 4,Both,
between the tables. t A is True Statement Statement
Statement B: A Relational 1,Both, and A is False A and
Database Management Statement A Statement and Statement
System(RDBMS) can be and Statement B is False Statement B, are False
TM2060 defined as a database man B, are True m m B is True m m 1
Statement A: In a
hierarchical model, data is
represented as a tree
structure.
Statement B: In a 2,Statemen 3, 4,Both,
hierarchical model, data is t A is True Statement Statement
represented as a single 1,Both, and A is False A and
record structure and Statement A Statement and Statement
relationships between the and Statement B is False Statement B, are False
TM2061 data are represented B, are True m m B is True m m 2
2, 4,
StudCourse StudCourse
Details: 3, Details:
Student_ID, StudCours Student_ID,
CourseCod eDetails: CourseCod
1,StudCourse e, Student_ID e,
Jim is creating a database Details: InstructorN CourseNam
for a training institute. After Student_ID, ame CourseDet e
the 1NF, the Course table is CourseCode ails:
created. The rows of the CourseDet CourseCod CourseDeta
table are shown in the CourseDetails: ails: e, ils:
graphic. CourseCode, CourseCod CourseNa CourseCod
Click the Exhibit button to CourseName, e, me, e,
view the graphic. InstructorNam CourseNa CourseDur CourseDura
The primary key in the e, me, ation, tion,
Course table is a composite CourseDuratio CourseDur InstructorN InstructorNa
TM2065 key compris nm ation m ame m me m 1
There is a table called
cust_order. The cust_order
table stores the information
of all the customer orders
for a month. At the end of
every month the sum of
order qty will be added to a
table called cust_summary.
Shelley's company
database includes a
Products table that stores
information about each of
her company's products.
The database also includes
a Salespeople table that
includes information about 2,One-to- 3,Many-to- 4,Many-to-
each salesperson in her many one many
organization. One sales 1,One-to-one relationship relationship relationship
TM2067 person can se relationship m m m m 4
A relational database
contains two relations, A
and B. You need to extract
records from relation A for
which the related records
do not appear in relation B.
3,INSERT
Titles 4,INSERT
(Title_ID, Titles
Title, Type, (Title_ID,
Pub_ID) Title, Type,
Values Pub_ID,
John wants to add a row to ('9001', NULL,
the Titles table, which 2,INSERT 'SQL NULL,
contains ten columns. The IN Titles Server', NULL,
first four columns: Title_ID, (Title_ID, 'computer', NULL,
Title, Type, and Pub_ID do 1,INSERT Title, Type, '1212', NULL,
not allow any NULL value. Titles (Title_ID, Pub_ID) NULL, NULL)
Rest of the column can Title, Type, Values NULL, Values
have NULL value. Pub_ID) ('9001', NULL, ('9001',
Values ('9001', 'SQL NULL, 'SQL
Which of the following 'SQL Server', Server', NULL, Server',
statements can he use to 'computer', 'computer', NULL, 'computer',
TM2078 acco '1212') m '1212') m NULL) m '1212') m 1
3,SELECT 4,SELECT *
2,SELECT * FROM FROM
* FROM Sales.Sale Sales.Sales
The 1,SELECT * Sales.Sales sOrderHea OrderHead
Sales.SalesOrderHeader FROM OrderHead der er
table contains the details of Sales.SalesOr er WHERE WHERE
all the orders. The derHeader WHERE datepart(m datepart(m
OrderDate column contains WHERE datename( m, m,
the date when the order datename(mm, mm, OrderDate) OrderDate)
was received. You need to OrderDate) = 7 OrderDate) = 7 AND = 7 AND
display a report of all the AND = July AND datepart(yy datename(y
orders received in July, datepart(yy, datepart(yy, , y,
2001. How will you display OrderDate) = OrderDate) OrderDate) OrderDate)
TM2079 the required report? m 2001 m = 2001 m = 2001 m = 2001 m 3
2, ALTER
Anna is working on the 1, ALTER TABLE
Publisher database. The TABLE Discounts
database contains the Discounts WITH 3,She 4,She can
Discounts table that WITH NOCHECK cannot add add the
contains data. Anna has NOCHECK ADD a primary- constraint,
been asked to create a ADD CONSTRAI key but she
primary-key constraint on CONSTRAINT NT disc_PK constraint cannot turn
the discounts table on the disc_PK PRIMARY to a table off the
discounttype column. The PRIMARY KEY ON with checking of
specification also states that KEY(Discountt Discounttyp existing the existing
TM2080 she does ype) m em data. m data. m 4
2,SELECT 3, SELECT
EmployeeI EmployeeI 4,SELECT
D FROM D FROM EmployeeID
HumanRes HumanRes FROM
1,SELECT ources.Em ources.Em HumanRes
EmployeeID ployeeAddr ployeeAddr ources.Emp
The FROM ess ess loyeeAddre
HumanResources.Employe HumanResour WHERE WHERE ss
eAddress table stores the ces.Employee AddressID AddressID WHERE
details of all employees and Address EXISTS >= AddressID
the Person.Address table WHERE (SELECT (SELECT > (SELECT
stores the address details of AddressID IN AddressID AddressID AddressID
the employees. The (SELECT FROM FROM FROM
following statement was AddressID Person.Add Person.Ad Person.Add
executed to display the FROM ress dress ress
employee ids of the Person.Addres WHERE WHERE WHERE
employees who live in the s WHERE City City = City = City =
TM2081 city ' = 'Bothell') m 'Bothell') m 'Bothell') m 'Bothell') m 1
Which of the following 2,Check 3,Unique 4,Foreign
options could be used to 1,Primary key constraint constraints key
TM2082 enforce entity integrity? m m m m constraint m 1
The ____________ of
Transact-SQL is used to
TM2083 manipulate data. m 1,DDL m 2,DML m 3,DCL m 4,DDM m 2
As a database developer,
you are designing a table,
StudentDetails, to store the
data of students. You need
to ensure domain integrity
of values. Which type of
constraint should be 2,PRIMAR 3,FOREIG
TM2089 applied? m 1,UNIQUE m Y KEY m N KEY m 4,CHECK m 4
Use northwind
SELECT productid,
SUM(unitprice) FROM
products
GROUP BY productid
HAVING productid > 5 1,SELECT 3,GROUP 4,There is
productid, BY no problem
Which clause will cause the SUM(unitprice) 2,FROM productid in the query
TM2093 statement to fail? m m products m m m 4
Consider the following
statement:
UPDATE Employee,
EmployeeContacts
SET EmployeeName = 2, Two
'Sam Marelio', Email = tables
'samm@gmail.com' cannot be 4, WHERE
WHERE EmployeeId = 708 1,Two SET updated condidtion
statements using a 3, Email cannot be
While executing the should be used single should not used with
preceding statement, an to update update be given in the update
error is generated. Which of values in two statement quotes( ' ') statement
TM2094 the following is the rea tables m m m m 2
4,SELECT
To distribute annual TOP 5
awards, the HR department 3,SELECT OrderAmou
need a list of the five 2,SELECT TOP 5 nt,
highest revenue TOP 5 OrderAmo SalesPerso
transactions, in reverse 1, SELECT OrderAmou unt, nID FROM
order, from the Orders table
TOP 5 nt, SalesPerso Orders
in the Sales database. The OrderAmount, SalesPerso nID FROM ORDER BY
Orders table is defined as SalesPersonID nID FROM Orders OrderAmou
follows: FROM Orders Orders GROUP nt GROUP
ORDER BY ORDER BY BY BY
CREATE TABLE Orders OrderAmount OrderAmou SalesPerso SalesPerso
TM2095 ( OrderID Int IDENTITY (1, m nt desc m nID m nID m 2
2,Create
clustered
index on
A shipping company has a 1,Create the 3,Create 4,Create
database application that nonclustered Shipment_I clustered nonclustere
maintains an inventory of index on the D column, index on d index on
items on each vessel. When Shipment_ID the the the
each vessel is unloaded at column, the Item_Numb Shipment_I Shipment_I
its destination, the inventory Item_Number er column D column D column,
is counted, and the column and and and the and the
Arrived_Quantity column is Arrived_Quanti Arrived_Qu Item_Num Item_Numb
updated in the database. ty column antity ber column er column
TM2102 There can be thousand m column m m m 3
The ExternalCandidate
table contains large amount
of data. The first name of
each candidate and the
name of the recruitment
agency are required to 2,To speed
create a report. However, it up data
takes a long time to execute retrieval, 3,To speed 4,To speed
the following query: use up data up data
SELECT retrieval, retrieval,
SELECT vFirstName, 1,To speed up with Delete data use
cName data retrieval, WHERE from a ORDER
TM2103 use indexes. m clause. m table. m BY. m 1
2, Create a 3, Create a
clustered non
The Employee table of an index on clustered
organisation contains a EmpID field index on
large amount of data. The of the EmpID 4, Create a
first name of each 1, Create a Employee field of the clustered
employee and their non clustered table and a Employee index on
designation are required to index on non table and EmpID field
create a report. However, it EmpID field of clustered clustered of the
takes a long time to execute the index on index on Department
the following query: Department EmpID field EmpID table and
table and the of the field of the the
SELECT firstname, Employee Department Departmen Employee
TM2104 designation FR table. m table. m t table. m table. m 4
3,
CREATE
INDEX
IX_Employ
eeFirstNa
You are the database me ON
developer for Lucerne dbo.Emplo
Publishing. You are yee [First 4,CREATE
designing a human Name] CLUSTERE
resources database that 1,CREATE CREATE D INDEX
contains tables as CLUSTERED 2, CREATE INDEX IX_Employe
Employee and Salary. On INDEX CLUSTER IX_Employ eEmployeeI
analyzing the past IX_EmployeeN ED INDEX eeLastNam D ON
transactions, you have ame ON IX_Employ e ON dbo.Employ
noticed that the Employee dbo.Employee eeSSN ON dbo.Emplo ee
table is often joined with the (LastName, dbo.Employ yee [Last (EmployeeI
TM2105 Salary t FirstName) m ee (SSN) m Name] m D) m 3
Consider the following
statements:
Statement A: Clustered
indexes should be built on
an attribute whose values
are unique and do not
change often.
Statement B: Data is 2,Statemen 4,Both,
physically sorted in a t A is True 3,Statemen Statement
clustered index. 1,Both, and t A is False A and
Statement A Statement and Statement
Which of the following and Statement B is False Statement B, are False
TM2106 option is true w B, are True m m B is True m m 1
Which index organizes data 1, 2,
logically but does not store NONCLUSTE CLUSTER 3, UNIQUE 4, MULTI
TM2107 data physically? m RED m ED m m COLUMN m 1
4,CREATE
1,CREATE 2,CREATE 3,ALTER PROCEDU
PROCEDURE PROCEDU PROCEDU RE
prcGetPos RE RE prcGetPos
@Pcd prcGetPos prcGetPos @Pcd
You are developing an char(4) @Pcd @Pcd char(4),@D
application for RedSky Inc., OUTPUT,@De char(4),@D char(4),@ escription
which is in the process of scription escription Description char(20)
expansion. The application char(20) OUTPUT char(20), OUTPUT,
should display the formatted OUTPUT, char(20), @RD int @RD int
report of the status of @RD int @RD int OUTPUT OUTPUT
positions available in the OUTPUT AS AS AS AS
company. You are required BEGIN BEGIN BEGIN BEGIN
to create a procedure ... ... ... ...
TM2108 named prcGetPos that w END m END m END m END m 4
4,SELECT
2, SELECT 3,SELECT @Descriptio
vDescriptio Description n as
n=@Descri = vDescriptio
1,SELECT ption, vDescriptio n,
@Description n, @RD
= vDescription, iBudgetedS RD = as
You are developing an @RD = trength - iBudgeted iBudgetedSt
application for RedSky Inc., iBudgetedStre iCurrentStr Strength - rength -
which is in the process of ngth - ength=@R iCurrentStr iCurrentStre
expansion. The application iCurrentStrengt D ength ngth
should display the formatted h FROM FROM FROM
report of the status of FROM Position Position Position
positions available in the Position WHERE WHERE WHERE
company. You are required WHERE cPositionC cPositionC cPositionCo
to create a procedure cPositionCode ode = ode = Pcd de = @Pcd
TM2109 named prcGetPos that w = @Pcd m @Pcd m m m 1
Jim is creating an
application using SQL
database. The application
allows a user to create
customized output using
various tables. Jim wants to 4,Organizin
use views in his application. 1,Providing 3,Hiding g data from
Which of the following is relevant data 2,Changing data heterogene
NOT an advantage of using from different design of complexity. ous
TM2110 views? m tables. m the table. m m sources. m 2
3,Create a
stored
You are the database procedure
developer for a company that
that provides consulting requires a
services. The company EmpType
maintains data about its as a
employees in a table named parameter.
Employee. The syntax that Include the
was used to create the WITH
employee table is shown 1,Create a 2,Create a RECOMPI 4,Create
below: view, and view using LE option one stored
include the the WITH when the procedure
CREATE TABLE Employee WITH CHECK procedure for each
( ENCRYPTION OPTION is created. EmpType.
TM2113 Em clause. m clause. m m m 2
2,BEGIN
transaction 3,
1,BEGIN INSERT INSERT
While performing a transactioninto A into A 4,BEGIN
database operation, you INSERT INSERT BEGIN transaction
have decided to create a into A into B transaction INSERT
transaction that includes SAVE SAVE INSERT into A
three tasks: insert data in TRAN TRAN into B INSERT
table A, insrt data in table B, INSERT into B
and upadte data in table C. into B UPDATE C UPDATE C UPDATE
You need to ensure that UPDATE C C
either all the tasks are COMMIT COMMIT COMMIT COMMIT
TM2114 complete or none of them TRAN m TRAN m TRAN m TRAN m 1
3,SELECT
VIEW
vwEmpSkill
2,CREATE on
VIEW vFirstName
vwEmpSkill , 4,SELECT
as SELECT vLastName VIEW
vFirstName , vwEmpSkill
, vQualificati orderby
vLastName on, vSkill Create
1,CREATE , FROM vFirstName,
VIEW vQualificati Employee. vLastName,
vwEmpSkill on on, vSkill PositionSki vQualificatio
vFirstName, FROM ll n, vSkill
vLastName, Employee ON FROM
vQualification, JOIN Employee Employee.P
vSkill PositionSkil JOIN ositionSkill
FROM l cCurrentP ON
Employee ON Osition = Employee.c
JOIN Employee.c PositionSki CurrentPOs
You are developing an PositionSkill CurrentPosi ll JOIN ition =
application which involves ON tion = cPositionC PositionSkill
three tables named Employee.cCu PositionSkil ode.Skill .cPositionC
Employee, PositionSkill, rrentPosition = l.cCurrentP ON ode.Skill
and Skill. Your application PositionSkill.c osition PositionSki ON
needs to implement a view PositionCode JOIN Skill ll JOIN PositionSkill
which may derive the data JOIN Skill ON ON cSkillCode JOIN
from the three tables. PositionSkill.c PositionSkil = Skill cSkillCode
The Employee table has SkillCode = l.vSkill = JOIN = Skill JOIN
columns named, Skill.cSkillCod Skill.vSkill cSkillCode cSkillCode
TM2115 vFirstName, vLastNa em m m m 2
3,CREATE
PROCEDU 4,EXECUT
2,CREATE RE E
PROCEDU prcDisplay PROCEDU
RE Both RE
prcDisplay @city prcDisplayB
1,ALTER Both char(15) oth
PROCEDURE @city AS @city
prcDisplayBoth char(15) BEGIN char(15)
@city char(15) AS AS
You are a senior developer AS BEGIN CREATE BEGIN
with your organization and BEGIN EXEC prcListCont EXEC
developing an application CREATE prcListCont ractRecruit prcListContr
which requires the details of prcListContract ractRecruit er @city actRecruiter
the HR Consultancies and Recruiter er @city @city
the contract recruiters in a @city EXEC CREATE EXEC
city. The details should be CREATE prcPrintCon prcPrintCo prcPrintCon
generated in a single report. prcPrintConsul sultantList nsultantList sultantList
You have already tantList @city @city @city @city
TM2116 incorporated two END m END m END m END m 2
3,DECLAR
2,DECLAR E @retval
E @retval int 4,DECLAR
int, DECLARE E @retval
DECLARE @ytd int int,
@ytd int, EXEC DECLARE
1,DECLARE EXEC @retval = @ytd int,
@retval int, get_sales_f get_sales_f EXEC
You are the database DECLARE or_title 12, or_title get_sales_f
developer for a XYZ @ytd int, @ytd 12,@ytd or_title 12 ,
company. You create the EXEC OUTPUT, OUTPUT @ytd,
following stored procedure get_sales_for_ IF @retval IF @retval IF @retval
to report the year-to-date title 12 < 0, <0 < 0,
sales for a particular book ,@retval PRINT ‘No PRINT 'No PRINT ‘No
title: OUTPUT, sales sales sales
IF @retval < 0, found’, found' found’,
CREATE PROCEDURE PRINT ‘No ELSE, ELSE ELSE,
get_sales_for_title @title sales found’, PRINT PRINT PRINT
varchar(80), @ytd_sales int ELSE, ‘Year to 'Year to ‘Year to
OUTPUT PRINT ‘Year to date sales: date sales: date sales: ’
AS date sales: ’ + ’ + STR ' + STR + STR
BEGIN STR (@ytd), (@ytd), (@ytd) (@ytd),
TM2117 SELECT GO m GO m GO m GO m 3
Smith is working as a
database programmer in
Horizon Corporation. He
has been assigned a task to 2,sp_helpd 3,sp_helpt
create a query that will give b ext 4,sp_helpte
the output of the procedure 1,sp_helpdb prcDisplay prcDisplay xt
named prcDisplayEmployee prcDisplayEmp Employee Employee prcDisplayE
if the procedure exists. He loyee output exec mployee
has executed the following exec prcDisplay prcDisplay show
queries: prcDisplayEmp Employee Employee prcDisplayE
TM2118 sp_helptex loyee m m m mployee m 3
2,The 3,The
SELECT SELECT
Consider the following statement statement
query: will return will return 4,The
DECLARE @EmpID more than more than SELECT
SELECT @EmpID = 1,The SELECT one value one value, statement
EmployeeID FROM statement will and all of but only will return
HumanResources.Employe return only one them will be the last only one
e value that can stored in value will value that
PRINT @EmpID not be stored the be stored will be
What will be the output of in the variable. variables. in the stored in a
TM2120 above query? m m m variable. m variable. m 3
3,the
security of
data and 4, business
Triggers can be used to 2, the the rules and
ensure and enforce 1, the security business business data
TM2126 _________________. m of data. m rules. m rules. m integrity. m 4
1, Can be 2, Prevents
explicitly incorrect,
invoked or unauthorize
executed, as in d, and 3, Can
Which of the following the case of the inconsistent return data 4, Cannot
statements is true for a stored changes in to the user. be nested.
TM2127 trigger? m procedures. m data. m m m 2
3, Create 4,Create
2,Create Trigger Trigger
Trigger trgDeletete trgDeletete
You are developing an 1,Create trgAltertem mp_emp mp_emp
application to manage the Trigger p_emp ON ON ON
records of the Employees trgDeletetemp Employees Employees Employees
table, which has a column _emp ON AFTER AFTER AFTER
named temp_emp. When Employees DROP Alter DELETE
the data in this column is no AFTER AS AS AS
longer required, then the UPDATE Print { You Print 'You Print ‘You
data is remove it and a AS have have have
message is displayed as Print ‘You have removed it removed it removed it
'You have removed it removed it successfull successfull successfully
TM2131 successfu successfully’ m y} m y' m ’m 1
Statement A: The
Shared(S) Lock mode is
used for the operations that
change or update the data.
Statement A: By default,
SQL Server scans for the
sessions that are waiting for
a lock request in order to
detect the deadlock
situation. 2,Statemen 3,Statemen 4,Both,
t A is True t A is False Statement
Statement B: SQL Server 1,Both, and and A and
provides the SET Statement A Statement Statement Statement
DEADLOCK_PRIORITY and Statement B is False. B is True. B, are
TM2139 command to custom B, are True m m m False. m 1
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 3,DHTML 4,JavaScrip
TM2141 is________________. m 1,XML m 2,HTML m m tm 1
2,The
Class
Library
Template is
used to
create a
class or a
reusable 4,The Class
1,The Class component 3,The Library
Library that Class Template is
Template is exposes Library used to
used to create some Template create an
a custom functionality is used to application
control that that can be create a that does
Which of the following is a can be added used in console not have a
usage of the Class Library to the user various application. user
TM2146 Template? m interface. m projects. m m interface. m 2
Consider the following
Statements:
Statement A: WindowState
property of the form is used
to specify the position of the
form on the screen as 2,Both, 3,Statemen
Manual, CenterScreen or Statement t A is True 4,Statement
CenterParent. 1,Both, A and and A is False
Statement B: StartPosition Statement A Statement Statement and
property of the form is used and Statement B, are True. B is False. Statement
TM2147 to specify wheth B, are False. m m m B is True. m 1
3,TextBox
Consider that you want to 2,TextBox txtbox =
dynamically load a textbox, txtbox = new 4,TextBox
txtbox, in the form. Which of 1,TextBox Txt1 new TextBox(); txtbox =
the following code you will = new TextBox(); new
write in the Form1_Load TextBox(); Form1.Cont this.Control TextBox();
event handler of the this.Controls(T rols.Add(Te s.Add(txtbo Form1.Add(
TM2160 Windows Form? m xt1); m xtBox); m x); m txtbox); m 3
3,1. Create
2,1. Create a project
1,1. Create a an Index. file. 4,1. Create
project file. 2. Create 2. Create HTML Topic
2. Create an HTML HTML Pages.
Index. Topic Topic 2. Create
3. Create Pages. Pages. an Index.
HTML Topic 3. Create a 3. Create 3. Create a
Pages. Table of an Index. Table of
4. Create a Contents. 4. Create a Contents.
Table of 4. Create a Table of 4. Create a
You want to build help Contents. project file. Contents. project file.
system for your project. 5. Compile the 5. Compile 5. Compile 5. Compile
What steps will you follow to Help Project. the Help the Help the Help
TM2161 create the help system? m m Project. m Project. m Project. m 3
3,1. Open
the
Properties 4,1. Open
2,1. Open window for the
the the control. Properties
Properties 2.Set the window for
1,1. Open the window for ShowHelp the form.
Properties the form. on 2.Set the
window for the 2.Set the helpProvid ShowHelp
form. ShowHelp er1 on
2.Set the on property to helpProvide
ShowHelp on helpProvide True. r1 property
helpProvider1 r1 property 3.Type a of the form
property to to False. search to True.
True. 3.Type a keyword 3.Type a
3.Type a search for the search
search keyword for HelpKeywo keyword for
keyword for the rd on the
the HelpKeywo helpProvid HelpKeywor
HelpKeyword rd on er1 d on
You need to add context- on helpProvide property. helpProvide
sensitive help to one of the helpProvider1 r1 property. 4.Select an r1 property.
control. You want that property. 4.Select an appropriate 4.Select an
whenever the user clicks on 4.Select an appropriate value for appropriate
the control he should be appropriate value for the value for
able to view the help topic value for the the HelpNavig the
related to that control. HelpNavigator HelpNaviga ator on HelpNavigat
Identift the steps, which are on tor on helpProvid or on
required to accomplish this? helpProvider1 helpProvide er1 helpProvide
TM2162 m property. m r1 property. property r1 3
David is creating an
application in which scripts
are read from right-to-left.
So he has setth
RightToLeft property to Yes.
Now he has textbox control
in the form with the text
written as ‘Hello123’. How
will the text be displayed in 2,olleH123 3,321olleH 4,olleH321
TM2164 the textbox? m 1,Hello123 m m m m 1
4,ToolTip
You need to display the tool 2,ToolTip tooltip1 =
tip “Hello there” when a tooltip1 = new
user points to a button new ToolTip();
named Button1 on a form. ToolTip(); tooltip1.Set
Which of the following code tooltip1.Set 3,button1.S ToolTip( “H
snippets will you use to set 1,button1.toolti ToolTip(but etToolTipT ello
the tool tip text of the ptext = “Hello ton1, “Hello ext(“Hello there”,butto
TM2165 Button1 button? m there”; m there”); m there”); m n1); m 2
3,1. Drag a
HelpProvid
2,1. Drag a er control 4,1. Drag a
HelpProvid on to the HelpProvide
er control form and r control on
on to the specify the to the form
form and name of and specify
specify the the the name of
1,1. Drag a name of the HelpProvid the
HelpProvider HelpProvid er control HelpProvide
control on to er control as r control as
the form and as HelpProvid HelpProvide
specify the HelpProvid er1. r1.
name of the er1. 2. Set the 2. Set the
HelpProvider 2. Set the HelpName HelpNames
control as HelpFile space pace
HelpProvider1. property to property to property to
You has developed a help 2. Set the the help file the help file the help file
file for the Customer Data HelpNamespa to be to be to be
Entry form in your ce property to associated associated associated
application. When a user the help file to with the with the with the
presses the F1 key while be associated HelpProvid HelpProvid HelpProvide
the input focus is on the with the er control. er control. r control.
Add button, you need to HelpProvider 3. Set the 3. Set the 3. Set the
provide help for the Add control. ‘HelpKeywo ‘HelpKeyw ‘ShowHelp
button. What do you need 3. Set the rd on ord on on
to do to perform the task ‘ShowHelp on HelpProvid HelpProvid HelpProvide
TM2166 mentione HelpProvider1’ er1’ p e r1’ 1
3,1. Drag a
2,1. Drag a HelpProvid
HelpProvid er control
er control on to the 4,1. Drag a
on to the form and HelpProvide
form and specify the r control on
specify the name of to the form
name of the the control and specify
1,1. Drag a control as as the name of
HelpProvider HelpProvid HelpProvid the control
control on to er1. er1. as
the form and 2. Set the 2. Set the" HelpProvide
specify the "MinimizeB ShowHelp r1.
name of the ox" and on 2. Set the
control as "MaximizeB HelpProvid "MinimizeB
HelpProvider1. ox" er1" ox" and
2. Set the properties property of "MaximizeB
"HelpNamespa of the the ox"
ce" property of Student Retrieve properties
the Data Entry button to of the
HelpProvider form to True. Student
You need to display pop-up control to True. 3. Set the Data Entry
help displaying the text Retrieve 3. Set the " "HelpButto form to
“Retrieve Student Data” on Student Data. HelpButton n" property False .
the Retrieve button on the 3. Set the " of the 3. Set the
Student Data Entry form. "ShowHelp on properties Retrieve "HelpButton
Which of the following steps HelpProvider1" of the button to " property of
will you follow to accomplish property of the Student True. the form to
TM2167 the task? m Retrie Data 4. Se True. 4
2,1. Drag
the ToolTip
control on
to the form 3,1. Drag
and specify the ToolTip
its name as control on
ToolTip1. to the form 4,1. Drag
2. Set the and specify the ToolTip
SetToolTip its name as control to
1,1. Drag the property of ToolTip1. the form
ToolTip control the Add 2. Set the and specify
on to the form button to ToolTip on its name as
You have created a form for and specify its Add invoice ToolTip1 ToolTip1.
accepting invoice details. name as details to property of 2. Set the
When a user points to the ToolTip1. database. the Add ToolTipTitle
Add button on the form, a 2. Set the 3. Set the button property of
tool tip displaying the text ToolTipText ShowHelp control to the ToolTip
“Add invoice details to the property of the on ToolTip1 Add control to
database” should be ToolTip control property of invoice Add invoice
displayed. What do you to Add invoice the Add details to details to
need to do to perform the details to the button to database. database.
TM2168 task mentioned above? database. m True. m m m 3
Which project template 4,Crystal
should be chosen from the 2,Console 3,Windows Reports
VC# Projects list to create 1,Class Library Application Application Application
TM2169 a .dll file? m m m m m 1
3,<configur 4,<configur
ation> ation>
3,Select
2,Select the the This is
1,Select the This is a a partial
You do not want an This is a full partial trust trust
application to be a full trust trust application application 4,Select the
application for Web application in in the in the Updates
deployment. However, for the security tab Security tab Publish tab button in
deploying the application on and deleted and click and click the Publish
web, it must have certain the the the tab and
permissions. What could be permissions, Calculate Calculate specify the
done to specify the required which are not Permission Permission permissions
TM2187 permissions? m required. m s button. m s button. m .m 2
4,1.Select
2,1.Select 3,1.Select Action-
Action- Action- >Add
>Add >Add Dialog.
Dialog. Dialog. 2.Select
2.Select 2.Press the License
License F4 key to Agreement
1,1.Select Agreement switch to in the Add
Action->Add in the Add the Dialog
Dialog. Dialog Properties dialog box
2.Select dialog box window. and click
License and click 3.Select the OK
Agreement in the OK the button.
the Add Dialog button. LicenseFile 3.Press the
dialog box and 3.Press the property. F4 key to
click the OK F4 key to Click the switch to
button. switch to drop-down the
3.Press the F4 the list and Properties
You have created a key to switch Properties select window.
Windows application. While to the window. Browse. 4.Select the
creating the deployment Properties 4.Click the 4.Click the LicenseFile
project, you need to add a window. Add File Add File property.
licence agreement to the 4.Select the button. This button. Click the
project. Which of the File property. opens the This opens drop-down
following tasks need to be Click the drop- Add Files the Add list and
performed to ensure that down list and dialog box. Files dialog select
the license dialog box will select Browse. Select the box. Select Browse.
TM2188 be displayed while installing 5.Click the file to the file to b 5.Cl 4
2,using
System.Glo 4,using
1,using balization; System.Glo
System.Globali using balization
zation; System.Thr using
using eading; System.Thr
System.Thread … eading
ing; CultureInfo …
… myCulture 3,using CultureInfo
CultureInfo = new System.Gl myCulture =
myCulture = CultureInfo obalization; new
new (“fr-FR”); … CultureInfo
CultureInfo (“fr- myCulture. CultureInfo (“fr-FR”)
Mary is updating an FR”); NumberFor myCulture myCulture.
application for PressInfo myCulture.Nu mat.TextInf = new NumberFor
company. The client wants mberFormat.C o = “$”; CultureInfo mat = “$”
that the application should urrencySymbol Thread.Cur (“fr-FR”); Thread.Curr
be France specific, and the = “$”; rentThread. myCulture. entThread.
currency used should be Thread.Current CurrentCult NumberFor CurrentCult
U.S. dollars. Which of the Thread.Current ure = mat.Curren ure =
following syntax should she Culture = myCulture; cySymbol myCulture
TM2191 follow to achieve this? m myCulture; m m = “$”; m m 1
If the name of an
application is myapp.exe,
what will be the name of the
corresponding configuration 1,myapp.exe.c 2,myapp.co 3,myapp.c 4,myapp.ms
TM2192 file? m onfig m nfig.msi m onfig m mm 1
Which of the following files
is NOT the correct type of
security policy level for a
.NET Windows application ? 1,Enterprise 2,Machine 3,User 4,Server
TM2193 m policy m policy m policy m policy m 4