Microsoft UPGRADE: MCAD Skills to MCTS Web Apps Using MS.NET Framework Sample Questions:
1. You have just graduated from college, now you are serving the internship as the software developer in an international company. Now you are transferring records from one database to another. You are not sure whether you can transfer the records by using the SqlBulkCopy class. You have to identify this. So what should you do?
A) You must make sure that the source database is Microsoft SQL Server.
B) You must make sure that the destination database is Microsoft SQL Server.
C) You must make sure that the bulk copy program (bcp) utility is installed on the destination server.
D) You must make sure that the column names in the source table match the column names in the destination table.
2. You work as the developer in an IT company. Recently your company has a big customer. The customer runs a large supermarket chain. You're appointed to provide technical support for the customer. Now according to the customer requirement, you are writing code for user authentication and authorization. The username, password, and roles are stored in your application data store.
You have to build a user security context that will be used for authorization checks such as IsInRole. The security context will be used for authorization checks such as IsInRole. You authorize the user by writing the code segment below:
if (!TestPassword(userName, password))
throw new Exception("could not authenticate user");
String[] userRolesArray = LookupUserRoles(userName);
In order to establish the user security, you have to complete the code segment. In the options below, which code segment should you use?
A) WindowsIdentity ident = new WindowsIdentity(userName);WindowsPrincipal currentUser = new WindowsPrincipal(ident);Thread.CurrentPrincipal = currentUser;
B) NTAccount userNTName = new NTAccount(userName);GenericIdentity ident = new GenericIdentity(userNTName.Value);GenericPrincipal currentUser= new GenericPrincipal(ident, userRolesArray);Thread.CurrentPrincipal = currentUser;
C) IntPtr token = IntPtr.Zero;token = LogonUserUsingInterop(userName, encryptedPassword);WindowsImpersonationContext ctx = WindowsIdentity.Impersonate(token);
D) GenericIdentity ident = new GenericIdentity(userName);GenericPrincipal currentUser = new GenericPrincipal(ident, userRolesArray);Thread.CurrentPrincipal = currentUser;
3. You have just graduated from college, now you are serving the internship as the software developer in an international company. According to the requirements of the company CIO, you are creating an assembly which contains a public method. You name this assembly AssemblyA. The global cache contains a second assembly named AssemblyB. Now your customer want the public method is only called from AssemblyB. So you must make sure of this. In the options below, which permission class should you use?
A) DataProtectionPermission
B) StrongNameIdentityPermission
C) PublisherIdentityPermission
D) GacIdentityPermission
4. You have just graduated from college, now you are serving the internship as the software developer in an international company. There's a Web site that uses custom Themes. Your Web site must support additional Themes based on the user's company name. When a user logs on to the Web site, the company named is set. The company's Theme name is stored in a variable named ThemeName. You have to dynamically set the Web site's Theme by using this variable. So what should you do?
A) The following code segment should be added to the Web site's configuration file. <pages theme="ThemeName" />
B) The following code segment should be added to the PreInit event of each page on the Web site. Page.Theme = ThemeName;
C) The following code segment should be added to the markup source of each page on the Web site. <%@ Page Theme="ThemeName" ... %>
D) The following code segment should be added to the Load event of each page on the Web site. Page.Theme = ThemeName;
5. You work as the developer in an IT company. Recently your company has a big customer. The customer runs a large supermarket chain. You're appointed to provide technical support for the customer. Now you are creating a class which contains a method named GetCurrentRate. The class performs complex financial calculations. The GetCurrentRate method retrieves the current interest rate and a variable named currRate that stores the current interest rate. You have to write a code segment. When an instance of the class is deserialized, the code segment updates the currRate variable with the current interest rate. In the options below, which code segment should you use?
A) [OnDeserializing]internal void UpdateValue(SerializationInfo info) { info.AddValue("currentRate", GetCurrentRate());}
B) [OnSerializing]internal void UpdateValue(SerializationInfo info) { info.AddValue("currentRate", GetCurrentRate());}
C) [OnSerializing]internal void UpdateValue (StreamingContext context) { currRate = GetCurrentRate();}
D) [OnDeserialized]internal void UpdateValue(StreamingContext context) { currRate = GetCurrentRate();}
Solutions:
| Question # 1 Answer: B | Question # 2 Answer: D | Question # 3 Answer: B | Question # 4 Answer: B | Question # 5 Answer: D |














1279 Customer Reviews
Quality and ValueITCertKing Practice Exams are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development - no all study materials.
Tested and ApprovedWe are committed to the process of vendor and third party approvals. We believe professionals and executives alike deserve the confidence of quality coverage these authorizations provide.
Easy to PassIf you prepare for the exams using our ITCertKing testing engine, It is easy to succeed for all certifications in the first attempt. You don't have to deal with all dumps or any free torrent / rapidshare all stuff.
Try Before BuyITCertKing offers free demo of each product. You can check out the interface, question quality and usability of our practice exams before you decide to buy.
