Sei sulla pagina 1di 70

1

2 3

You are creating a Windows-based application that takes age from the user. The application should convert the age from character data type to integer data type. Which of the following functions you need to use to accomplish the desired task? The _______ model is based on a real world perception that comprises a collection of objects or entities and the relationships among these. The ABC University used to offer a course in Visual Basic. However, due to less demand of the subject, the university dropped the course from its IT curriculum. This resulted in modification of the complete IT curriculum. Identify the type of entity that the Visual Basic course is. A computer institute offers courses on various programming languages for students. The students can select any number of offered courses. Which type of relationship exists between the students and offered courses? Sam is accessing a table that contains details of all the employees of his organization. He needs to retrieve the details of those employees who have more than $10000 salary per month. He has decided to use the PRODUCT relational operator to accomplish this task. However, his manager has informed him that the use of this relational operator will not give the desired result. Analyze the situation and provide the operator that Sam should use. Smith works as a Manager in TechnoWorld, Inc. He manages and evaluates the performance of his team. Identify the entities and relationship in the given scenario.

7 8 9

Identify the type of relationship in the following sentence: Software engineers can work on various programming languages. There are _______ types of relationships that exist between entities. Peter is working as a Senior Software Engineer in NewSol, Inc. His Employee ID is N0065. He joined the organization on 19 Aug, 2008. Identify the attributes of the entity instance.

10

11

12 13 14

Peter has been given a task to simplify a database structure. He has to represent the data and the relationships among them in the form of rows and columns. He has decided to use the Network model for completing this task. However, his manager has informed him that the use of this model will not generate the desired result. Analyze the situation and provide the correct model that Peter should use. Sam is working on two tables, Employee Details and Department Details. The Employee Details table contains employee ID, employee name, department ID, and designation of all employees. The Department Details table contains department ID and department names. Sam has to retrieve the name of the department that has the maximum number of employees working. Which operator should Sam select for the given scenario? Subtypes are connected to the supertype by a relationship known as _________. __________ is a scientific method of breaking down complex table structures into simple table structures by using certain rules. When each cell of the table contains precisely one value, the table is said to be in the ______ normal form.

15

Jim works as a database administrator in TechnoSol, Inc. He has a table that contains details of employees and location of the meetings they have attended in the last one year. Jim has to normalize the table. The table columns consist the details of Employee ID, Department ID, meeting date, and location of the meeting. On analyzing the table he found that meeting date and location of the meeting columns consist of more than one value in each cell. Jim has decided to normalize the table by using second normal form. However, his manager has informed him that using second normal form for the given scenario will not be correct. Analyze the situation and provide the normal form that Jim should use. A table lists the details of all the students studying in an institute. Identify the determinant among the four columns of the given table. Click the Exhibit button to view the table. Which of the following sentences is CORRECT about second normal form?

16

17

18

A table is said to be in _____ normal form when it is in second normal form and every non-key attribute is functionally dependent only on the primary key. Which of the following processes can increase disk space utilization? Stella is working on a table that contains the details of students who have appeared for different course exams. She has to normalize the table. The primary key of the given table is Roll Number + Exam Code. On analyzing, Stella found that any modification in Student Name column will lead to modification in the whole table and Student Name + Exam Code can also be chosen as the primary key. To avoid this redundancy, which normal form should Stella select? Click the Exhibit button to view the table. Jim is working on an ER diagram. He has been instructed by his manager to map the given ER diagram to its corresponding tables. On analyzing the whole ER diagram, he is planning to create a table called Account Details. However, his colleague has advice him that creating only one table will not give the desired result. Analyze the given ER diagram and provide the tables that Jim should create. Click the Exhibit button to view the figure. The _________ operator builds a relation from tuples appearing in either or both of the specified relations. The ________ model represents all data in a database as simple tables in the row-column format. Replacing optional attributes with subentities is called __________. Which of the following sentences is NOT correct about normalization?

19 20

21

22 23 24 25

26

Which of the following sentences is NOT true about an attribute?

27

The Employee_Details table lists the details of an employee. If Employee ID is the primary key, identify the alternate key in the table? Click the Exhibit button to view the table. In the database structure, a table is called by which of the following name? Jack is working on a table that describes salary details of an employee. Which of the columns in the table will you use to uniquely identify all the rows of the table? Click the Exhibit button to view the table. Ryan is working on a table containing details of projects that the students have submitted after completing a course on a specific programming language. The primary key in the table is Student ID + Project Code. Ryan is thinking of applying third normal form to simplify the table structure. On discussing with his senior, he found that his decision of selecting the third normal form is not correct. Analyze the given table and identify which normal form should Ryan select. Click the Exhibit button to view the table.

28 29

30

31

32 33

John is working on a table that includes the details of employees and their departments. He has to normalize that table. The primary key of that table is Employee ID. Which normal form should he choose to simplify the table? Click the Exhibit button to view the table. Which of the following commands is used to initiate a chat session in Linux? Joe is communicating with Jack by using the Chat utility of Linux. Now, he wants to end the chat session. Which of the following commands would help him do so? Kim has logged on to the Linux system. She received a query from the customer. To resolve the query, she has to communicate with the back office. Identify the correct sequence of steps that she needs to follow to communicate with the back office.

34

35

Joe is working on a Linux system. He has to chat with Angela. He first wants to check whether Angela is online and ready to receive messages. For this, he types the following command at the shell prompt and presses the Enter key: who However, the preceding command displays the list of currently logged on users. This list does not indicate whether the user is ready to receive messages. Identify the correct command that Joe should use to accomplish the required task?

36 37

Which of the following options is NOT an example of Mail User Agent (MUA)? Which of the following statements is a function of Mail User Agent (MUA)?

38

Jack is working on his Linux system. His boss has sent him a mail that lists the tasks to be performed by Jack. Jack has to access his inbox to read the new mails received on his Linux system. Identify the correct sequence of steps that Jack needs to follow to read the new mails.

39

40 41

Julia is logged on to the Linux system. She has to access her Inbox to read mails. She invoked the pine MUA and pressed the S key to display the list of folders. Analyze whether Julia has pressed the correct key to display the list of folders. If not, provide the correct solution. Which of the following options do you need to press on the main menu of pine to configure the pine options? You have sent a mail by using the pine utility of Linux. Now, you need to verify whether the mail has been sent or not. How will you perform this task? You have sent an E-mail to your friend by using the pine utility of Linux. After you have sent the mail, its copy is saved automatically in the sent-mail folder. Now, you need to verify this by checking the content of the sent-mail folder. Which of the following sequence of steps do you follow to perform this task?

42

43

You have a Linux system. You have to send an E-mail to your friend. For this, you performed the followed steps: 1. Type pine at the shell prompt, and press Enter. 2. Press C. 3. Type the name of the recipient in the To: block, and press Enter. 4. Type the subject in the Subject: block, and press Enter. 5. Type the contents of the mail. 6. Press the Ctrl and C keys to send the e-mail. However, you are not able to send the e-mail by using the preceding steps. Identify the problem and provide the correct solution. Which of the following statements is NOT the correct file naming guideline of the Linux operating system?

44

45

Which of the following options do you need to press to switch to the Insert mode and then type the contents at the current cursor position of the vi editor? You have written a file by using the vi editor. Now, you need to save the file by the name myfile.txt. Which of the following steps do you need to follow to save the file and close the vi editor?

46

47 48

49

50

51

Which of the following commands can be used to replace a character at the current cursor position and switch back to the Command mode? You have opened a file in the vi editor. You have to make some changes in the third line of the file. The cursor is currently at the end of the second line. To make changes in the third line, you pressed the k command. However, the cursor moved to the first line instead of the third line. Analyze the situation and provide the correct command that should have been used to move the cursor from the second to the third line. You have to view the files stored in the /home/bill directory. You are currently in the bill directory. Which of the following commands would you use for this purpose? There are three files in the /home/math directory. The file names are math001.2009, math002.2009, and math003.2009. You need to copy all the files in the /home/math directory to the /home/backup directory. You are currently in the math directory. Which of the following commands would you use to perform this task? There is a file named myfile001.txt in the /home/mydir directory. You need to rename the file to myfile002.txt. You are currently in the mydir directory. For this, you typed the following command at the shell prompt: rm /home/mydir/myfile001.txt /home/mydir/myfile002.txt Analyze and predict whether the preceding command is able to accomplish the required task. If not, predict the correct command.

52

ABC Bank is offering personal loans to its customers at reduced interest rates. This offer is valid for only a limited period. The bank intends to use a software application to record all loan details. The bank wants that once the offer period ends, the interest rates and other details such as loan limits are changed to the original values. The bank does not want to modify the complete software application as a result of change in such loan details. Identify the tier on which the bank should place such details in order to accomplish their requirement. ___________ provides support for asynchronous communication between clients and the database server, enabling reliable query processing. Which of the following is NOT a feature of the CLR component of the .NET Framework? Which of the following features of SQL Server 2005 allows you to implement programming logic in any language supported by the .NET Framework? Jonathan is using the ALTER statement on a database that he has created. Under which of the following options is the statement being used by Jonathan included? Which of the following mathematical functions provided by SQL Server 2005 returns the largest integer less than or equal to the specified value? You need to display a report that includes the Login Ids of the employees and their birth dates. You want that the birth date should be displayed in yy.mm.dd format. Which of the following statements will you use to accomplish the same?

53 54

55

56

57 58

59

60 61 62

You need to generate summary rows from a table by using aggregate functions in the query results. Which of the following options will you use to accomplish the same? The _______ join displays the result set containing all the rows from one table and the matching rows from another table. Which of the following operator refers to a value that is greater than the maximum value in the list? You have to retrieve the details of employees from the Employee table, which contains the EmpID and EmpTitle columns. You have to write a query that displays Employee ID and title under the column headings, Employee ID and Designation, respectively. Which of the following SQL queries would you use to perform the required task?

63

You have to create a report containing the Employee ID, title, and total leaves of those employees whose total leaves are not greater than 20. Which of the following SQL queries would you use to create this report?

64

You have to retrieve the Name, DepartmentID, and GroupName columns from the Department table. The data of the Name column should be displayed in capital letters with a user-defined heading, Department Name. Which of the following SQL queries would you use to retrieve the required information in the desired format?

65

You need to create a report containing the product ID along with their list prices. The products should be ranked based on their list price. The product with the highest value of list price should be given the rank as 1. In addition, if two products have the same list price, they should be given the same rank. However, the next product in the order of list price would be assigned the next rank value. Which of the following SQL queries would you use to retrieve the required report? You have to display a report that contains the Employee ID and the name of department for each employee. The Employee ID is stored in the EmployeeDepartmentHistory table, and the department name is stored in the Department table. The Department and EmployeeDepartmentHistory tables contain a common column, DepartmentID. Which of the following SQL queries would you use to display the required report?

66

67

You have to create a report that displays the number of years an employee has been working with the organization. For this, you created the following SQL query: SELECT datepart (yy, HireDate, getdate()) AS 'Age' FROM HumanResources.Employee However, the preceding query does not compile. Identify the reason and provide the correct solution. You have to create a report that displays the EmployeeID of all the employees, who live in the Bothell city, from the EmployeeAddress table. For this, you created the following SQL query: SELECT EmployeeID FROM HumanResources.EmployeeAddress WHERE AddressID = (SELECT AddressID FROM Person.Address WHERE City = 'Bothell') However, the preceding query gives an error "Subquery returned more than 1 value". Provide the correct solution for this problem.

68

69

You have to create a report that displays the Employee ID and the title of all the employees whose sick leave hours are more than the sick leave hours of employees designated as Stocker. For this, you used the following SQL query: SELECT EmployeeID, Title, SickLeaveHours FROM HumanResources.Employee WHERE SickLeaveHours >ANY (SELECT SickLeaveHours FROM HumanResources.Employee WHERE Title ='Stocker') Analyze and predict whether the preceding query would display the required report. If not, provide the correct solution.

70

You have to create a report that displays the EmployeeID of those employees whose sick leave hours are greater than the average sick leave hours of employees with title as 'Network Administrator'. For this, you used the following SQL query: SELECT EmployeeId FROM HumanResources.Employee WHERE SickLeaveHours = (SELECT AVG(SickLeaveHours) FROM HumanResources.Employee WHERE Title = 'Network Administrator') Analyze and predict whether the preceding query would display the required report. If not, provide the correct solution.

71

You have to create a report that displays all the titles of the employees along with their average sick leave hours when the sick leave hours are more than 20 and the group average value is greater than 35. For this, you used the following SQL query: SELECT Title, 'Average Sick Leave Hours' = avg(SickLeaveHours) FROM HumanResources.Employee WHERE SickLeaveHours > 20 GROUP BY Title Analyze and predict whether the preceding query would display the required report. If not, provide the correct solution.

72 73 74 75

Which of the following databases acts as a template or a prototype for the new databases in SQL Server 2005? What is the extension of the primary data file in SQL Server 2005? Which of the following stored procedures is used to rename a database in SQL Server 2005? The ____________ statement is used to delete a database when it is no longer required.

76 77

78

Which of the following functions provided by the XML data type of the SQL Server is used to add nodes to XML in an XML column or variable? You are creating an Employee table in SQL Server 2005. The table contains the EmpPhone column to store the phone numbers of the employees. You need to ensure that the phone number entered by the employee should not be less 10 digits. Which of the following constraints would you apply on the EmpPhone column to accomplish this task? The Employee table in SQL Server 2005 contains the details about employees working in an organization. According to certain new requirements, you have to add another column for storing PAN card details of each employee in the Employee table. Which of the following statements would you use to implement this change in the Employee table? The details about various products are stored in the Products table. The price of one of the products has changed. You need to reflect this change in the Products table. Which of the following statements allows you to perform this task? An XML document needs to be shredded in order to store it in a database table. Which of the following tasks is NOT a part of shredding the XML document? You have to retrieve the relational data from the Products table into the XML format for reporting purposes. For this, you want to write a Select query that returns the result in the form of nested XML elements. Which of the following modes of the FOR XML clause would you use to retrieve the XML data in the required format? You have to create the Orders table in the database. The table contains three columns: OrderID, OrderDate, and OrderPrice. The OrderID column cannot be left empty while inserting data in the table. Which of the following statements would you use to create the Orders table?

79

80

81

82

83

You have to create the EmpPayDetails table in the database. This table contains the personal details of the employees and their payment rates. Whenever there is a change in the payment rate of an employee, a separate record is inserted in the RateChangeDate column. The EmpPayDetails table needs to be partitioned based on the changes made in the payment rates of employees. For this, you have created a partition function and associated it with various filegroups by using the partition scheme named RateChngDate. Which of the following statements would you use to create the table that will store the partitioned records?

84

You have to store the data in the following columns of the Address table in the database: AddressID AddressLine1 AddressLine2 StateProvinceID PostalCode Which of the following statements would you use to perform this task? You have received the order details from a vendor in an XML document. This XML data needs to be stored in a database table. For this, you need to shred the XML document by using the OPENXML function. Identify the correct sequence of tasks that you need to perform to shred the XML document.

85

86

You have written the following statements to retrieve details of employees with Employee ID as 1 or 2: SELECT EmployeeID, ContactID, LoginID, Title FROM HumanResources.Employee WHERE EmployeeID=1 OR EmployeeID=2 FOR XML RAW Predict the output of the preceding query.

87 88

How many clustered indexes can be created on a table? Which of the following constructs is used in a batch to allow a set of T-SQL statements to execute repeatedly as long as the given condition holds true? Which of the following data types can be returned by a scalar function in SQL Server 2005? Which of the following types of triggers is fired after the execution of the DML operation for which it has been defined? Which of the following problems occurs in the database when two or more transactions try to modify the same row?

89 90 91

92

You have to create a clustered index on the Employee table. While creating the index, you need to reserve a percentage of free space on each data page of the index to accommodate future expansion. Which of the following options should you use to accomplish this while creating the clustered index? Which of the following statements is NOT true about XML indexes?

93

94

Which of the following statements is NOT true about batches?

95

You have to update two tables in a database. For this, you have written two update statements. You want that both update statements must execute as a single logical unit of work to maintain data integrity. If any type of error occurs in any of the update statements, none of the statements should be executed. Which of the following options would you use to implement this? You have to set the timeout period of five seconds for a transaction to wait on a blocked resource. Which of the following statements would you use to accomplish this? Identify the correct sequence of tasks that you need to perform to configure fulltext search on a database.

96

97

98

You have created a view in the database by using the following statements: CREATE VIEW HumanResources.vwEmployeeDepData AS SELECT e.EmployeeID, MaritalStatus, DepartmentID FROM HumanResources.Employee e JOIN HumanResources.EmployeeDepartmentHistory d ON e.EmployeeID = d.EmployeeID Now, you want to create a clustered index on the vwEmployeeDepData view. For this, you first need to bind the vwEmployeeDepData view to the schema of the underlying tables. Which of the following statements would you use to perform this task?

99

The CustomerID attribute of the Customer table is an IDENTITY column and its value cannot be specified while inserting a new record. If anyone specifies the value for the CustomerID in the INSERT statement, an error will be generated. To handle such errors, you decide to use the TRY and CATCH blocks. You want that when an error occurs while inserting a record in the Customer table, the error message along with the line number at which the error occurred should be displayed. Which of the following statements would you use to perform this task?

100

You have created following stored procedure in SQL Server: CREATE PROCEDURE prcGetEmployeeDetail @EmpId int, @DepName char(50) OUTPUT, @ShiftId int OUTPUT AS BEGIN IF EXISTS(SELECT * FROM HumanResources.Employee WHERE EmployeeID = @EmpId) BEGIN SELECT @DepName = d.Name, @ShiftId = h.ShiftID FROM HumanResources.Department d JOIN HumanResources.EmployeeDepartmentHistory h ON d.DepartmentID = h.DepartmentID WHERE EmployeeID = @EmpId AND h.Enddate IS NULL RETURN 0 END ELSE RETURN 1 END Now, you have to create another procedure that will call the prcGetEmployeeDetail procedure. Which of the following statements would you use to perform this task?

101

You have to create an update trigger, trgMagic, on the EmployeeDepartmentHistory table. You want that whenever any update statement is fired on the EmployeeDepartmentHistory table, the trgMagic trigger is executed and displays the previous value in the table as well as the updated value. Which of the following statements would you use to perform the required task?

102 103

___________ is a set of functions that provide programmable logic used by client applications over the Internet. ___________ is an extension of distributed computing based on the request/reply design pattern.

104 105 106

To use the native XML Web services of the SQL Server, you need to establish an ______ endpoint at the server. Which of the following database objects in the Service Broker architecture is an addressable endpoint for the conversations? The Customer table in the database contains the information about the credit cards of the customers. You need to check whether the credit card number provided by the customer is valid. For this, you want to call a Web service. Which of the following options would you use to perform this task? You have to create Service Broker objects in the AdventureWorks database. For this, you first need to enable Service Broker in the database. Which of the following statements can be used to enable Service Broker?

107

108

You have to create a message named myMessage that will be exchanged between the Service Broker services. The message will not be validated before sending. Which of the following statements can be used to create the message?

109

110

You have to implement Service Broker architecture between two services. For this, you have to create an agreement to define the messages that will be exchanged between the two services. Which of the following objects needs to be created to accomplish this? Which of the following statements will you use to enable the CLR integration feature in the database?

111

You have created a .NET assembly named CLRIntegration.dll. You need to import this assembly in SQL Server database engine such that the .NET code is able to access any resource within or outside SQL Server. For this, you created the assembly object by using the following code: CREATE ASSEMBLY CLRIntegration FROM 'C:\CLRIntegration.dll' WITH PERMISSION_SET = SAFE However, the preceding code does not allow the .NET code to access any external resource. Analyze the preceding code and provide the correct solution.

112

You have to create a contract to define an agreement between two services in SQL Server. The message type defined by this contract can be sent only by the endpoint that started the conversation. For this, you have used the following code: CREATE CONTRACT sendContract ( sendMessage SENT BY TARGET ); However, the preceding code allows the message to be sent by the endpoint that is the target of the conversation. Analyze the problem and provide the correct solution. ___________ allows the database developers to create objects in any of the .NET-supported languages and embeds the objects in the database. You have created a procedure, getSalesDetails that returns a result set. You need to create an HTTP endpoint named sqlEndpoint to provide the getSalesDetails procedure as a Web method. For this, you used the following statement in SQL Server: CREATE ENDPOINT sqlEndpoint STATE = STARTED AS HTTP( PATH = '/sql', AUTHENTICATION = (INTEGRATED ), PORTS = ( CLEAR ), SITE = 'SERVER' ) FOR SOAP ( WEBMETHOD 'getSqlInfo' (name='master.dbo.xp_msver', SCHEMA=STANDARD ), WEBMETHOD 'getSalesDetails' (name='master.sys.fn_MSdayasnumber'), WSDL = DEFAULT, SCHEMA = STANDARD, DATABASE = 'master', NAMESPACE = 'http://tempUri.org/' ); However, when the preceding statement is executed, the following error is displayed: Msg 7890, Level 16, State 1, Line 1 Identify the reason for this error and provide the correct solution.

113 114

115

You have to create a service to be used by Service Broker to deliver messages to the correct queue within a database. The service will store all the messages in the queue named sendQueue. The contract for this service will be sendContract. To create the service, you used the following statement: CREATE SERVICE sendService ON QUEUE (sendContract) [dbo].[sendQueue] However, the preceding statement displays a syntactical error. Analyze the statement and provide the correct solution.

116

You have to create a managed stored procedure to store the employee details in an XML file. For this, you have created the ConvertXML.dll assembly and registered it in SQL Server with the name ConvertXMLAssembly. The code for ConvertXML.dll assembly is: namespace CLRStoredProcedure { public class XMLProc { public static void convXml() { . } } } Now, you have to create a stored procedure and associate it with the convXML() method contained in the ConvertXML.dll assembly. For this, you have used the following statement: CREATE PROCEDURE clrproc AS EXTERNAL NAME ConvertXML.[CLRStoredProcedure.XMLProc].convXml Analyze the scenario and identify whether the preceding statement will create the required managed stored procedure. If not, provide the correct solution.

117

Consider the following code for the CalcSal.dll assembly: namespace EmployeePay { public class Pay { public static SqlString calcSalary(SqlString emp) { . } } } You have imported the preceding assembly in SQL Server database engine by the name CalcSalAssembly. Now, you have to create a managed function named SalaryCalculation that will refer to the calcSalary() method of the preceding assembly. Which of the following statements would you use to create the managed function? The UserNameAudit table in the database stores various details of the users including the E-mail address. While inserting the users details, you need to validate the E-mail address to ensure that it is a valid E-mail address. You have created the ValidateMail.dll assembly to implement the logic of validating the Email address. The code of ValidateMail.dll assembly is: public class trgMail { public static void MailValid() { // Write the logic of validating the e-mail address } } You have imported the preceding assembly in SQL Server database engine by the name ValidateEmailAssembly. Now, you have to create a trigger that will refer to the MailValid() method of the preceding assembly. Which of the following statements would you use to create the managed trigger?

118

119

You have to implement Service Broker architecture in the database engine to create services that converse with each other by sending and receiving messages. For this, you have created the message type. Now, you need to create a queue object that is available to receive messages. Which of the following statements would you use to accomplish this task?

120

You have to implement Service Broker architecture in the database engine to create services that converse with each other by sending and receiving messages. For this, you have created two services, sendMessage and receiveMessage services. Now, you need to begin a conversation between the sendMessage and receiveMessage services by using the sendContract contract. Which of the following statements would you use to accomplish this task?

121

You have to implement Service Broker architecture in the database engine to create services that converse with each other by sending and receiving messages. For this, you have created all the required broker objects and started the conversation. Now, you need to send and receive messages. Which of the following statements would you use to send a message named sendMessage?

122

123

Which of the following components of the .NET Framework provides the various services, such as code compilation, memory allocation, and garbage collection? Which of the following properties of a form is used to specify whether a form will be displayed as a normal, maximized, or minimized window on startup? Which of the following events of a Windows form occurs when the form loses focus and is no longer active? Which of the following properties of the ListBox control can be set at design time as well as at run time? Which of the following controls allows the user to select an option from the given list and also allows him to type new text in it? Which of the following properties of the GroupBox control is used to specify the caption to be displayed for the control? _____________ function is used to convert char to int data type. You cannot create an instance of the __________ by using the new keyword. You are working as an application developer in CompSol Inc. You are asked to create a Windows-based application that should have a single Form. The Form should contain multiple controls to take input from user. After creating the application, you compiled it. During compilation, you encountered few errors in your code. Which of the following steps you need to perform to view error details?

124 125 126 127 128 129 130

131

You are working as an application developer in CompSol Inc. You are asked to develop a Windows-based application for a grocery shop. The application should allow the user to select a grocery item from the list of items. Which of the following code snippets, you need to write in your application to create the list of grocery items?

132

You are working as an application developer in ABC Corp. You are asked to create a Windows-based application for a school to gather the information about the students taking admission in the school. The application should have a Form to enter the information about the students. The Form should have a button control that should allow the user to submit the information. You need to provide an appropriate caption to the button control. Identify the code snippet that should be used in your application to accomplish the desired task. You are working as an application developer in InfoSol Inc. You are asked to develop a Windows-based application for a grocery store. The application should have an interface that should take the bill amount of the customers as input. If the bill amount is greater than 500 dollars, a button control must be added to the Interface. The click event of the button control should use Next() method of System.Random class to generate the discount amount between 5% and 35% for the customers who have made purchases more than 500 dollars. The customers must be greeted with an appropriate message. Identify the correct code to accomplish the desired task.

133

134

You are working as an application developer in CompSol Inc. You are asked to create a Windows based application that should have the login form. The application should allow the user to create their login ID. You need to add a validation check on the TextBox control that takes the password from the user. An appropriate message should be shown to the user if the length of the password is less than 6 characters. Which of the following code snippet you need to add to your application code to accomplish the task.

135

136

You are developing a Windows-based application that creates the multiple objects of the Button class at run time. Which of the following components of the .NET Framework allocate memory to these objects? You are creating a Windows-based application. You need to drag multiple controls from the Toolbox window to the Form control. For your convenience, you want the Toolbox window to be opened permanently. Which of the following features of Visual Studio .NET IDE you need to modify? You are asked to create a Windows-based application. The form of the application must appear at the centre of the screen when application is executed. Which of the following properties you need to set to accomplish the desired task? You are asked to create a Windows-based application. The form present in the application when gets the focus at run time should come to the front of other applications or its caption should flash on the task bar. Which of the following methods you need to use to accomplish the desired task? Which of the following controls is a container control? __________ is a process by which an application in the Windows environment is able to link to library functions at run time. Which of the following types of CommonDialog classes can be used to change the size of the text in the Windows-based application? Which of the following properties is used to create an MDI parent form? Which of the following classes is used for printing the text as well as graphics?

137

138

139 140 141 142 143

144 145

The ______________ is used to display the Print Setup page on the screen by using the ShowDialog() method. Which of the following control properties specifies the use of an element in the user interface and reports it to accessibility aids?

146

You are working as an application developer in CompSol Inc. You are asked to create a Windows based application for children. Through the application, children will be able to learn about the color combinations. Your interface should have one TextBox control and two Button controls required to set the background and foreground color of the text written in the TextBox control. Your application should use the ColorDialog control to invoke the default Color dialog box. Identify the correct code snippet that you need to add to your application.

147

You are working as an application developer in InfoSol Inc. You are asked to create a Windows-based application for a school. The application should enable the user to enter the data in the Student Details forms. The Student Details form should have a menu item named Print, which should get merged with the main MDI parent form menu. When the user clicks the Student Details form, the Student Details form should be displayed. The user should be able to close the application by clicking the Exit menu item. Identify the correct sequence of tasks that you need to perform to create the application.

148

You are working as an application developer in InfoSol Inc. You are asked to create a Window-based application that should allow the user to type in the content and then print it. Your application should use the PrintDialog and PrintDocument controls to invoke the default Print dialog box. Identify the correct code that you need to add to your application.

149

You are working as an application developer in InfoSol Corp. You are asked to create a Window-based application that should implement the concept of globalization. The application should have an interface to provide the information about culture settings of the system on which the application is running. The information should be available on the message box when the user clicks the button. Identify the code that you need to add to the click event of the button control.

150

You are working as an application developer in Infosol Corp. You are asked to create a Windows-based application that should have Pop-up help for displaying tips for the controls present in the application. Identify the correct steps that you need to perform for enabling the Pop-up help in a form present in the application.

151

Anthony is working as an application developer in Infosol corp. He is asked to create a Windows-based application that should allow the users to print the content they have typed in the textbox. The application should invoke the default Print dialog box by instantiating the PrintDialog class. He writes the following code to accomplish the task. ........... ............ using System.Drawing.Printing; namespace Print { public partial class Form1 : Form { PrintDialog pdlg = new PrintDialog(); internal PrintDocument PDocument = new PrintDocument(); public Form1() { InitializeComponent(); } private void Print_Click(object sender, EventArgs e) { pdlg.Document = PDocument; DialogResult result = pdlg.ShowDialog(); if (result == DialogResult.OK) PDocument.Print(); } private void PDocument_PrintPage(object sender,System.Drawing.Printing.PrintPageEventArgs e) { Graphics.DrawString(textBox1.Text, new Font("Arial", 40, FontStyle.Bold), Brushes.Black, 150, 125); } }} The preceding code gives an error when compiled. Identify the line of code

152

John is working as an application developer in BestRetails Corp. He was asked to create an application that should provide a detailed report of the sales made over a period of time. He created the application using crystal reports to generate the required report. To generate a report the application should connect to a database that is shared by other applications running in the organization. When the application was executed to generate the report, the records were not displayed in the tables present in the report. Identify the possible error that John could have made. John is working as an application developer in InfoSol Inc. He is asked to develop a Windows-based application that should show the date in different formats according to the settings available on the systems in different countries. He writes the following code in his application: ..... ........ DateTime MyDateTime = DateTime.Parse(System.DateTime.Now); DateLabel.Text = (MyDateTime.ToString("d")); However, the preceding code gives the compile time error. Identify the correct reason for error. Anthony is an application developer in InfoNet Inc. He is asked to create a Windows-based application for BestRetails Inc. BestRetails Inc., is a leading retail organization that has its business spread in four countries, France, Japan, Spain, and US. He needs to create the common application that should automatically load the appropriate version of the interface according to the existing culture settings on different systems in different countries. He creates the application that runs perfectly. However, in Japan the application displays the default interface of US. Identify the reason for this anomaly. Anthony is an application developer in InfoGain Inc. He is asked update an existing Windows-based application without recompiling it. To update the application, he needs to create a resource-only assembly. He performs the following steps to create the resource-only assembly: 1. Create a new VC# project with the Empty Project template. 2. In Solution Explorer, right-click the project and choose Properties. The Property pages open. 3. In the Output Type drop-down menu, change the output type of the project to Class Library. This will cause the assembly to be compiled as a .dll file. 4. From the Build menu, choose Build <project> where <project> is the name of the project. The resources you added to the project, are compiled into the assembly. However, he is not able to accomplish the desired task. Identify the mistake he has made. You are creating an MDI application that supports more than one instances of a child form. You need to write a code snippet to get an instance of the child form that has the focus or that is most recently active. Identify the correct code snippet that you need to write in your application code.

153

154

155

156

157

158

159

160

You are creating a Windows-based application that accesses the printer. Your application should have restricted access to the printer. Which of the following printing permission levels allows printing only from a more-restricted dialog box? You are creating a Windows-based application that is using the CrystalReportViewer control to display the groups into which the Crystal Reports is divided. Which of the following components of the CrystalReportViewer control you will use to accomplish the desired task? You are asked to create a Windows-based application that should be able to retrieve the image resources from an assembly at run time by using the ResourceManager class. Which of the following methods of the ResourceManager class you need to use to retrieve images from the assembly? You are asked to create a help system by using the HTML Help Workshop (hhw.exe) tool, which is a help-authoring tool. In which of the following files you will put the text that will appear on each page in the help system? You are working as a developer in InfoSol Inc. You are asked to create an application that allow the user to load the picture available on the machine on which the application is running. The application should allow the user to enter the path, where the picture is located, in the textbox. You need to use the asynchronous method to create your application. Identify the correct code that you need to add to your application.

161

162

You are working as a developer in InfoSol Inc. You are asked to create a Windows-based application that should implement the concept of asynchronous programming. For such application, the Event Handlers must be assigned to the DoWork and the RunWorkerCompleted events. To do so, you need to identify the correct code snippet to be added to the constructor of the class in the application.

163

You are working as a developer in InfoSol Corp. Your team a created an application for a grocery store. The application must validate the customers who are regular members of the grocery store. The regular customers are issued the membership cards that bear their name and card number. You are asked to create an application that should validate the customer's name and card number before allowing them to avail the discounts. The interface of your application must have the validate button. Your application must have reference to the validation component created by your team. Identify the code snippet that you need to add to the click event of the validate button.

164

You are working as a developer in Infosol corp. You are asked to create a Windows-based application for a university which is conducting an entrance exam. The application must validate the age of the students before accepting their forms. The age of the students should not be less than 18 and more than 21. For that you need to create a class named Student and use Get and Set methods to validate the age. Identify the code snippet that you need to use.

165

166

You are working as an application developer in Infosol Corp. You are asked to create an application whose interface must have a Calendar control. The Toolbox window of the Visual Studio IDE does not show the Calendar control. So you decide to add the Calendar control to the Toolbox window by selecting it from the Choose Toolbox Items dialog box. After the Calendar control is added to the Toolbox window, you can drag it to the form present in your application. When you add the Calendar control to the application, there are two assemblies that are automatically created and added to your application. Identify those assemblies. Which of the following statements you need to write in your Windows application code to use the Form class? __________ are loaded and executed within the process space of the host application. ______________ can be used in a component if you want to use it only inside the component class. When the ___________ method is called, the application will continue to run without interruption until the MethodNameCompleted event is raised. Which of the following classes, of the System.Threading namespace, limits the number of threads that can access a resource or pool of resources concurrently? You are asked to create an Out-of-process component that should enable the communication between an application and a database. Which of the following component types you will create? You are asked to create a .NET component that should have constructor to allow the developers to create instances of the component. Which of the following types of the constructor you need to create? You are asked to create a composite control for a Windows-based application. Which of the following classes you need to use to inherit for creating the composite control?

167 168 169

170

171

172

173

174

175

176

You are asked to create a Windows-based application that is implementing multiple threading by using the System.Threading namespace. You need to control the access to objects by granting a lock for an object to a single thread. Which of the following classes of the System.Threading namespace you need to use in your application? You are asked to create an application that should allow simultaneous execution of multiple tasks by using the various methods and events of the BackgroundWorker component. Which of the following methods you need to use to accomplish the desired task? Anthony is working as a developer in InfoSol Corp. He is asked to add a file type to the deployment project. He decides to perform the following steps: 1. Select the File Types on Target Machine node in the File Types editor. 2. Select Action-->Add File Type to add a new file type. Type the name of the document type in the name text box. 3. Select the newly created file type to associate extensions with the file type, Press the F4 key to open the Properties window. 4. Select the Extensions property and specify the file extensions to be associated with the file type. 5. Select the Command property in the Properties window to associate the file type with an executable file. The Select Item in Project dialog box opens 6. Select the executable file to be associated with the file type. However, his manager informs him that the preceding steps will not give the desired results. Do you agree?

177

John is creating a deployment project. He is asked to search a specific file on the target machine by using the Launch Conditions editor. He decides to perform the following steps: 1. Select the Requirements on Target Machine node in the Launch Conditions editor. 2. Select Action-->Add File Launch Condition. 3. Click the Search for File node, and press the F4 key to switch to the Properties window. 4. Select the FileName property in the Properties window, and type the name of the file, which you want to search on the target computer. 5. Select the Folder property, and specify the folders where the search for the file should start. 6. Click the Condition node to display a customized error message, in case the file does not exist. 7. Press the F4 key to view the properties for the Condition node. In the Message property, type the error message to be displayed if the file does not exist on the target computer. However, his manager informs him that the preceding steps are not correct. Do you agree?

178

John is working as a developer in Infosol Corp. He is asked to modify the application settings in the application configuration file to change the way the application runs. He is asked to change the URL where the assembly is stored. He decides to change the attribute of the <codeBase> element. However, his manager tells him that he is not required to make any changes in the <codeBase> element. Do you agree? John is working as a developer in Infosol Inc. He is asked to create an application that should implement the role-based security. He uses the Windows Principal to implement the Windows-based security. He writes the following code snippet in the application: ................ WindowsIdentity wId = WindowsIdentity.GetCurrent(); WindowsPrincipal = wPr.WindowsPrincipal(wId); ............... He gets the compile time error. Help him by providing the correct code snippet.

179

180

You are working as a developer in InfoGain Inc. Your manager has asked you to create a Windows-based application which should have the custom settings provided by the configuration file. The application should be able to access at run time. You are asked to create two custom settings 'setting1' and 'setting2'. Identify the correct code snippet that you need to add to the configuration file of the application.

181

You are working as a developer in Infogain Corp. You are asked to create an application that uses a specified version of the assembly, which is 1.0.0.0, at run time. However, the application needs to be redirected to run against a newer version, which is 2.0.0.0, of the assembly. In addition, the garbage collection should run concurrently on the same thread as that of the application. You need to make the necessary changes in the configuration file to accomplish the desired task. Identify the code snippet that you need to add to the configuration file.

182

You are working as a developer in Infogain Corp. You are asked to create an application that should have implemented the Windows Installer launch condition. Identify the correct steps that you need to perform to add a Windows Installer launch condition.

183

You are working as a developer in InfoSol Inc. You are asked to create a deployment project that should include the File Types Editor to enable the users to add or remove files. Identify the steps that you need to perform to include the file type to the deployment project.

184

You are working as a developer in Infosol Inc. You are part of the team that is developing a deployment project for the application that is created by the team. You are asked to set the environment variable named PATH on each target machine on which your application will execute. Identify the steps that you need to perform to accomplish the desired task.

185 186 187 188 189

Programs and libraries for .NET are packaged into units called ________. Which of the following commands is required to create a strong-named key pair and store it in a file using the sn.exe utility? Which of the following options can be used with the gacutil command to register the assembly to the GAC? Using the Visual Studio .NET deployment tools, you can deploy the applications that cannot be deployed by using the ______ command. Which of the following registry keys stores information about file extensions and their association with executable files? The Custom Actions editor contains ___________ sections. Which of the following elements is the root element of every configuration file used by the CLR and .NET Framework applications?

190 191

192

Which of the following section handlers of the .NET Framework returns a keyvalue pair configuration setting? Which of the following permission sets is the default permission set for all code that runs from an unknown location or origin? ___________ is the procedure of finding whether a user has rights to perform a specific action or not. You are asked to create an assembly by using the Visual Studio .NET IDE for VC#. Identify the type of assembly that you can create.

193 194 195

196 197

198

199

You are provided with the version number of an assembly, 6.4.0.3. Identify the minor version number. You are asked to create the deployment project. You need to add the .exe and .dll files to the deployment project. Which of the following editors you need to use to accomplish the desired task? You are asked to put the settings, of the third-party component used by both the client application and server application, at one place. In which of the following files, you will put the information about the component? You are asked to access configuration settings from the application. Which of the following methods you need to use to accomplish the desired task? John is working as an application developer in Infosol Inc. He is creating a deployment project. He is asked to add a sub folder to the deployment project with the help of the File System editor. He performs the following steps to add the sub folder: 1. Select a folder in the File System editor. 2. Select Action-->Add Special Folder-->Custom Folder. 3. Type the name of the newly created subfolder. However, he finds that the desired folder is not created. Help him to identify the error he made.

200

1, Convert.ToInt32

2, convert.ToInt32

3, Parse.ToInt32

4, Convert.ToInt

1, ER

2, Network

3, Hierarchical 3, Weak entity

4, Relational 4, Subentity

1 1

1, Independent entity 2, Dependent entity

1, One-to-Many Relationship 1, PROJECT

2, Many-to-One relationship 2, UNION

3, Many-to-Many Relationship 3, DIVIDE

4, One-to-One relationship 4, RESTRICT

1, Entities: Smith, 2, Entities: Smith 3, Entities: Smith, team Relationship: manage team Relationship: manage and evaluate Relationship: evaluate 1, One-to-One Relationship 1, one 1, Date of joining(19 Aug, 2008), Employee_ID(N0065), and Designation(Senior Software Engineer). 1, Hierarchical model 2, Many-to-One Relationship 2, two 2, Employee_ID(N0065) and Designation(Senior Software Engineer). 3, One-to-Many Relationship 3, three 3, Date of joining(19 Aug, 2008) and Employee_ID(N0065)

4, Entities: Smith, team Relationship: manage and evaluate 4, Many-to-Many Relationship 4, four 4, Employee_ID (N0065)

4 3 1

2, Conceptual model 3, Relational model

4, ER Model

1, Join

2, Intersect

3, Union

4, Product

1, one-to-one 1, Normalization 1, first

2, one-to-many 2, Renormalization 2, second

3, many-to-many 3, Functional Dependency 3, third

4, unnamed 4, Specialization 4, Boyce-Codd

4 1 1

1, BCNF

2, First normal form

3, Second normal form

4, Third normal form

1, Student Name

2, Student Roll Number 2, A table is said to be in second normal form when every attribute in a row is not functionally dependent on any particular key. 2,fourth

3, Student Address

4, Student Fathers' Name 4, A table is said to be in second normal form, when every attribute in a row is functionally dependent upon the whole key, and not just part of the key. 4, Boyce-Codd

1, A table is said to be in second normal form if Boyce-Codd normal form is applied to it.

3,A table is said to be in second normal form, when every attribute in a row is dependent on just part of the whole key.

1, first

3, third

1, Normalization 1, 1NF

2, Denormalization 2, 2NF

3,Generalization 3, 3NF

4, Specialization 4, BCNF

2 4

1, Account Details and Saving Account Details

2, Account Details , Current Account Details ,and Saving Account Details

3, Salary Account Details , Current Account Details ,and Saving Account Details

4, Account Details, Salary Account Details , Current Account Details ,and Saving Account Details

1, Project 1, Relational 1, denormalization 1, Each table should have an identifier.

2, Divide 2, Hierarchical 2, normalization 2, Each table should store data for a single type of entity.

3, Join 3, Network 3, generalization 3, There should be atleast one column that accepts a NULL value.

4, Union 4, ER 4, specialization 4, The repetition of values or columns should be avoided.

4 1 4 3

1, It identifies its owner entity. 1, Employee Name

2, It refers to another 3, It simplifies the entity. description of an entity. 2, Designation Code 3, Email ID

4, It cannot refer to another entity. 4, Phone Number

1, Cardinality 1, Employee ID +Account Number

2, Tuple 2, Employee ID + Department ID +Account Number 2, Second Normal Form

3, Relation 3, Employee ID+ Department ID + Designation ID 3, Fourth Normal Form

4, Degree 4, Employee ID+ Department ID + Designation ID +Account Number 4, Boyce-Codd Normal Form

3 1

1, First Normal Form

1, 1NF

2, 2NF

3, 3NF

4, BCNF

1, who 1, Ctrl + C keys

2, talk 2, Ctrl + X keys

3, pine 3, Ctrl + S keys

4, elm 4, Ctrl + N keys

2 1

1, 1. Identify the user with whom she needs to communicate. 2. Check whether the user is online and ready to receive messages. 3. Identify the mechanism for communication. 4. Identify the contents of the message.

2, 1. Identify the user with whom she needs to communicate. 2. Identify the mechanism for communication. 3. Check whether the user is online and ready to receive messages. 4. Identify the contents of the message.

3, 1. Identify the mechanism for communication. 2. Identify the user with whom she needs to communicate. 3. Check whether the user is online and ready to receive messages. 4. Identify the contents of the message.

4, 1. Identify the contents of the message. 2. Identify the user with whom she needs to communicate. 3. Check whether the user is online and ready to receive messages. 4. Identify the mechanism for communication.

1, who -t

2, who -T

3, who -h

4, who -H

1, pine 1, MUA deciphers the recipient's address and delivers the mail to the recipient's mailbox. 1, 1. Type pine at the shell prompt, and press Enter. 2. Press C. 3. Select the relevant mail by using the up and down-arrow keys. 4. Press Enter. 1, Yes, Julia has pressed the correct key. 1, S 1, By checking the contents of the sent folder. 1, 1. Press the M key. 2. Select the Folders List option, and press Enter. 3. Select the sent-mail option from the Folders List by using the Tab key, and press Enter.

2, elm

3, mail

4, sendmail

4 4

2, MUA manages the 3, MUA displays a 4, MUA is used to sending and receiving failure message if read the message at of mails. there is any problem the recipient's end. in delivering the mail. 2, 1. Type pine at the shell prompt, and press Enter. 2. Press A. 3. Select the relevant mail by using the up and down-arrow keys. 4. Press Enter. 2, No, Julia needs to press the L key. 3, 1. Type pine at the shell prompt, and press Enter. 2. Press L. 3. Select the relevant mail by using the up and down-arrow keys. 4. Press Enter. 3, No, Julia needs to press the F key. 4, 1. Type pine at the shell prompt, and press Enter. 2. Press I. 3. Select the relevant mail by using the up and down-arrow keys. 4. Press Enter. 4, No, Julia needs to press the I key.

2, C 2, By checking the contents of the Folders list. 2, 1. Select the Folders List option, and press Enter. 2. Press the M key. 3. Select the sentmail option from the Folders List by using the Tab key, and press Enter.

3, O 3, By checking the contents of the sentmail folder. 3, 1. Select the Folders List option, and press Enter. 2. Select the sentmail option from the Folders List by using the Tab key, and press Enter. 3. Press the M key.

4, P 4, By checking the contents of the Inbox. 4, 1. Select the sentmail option from the Folders List by using the Tab key, and press Enter. 2. Press the M key. 3. Select the Folders List option, and press Enter.

1 3

1, At step 6, the Ctrl 2, At step 6, the Ctrl 3, At step 6, the Ctrl 4, At step 6, the Ctrl and O keys should be and J keys should be and S keys should be and X keys should be pressed to send the E- pressed to send the E- pressed to send the E- pressed to send the Email. mail. mail. mail.

1, A file name should 2, A file name can be unique within a have maximum of directory. 286 characters.

1, i

2, w

3, A file name can contain digits, letters, and special characters except backslash. 3, v

4, A file name should typically reflect the contents of a file.

4, s

1, 1. Press the Esc key. 2. Type :w /home/Complaints/my file.txt, and press Enter. 3. Type :q, and press Enter. 1, i

2, 1. Press the Esc key. 2. Type :w /home/Complaints/my file.txt, and press Enter. 3. Type :c, and press Enter. 2, a

3, 1. Press the Esc key. 2. Type :s /home/Complaints/my file.txt, and press Enter. 3. Type :c, and press Enter. 3, R

4, 1. Press the C key. 2. Type :w /home/Complaints/my file.txt, and press Enter. 3. Type :c, and press Enter. 4, r

4 1

1, You need to press 2, You need to press 3, You need to press 4, You need to press the j command to the h command to the l command to the o command to move to the third line. move to the third line. move to the third line. move to the third line.

1, ls

2, ls bill

3, ls /bill

4, ls /home

1, cp /home/math/math00[1 *3].2009 /home/backup

2, cp 3, cp /home/backup 4, cp /home/math/math00[1 /home/math/math00[1-/home/math/math00[1?3].2009 3].2009 3].2009 /home/backup /home/backup 3, No, the correct command is: rm myfile001.txt myfile002.txt 4, No, the correct command is: cp /home/mydir/myfile00 1.txt /home/mydir/myfile00 2.txt

1, Yes, the given 2, No, the correct command will rename command is: the file. mv /home/mydir/myfile00 1.txt /home/mydir/myfile00 2.txt

1, Client tier

2, Server tier

3, Business tier

4, Database tier

1, Service Broker

2, Full-text Search

3, Replication 3, Standard type system 3, CLR integration

1, Automatic memory 2, Support for Web management services 1, Service-oriented architecture 1, Data Manipulation Language 1, floor 1, SELECT LoginID, convert(char,BirthDat e) AS 'Birth Date' FROM HumanResources.Em ployee 1, COMPUTE 2, Scalability

4, Notification Services 4, Language interoperability 4, Support for data migration and analysis 4, Data Definition Language 4, Abs 4, SELECT LoginID, convert(BirthDate(2), char(6)) AS 'Birth Date' FROM HumanResources.Em ployee 4, PIVOT

1 2

2, Data Control Language 2, power 2,SELECT LoginID, convert(char,BirthDat e,2) AS 'Birth Date' FROM HumanResources.E mployee 2, GROUP BY

3, Data Query Language 3, radians 3, SELECT LoginID, convert(char(2),Birth Date) AS 'Birth Date' FROM HumanResources.E mployee 3, COMPUTE BY

1 2

1, inner 1, >ALL 1, SELECT EmpID 'Employee ID', EmpTitle 'Designation' FROM HumanResources.Em ployee 1, SELECT EmployeeID, Title, TotalLeaves FROM HumanResources.Em ployee WHERE TotalLeaves > 20

2, outer 2, >ANY 2, SELECT 'Employee ID' EmpID, 'Designation' EmpTitle FROM HumanResources.E mployee 2, SELECT EmployeeID, Title, TotalLeaves FROM HumanResources.E mployee WHERE TotalLeaves != 20

3, cross 3, =ANY 3, SELECT EmpID = 'Employee ID', EmpTitle = 'Designation' FROM HumanResources.E mployee 3, SELECT EmployeeID, Title, TotalLeaves FROM HumanResources.E mployee WHERE TotalLeaves < 20

4, equi 4, <>ALL 4, SELECT 'Employee ID' AS EmpID, 'Designation' AS EmpTitle FROM HumanResources.Em ployee 4, SELECT EmployeeID, Title, TotalLeaves FROM HumanResources.Em ployee WHERE TotalLeaves <= 20

2 1 1

1, SELECT upper(Name), DepartmentID, GroupName FROM HumanResources.De partment

2, SELECT 'Department Name'= Name, DepartmentID, GroupName FROM HumanResources.De partment

3, SELECT 'Department Name'= patindex(Name), DepartmentID, GroupName FROM HumanResources.De partment 3, SELECT ProductId, ListPrice, row_number() OVER(ORDER BY ListPrice asc) AS rank FROM Production.Product 3, SELECT e.EmployeeID, d.Name FROM HumanResources.De partment d EQUI JOIN HumanResources.E mployeeDepartmentH istory e ON e.DepartmentID = d.DepartmentID 3, SELECT dateadd (yy, HireDate, getdate()) AS 'Age' FROM HumanResources.E mployee

4, SELECT 'Department Name'= upper(Name), DepartmentID, GroupName FROM HumanResources.De partment 4, SELECT ProductId, ListPrice, rank() OVER(ORDER BY ListPrice asc) AS rank FROM Production.Product 4, SELECT e.EmployeeID, d.Name FROM HumanResources.De partment d CROSS JOIN HumanResources.Em ployeeDepartmentHis tory e ON e.DepartmentID = d.DepartmentID 4, SELECT day (HireDate) AS 'Age' FROM HumanResources.Em ployee

1, SELECT ProductId, ListPrice, rank() OVER(ORDER BY ListPrice desc) AS rank FROM Production.Product 1, SELECT e.EmployeeID, d.Name FROM HumanResources.De partment d JOIN HumanResources.Em ployeeDepartmentHist ory e ON e.DepartmentID = d.DepartmentID 1, SELECT datepart (yy, HireDate) AS 'Age' FROM HumanResources.Em ployee

2, SELECT ProductId, ListPrice, dense_rank() OVER(ORDER BY ListPrice desc)AS rank FROM Production.Product 2, SELECT e.EmployeeID, d.Name FROM HumanResources.De partment d OUTER JOIN HumanResources.E mployeeDepartmentH istory e ON e.DepartmentID = d.DepartmentID 2, SELECT datediff (yy, HireDate, getdate()) AS 'Age' FROM HumanResources.E mployee

1, SELECT EmployeeID FROM HumanResources.Em ployeeAddress WHERE AddressID IN (SELECT AddressID FROM Person.Address WHERE City = 'Bothell')

2, SELECT EmployeeID FROM HumanResources.E mployeeAddress WHERE AddressID EXISTS (SELECT AddressID FROM Person.Address WHERE City = 'Bothell')

3, SELECT AddressID FROM Person.Address WHERE City = 'Bothell'

4, SELECT EmployeeID FROM HumanResources.Em ployeeAddress e JOIN Person.Address a ON e.AddressID=a.Addre ssID

1, Yes, the query will display the required report.

1, Yes, the query will display the required report.

1, Yes, the query will display the required report.

2, No, the correct query is: SELECT EmployeeID, Title, SickLeaveHours FROM HumanResources.E mployee WHERE SickLeaveHours >ALL (SELECT SickLeaveHours FROM HumanResources.E mployee WHERE Title ='Stocker') 2, No, the correct query is: SELECT EmployeeId FROM HumanResources.E mployee WHERE SickLeaveHours > (SELECT AVG(SickLeaveHours ) FROM HumanResources.E mployee WHERE Title = 'Network Administrator') 2, No, the correct query is: SELECT Title, 'Average Sick Leave Hours' = avg(SickLeaveHours) FROM HumanResources.E mployee WHERE SickLeaveHours > 20 AND avg(SickLeaveHours) >35 2, model 2, .ndf 2, sp_helpdb

3, No, the correct query is: SELECT EmployeeID, Title, SickLeaveHours FROM HumanResources.E mployee WHERE SickLeaveHours <>ALL (SELECT SickLeaveHours FROM HumanResources.E mployee WHERE Title ='Stocker') 3, No, the correct query is: SELECT EmployeeId FROM HumanResources.E mployee WHERE Avg(SickLeaveHours) > (SELECT SickLeaveHours FROM HumanResources.E mployee WHERE Title = 'Network Administrator') 3, No, the correct query is: SELECT Title, 'Average Sick Leave Hours' = avg(SickLeaveHours) FROM HumanResources.E mployee WHERE avg(SickLeaveHours) >55

1, master 1, .mdf 1, sp_name

3, msdb 3, .ldf 3, sp_rename 3, ALTER DATABASE

4, No, the correct query is: SELECT EmployeeID, Title, SickLeaveHours FROM HumanResources.Em ployee WHERE SickLeaveHours =ANY (SELECT SickLeaveHours FROM HumanResources.Em ployee WHERE Title ='Stocker') 4, No, the correct query is: SELECT EmployeeId FROM HumanResources.Em ployee WHERE SickLeaveHours = (SELECT SickLeaveHours FROM HumanResources.Em ployee WHERE Title = 'Network Administrator') 4, No, the correct query is: SELECT Title, 'Average Sick Leave Hours' = avg(SickLeaveHours) FROM HumanResources.Em ployee WHERE SickLeaveHours > 20 GROUP BY Title HAVING avg(SickLeaveHours) >35 4, Resource 4, .sql 4, sp_renamedb 4, DROP DB

2 1 4 1

1, DROP DATABASE 2, DELETE DATABASE

1, query 1, Foreign Key

2, value 2, Check

3, modify 3, Unique

4, exist 4, Default

3 2

1, ALTER TABLE

2, DROP TABLE

3, CREATE TABLE

4, TRUNCATE TABLE

1, UPDATE

2, ALTER

3, INSERT

4, SELECT

1, Parse the XML document 1, RAW

2, Retrieve a rowset from the tree 2, AUTO

3, Delete the data from the rowset 3, PATH

4, Clear the memory

4, EXPLICIT

1, CREATE TABLE Orders ( OrderID int NOT NULL, OrderDate datetime, OrderPrice int ) 1, Create Partition Table EmpPayDetails ( EmployeeID int, RateChangeDate datetime, Rate money, PayFrequency tinyint, ModifiedDate datetime )ON RateChngDate(RateC hangeDate)

2, CREATE TABLE Orders ( OrderID int NOT NULL, OrderDate datetime, OrderPrice int, ) 2, Create Table EmpPayDetails ( EmployeeID int, RateChangeDate datetime, Rate money, PayFrequency tinyint, ModifiedDate datetime )ON RateChngDate(RateC hangeDate)

3, CREATE TABLE Orders ( OrderID int, OrderDate datetime, OrderPrice int ) 3, Create Table EmpPayDetails ( EmployeeID int, RateChangeDate datetime, Rate money, PayFrequency tinyint, ModifiedDate datetime )ON RateChngDate

4, CREATE TABLE Orders ( OrderID int NULL, OrderDate datetime, OrderPrice int ) 4, Create Table EmpPayDetails ( EmployeeID int, RateChangeDate datetime, Rate money, PayFrequency tinyint, ModifiedDate datetime )ON RateChangeDate(Rat eChngDate)

1, INSERT Address (AddressID, AddressLine1, AddressLine2, StateProvinceID, PostalCode) VALUES (104, '24, Herbon Apts',' Arthor Lane', 56, '607009') 1, 1. Parse the XML document. 2. Store the data from the rowset. 3. Retrieve a rowset from the tree. 4. Clear the memory.

2, INSERT INTO Address (104, '24, Herbon Apts',' Arthor Lane', 56, '607009')

3, INSERT VALUES (104, '24, Herbon Apts',' Arthor Lane', 56, '607009')

4, INSERT Address VALUE (104, '24, Herbon Apts',' Arthor Lane', 56, '607009')

2, 1. Store the data from the rowset. 2. Parse the XML document. 3. Clear the memory. 4. Retrieve a rowset from the tree. 1, <row 2, <row> EmployeeID="1" <EmployeeID>1</Em ContactID="1209" ployeeID> LoginID="adventure- <ContactID>1209</C works\guy1" ontactID> Title="Production <LoginID>adventureTechnician - WC60" works\guy1</LoginID /> > <row EmployeeID="2" <Title>Production ContactID="1030" Technician LoginID="adventure- WC60</Title> works\kevin0" </row> Title="Marketing <row> Assistant" /> <EmployeeID>2</Em ployeeID> <ContactID>1030</C ontactID> <LoginID>adventureworks\kevin0</LoginI D> <Title>Marketing Assistant</Title> </row> 1, 1 2, 2 1, IF...ELSE 2, CASE

3, 1. Parse the XML document. 2. Retrieve a rowset from the tree. 3. Store the data from the rowset. 4. Clear the memory. 3, <Employee EmployeeID="1" ContactID="1209" LoginID="adventureworks\ guy1" Title="Production Technician - WC60" /> <Employee EmployeeID="2" ContactID="1030" LoginID="adventureworks\ kevin0" Title="Marketing Assistant" />

3, 4 3, WHILE

4, 1. Clear the memory. 2. Store the data from the rowset. 3. Parse the XML document. 4. Retrieve a rowset from the tree. 4, <Employee> <EmployeeID>1</Em ployeeID> <ContactID>1209</C ontactID> <LoginID>adventureworks\guy1</LoginID > <Title>Production Technician WC60</Title> </Employee> <Employee> <EmployeeID>2</Em ployeeID> <ContactID>1030</C ontactID> <LoginID>adventureworks\kevin0</LoginI D> <Title>Marketing Assistant</Title> </Employee> 4, 249 4, FOREACH

1 3

1, text 1, After Triggers 1, Lost updates

2, ntext

3, cursor

4, float 4, Recursive Triggers 4, Phantom reads

4 1 1

2, Instead of Triggers 3, Nested Triggers 2, Uncommitted dependency 3, Inconsistent analysis

1, PAD_INDEX

2, FILLFACTOR

3, ONLINE

4, DROP_EXISTING

1, XML indexes can be created only on XML columns.

3,XML indexes can only be added to tables, views, tablevalued variables with XML columns or XML variables. 1, When a batch is 2, If any compilation 3, You can use the submitted to the SQL error occurs, none of EXECUTE statement Server, it is compiled the statements in the in a batch when it is to create an execution batch is executed. not the first statement plan. of the batch. 1, Transaction 2, Batch 3, Trigger

2, XML indexes only support indexing a single XML column.

4, XML indexes created on a table do not allow you to modify the primary key. 4, You can define and use the CHECK constraint in the same batch.

4, Stored Procedure

1, SET LOCK_TIMEOUT 5000 1, 1. Enable the fulltext search in the database. 2. Create a full-text catalog. 3. Create a unique index. 4. Create a full-text index. 5. Populate the fulltext index.

2, SET 3, SET 4, SET LOCK_TIMEOUT 500 LOCK_TIMEOUT 50 LOCK_TIMEOUT 5 2, 1. Enable the fulltext search in the database. 2. Create a unique index. 3. Create a full-text catalog. 4. Create a full-text index. 5. Populate the fulltext index. 3, 1. Create a full-text catalog. 2. Enable the full-text search in the database. 3. Create a unique index. 4. Create a full-text index. 5. Populate the fulltext index. 4, 1. Create a full-text index. 2. Create a full-text catalog. 3. Enable the full-text search in the database. 4. Create a unique index. 5. Populate the fulltext index.

1, CREATE VIEW HumanResources.vw EmployeeDepData WITH SCHEMABINDING AS SELECT e.EmployeeID, MaritalStatus, DepartmentID FROM HumanResources.Em ployee e JOIN HumanResources.Em ployeeDepartmentHist ory d ON e.EmployeeID = d.EmployeeID 1, BEGIN TRY INSERT INTO HumanResources.Cu stomer VALUES ('C001', 1979, 'robertl', 16, 'M') END TRY BEGIN CATCH SELECT 'There was an error! ' + ERROR_MESSAGE() AS ErrorMessage, ERROR_LINE() AS ErrorLine END CATCH GO

2, ALTER VIEW HumanResources.vw EmployeeDepData WITH SCHEMABINDING AS SELECT e.EmployeeID, MaritalStatus, DepartmentID FROM HumanResources.E mployee e JOIN HumanResources.E mployeeDepartmentH istory d ON e.EmployeeID = d.EmployeeID 2, BEGIN TRY INSERT INTO HumanResources.Cu stomer VALUES ('C001', 1979, 'robertl', 16, 'M') END TRY BEGIN CATCH SELECT 'There was an error! ' + ERROR_MESSAGE() AS ErrorMessage, ERROR_NUMBER() AS ErrorLine END CATCH GO

3, ALTER VIEW HumanResources.vw EmployeeDepData WITH SCHEMA AS SELECT e.EmployeeID, MaritalStatus, DepartmentID FROM HumanResources.E mployee e JOIN HumanResources.E mployeeDepartmentH istory d ON e.EmployeeID = d.EmployeeID

4, SELECT VIEW HumanResources.vw EmployeeDepData WITH SCHEMABINDING AS SELECT e.EmployeeID, MaritalStatus, DepartmentID FROM HumanResources.Em ployee e JOIN HumanResources.Em ployeeDepartmentHis tory d ON e.EmployeeID = d.EmployeeID 3, BEGIN TRY 4, BEGIN TRY INSERT INTO INSERT INTO HumanResources.Cu HumanResources.Cu stomer stomer VALUES ('C001', VALUES ('C001', 1979, 'robertl', 16, 1979, 'robertl', 16, 'M') 'M') END TRY END TRY BEGIN CATCH BEGIN CATCH SELECT 'There was SELECT 'There was an error! ' + ERROR() an error! ' + ERROR() AS ErrorMessage, AS ErrorMessage, ERROR_NUMBER() ERROR_LINE() AS AS ErrorLine ErrorLine END CATCH END CATCH GO GO

1, CREATE PROCEDURE prcDisplayEmployeeS tatus @EmpId int AS BEGIN DECLARE @DepName char(50) DECLARE @ShiftId int DECLARE @ReturnValue int EXEC @ReturnValue = prcGetEmployeeDetai l @EmpId, @DepName OUTPUT, @ShiftId OUTPUT IF (@ReturnValue = 0) BEGIN PRINT 'The details of an employee with ID: ' + convert(char(10), @EmpId) PRINT 'Department Name: ' + @DepName PRINT 'Shift ID: ' + convert( char(1), @ShiftId) 1, CREATE TRIGGER [HumanResources].[tr gMagic] ON [HumanResources].[E mployeeDepartmentH istory] OF UPDATE AS BEGIN SELECT * FROM Deleted SELECT * FROM Inserted END; 1, Web service 1, Web service

2, CREATE PROCEDURE prcDisplayEmployeeS tatus @EmpId int AS BEGIN DECLARE @DepName DECLARE @ShiftId DECLARE @ReturnValue EXEC @ReturnValue = prcGetEmployeeDetai l @EmpId, @DepName OUTPUT, @ShiftId OUTPUT IF (@ReturnValue = 0) BEGIN PRINT 'The details of an employee with ID: ' + convert(char(10), @EmpId) PRINT 'Department Name: ' + @DepName PRINT 'Shift ID: ' + convert( char(1), @ShiftId) END 2, CREATE TRIGGER [HumanResources].[tr gMagic] ON [HumanResources].[ EmployeeDepartment History] FOR UPDATE AS BEGIN SELECT * FROM Deleted SELECT * FROM Inserted END; 2, Service-Oriented Architecture 2, Service-Oriented Architecture

3, CREATE PROCEDURE prcDisplayEmployeeS tatus @EmpId int BEGIN DECLARE @DepName char(50) DECLARE @ShiftId int DECLARE @ReturnValue int EXEC @ReturnValue = prcGetEmployeeDetai l @EmpId, @DepName OUTPUT, @ShiftId OUTPUT IF (@ReturnValue = 0) BEGIN PRINT 'The details of an employee with ID: ' + convert(char(10), @EmpId) PRINT 'Department Name: ' + @DepName PRINT 'Shift ID: ' + convert( char(1), @ShiftId) END 3, CREATE TRIGGER [HumanResources].[tr gMagic] ON [HumanResources].[ EmployeeDepartment History] AFTER UPDATE AS BEGIN SELECT * FROM Deleted SELECT * FROM Inserted END; 3, HTTP 3, HTTP

4, CREATE PROCEDURE prcDisplayEmployeeS tatus @EmpId int AS BEGIN DECLARE @DepName char(50) DECLARE @ShiftId int EXEC @ReturnValue = prcGetEmployeeDetai l @EmpId, @DepName OUTPUT, @ShiftId OUTPUT IF (@ReturnValue = 0) BEGIN PRINT 'The details of an employee with ID: ' + convert(char(10), @EmpId) PRINT 'Department Name: ' + @DepName PRINT 'Shift ID: ' + convert( char(1), @ShiftId) END ELSE 4, CREATE TRIGGER [HumanResources].[tr gMagic] ON [HumanResources].[E mployeeDepartmentH istory] INSTEAD OF UPDATE AS BEGIN SELECT * FROM Deleted SELECT * FROM Inserted END; 4, Personal Desktop Assistant 4, SOAP

1 2

1, SOAP 1, Message

2, WSDL 2, Service

3, UDDI 3, Contract 3, Stored procedure

4, HTTP 4, Queue 4, Trigger

4 2 1

1, Managed database 2, Transaction objects

1, ALTER DATABASE AdventureWorks ENABLE_BROKER

2, ALTER AdventureWorks ENABLE_BROKER

1,CREATE 2, CREATE MESSAGE TYPE MESSAGE TYPE myMessage myMessage VALIDATION = WELL_FORMED_XM L 1, MessageType 2, Contract

3, ALTER DATABASE AdventureWorks ENABLE_SERVICE_ BROKER 3, CREATE MESSAGE TYPE myMessage VALIDATION = VALID_XML WITH SCHEMA COLLECTION 3, Service

4, ALTER DATABASE AdventureWorks ENABLE_SERVICEB ROKER 4, CREATE MESSAGE TYPE myMessage VALIDATION = EMPTY

4, Queue

1, sp_configure CLR_ENABLED, 1; GO RECONFIGURE; GO 1, CREATE ASSEMBLY CLRIntegration FROM 'C:\CLRIntegration.dll' WITH PERMISSION_SET = ANY

2, sp_configure CLR ENABLED, 1; GO RECONFIGURE; GO 2, CREATE ASSEMBLY CLRIntegration FROM 'C:\CLRIntegration.dll' WITH PERMISSION_SET = EXTERNAL_ACCES S

3, sp_configure CLR_ENABLE, 1; GO RECONFIGURE; GO 3, CREATE ASSEMBLY CLRIntegration FROM 'C:\CLRIntegration.dll' WITH PERMISSION_SET = UNSAFE

4, sp_configure ENABLE_CLR, 1; GO RECONFIGURE; GO 4, CREATE ASSEMBLY CLRIntegration FROM 'C:\CLRIntegration.dll' WITH PERMISSION_SET = EXTERNAL

1, CREATE CONTRACT sendContract ( sendMessage BY INITIATOR );

2, CREATE CONTRACT sendContract ( sendMessage SENT BY INITIATOR ONLY );

3, CREATE CONTRACT sendContract ( sendMessage SENT BY ANY );

4, CREATE CONTRACT sendContract ( sendMessage SENT BY INITIATOR );

1, T-SQL 1, This error occurs when the port 8080 is being used by some other service and is not free to host any other service. To resolve the error, you need to use the following statement: PORTS = ( CLEAR ), Clear_Port = 8080, SITE = 'localhost' )

2, XML file 2, This error occurs when the authentication type used is INTEGRATED. To resolve the error, you need to use the following statement: AUTHENTICATION = (BASIC)

3, CLR integration 3, This error occurs when an inline XSD schema will be returned for the current Web method in the SOAP responses. To resolve the error, you need to use the following statement: SCHEMA= NONE

4, Functions 4, This error occurs when the WSDL document generation is not supported for this endpoint. To resolve the error, you need to use the following statement: WSDL = NONE

3 1

1, CREATE SERVICE sendService ON QUEUE [dbo].[sendQueue] (sendContract)

2, CREATE SERVICE sendService ON QUEUE [dbo].[sendQueue] CONTRACT (sendContract)

3, CREATE SERVICE sendService ON QUEUE [dbo].[sendQueue]

4, CREATE SERVICE sendService ON CONTRACT (sendContract) [dbo].[sendQueue]

1, There is no error in the code and managed stored procedure will be created successfully.

2, No, the correct statement to create the managed stored procedure is: CREATE PROCEDURE clrproc AS EXTERNAL NAME CLRStoredProcedure .XMLProc.convXml

3, No, the correct statement to create the managed stored procedure is: CREATE PROCEDURE clrproc AS EXTERNAL NAME ConvertXML.XMLPro c.convXml

4, No, the correct statement to create the managed stored procedure is: CREATE PROCEDURE clrproc AS EXTERNAL NAME ConvertXMLAssembl y.[CLRStoredProcedu re.XMLProc].convXml

1, CREATE FUNCTION SalaryCalculation(@E mpID as nVarchar(3)) AS EXTERNAL NAME CalcSalAssembly.[Em ployeePay.Pay].calcS alary

2, CREATE FUNCTION SalaryCalculation RETURNS nVarchar AS EXTERNAL NAME CalcSalAssembly.[E mployeePay.Pay].calc Salary

3, CREATE FUNCTION SalaryCalculation(@E mpID as nVarchar(3)) RETURNS nVarchar(10) AS EXTERNAL NAME CalcSal.[EmployeePa y.Pay].calcSalary

4, CREATE FUNCTION SalaryCalculation(@E mpID as nVarchar(3)) RETURNS nVarchar(10) AS EXTERNAL NAME CalcSalAssembly.[Em ployeePay.Pay].calcS alary

1, CREATE TRIGGER EmailValidation OF INSERT ON UserNameAudit AS EXTERNAL NAME ValidateEmailAssemb ly.trgMail.MailValid

2, CREATE TRIGGER EmailValidation ON UserNameAudit FOR INSERT AS EXTERNAL NAME ValidateEmailAssemb ly.trgMail.MailValid

3, CREATE TRIGGER EmailValidation FOR INSERT ON UserNameAudit AS EXTERNAL NAME ValidateEmailAssemb ly.trgMail.MailValid

4, CREATE TRIGGER EmailValidation ON UserNameAudit FOR INSERT AS EXTERNAL NAME ValidateEmailAssemb ly.trgMail

1, CREATE QUEUE sendQueue WITH STATUS = ON

2, CREATE QUEUE sendQueue WITH STATUS = OFF RETENTION = ON

3, CREATE QUEUE sendQueue WITH ACTIVATION = ON

4, CREATE QUEUE sendQueue WITH ACTIVATION = ON RETENTION = ON

1, DECLARE 2, DECLARE @dialog_handle @dialog_handle; UNIQUEIDENTIFIER; BEGIN DIALOG CONVERSATION BEGIN DIALOG @dialog_handle CONVERSATION FROM @dialog_handle SERVICE FROM [sendMessage] TO SERVICE SERVICE [sendMessage] TO 'receiveMessage' ON SERVICE CONTRACT 'receiveMessage' ON [sendContract]; CONTRACT [sendContract]; 1, SEND ON 2, SEND ON CONVERSATION CONVERSATION @dialog_handle FOR @dialog_handle MESSAGE TYPE MESSAGE TYPE [sendMessage] [sendMessage] ('<name>John</name ('<name>John</name >') >') 1, Common Language 2, Windows Forms Runtime 1, Size 2, StartPosition

3, DECLARE 4, DECLARE @dialog_handle @dialog_handle UNIQUEIDENTIFIER; UNIQUEIDENTIFIER; BEGIN DIALOG CONVERSATION @dialog_handle FROM SERVICE [sendMessage] TO SERVICE 'receiveMessage' ON [sendContract] CONTRACT; 3, SEND ON CONVERSATION @dialog_handle MESSAGE [sendMessage] ('<name>John</name >') 3, .NET framework base classes 3, WindowState BEGIN CONVERSATION @dialog_handle FROM SERVICE [sendMessage] TO SERVICE 'receiveMessage' ON CONTRACT [sendContract]; 4, SEND ON CONVERSATION @dialog_handle FOR MESSAGE [sendMessage] ('<name>John</name >') 4, ASP.NET

4, Text

1, Deactivate 1, Sorted 1, LinkLabel Control 1, DocumentTitle 1, Parse.ToInt32

2, FormClosed 2, SelectionMode 2, TextBox Control 2, Value 2, DateTime.Parse

3, Click 3, SelectedIndex

4, Load 4, SelectedItem

1 2 3 3 3 2 4

3, ComboBox Control 4, ListBox Control 3, Text 3, Convert.ToInt32 4, Font 4, Convert.ToDateTime 4, StatusStrip Class

1, ErrorProvider Class 2, MessageBox Class 3, ToolStrip Class 1, Select Debug-2, Select Window->Windows->Error List from the >Breakpoints from the Menu bar. Menu bar.

3, Select Debug-4, Select View-->Error >Exceptions from the List from the Menu Menu bar. bar.

1, .................... ...................... listBox1.Items.Add("Ri ce"); listBox1.Items.Add("Fl our"); ................................... ... .................................. 1, button1.Text = "Submit Details";

2, .................... 3, .................... ...................... ...................... listBox1.Add("Rice"); comboBox1.Items.Ad d("Rice"); listBox1.Add("Flour"); comboBox1.Items.Ad d("Flour"); ................................... ................................... ... ... .................................. .................................. 2, button1.Name = "Submit Details"; 3, button1.Tag = "Submit Details";

4, .................... ...................... comboBox1.Add("Ric e"); comboBox1.Add("Flo ur"); ................................... ... .................................. 4, button1.TextAlign = "Submit Details";

1, public partial class 2, public partial class 3, public partial class Form1 : Form Form1 : Form Form1 : Form { { { int BillAmount; int BillAmount; int BillAmount; Button btn = new Button btn = new Button(); Button(); public Form1() public Form1() public Form1() { { { InitializeComponent(); InitializeComponent(); InitializeComponent(); btn.Click += btn.Click += new new } EventHandler(btn_Cli EventHandler(btn_Cli private void ck); ck); btn_Click(object } } sender, EventArgs private void private void e) btn_Click(object btn_Click(object { sender, EventArgs sender, EventArgs Random rnd = e) e) new Random(); { { int x = Random rnd = Random rnd = rnd.Next(5,35); new Random(); new Random(); int x = int x = MessageBox.Show(" rnd.Next(5,35); rnd.Next(5,35); Congratulations!!!!! You get "+x+"% MessageBox.Show(" MessageBox.Show(" discount"); Congratulations!!!!! Congratulations!!!!! } You get "+x+"% You get "+x+"% private void discount"); discount"); button1_Click(object } } sender, EventArgs private void private void e) button1_Click(object button1_Click(object { sender, EventArgs

4, public partial class Form1 : Form { int BillAmount; Button btn = new Button(); public Form1() { InitializeComponent(); btn.Click += new EventHandler(btn_Cli ck); } private void btn_Click(object sender, EventArgs e) { Random rnd = new Random(); int x = rnd.Next(5,35); MessageBox.Show(" Congratulations!!!!! You get "+x+"% discount"); } private void button1_Click(object

1, private void textBox1_Validating(o bject sender, CancelEventArgs e) {

2, private void textBox1_Validating(o bject sender, CancelEventArgs e) {

3, private void textBox1_Validating(o bject sender, CancelEventArgs e) {

4, private void textBox1_Validating(o bject sender, CancelEventArgs e) { if(textBox1.Text.Lengt h<6) { MessageBox.Show("L ength of the Password is not valid"); }

if(textBox1.Text.Lengt if(Convert.ToInt32(tex if(Convert.ToDateTim h<=6) tBox1.Text)<6) e(textBox1.Text.Leng { { th)<6) { MessageBox.Show("L MessageBox.Show(" ength of the Length of the MessageBox.Show(" Password is not Password is not Length of the valid"); valid"); Password is not } } valid"); } 1, ASP.NET 2, .NET Framework base classes 2, Auto hide 3, JIT Compiler

4, Common Language Runtime

1, Floating

3, Tabbed navigation 4, Docking

1, Size

2, StartPosition

3, WindowState

4, BackgroundImage

1, Activate()

2, 3, Show() SetDesktopLocation()

4, Close()

1, Dialog Box Control 2, Label Control 1, Static linking 1, ColorDialog Class 1, MergeIndex 1, PrintPageEventArgs Class 1, PageSetupDialog class 1, AccessibleName 2, Dynamic linking 2, FontDialog Class 2, MergeAction 2, PrintDialog Class

3, Button Control 3, Execution 3, FileDialog Class 3, ActiveMdiChild 3, Graphics Class

4, Textbox Control 4, Compilation 4, PrintDialog Class 4, IsMdiContainer 4, PrintDocument Class 4, PrintDocument class 4, TabIndex

1 2 2 4 4

2, PageSettings class 3, PrintDialog class 2, 3, AccessibleRole AccessibleDescriptio n

1 3

1, private void Background_Click(obj ect sender, EventArgs e) { ColorDialog colorDialog1 = new ColorDialog();

2, ColorDialog CDialog; private void Background_Click(obj ect sender, EventArgs e) {

3, private void Background_Click(obj ect sender, EventArgs e) {

4, ColorDialog CDialog = new ColorDialog(); private void Background_Click(obj ect sender, EventArgs colorDialog1.ShowDi e) alog(); { textBox1.BackColor = CDialog.ShowDialog() colorDialog1.Color; ; } textBox1.BackColor = private void CDialog.Color; Foreground_Click(obj } ect sender, private void EventArgs e) Foreground_Click(obj { ect sender, EventArgs e) colorDialog1.ShowDi { alog(); CDialog.ShowDialog() textBox1.ForeColor = ; colorDialog1.Color; } textBox1.ForeColor = CDialog.Color; }

CDialog.ShowDialog( colorDialog1.ShowDia ); log(); textBox1.BackColor = textBox1.BackColor = CDialog.Color; colorDialog1.Color; } } private void Foreground_Click(obj private void ect sender, Foreground_Click(obj EventArgs e) ect sender, EventArgs { e) { CDialog.ShowDialog( ColorDialog ); colorDialog2 = new ColorDialog(); textBox1.ForeColor = CDialog.Color; colorDialog2.ShowDia } log(); textBox1.ForeColor = colorDialog1.Color; }

1, 1. Create a new VC# application. 2. Design the menu on the MDI parent form. 3. Convert the form to the MDI parent form. 4. Design the Student Details entry form. 5. Create the Print menu on the Student Details entry form. 6. Add code to MDI parent form and Student Details entry form. 7. Execute the application and verify the output.

2, 1. Create a new VC# application. 2. Convert the form to the MDI parent form. 3. Design the menu on the MDI parent form. 4. Add code to MDI parent form and Student Details entry form. 5. Design the Student Details entry form. 6. Create the Print menu on the Student Details entry form. 7. Execute the application and verify the output.

3, 1. Create a new VC# application. 2. Convert the form to the MDI parent form. 3. Design the menu on the MDI parent form. 4. Design the Student Details entry form. 5. Create the Print menu on the Student Details entry form. 6. Add code to MDI parent form and Student Details entry form. 7. Execute the application and verify the output.

4, 1. Create a new VC# application. 2. Convert the form to the MDI parent form. 3. Add code to MDI parent form and Student Details entry form. 4. Design the menu on the MDI parent form. 5. Design the Student Details entry form. 6. Create the Print menu on the Student Details entry form. 7. Execute the application and verify the output.

1, private void Print_Click(object sender, EventArgs e) {

3, public partial class Form1 : Form { PrintDialog pdlg = new PrintDialog(); internal printDialog1.Documen printDialog1.Docume PrintDocument t = printDocument1; nt = PDocument = new DialogResult printDocument1; PrintDocument(); result = if (result == public Form1() printDialog1.ShowDial DialogResult.OK) { og(); if (result == printDocument1.Print( InitializeComponent(); DialogResult.OK) ); } } printDocument1.Print( private void private void ); printDocument1_Print Print_Click(object } Page(object sender, sender, EventArgs private void System.Drawing.Print e) printDocument1_Print ing.PrintPageEventAr { Page(object sender, gs e) System.Drawing.Printi { pdlg.Document = ng.PrintPageEventArg PDocument; s e) e.Graphics.DrawStrin DialogResult { g(textBox1.Text, new result = Font("Arial",40, pdlg.ShowDialog(); e.Graphics.DrawStrin FontStyle.Bold), if (result == g(textBox1.Text, new Brushes.Black, 150, DialogResult.OK) Font("Arial",40, 125); FontStyle.Bold), } PDocument.Print(); Brushes.Black, 150, } 125); private void } PDocument_PrintPag 1, private void 2, private void 3, private void button1_Click(object button1_Click(object button1_Click(object sender, EventArgs sender, EventArgs sender, EventArgs e) e) e) { { { CultureInfo CultureInfo CultureInfo myCulture; myCulture; myCulture = new myCulture = myCulture = CultureInfo(); CurrentCulture; CultureInfo.CurrentC myCulture = ulture(); CultureInfo.CurrentC MessageBox.Show("Y ulture; our Culture Info is:"+" MessageBox.Show(" "+myCulture.ToString( Your Culture Info MessageBox.Show(" )); is:"+" Your Culture Info } "+myCulture.ToString is:"+" ()); "+myCulture.ToString } ()); }

2, private void Print_Click(object sender, EventArgs e) {

4, public partial class Form1 : Form { PrintDialog pdlg = new PrintDialog(); internal PrintDocument PDocument = new PrintDocument(); public Form1() { InitializeComponent(); } private void Print_Click(object sender, EventArgs e) { pdlg.Document = PDocument; if (result == DialogResult.OK) PDocument.Print(); } private void PDocument_PrintPag e(object sender,System.Drawi ng.Printing.PrintPage 4, private void button1_Click(object sender, EventArgs e) { CultureInfo myCulture; myCulture = CultureInfo.CurrentCu lture; MessageBox.Show(" Your Culture Info is:"+" "+myCulture.ToString ()); }

1, 1. Set the MinimizeBox property of the form to True. 2. Set the MaximizeBox property of the form to False. 3. Set the HelpButton property of the form to True. 4. Add a HelpProvider control to the form.

2, 1. Set the MinimizeBox property of the form to False. 2. Set the MaximizeBox property of the form to True. 3. Set the HelpButton property of the form to True. 4. Add a HelpProvider control to the form.

3, 1. Set the MinimizeBox property of the form to True. 2. Set the MaximizeBox property of the form to True. 3. Set the HelpButton property of the form to False. 4. Add a HelpProvider control to the form.

4, 1. Set the MinimizeBox property of the form to False 2. Set the MaximizeBox property of the form to False. 3. Set the HelpButton property of the form to True. 4. Add a HelpProvider control to the form.

1, 2, pdlg.Document = Graphics.DrawString(t PDocument; extBox1.Text, new Font("Arial", 40, FontStyle.Bold), Brushes.Black, 150, 125);

3, internal PrintDocument PDocument = new PrintDocument();

4, PrintDialog pdlg = new PrintDialog();

1, He used the Pull Model method for generating reports.

2, There is an error in the code he wrote for the Pull Model method.

3, There is an error in 4, He used the Push the code written for Model method for populating datasets in generating reports. the Push Model method.

1, The MyDateTime object is not declared correctly. It should be declared as: DateTime MyDateTime = new DateTime();

2, Error in the parameter passed to the ToString() method. It should not have any parameter passed to it.

3, Error in the parameter passed to the Parse() method. The parameter should have used ToString() method to convert the date into string.

4, Wrong method called by the DateTime class. The ToString() method should have been used.

1, The Language property of the Form is set to French.

2, The Language property of the Form is set to Spanish.

3, The Language property of the Form is set to English (United States).

4, The resource file for Japan culture is not created.

1, He should have made the resource assembly as an .exe file.

2, He has not added the resource files to the existing VC# application that needs to be updated

3, He has not selected the Windows Forms Application template.

4, He has not added the resource files to the new VC# project by choosing Add Existing Item from the Project menu.

1, Form 2, Form activeChildForm = activeChildForm = this.ActiveMdiChild(); new Form(); this.ActiveMdiChild;

3, Form activeChildForm = ActiveMdiChild;

4, Form activeChildForm = this.ActiveMdiChild;

1, SafePrinting

2, NoPrinting

3, DefaultPrinting

4, AllPrinting

1, Main Report Window

2, Export Report

3, Toggle Group Tree 4, Group Tree

1, Load()

2, GetType()

3, GetObject()

4, GetString()

1, HTML Files

2, Graphics and Multimedia Files

3, Help Project Files

4, Contents Files

1, private void pictureBox1_LoadCo mpleted(object sender, AsyncCompletedEven tArgs e) { if (e.Error != null) {

2, private void pictureBox1_LoadCo mpleted(object sender, AsyncCompletedEve ntArgs e) { if (e.Error != null) {

3, private void pictureBox1_LoadCo mpleted(object sender, AsyncCompletedEve ntArgs e) { if (e.Error != null) {

4, private void pictureBox1_LoadCo mpleted(object sender, AsyncCompletedEven tArgs e) { if (e.Error != null) {

MessageBox.Show(e. MessageBox.Show(e. MessageBox.Show(e. MessageBox.Show(e. Error.Message); Error.Message); Error.Message); Error.Message); } } } } else if else if else if else if (e.Cancelled) (e.Cancelled) (e.Cancelled) (e.Cancelled) { { { { MessageBox.Show("L MessageBox.Show(" MessageBox.Show(" MessageBox.Show("L oad cancelled"); Load cancelled"); Load cancelled"); oad cancelled"); } } } } else else else else { { { { MessageBox.Show("L MessageBox.Show(" MessageBox.Show(" MessageBox.Show("L oad completed"); Load completed"); Load completed"); oad completed"); } } } } } } } } private void private void private void private void btnLoadPicture_Click( btnLoadPicture_Click btnLoadPicture_Click btnLoadPicture_Click( object sender, (object sender, (object sender, object sender, EventArgs e) EventArgs e) EventArgs e) EventArgs e)

1, backgroundWorker1. DoWork += new DoWorkEventHandler (backgroundWorker1 _DoWork); this.backgroundWork er1.RunWorkerCompl eted += new RunWorkerComplete dEventHandler();

3, backgroundWorker1. DoWork = new DoWorkEventHandler (backgroundWorker1 _DoWork); this.backgroundWork er1.RunWorkerCompl eted = new RunWorkerComplete dEventHandler(backg roundWorker1_Run WorkerCompleted); 1, CardValidator 2, CardValidator 3, CardValidator Validator = new Validator = new Validator = new CardValidator(); CardValidator(); CardValidator(); Validator.CardNumbe Validator.CardNumbe Validator.CardNumbe r = TextCard.Text; r = TextCard.Text; r = TextCard.Text; Validator.CustomerNa Validator.CustomerN Validator.CustomerN me = ame = ame = TextCustName.Text; TextCustName.Text; TextCustName.Text; Validator.Validate(); if (Validator.Validate() == true) MessageBox.Show("V alid card Number"); ifValidator.Validate() == false) MessageBox.Show("I nvalid Card Number"); if (Validator.Validate() == true) MessageBox.Show(" Valid card Number"); else MessageBox.Show("I nvalid Card Number"); Validator.Validate(); if (Validator.Validate() == true) MessageBox.Show(" Valid card Number"); else MessageBox.Show("I nvalid Card Number");

2, backgroundWorker1. DoWork += new DoWorkEventHandler (); this.backgroundWork er1.RunWorkerCompl eted += new RunWorkerComplete dEventHandler();

4, backgroundWorker1. DoWork += new DoWorkEventHandler (backgroundWorker1 _DoWork); this.backgroundWork er1.RunWorkerCompl eted += new RunWorkerComplete dEventHandler(backg roundWorker1_RunW orkerCompleted); 4, CardValidator Validator = new CardValidator(); CardNumber = TextCard.Text; CustomerName = TextCustName.Text; Validator.Validate(); if (Validator.Validate() == true) MessageBox.Show(" Valid card Number"); else MessageBox.Show("I nvalid Card Number");

1, class Student { private int age; public int StudentAge { get { return(age); } set { if ((value > 17) && (value < 22)) age = value; else MessageBox.Show("A ge should be between 18 years and 21 years"); }}} 1, AxInterop.MSACAL and MSACAL

2, class Student { private int age; public int StudentAge() { get { return(age); } set { if ((value > 17) && (value < 22)) age = value; else MessageBox.Show(" Age should be between 18 years and 21 years"); }}} 2, stdole and System

3, class Student { public int age; public int StudentAge { get { return(age); } set { if ((value > 17) && (value < 22)) age = value; else{ MessageBox.Show(" Age should be between 18 years and 21 years"); }}} 3, MSACAL and stdole

4, class Student { private int age; public int StudentAge() { get() { return(age); } set() { if ((value > 17) && (value < 22)) age = value; else MessageBox.Show(" Age should be between 18 years and 21 years"); }}} 4, AxInterop.MSACAL and stdole

1, System.Windows.For m.Form 1, In-process components 1, Copy constructors

2, System.Windows.For m.Forms 2, Out-of-process components 2, Public constructors

3, System.Windows.For ms.Form 3, Public constructors

1, 2, WaitForExit() MethodNameAsync() 1, Semaphore class 2, ThreadPool class

4, System.Windows.For ms.Forms 4, Internal constructors 3, Internal 4, Private constructors constructors 3, RunWorkerAsync() 4, CancelAsync()

1 4 1

3, ReaderWriterLock 4, Monitor class class 3, In-process component 4, AdRotator component 4, Protected constructors

1, Nonvisual component 1, Internal constructors

2, Visual component

2, Public constructors 3, Private constructors

1, 2, 3, 4, System.Windows.For System.Windows.For System.Windows.For System.Windows.For ms.UserControl ms.Button ms.Control ms.TextBox

1, Monitor class

2, ThreadPool class

3, Mutex class

4, Semaphore class

1, Worker()

2, CancelAsync()

3, RunWorkerAsync() 4, Dispose()

1, No. The steps given are correct.

2, Yes. The step 6 3, Yes. Step 3 should 4, Step 4 should be should be performed be performed before performed before before step 4. step 2. step 2.

1, No. The given steps are correct.

2, Yes. The step 5 should come before the step 3.

3, Yes. The step 6 should come before the step 3.

4, Yes. The step 3 should come before the step 2.

1, Yes. He should change the oldVersion attribute of the <bindingRedirect> element.

2, Yes. He should change the privatePath attribute of the <probing> element.

3, Yes. He should change the apply attribute of the <publisherPolicy> element.

4, No. John is right. He needs to change the href attribute of the <codeBase> element.

1, WindowsIdentity wId = new WindowsIdentity(); WindowsPrincipal wPr = new WindowsPrincipal(wId );

2, WindowsIdentity wId; WindowsPrincipal wPr = new WindowsPrincipal(wI d);

3, WindowsIdentity wId = WindowsIdentity.Get Current(); WindowsPrincipal wPr;

4, WindowsIdentity wId = WindowsIdentity.Get Current(); WindowsPrincipal wPr = new WindowsPrincipal(wId );

1, <configuration> <configSections> <section name="mySection" type="System.Configu ration.SingleTagSecti onHandler"/> <mySection setting1="a" setting2="b" /> </configSections> </configuration>

2, <configuration> <configSections> <section name="mySection" type="System.Config uration.SingleTagSec tionHandler"/> <mySection setting1="a" setting2="b" /> </configuration> </configSections>

3, <configuration> <section name="mySection" type="System.Config uration.SingleTagSec tionHandler"/> <configSections> </configSections> <mySection setting1="a" setting2="b" /> </configuration>

4, <configuration> <configSections> <section name="mySection" type="System.Configu ration.SingleTagSecti onHandler"/> </configSections> <mySection setting1="a" setting2="b" /> </configuration>

1, <configuration> <runtime> <gcConcurrent enabled="true"/> </runtime> <assemblyBinding xmlns="urn:schemasmicrosoftcom:asm.v1"> <dependentAssembly > <assemblyIdentity name="myAssembly" publicKeyToken="32a b4ba45e0a69a1" culture="neutral" /> <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/ > </dependentAssembly > </assemblyBinding> </configuration>

2, <configuration> <runtime> <assemblyBinding xmlns="urn:schemasmicrosoftcom:asm.v1"> <dependentAssembly > <gcConcurrent enabled="true"/> <assemblyIdentity name="myAssembly" publicKeyToken="32a b4ba45e0a69a1" culture="neutral" /> <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" /> </dependentAssembl y> </assemblyBinding> </runtime> </configuration>

3, <configuration> <runtime> <gcConcurrent enabled="true"/> <assemblyBinding xmlns="urn:schemasmicrosoftcom:asm.v1"> <assemblyIdentity name="myAssembly" publicKeyToken="32a b4ba45e0a69a1" culture="neutral" /> <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" /> </assemblyBinding> </runtime> </configuration>

4, <configuration> <runtime> <gcConcurrent enabled="true"/> <assemblyBinding xmlns="urn:schemasmicrosoftcom:asm.v1"> <dependentAssembly > <assemblyIdentity name="myAssembly" publicKeyToken="32a b4ba45e0a69a1" culture="neutral" /> <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/ > </dependentAssembl y> </assemblyBinding> </runtime> </configuration>

1, 1. Select the Requirements on Target Machine node in the Launch Conditions editor. 2. Select Action->Add Windows Installer Launch Condition. 3. Click the Search for Component node, and press the F4 key to switch to the Properties window. 4. Select the ComponentID property, and type the ID of the component to be searched on the target computer. 5. Select the Condition node corresponding to the Search for Component node. 6. Press the F4 key to open the Properties window. 7. Type the error message in the Message property, to be displayed if the component does not

2, 1. Select the Requirements on Target Machine node in the Launch Conditions editor. 2. Press the F4 key to open the Properties window. 3. Select Action->Add Windows Installer Launch Condition. 4. Click the Search for Component node, and press the F4 key to switch to the Properties window. 5. Select the ComponentID property, and type the ID of the component to be searched on the target computer. 6. Select the Condition node corresponding to the Search for Component node. 7. Type the error message in the Message property, to be displayed if the component does not

3, 1. Select the Requirements on Target Machine node in the Launch Conditions editor. 2. Select Action->Add Windows Installer Launch Condition. 3. Select the ComponentID property, and type the ID of the component to be searched on the target computer. 4. Select the Condition node corresponding to the Search for Component node. 5. Press the F4 key to open the Properties window. 6. Click the Search for Component node, and press the F4 key to switch to the Properties window. 7. Type the error message in the Message property, to be displayed if the component does not

4, 1. Select Action->Add Windows Installer Launch Condition. 2. Select the Requirements on Target Machine node in the Launch Conditions editor. 3. Click the Search for Component node, and press the F4 key to switch to the Properties window. 4. Select the ComponentID property, and type the ID of the component to be searched on the target computer. 5. Select the Condition node corresponding to the Search for Component node. 6. Press the F4 key to open the Properties window. 7. Type the error message in the Message property, to be displayed if the component does not

1, 1. Select the File Types on Target Machine node in the File Types editor. 2. Select Action->Add File Type to add a new file type. Type the name of the document type in the name text box. 3. Select the newly created file type to associate extensions with the file type, Press the F4 key to open the Properties window. 4. Select the Extensions property and specify the file extensions to be associated with the file type. 5. Select the Command property in the Properties window to associate the file type with an executable file. The Select Item in Project dialog box opens. 6. Select the executable file to be

2, 1. Select Action->Add File Type to add a new file type. Type the name of the document type in the name text box. 2. Select the File Types on Target Machine node in the File Types editor. 3. Select the newly created file type to associate extensions with the file type, Press the F4 key to open the Properties window. 4. Select the Extensions property and specify the file extensions to be associated with the file type. 5. Select the Command property in the Properties window to associate the file type with an executable file. The Select Item in Project dialog box opens. 6. Select the executable file to be

3, 1. Select the File Types on Target Machine node in the File Types editor. 2. Select Action->Add File Type to add a new file type. Type the name of the document type in the name text box. 3. Select the executable file to be associated with the file type. 4. Select the newly created file type to associate extensions with the file type, Press the F4 key to open the Properties window. 5. Select the Extensions property and specify the file extensions to be associated with the file type. 6. Select the Command property in the Properties window to associate the file type with an executable file. The

4, 1. Select the File Types on Target Machine node in the File Types editor. 2. Select the newly created file type to associate extensions with the file type, Press the F4 key to open the Properties window. 3. Select Action->Add File Type to add a new file type. Type the name of the document type in the name text box. 4. Select the Extensions property and specify the file extensions to be associated with the file type. 5. Select the Command property in the Properties window to associate the file type with an executable file. The Select Item in Project dialog box opens. 6. Select the executable file to be

1, 1. Select the HKEY_CURRENT_U SER key in the Registry editor. 2. In the Action menu, select New-->String Value. Change the name of the newly created value to PATH. 3. Select Action->New Key. Change the name of the new key to ENVIRONMENT. 4. Select the ENVIRONMENT key. 5. Select PATH, and press the F4 key to switch to the Properties window. Set the Value property to C:\;C:\Windows. 1, Global Assembly Cache 1, sn -k filename.snk 1, /L 1, sn -k filename.snk

2, 1. Select the HKEY_CURRENT_U SER key in the Registry editor. 2. Select Action->New Key. Change the name of the new key to ENVIRONMENT. 3. Select the ENVIRONMENT key. 4. In the Action menu, select New-->String Value. Change the name of the newly created value to PATH. 5. Select PATH, and press the F4 key to switch to the Properties window. Set the Value property to C:\;C:\Windows. 2, Assemblies 2, sn -k filename 2, /I

3, 1. Select the HKEY_CURRENT_U SER key in the Registry editor. 2. Select Action->New Key. Change the name of the new key to ENVIRONMENT. 3. In the Action menu, select New-->String Value. Change the name of the newly created value to PATH. 4. Select the ENVIRONMENT key. 5. Select PATH, and press the F4 key to switch to the Properties window. Set the Value property to C:\;C:\Windows. 3, Resources

4, 1. Select the HKEY_CURRENT_U SER key in the Registry editor. 2. In the Action menu, select New-->String Value. Change the name of the newly created value to PATH. 3. Select PATH, and press the F4 key to switch to the Properties window. Set the Value property to C:\;C:\Windows. 4. Select Action->New Key. Change the name of the new key to ENVIRONMENT. 5. Select the ENVIRONMENT key. 4, Manifest

2 1 2 4 1

3, sn +k filename.snk 4, sn k filename.snk 3, /u 4, /U 4, XCOPY 4, HKEY_LOCAL_MAC HINE 4, Four 4, <configuration>

2, ILdasm <assembly 3, gacutil name> 1, 2, HKEY_USERS 3, HKEY_CLASSES_RO HKEY_CURRENT_U OT SER 1, Five 2, Two 3, Three 1, 2, <assemblyBinding 3, <runtime> <dependentAssembly xmlns="urn:schemas> microsoftcom:asm.v1"> 1, SingleTagSectionHan dler 1, FullTrust 1, Authorization 1, Shared assembly 2, 3, DictionarySectionHan IgnoreSectionHandler dler 2, Everything 3, LocalIntranet 2, Authentication 2, Private assembly 3, Windows Identity 3, Multifile assembly

4 4

4, NameValueSectionHa ndler 4, Internet 4, Generic Identity 4, Single-File assembly

4 1 4

1, 3 1, Registry Editor

2, 0

3, 4

4, 6 4, File Types Editor

3 2

2, File System Editor 3, User Interface Editor 3, Machine Configuration Files 3, Configuration.GetCon fig() 3, First step is not correct. He should perform the following step: Select the File System on Target Machine node.

1, Extensible Markup 2, Application Language (XML) files Configuration Files 1, ConfigurationSettings. AppSettings() 1, Second step is not correct. He should perform the following step: Select Action-->Add Special Folder->Folder 2, Configuration.AppSett ings() 2, Second step is not correct. He should perform the following step: Select Action-->Add Special Folder

4, Security Configuration Files 4, ConfigurationSettings. GetConfig() 4, The second step is not correct. He should perform the following step: Select Action-->Add->Folder

Potrebbero piacerti anche