98-361

Share Embed Donate


Short Description

98-361...

Description

QUESTION 1 In your student directory database, the Students table contains the following fields: firstName lastName emailAddress telephoneNumtoer You need to retrieve the data from the firstName, lastName, and emailAddress fields for all students listed in the directory. The results must be in alphabetical order according to lastName and then firstName. Which statement should you use?

A. B. C. D.

Option Option Option Option

A B C D

Correct Answer: A Explanation: to sort use: ORDER BY LastName, FirstName QUESTION 2 This question requires that you evaluate the underlined text to determine if it is correct. The duplication of code so that modifications can happen in parallel is known as separating. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed branching merging splitting

Correct Answer: B Explanation: When you develop applications in a team-based environment, you might need to access multiple versions of your application at the same time. If you copy one or more areas of your code into a separate branch, you can update one copy while you preserve the original version, or you can update both branches to meet different needs. Depending on your development goals, you can later merge the changes from multiple branches to create a single version that reflects all changes. QUESTION 3 This question requires that you evaluate the underlined text to determine if it is correct. The default entry point for a console application is the Class method. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A.

No change is needed

B. C. D.

Main Program Object

Correct Answer: B Explanation: The default entry point for a console application is the Class Main. QUESTION 4 A class named Manager is derived from a parent class named Employee. The Manager class includes characteristics that are unique to managers. Which term is used to describe this object-oriented concept? A. B. C. D.

Encapsulation Data modeling Inheritance Data hiding

Correct Answer: C Explanation: Classes (but not structs) support the concept of inheritance. A class that derives from another class (the base class) automatically contains all the public, protected, and internal members of the base class except its constructors and destructors. Incorrect: not A: Encapsulation is sometimes referred to as the first pillar or principle of object- oriented programming. According to the principle of encapsulation, a class or struct can specify how accessible each of its members is to code outside of the class or struct. Methods and variables that are not intended to be used from outside of the class or assembly can be hidden to limit the potential for coding errors or malicious exploits. QUESTION 5 All objects in .NET inherit from which item? A. B. C. D.

the System.Object class a value type a reference type the System.Type class

Correct Answer: A Explanation: The System.Object class supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy. QUESTION 6 You are creating an application that presents users with a graphical interface in which they can enter data. The application must run on computers that do not have network connectivity. Which type of application should you choose? A. B. C. D.

Console-based Windows Forms Windows Service ClickOnce

Correct Answer: B Explanation: Use Windows Forms when a GUI is needed. QUESTION 7 You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not already reserved by another guest. Which type of programming should you use to determine whether the room is still available when the request is made? A. B. C.

client-side server-side multithreaded

D.

batch processing

Correct Answer: B Explanation: For room availability we need to check a database located on a server.

QUESTION 8 Which type of application has the following characteristics when it is installed? Runs continuously in the background by default when the startup type is set to automatic Presents no user interface A. B. C. D.

Windows Service Windows Forms Console-based Batch file

Correct Answer: A Explanation: A Windows service runs in the background and has no interface. QUESTION 9 You are creating a routine that will perform calculations by using a repetition structure. You need to ensure that the entire loop executes at least once. Which looping structure should you use? A. B. C. D.

For While Do,,While For. ,,Each

Correct Answer: C Explanation: In a Do..While loop the test is at the end of the structure, so it will be executed at least once. QUESTION 10 HOTSPOT You are reviewing the following code that saves uploaded images.

For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 11 A data warehouse database is designed to: A. B. C. D.

Enable business decisions by collecting, consolidating, and organizing data. Support a large number of concurrent users. Support real-time business operations. Require validation of incoming data during real-time business transactions.

Correct Answer: A QUESTION 12 You are creating a variable for an application. You need to store data that has the following characteristics in this variable: Consists of numbers and characters Includes numbers that have decimal points Which data type should you use? A. B. C. D.

String Float Char Decimal

Correct Answer: A Explanation: Need a string to store characters. QUESTION 13

HOTSPOT For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 14 You are creating an application for a help desk center. Calls must be handled in the same order in which they were received. Which data structure should you use? A. B. C. D.

Binary tree Stack Hashtable Queue

Correct Answer: D Explanation: A queue keeps the order of the items. QUESTION 15 You have a class with a property. You need to ensure that consumers of the class can write to the value of the property. Which keyword should you use? A. B. C.

value add get

D.

set

Correct Answer: D Explanation: Set: The set { } implementation receives the implicit argument “value.” This is the value to which the property is assigned. * Property. On a class, a property gets and sets values. A simplified syntax form, properties are implemented in the IL as methods (get, set). QUESTION 16 You are developing a webpage that enables students to manage races. The webpage will display two lists: past races and upcoming races. The page also contains a sidebar with contact information and a panel with social media settings that can be edited. Race results can be shared on social media. How many components will be on the webpage? A. B. C. D.

2 3 4 5

Correct Answer: C QUESTION 17 The elements of an array must be accessed by: A. B. C. D.

Calling the item that was most recently inserted into the array. Calling the last item in the memory array. Using an integer index. Using a first-in, last-out (FILO) process.

Correct Answer: C QUESTION 18 This question requires that you evaluate the underlined text to determine if it is correct. Converting an object to a more general type is called upcasting. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed downcasting interfacing flexing

Correct Answer: A Explanation: Casting up a hierarchy means casting from a derived object reference to a base object reference.

QUESTION 19 You create an object of type ANumber. The class is defined as follows.

What is the value of _number after the code is executed? A. B. C. D.

Null 0 3 7

Correct Answer: C QUESTION 20 You are creating the necessary variables for an application. The data you will store in these variables has the following characteristics: Consists of numbers Includes numbers that have decimal points Requires more than seven digits of precision You need to use a data type that will minimize the amount of memory that is used. Which data type should you use? A. B. C. D.

decimal double byte float

Correct Answer: B Explanation: The double keyword signifies a simple type that stores 64-bit floating-point values. Precision: 15-16 digits Incorrect: Not D: The float keyword signifies a simple type that stores 32-bit floating-point values. Precision: 7 digits QUESTION 21 You have a class named Truck that inherits from a base class named Vehicle. The Vehicle class includes a protected method named brake (). How should you call the Truck class implementation of the brake () method? A. B. C. D.

Vehicle. brake (); This. brake (); MyBase. brake(); Truck. brake ();

Correct Answer: C Explanation: The My Base keyword behaves like an object variable referring to the base class of the current instance of a class.MyBase is commonly used to access base class members that are overridden or shadowed in a derived class. QUESTION 22 You are creating a database for a student directory. The Students table contains the following fields:

Which statement will retrieve only the first name, last name, and telephone number for every student listed in the directory? A. B. C. D. E.

WHERE Students SELECT * SELECT firstName, lastName, telephoneNumber FROM Students SELECT firstName, lastName, telephoneNumber IN Students SELECT * FROM Students WHERE Students SELECT firstName, lastName, telephoneNumber

Correct Answer: B Explanation: Use SELECT…FROM and list the fields you want to retrieve. QUESTION 23 Which of the following must exist to inherit attributes from a particular class? A. B. C. D.

Public properties A has-a relationship An is-a relationship Static members

Correct Answer: A Explanation: There must be some public properties that can be inherited. QUESTION 24 You have a website that includes a form for usemame and password. You need to ensure that users enter their username and password. The validation must work in all browsers. Where should you put the validation control? A. B. C. D.

in in in in

both the client-side code and the server-side code the client-side code only the Web.config file the server-side code only

Correct Answer: A Explanation: From version 2.0 on, ASP.NET recognized the JavaScript capabilities of these browsers, so client-side validation is now available to all modern browsers, including Opera, Firefox, and others. Support is even better now in ASP.NET 4.0. That said, it’s important not to forget that JavaScript can be disabled in any browser, so client-side validation cannot be relied upon–we must always validate any submitted data on the server. QUESTION 25 HOTSPOT For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 26 The following functions are defined:

What does the console display after the following line? Printer(2); A. B. C. D.

210 211 2101 2121

Correct Answer: B

QUESTION 27 Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to as: A. B. C. D.

Analyzing requirements Prototyping Software testing Flowcharting

Correct Answer: C QUESTION 28 HOTSPOT The ASP.NET MVC page lifecycle is shown in the following graphic:

Use the drop-down menus to select the answer choice that completes each statement Each correct selection is worth one point.

Correct Answer:

QUESTION 29 This question requires that you evaluate the underlined text to determine if it is correct. The bubble sort algorithm steps through the list to be sorted, comparing adjacent items and swapping them if they are in the wrong order Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed merge library insertion

Correct Answer: A QUESTION 30 You have a SQL Server database named MyDB that uses SQL Server Authentication. Which connection string should you use to connect to MyDB? A. B. C. D.

Data Data Data Data

Source=MyDB; Source=MyDB; Source=MyDB; Source=MyDB;

UserID=username; Password=P@sswOrd; Initial Catalog=Sales Integrated Security=SSPI; Initial Catalog=Sales Integrated Security=True; Initial Catalog=Sales Trusted_Connection=True; MultipleActiveResultSets=True; Initial Catalog=Sales

Correct Answer: A Explanation: Integrated Security Integrated Security is by default set to false. When false, User ID and Password are specified in the connection. Incorrect: not C: Windows Authentication (Integrated Security = true) remains the most secure way to log in to a SQL Server database. QUESTION 31 How should you configure an application to consume a Web service? A. B. C. D.

Add Add Add Add

the Web service to the development computer. a reference to the Web service in the application. a reference to the application in the Web service. the Web service code to the application.

Correct Answer: B Explanation: Start by adding a Service Reference to the project. Right-click the ConsoleApplication1 project and choose “Add Service Reference”: QUESTION 32 You are developing an application that tracks tennis matches. A match is represented by the following class:

A match is created by using the following code:

How many times is the Location property on the newly created Match class assigned? A. B. C. D.

0 1 2 3

Correct Answer: C QUESTION 33 You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not already reserved by another guest. Which type of programming should you use to determine whether the room is still available when the request is made? A. B. C. D.

functional dynamic in-browser server-side

Correct Answer: D QUESTION 34 You execute the following code.

What will the variable result be? A. B.

1 2

C. D.

3 4

Correct Answer: B

QUESTION 35 DRAG DROP You are extending an application that stores and displays the results of various types of foot races. The application contains the following definitions:

The following code is used to display the result for a race:

The contents of the console must be as follows: 99 seconds 1.65 minutes 99 You need to implement the FootRace class. Match the method declaration to the method body. To answer, drag the appropriate declaration from the column on the left to its body on the right. Each declaration may be used once, more than once, or not at all. Each correct match is worth one point.

Correct Answer:

QUESTION 36 HOTSPOT You are creating a Windows Store application that uses the following gesture:

Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.

Correct Answer:

QUESTION 37 You are reviewing a design for a database. A portion of this design is shown in the exhibits. Note that you may choose either the Crow’s Foot Notation or Chen Notation version of the design. (To view the Crow’s Foot Notation, click the Exhibit A button. To view the Chen Notation, click the Exhibit B button.) Which term is used to describe the Customer component?

A. B. C. D.

Field Attribute Property Entity

Correct Answer: D Explanation: Customer is a table (entity). QUESTION 38 What does the Console.Error property do within a console-based application? A. B. C. D.

sets the standard error input stream gets the standard error output stream gets the standard error input stream sets the standard error output stream

Correct Answer: B Explanation: The Console.Error property gets the standard error output stream. QUESTION 39 You are reviewing a design for a database. A portion of this design is shown in the exhibit. Note that you may choose to view either the Crow’s Foot Notation or Chen Notation version of the design. (To view the Crow’s Foot Notation, click the Exhibit A button. To view the Chen Notation, click the Exhibit B button.) Which term is used to describe the relationship between Customer and Order?

A. B. C. D. E.

many-to-many one-to-many one-dimensional one-to-one multi-dimensional

Correct Answer: B Explanation: A customer can have many orders. QUESTION 40 What are the three basic states that a Windows service can be in? (Choose three.)

A. B. C. D. E.

halted running stopped paused starting

Correct Answer: BCD Explanation: A service can exist in one of three basic states: Running, Paused, or Stopped. QUESTION 41 Which three items are benefits of encapsulation? (Choose three.) A. B. C. D. E.

maintainability flexibility restricted access inheritance performance

Correct Answer: ABC E xplanation: Encapsulation is the packing of data and functions into a single component. In programming languages, encapsulation is used to refer to one of two related but distinct notions, and sometimes to the combination thereof: A language mechanism for restricting access to some of the object’s components. A language construct that facilitates the bundling of data with the methods (or other functions) operating on that data. Incorrect: Not D: Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction. QUESTION 42 Your database administrators will not allow you to write SQL code in your application. How should you retrieve data in your application? A. B. C. D.

Script a SELECT statement to a file. Query a database view. Call a stored procedure. Reference an index in the database.

Correct Answer: C Explanation: The SQL will only be inside the stored procedure. QUESTION 43 What are two methods that can be used to evaluate the condition of a loop at the start of each iteration? (Each correct answer presents a complete solution. Choose two. ) A. B. C. D.

If Do. . . While For While

Correct Answer: CD Explanation: For and While constructs check at the start of each iteration. QUESTION 44 In this XHTML code sample, what will cause an error?

A. B. C. D.

All tags are not in uppercase. The body tag is missing a background attribute. The line break tag is incorrectly formatted. The HTML tags do not read XHTML.

Correct Answer: C Explanation: In XHTML, the tag must be properly closed, like this: . QUESTION 45 Which function does Simple Object Access Protocol (SOAP) provide when using Web services? A. B. C. D.

directory of registered Web services communications protocol security model model for describing Web services

Correct Answer: B Explanation: SOAP, originally defined as Simple Object Access Protocol, is a protocol specification for exchanging structured information in the implementation of web services in computer networks. It relies on XML Information Set for its message format, and usually relies on other application layer protocols, most notably Hypertext Transfer Protocol (HTTP) or Simple Mail Transfer Protocol (SMTP), for message negotiation and transmission. QUESTION 46 In the life cycle of an ASP. NET Web page, which phase follows the SaveStateComplete phase? A. B. C. D.

PostBack Postlnit Load Render

Correct Answer: D Explanation: The SaveStateComplete event is raised after the view state and control state of the page and controls on the page are saved to the persistence medium. This is the last event raised before the page is rendered to the requesting browser. QUESTION 47 HOTSPOT You are reviewing the following class that is used to manage the results of a 5K race:

For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 48 You are creating an application that presents the user with a Windows Form. You need to configure the application to display a message box to confirm that the user wants to close the form. Which event should you handle? A. B. C. D.

Deactivate Leave FormClosed FormClosing

Correct Answer: D Explanation: The Closing event occurs as the form is being closed.

QUESTION 49 Which language allows you to dynamically create content on the client side? A. B. C . D.

Extensible Markup Language (XML) Cascading Style Sheets (CSS) Hypertext Markup Language (HTML) JavaScript (JS)

Correct Answer: D Explanation: JavaScript (JS) is a dynamic computer programming language. It is most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed. QUESTION 50 This question requires that you evaluate the underlined text to determine if it is correct. A piece of text that is 4096 bytes or smaller and is stored on and retrieved from the client computer to maintain state is known as a ViewState. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed cookie form post QueryString

Correct Answer: B Explanation: A piece of text that is 4096 bytes or smaller and is stored on and retrieved from the client computer to maintain state is known as a Cookie. QUESTION 51 What are two advantages of normalization in a database? (Choose two) A. B. C. D.

prevents data inconsistencies reduces schema limitations minimizes impact of data corruption decreases space used on disk

Correct Answer: AD QUESTION 52 You need to create an application that processes data on a last-in, first-out (LIFO) basis . Which data structure should you use? A. B. C. D.

Queue Tree Stack Array

Correct Answer: C

Explanation: A stack implements LIFO. QUESTION 53 You are designing a class for an application. You need to restrict the availability of the member variable accessCount to the base class and to any classes that are derived from the base class. Whi ch access modifier should you use? A. B. C. D.

Internal Protected Private Public

Correct Answer: C QUESTION 54 You are designing a Windows Store application. You need to design the application so that users can share content by connecting two or more devices by physically tapping the devices together. Which user experience (UX) guideline for Windows Store applications should you use? A. B. C. D.

Share and data exchange location-awareness device-awareness proximity gestures

Correct Answer: A QUESTION 55 You create an application that uses Simple Object Access Protocol (SOAP). Which technology provides information about the application’s functionality to other application s? A. B. C. D.

Web Service Description Language (WSDL) Extensible Application Markup Language (XAML) Common Intermediate Language (CIL) Universal Description, Discovery, and Integration (UDDI)

Correct Answer: A Explanation: WSDL is often used in combination with SOAP and an XML Schema to provide Web services over the Internet. A client program connecting to a Web service can read the WSDL file to determine what operations are available on the server. Any special datatypes used are embedded in the WSDL file in the form of XML Schema. The client can then use SOAP to actually call one of the operations listed in the WSDL file using for example XML over HTTP. QUESTION 56 Which two types of information should you include in an effective test case? (Choose two.) A. B. C. D.

the expected result from testing the case multiple actions combined as a single step to test the case any pre-conditions necessary to test the case the stakeholders who originated the test case

Correct Answer: AB Explanation: You can create manual test cases using Microsoft Test Manager that have both action and validation test steps. You can also share a set of common test steps between multiple test cases called shared steps. This simplifies maintenance of test steps if your application under test changes.

< p class="MsoNormal" style="cursor: auto; margin: 0cm 0cm 0pt; line-height: normal; text-autospace: ; msolayout-grid-align: none" align="left">QUESTION 57 You are creating an application for computers that run Windows XP or later. This application must run after the computer starts. The user must not be aware that the application is running.

The application performs tasks that require permissions that the logged-in user does not have. Which type of application allows this behavior? A. B. C. D.

Windows Service application Windows Forms application DOS batch file Terminate-and-stay-resident (TSR) program

Correct Answer: A QUESTION 58 DRAG DROP You are developing an application to display track and field race results. The application must display the race results twice. The first time it must display only the winner and runner-up. The second time it must display all participants. The code used to display results is shown below.

You need to implement the Rankings() function. Complete the function to meet the requirements. To answer, drag the appropriate code segment from the column on the left to its location on the right. Each code segment may be used once, more than once, or not at all. Each correct match is worth one point.

Correct Answer:

QUESTION 59 You are migrating several HTML pages to your website. Many of these pages contain HTML and tags. Which XHTML document type declaration should you use?

A. B. C. D.

Option Option Option Option

A B C D

Correct Answer: A Explanation: The declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in. XHTML 1.0 Transitional This DTD contains all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML. QUESTION 60 HOTSPOT You are reviewing the architecture for a system that allows race officials to enter the results of 5K race results. The results are then made available to students using a web application. The architecture is shown below:

Use the drop-down menus to select the answer choice that answers each question. Each correct selection is worth one point.

Correct Answer:

QUESTION 61 The throw keyword is used to perform which two actions? (Choose two.) A. B. C. D.

stop processing of the code move error handling to a separate thread raise exceptions re-throw exceptions as a different type

Correct Answer: CD Explanation: * The Throw statement throws an exception that you can handle with structured exception-handling code (Try… Catch…Finally) or unstructured exception- handling code (On Error GoTo). You can use the Throw statement to trap errors within your code because Visual Basic moves up the call stack until it finds the appropriate exceptionhandling code. * This example throws an ApplicationException exception. Throw New ApplicationException QUESTION 62 HOTSPOT For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 63 Which programming language is characterized as client-side, dynamic and weakly typed? A. B. C. D.

JavaScript HTML ASP.NET C#

Correct Answer: A Explanation: JavaScript is characterized as a dynamic, weakly typed, prototype-based language with first-class functions. It is primarily used in the form of client-side JavaScript for the development of dynamic websites.

QUESTION 64 You need to ensure the data integrity of a database by resolving insertion, update, and deletion anomalies. Which term is used to describe this process in relational database design? Isolation A. B. C. D.

Normalization Integration Resolution

Correct Answer: B Explanation: Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy. Normalization usually involves dividing large tables into smaller (and less redundant) tables and defining relationships between them. The objective is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database using the defined relationships.

QUESTION 65 You have a stack that contains integer values. The values are pushed onto the stack in the following order: 2,4,6,8. The following sequence of operations is executed: Pop Push 3 Pop Push 4 Push 6 Push 7 Pop Pop Pop What is the value of the top element after these operations are executed? A. B. C. D.

2 3 6 7

Correct Answer: B QUESTION 66 This question requires that you evaluate the underlined text to determine if it is correct. The benefit of using a transaction when updating multiple tables is that the update cannot fail. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed succeeds or fails as a unit finishes as quickly as possible can be completed concurrently with other transactions

Correct Answer: B Explanation: The benefit of using a transaction when updating multiple tables is that the update succeeds or fails as a unit.

QUESTION 67 How does a console-based application differ from a Windows Forms applicatio n? A. B. C. D.

Console-based applications require the XNA Framework to run. Windows Forms applications do not provide a method for user input. Windows Forms applications can access network resources. Console-based applications do not display a graphical interface.

Correct Answer: D QUESTION 68 The Dog class and the Cat class inherit from the Animal class. The Animal class includes a breathe() method and a speak() method. If the speak() method is called from an object of type Dog, the result is a bark. If the speak() method is called from an object of type Cat, the result is a meow. Which term is used to describe this objectoriented concept? A. B. C. D.

multiple inheritance polymorphism data hiding encapsulation

Correct Answer: A Explanation: Polymorphism is often referred to as the third pillar of object-oriented programming, after encapsulation and inheritance. Polymorphism is a Greek word that means “many-shaped” and it has two distinct aspects: At run time, objects of a derived class may be treated as objects of a base class in places such as method parameters and collections or arrays. When this occurs, the object’s declared type is no longer identical to its run-time type. Base classes may define and implement virtual methods, and derived classes can override them, which means they provide their own definition and implementation. At run- time, when client code calls the method, the CLR looks up the run-time type of the object, and invokes that override of the virtual method. Thus in your source code you can call a method on a base class, and cause a derived class’s version of the method to be executed. QUESTION 69 This question requires that you evaluate the underlined text to determine if it is correct. The Response.Redirect method is used to transfer processing of the current page to a new page, and then return processing back to the calling page once processing of the new page has completed. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed Server.Transfer method Server.Execute method meta http-equiv=”refresh” tag

Correct Answer: C Explanation: The Execute method calls an .asp file, and processes it as if it were part of the calling ASP script. The Execute method is similar to a procedure call in many programming languages. Incorrect: Response.Redirect Method The Redirect method causes the browser to redirect the client to a different URL. The Server.Transfer method sends all of the information that has been assembled for processing by one .asp file to a second .asp file. QUESTION 70 You have a Windows Service running in the context of an account that acts as a non- privileged user on the local computer. The account presents anonymous credentials to any remote server. What is the security context of the Windows Service? A.

LocalSystem

B. C. D.

User NetworkService LocalService

Correct Answer: D Explanation: LocalService , which runs in the context of an account that acts as a non- privileged user on the local computer, and presents anonymous credentials to any remote server. QUESTION 71 The purpose of the Finally section in an exception handler is to: A. B. C. D.

Execute code regardless of whether an exception is thrown. Conclude the execution of the application. Execute code only when an exception is thrown. Break out of the error handler.

Correct Answer: A Explanation: By using a finally block, you can clean up any resources that are allocated in a try block, and you can run code even if an exception occurs in the try block. Typically, the statements of a finally block run when control leaves a try statement. The transfer of control can occur as a result of normal execution, of execution of a break, continue, goto, or return statement, or of propagation of an exception out of the try statement. QUESTION 72 This question requires that you evaluate the underlined text to determine if it is correct. To improve performance, a SQL SELECT statement should use indexes. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed joins grouping ordering

Correct Answer: A QUESTION 73 This question requires that you evaluate the underlined text to determine if it is correct. The process of transforming compiled C# code into an XML string for a web service is known as deserialization. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C.

No change is needed serialization decoding

D.

encoding

Correct Answer: B Explanation: Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. Serialization allows the developer to save the state of an object and recreate it as needed, providing storage of objects as well as data exchange. Through serialization, a developer can perform actions like sending the object to a remote application by means of a Web Service, passing an object from one domain to another, passing an object through a firewall as an XML string, or maintaining security or user-specific information across applications. QUESTION 74 You plan to create an application for your company. The application will run automated routines and write the results to a text-based log file. Little or no user interaction is required. Security requirements on the host computers prevent you from running applications on startup, and users must be able to see the status easily on the screen. The host computers also have limited memory and monitors that display only two colors. These computers will have no network connectivity.

Which type of application should you use for this environment? A. B. C. D.

Directx Windows Service console-based Windows Store app

Correct Answer: C Explanation: Building Console Applications Applications in the .NET Framework can use the System.Console class to read characters from and write characters to the console. Data from the console is read from the standard input stream, data to the console is written to the standard output stream, and error data to the console is written to the standard error output stream. QUESTION 75 You have a table named ITEMS with the following fields: ID (integer, primary key, auto generated) Description (text) Completed (Boolean) You need to insert the following data in the table: “Cheese”, False Which statement should you use? A. B. C. D.

INSERT INSERT INSERT INSERT

INTO INTO INTO INTO

ITEMS ITEMS ITEMS ITEMS

(ID, Description, Completed) VALUES (1, ‘Cheese’, 0) (Description, Completed) VALUES (‘Cheese’, 1) (10, Description, Completed) VALUES (NEWID(), ‘Cheese’, 6) (Description, Completed) VALUES (‘Cheese’, 0)

Correct Answer: D Explanation: The string values TRUE and FALSE can be converted to bit values: TRUE is converted to 1 and FALSE is converted to 0. Incorrect: Not A, not C: ID is autogenerated and should not be specified. QUESTION 76 You need to group all the style settings into a separate file that can be applied to all the pages in a Web application. What should you do? A. B.

Use a Cascading Style Sheet (CSS). Use inline styles. Use an Extensible Markup Language (XML) schema.

C. D.

Use a WebKit.

Correct Answer: A Explanation: Cascading Style Sheets (CSS) is a style sheet language used for describing the look and formatting of a document written in a markup language. CSS is designed primarily to enable the separation of document content from document presentation, including elements such as the layout, colors, and fonts. QUESTION 77 Which type of Windows application presents a parent window that contains child windows? A. B. C. D.

Application programming interface (API) Single-document interface (SDI) Multiple-document interface (MDI) Command-line interface (CLI)

Correct Answer: C Explanation:

A multiple document interface (MDI) is a graphical user interface in which multiple windows reside under a single parent window. Such systems often allow child windows to embed other windows inside them as well, creating complex nested hierarchies. This contrasts with single document interfaces (SDI) where all windows are independent of each other. QUESTION 78 You execute the following code.

How many times will the word Hello be printed? A. B. C. D.

49 50 51 100

Correct Answer: B Explanation: The % operator computes the remainder after dividing its first operand by its second. All numeric types have predefined remainder operators. In this case the reminder will be nonzero 50 times (for i with values 1, 3, 5,..,99). QUESTION 79 You execute the following code.

How many times will the word Hello be printed? A. B. C. D.

5 6 10 12

Correct Answer: B QUESTION 80 This question requires that you evaluate the underlined text to determine if it is correct. To minimize the amount of storage used on the hard drive by an application that generates many small files, you should make the partition as small as possible. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed file allocation table block size folder and file names

Correct Answer: C QUESTION 81 You have a server that limits the number of data connections. What should you use to optimize connectivity when the number of users exceeds the number of available connections?

A. B. C. D.

Connection timeouts Named pipes Normalization Connection pooling

Correct Answer: D Explanation: In software engineering, a connection pool is a cache of database connections maintained so that the connections can be reused when future requests to the database are required. QUESTION 82 The purpose of a constructor in a class is to: A. B. C. D.

Initialize an object of that class. Release the resources that the class holds. Create a value type. Inherit from the base class.

Correct Answer: A Explanation: Each value type has an implicit default constructor that initializes the default value of that type. QUESTION 83 You are developing a database that other programmers will query to display race results. You need to provide the ability to query race results without allowing access to other information in the database. What should you do? A. B. C. D.

Disable implicit transactions. place the query into a stored procedure. Create an index on the result table. Add an AFTER UPDATE trigger on the result table to reject updates.

Correct Answer: B QUESTION 84 You are creating an application that presents users with a graphical interface. Users will run this application from remote computers. Some of the remote computers do not have the . NET Framework installed. Users do not have permissions to install software. Which type of application should you choose? A. B. C. D.

Windows Forms Windows Service ASP. NET Console-based

Correct Answer: C QUESTION 85 This question requires that you evaluate the underlined text to determine if it is correct. Internet Information Services (IIS) must be installed on the client computers in order to run a deployed ASP.NET application. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed computer that hosts the application computer that you plan to deploy from Application Layer Gateway Service

Correct Answer: B Explanation: Internet Information Services (IIS) must be installed on computer that hosts the application in order to run a deployed ASP.NET application.

QUESTION 86 You need to debug a Windows Service application by using breakpoints. What should you do? A. B. C. D.

Write all events to an event log. Set the Windows Service status to Paused. Implement the Console.WriteLine method throughout the Windows Service. Use the Attach to Process menu in Microsoft Visual Studio.

Correct Answer: D Explanation: Because a service must be run from within the context of the Services Control Manager rather than from within Visual Studio, debugging a service is not as straightforward as debugging other Visual Studio application types. To debug a service, you must start the service and then attach a debugger to the process in which it is running. To debug a service Install your service. Start your service, either from Services Control Manager, Server Explorer, or from code. In Visual Studio, choose Attach to Process from the Debug menu. Etc. QUESTION 87 Which type of function can a derived class override? A. B. C. D.

a a a a

non-virtual public member function private virtual function protected virtual member function static function

Correct Answer: C Explanation: You can override virtual functions defined in a base class from the Visual Studio. The override modifier is required to extend or modify the abstract or virtual implementation of an inherited method, property, indexer, or event. QUESTION 88 HOTSPOT You have a base class named Tree with a friend property named color and a protected property named NumberOfLeaves. In the same project, you also have a class named Person. For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 89 The purpose of the Catch section in an exception handler is to: A. B. C. D.

Break out of the error handler. Conclude the execution of the application. Execute code only when an exception is thrown. Execute code regardless of whether an exception is thrown.

Correct Answer: C QUESTION 90 HOTSPOT For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 91 When a web service is referenced from a client application in Microsoft Visual Studio, which two items are created? (Choose two.) A. B. C. D.

a stub a.wsdl file a proxy a .disco file

Correct Answer: BD Explanation: A .wsdl file that references the Web service is created, together with supporting files, such as discovery (.disco and .discomap) files, that include information about where the Web service is located. QUESTION 92 You need to evaluate the following expression: (A>B) AND (CB is false.

QUESTION 93 You have a class named Glass that inherits from a base class named Window. The Window class includes a protected method named break(). How should you call the Glass class implementation of the break() method? A. B. C. D.

Window.break(); Glass.break(); this.break(); base.break();

Correct Answer: A QUESTION 94 You are creating an ASP. NET Web application. Which line of code should you use to require a control to process on the computer that hosts the application?

A. B. C. D.

defaultRedirect=”ServerPage. htm” redirect=”HostPage. htm” AutoEvencWireup=”true” runat=”server”

Correct Answer: D QUESTION 95 You are creating a Web application. The application will be consumed by client computers that run a variety of Web browsers. Which term is used to describe the process of making the application available for client computers to access? A. B. C. D.

Casting Deploying Hosting Virtualization

Correct Answer: C Explanation: You host web applications. QUESTION 96 You are creating an application that accepts input and displays a response to the user. You cannot create a graphical interface for this application. Which type of application should you create? A. B. C. D.

Windows Forms Windows Service Web-based Console-based

Correct Answer: C QUESTION 97 A table named Student has columns named ID, Name, and Age. An index has been created on the ID column. What advantage does this index provide? A. B. C. D.

It It It It

reorders the records alphabetically. speeds up query execution. minimizes storage requirements. reorders the records numerically.

Correct Answer: B Explanation: Faster to access an index table. QUESTION 98 You are creating an application for a priority help desk center. The most recent call must be handled first. Which data structure should you use? A. B. C. D.

queue hashtable stack binary tree

Correct Answer: C Explanation: In computer science, a stack is a particular kind of abstract data type or collection in which the principal (or only) operations on the collection are the addition of an entity to the collection, known as push and removal of an entity, known as pop. The relation between the push and pop operations is such that the stack is a Last-In-First-Out (LIFO) data structure. In a LIFO data structure, the last element added to the structure must be the first one to be removed. QUESTION 99 How many parameters can a default constructor have? A. B. C.

0 1 2

D.

3 or more

Correct Answer: A Explanation: If a class contains no instance constructor declarations, a default instance constructor is automatically provided. That default constructor simply invokes the parameterless constructor of the direct base class. QUESTION 100 In the application life cycle, the revision of an application after it has been deployed is referred to as: A. B. C. D.

Unit testing Integration Maintenance Monitoring

Correct Answer: C QUESTION 101 An application presents the user with a graphical interface. The interface includes buttons that the user clicks to perform tasks. Each time the user clicks a button, a method is called that corresponds to that button. Which term is used to describe this programming model? A. B. C. D.

Functional Service oriented Structured Event driven

Correct Answer: D QUESTION 102 This question requires that you evaluate the underlined text to determine if it is correct. When a base class declares a method as virtual, the method is hidden from implementation bv a derived class. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed can be overridden with its own implementation by a derived class must be overridden in any non-abstract class that directly inherits from that class cannot be overridden with its own implementation by a derived class

Correct Answer: B Explanation: The implementation of a non-virtual method is invariant: The implementation is the same whether the method is invoked on an instance of the class in which it is declared or an instance of a derived class. In contrast, the implementation of a virtual method can be superseded by derived classes. The process of superseding the implementation of an inherited virtual method is known as overriding that method. QUESTION 103 This question requires that you evaluate the underlined text to determine if it is correct. A data dictionary that describes the structure of a database is called metadata. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed normalization a database management system (DBMS) metacontent

Correct Answer: A QUESTION 104 You are building a web application that enables international exchange students to schedule phone calls with their prospective schools.

The application allows students to indicate a preferred date and time for phone calls. Students may indicate no preferred time by leaving the date and time field empty. The application must support multiple time zones. Which data type should you use to record the student’s preferred date and time? A. B. C. D.

uLong? DateTime SByte DateTimeOffset?

Correct Answer: D Explanation: datetimeoffset: Defines a date that is combined with a time of a day that has time zone awareness and is based on a 24-hour clock. Incorrect: DateTime: Defines a date that is combined with a time of day with fractional seconds that is based on a 24-hour clock. sByte: The sbyte keyword indicates an integral type that stores values in the range of -128 to 127. QUESTION 105 Class C and Class D inherit from Class B. Class B inherits from Class A. The classes have the methods shown in the following table.

All methods have a protected scope. Which methods does Class C have access to? A. B. C. D. E. F.

only m3, m4 only m2, m3 only ml, m3 m1, m3, m3 m2, m3, m4 m1, m2, m3

Correct Answer: F QUESTION 106 This question requires that you evaluate the underlined text to determine if it is correct. Arguments are passed to console applications as a Hashtable object. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed String Array StoredProcedureCollection Dictionary

Correct Answer: B Explanation: Arguments are passed to console applications as a String Array object. QUESTION 107 HOTSPOT

For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 108 This question requires that you evaluate the underlined text to determine if it is correct. Converting a value type to a reference type in an object is called boxing. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed unboxing interfacing mapping

Correct Answer: A Explanation: Boxing is an implicit conversion of a Value Types (C# Reference) to the type object or to any interface type imple mented by this value type. QUESTION 109 Which three phrases are advantages of connection pooling? (Choose three.) A. B. C. D. E.

reduces time to create a connection requires no configuration reduces load on the server improved scalability improved performance

Correct Answer: ADE Explanation:

E: In connection pooling, after a connection is created, it is placed in the pool and it is used over again so that a new connection does not have to be established. D: Connection pooling often improves application performance, concurrency and scalability. A: Connection pooling also cuts down on the amount of time a user must wait to establish a connection to the database. QUESTION 110 Two classes named Circle and Square inherit from the Shape class. Circle and Square both inherit Area from the Shape class, but each computes Area differently. Which term is used to describe this object-oriented concept? A. B. C. D.

polymorphism encapsulation superclassing overloading

Correct Answer: A Explanation: You can use polymorphism to in two basic steps: Create a class hierarchy in which each specific shape class derives from a common base class. Use a virtual method to invoke the appropriate method on any derived class through a single call to the base class method. QUESTION 111 This question requires that you evaluate the underlined text to determine if it is correct. When creating a site to utilize message queuing, the “IP address” must be configured to MSMQ. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed protocol host header port

Correct Answer: B Explanation: MSMQ is a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner. QUESTION 112 What is displayed when you attempt to access a Web service by using a Web browser? A. B. C. D.

a listing of methods that are available in the Web service a directory listing of the Web service’s application structure an error page explaining that you have accessed the Web service incorrectly a visual depiction of your preliminary connection to the Web service

Correct Answer: A Explanation: The server, in response to this request, displays the Web service’s HTML description page. The Web service’s HTML description page shows you all the Web service methods supported by a particular Web service. Link to the desired Web service method and enter the necessary parameters to test the method and see the XML response.

QUESTION 113 Your application must pull data from a database that resides on a separate server. Which action must you perform before your application can retrieve the data? A. B. C. D.

Configure the network routers to allow database connections. Install the database on each client computer. Create a routine that bypasses firewalls by using Windows Management Instrumentation (WMI). Establish a connection to the database by using the appropriate data provider.

Correct Answer: D QUESTION 114

This question requires that you evaluate the underlined text to determine if it is correct. Unit testing is the final set of tests that must be completed before a feature or product can be considered finished. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed User acceptance System Integration

Correct Answer: B Explanation: User acceptance testing (UAT) is the last phase of the software testing process. During UAT, actual software users test the software to make sure it can handle required tasks in real-world scenarios, according to specifications. UAT is one of the final and critical software project procedures that must occur before newly developed software is rolled out to the market. UAT is also known as beta testing, application testing or end user testing. QUESTION 115 Which service can host an ASP.NET application? A. B. C. D.

Internet Information Services Cluster Services Remote Desktop Services Web Services

Correct Answer: A Explanation: Using Internet Information Services (IIS) Manager, you can create a local Web site for hosting an ASP.NET Web application.

QUESTION 116 HOTSPOT For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 117 This question requires that you evaluate the underlined text to determine if it is correct. A table whose attributes depend only on the primary key must be at least second normal form. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed first third fourth

Correct Answer: A Explanation: 2nd Normal Form Definition A database is in second normal form if it satisfies the following conditions: It is in first normal form All non-key attributes are fully functional dependent on the primary key

QUESTION 118 You need to create a property in a class. Consumers of the class must be able to read the values of the property. Consumers of the class must be prevented from writing values to the property. Which property procedure should you include? A. B. C. D.

Return Get Set Let

Correct Answer: B QUESTION 119 HOTSPOT You have the following flowchart:

Use the drop-down menus to select the answer choice that completes each statement Each correct selection is worth one point.

Correct Answer:

QUESTION 120 You need to create a stored procedure that passes in a person’s name and age. Which statement should you use to create the stored procedure?

A. Option A B. Option B C. Option C D. Option D Correct Answer: B Explanation: Example (nvarchar and int are best here): The following example creates a stored procedure that returns information for a specific employee by passing values for the employee’s first name and last name. This procedure accepts only exact matches for the parameters passed. CREATE PROCEDURE HumanResources.uspGetEmployees @LastName nvarchar(50), @FirstName nvarchar(50) AS SET NOCOUNT ON; SELECT FirstName, LastName, JobTitle, Department FROM HumanResources.vEmployeeDepartment WHERE FirstName = @FirstName AND LastName = @LastName; GO

QUESTION 121 Which language uses Data Definition Language (DDL) and Data Manipulation Language (DML)? A. B. C. D.

SQL C++ Pascal Java

Correct Answer: A Explanation: SQL uses DDL and DML. QUESTION 122 Which language was designed for the primary purpose of querying data, modifying data, and managing databases in a Relational Database Management System? A. B. C. D.

Java SQL C++ Visual Basic

Correct Answer: B Explanation:

SQL is a special-purpose programming language designed for managing data held in a relational database management system (RDBMS). QUESTION 123 In which order do the typical phases of the Software Development Life Cycle occur? A. Development, design, requirements gathering, and testing B. Design, requirements gathering, development, and testing C. Design, development, requirements gathering, and testing D. Requirements gathering, design, development, and testing Correct Answer: D QUESTION 124 HOTSPOT You open the Internet Information Services 7.5 Manager console as shown in the following exhibit:

You need to examine the current configuration of the server W2008R2. Use the drop-down menus to select the answer choice that answers each question. Each correct selection is worth one point.

Correct Answer:

QUESTION 125 Which term is used to describe a class that inherits functionality from an existing class? A. B. C. D.

Base class Inherited class Derived class Superclass

Correct Answer: C Explanation: Classes (but not structs) support the concept of inheritance. A class that derives from another class (the base class) automatically contains all the public, protected, and internal members of the base class except its constructors and destructors. QUESTION 126 Which three are valid SQL keywords? (Choose three.) A. B. C. D. E.

GET WHAT FROM SELECT WHERE

Correct Answer: CDE Explanation: Example: SELECT * FROM Customers WHERE Country=’Mexico’;

QUESTION 127 HOTSPOT You are developing a web application. You need to create the following graphic by using Cascading Style Sheets (CSS):

Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.

Correct Answer:

QUESTION 128 DRAG DROP You are developing an application that displays a list of race results. The race results are stored in the following class:

You need to implement the Add Race method. Match the code segment to its location. To answer, drag the appropriate code segment from the column on the left to its location on the right, Each code segment may be used once, more than once, or not at all. Each correct match is worth one point.

Correct Answer:

QUESTION 129 Where must Internet Information Services (IIS) be installed in order to run a deployed ASP.NET application?

A. B. C. D.

on on on on

the the the the

computer that you plan to deploy from computer that hosts the application Application Layer Gateway Service client computers

Correct Answer: B Explanation: IIS is run on the web server. The web server is hosting the application. QUESTION 130 You run the following code:

What is the value of result when the code has completed? A. B. C. D.

0 10 20 30

Correct Answer: B Explanation: The conditional-OR operator (||) performs a logical-OR of its bool operands. If the first operand evaluates to true, the second operand isn’t evaluated. If the first operand evaluates to false, the second operator determines whether the OR expression as a whole evaluates to true or false. QUESTION 131 You need to allow a consumer of a class to modify a private data member. What should you do? A. B. C. D.

Assign a value directly to the data member. Provide a private function that assigns a value to the data member. Provide a public function that assigns a value to the data member. Create global variables in the class.

Correct Answer: C Explanation: In this example (see below), the Employee class contains two private data members, name and salary. As private members, they cannot be accessed except by member methods. Public methods named GetName and Salary are added to allow controlled access to the private members. The name member is accessed by way of a public method, and the salary member is accessed by way of a public read-only property. Note: The private keyword is a member access modifier. Private access is the least permissive access level. Private members are accessible only within the body of the class or the struct in which they are declared Example: class Employee2 { private string name = “FirstName, LastName”; private double salary = 100.0; public string GetName() { return name; } public double Salary

{ get { return salary; } } } QUESTION 132 You execute the following code.

What will the variable result be? A. B. C. D.

0 1 2 3

Correct Answer: C QUESTION 133 You have a Microsoft ASP.NET web application. You need to store a value that can be shared across users on the server. Which type of state management should you use? A. B. C. D.

Session ViewState Application Cookies

Correct Answer: C Explanation: Application state is a data repository available to all classes in an ASP.NET application. Application state is stored in memory on the server and is faster than storing and retrieving information in a database. Unlike session state, which is specific to a single user session, application state applies to all users and sessions. Therefore, application state is a useful place to store small amounts of often-used data that does not change from one user to another. Incorrect: not A: Session State contains information that is pertaining to a specific session (by a particular client/browser/machine) with the server. It’s a way to track what the user is doing on the site.. across multiple pages…amid the statelessness of the Web. e.g. the contents of a particular user’s shopping cart is session data. Cookies can be used for session state. Not B: Viewstate is a state management technique in asp.net. ASP.NET Viewstate is preserving the data between the requests or postbacks and stored in hidden fields on the page. QUESTION 134 You are creating an application that presents the user with a Windows Form. Which event is triggered each time the Windows Form receives focus? A. B.

Enter Paint

C. D.

Load Activated

Correct Answer: A Explanation: When you change the focus by using the mouse or by calling the Focus method, focus events of the Control class occur in the following order: Enter GotFocus LostFocus Leave Validating Validated QUESTION 135 HOTSPOT For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 136 Which term is used to describe small units of text that are stored on a client computer and retrieved to maintain state? A. B. C. D.

trace cookie server transfer cross-page post

Correct Answer: B

Explanation: HTTP is a stateless protocol. This means that user data is not persisted from one Web page to the next in a Web site. One way to maintain state is through the use of cookies. Cookies store a set of user specific information, such as a reference identifier for a database record that holds customer information. QUESTION 137 What are two possible options for representing a Web application within Internet Information Services (IIS)? (Each correct answer presents a complete solution. Choose two. ) A. B. C. D. E.

Web site Web directory Virtual directory Application server Application directory

Correct Answer: AC Explanation: Create a Web Application An application is a grouping of content at the root level of a Web site or a grouping of content in a separate folder under the Web site’s root directory. When you add an application in IIS 7, you designate a directory as the application root, or starting point, for the application and then specify properties specific to that particular application, such as the application pool that the application will run in. You can make an Existing Virtual Directory a Web Application.

QUESTION 138 Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to as: A. B. C. D.

Software testing Prototyping Flowcharting Analyzing requirements

Correct Answer: A QUESTION 139 This question requires that you evaluate the underlined text to determine if it is correct. Internet Information Services (IIS) must be installed on the client computers in order to run a deployed ASP.NET application. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed computer that hosts the application computer that you plan to deploy from Application Layer Gateway Service

Correct Answer: B Explanation: Internet Information Services (IIS) must be installed on computer that hosts the application in order to run a deployed ASP.NET application. QUESTION 140 HOTSPOT You have the following flowchart:

Use the drop-down menus to select the answer choice that completes each statement Each correct selection is worth one point.

Correct Answer:

QUESTION 141 HOTSPOT You are reviewing the following class that is used to manage the results of a 5K race:

For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 142 HOTSPOT For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 143 This question requires that you evaluate the underlined text to determine if it is correct. When creating a site to utilize message queuing, the “IP address” must be configured to MSMQ. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A.

No change is needed

B. C. D.

protocol host header port

Correct Answer: B Explanation: MSMQ is a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner. QUESTION 144 This question requires that you evaluate the underlined text to determine if it is correct. Unit testing is the final set of tests that must be completed before a feature or product can be considered finished. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed User acceptance System Integration

Correct Answer: B Explanation: User acceptance testing (UAT) is the last phase of the software testing process. During UAT, actual software users test the software to make sure it can handle required tasks in real-world scenarios, according to specifications. UAT is one of the final and critical software project procedures that must occur before newly developed software is rolled out to the market. UAT is also known as beta testing, application testing or end user testing. QUESTION 145 What are two methods that can be used to evaluate the condition of a loop at the start of each iteration? (Each correct answer presents a complete solution. Choose two. ) A. B. C. D.

For Do. . . While If While

Correct Answer: AD Explanation: For and While constructs check at the start of each iteration. QUESTION 146 You execute the following code.

How many times will the word Hello be printed? A. B. C. D.

5 6 10 12

Correct Answer: B QUESTION 147 The purpose of a constructor in a class is to: A. B. C. D.

Initialize an object of that class. Inherit from the base class. Release the resources that the class holds. Create a value type.

Correct Answer: A Explanation: Each value type has an implicit default constructor that initializes the default value of that type.

QUESTION 148 In this XHTML code sample, what will cause an error?

A. B. C. D.

The line break tag is incorrectly formatted. The HTML tags do not read XHTML. The body tag is missing a background attribute, All tags are not in uppercase.

Correct Answer: A Explanation: In XHTML, the tag must be properly closed, like this: . QUESTION 149 DRAG DROP You are developing an application that displays a list of race results. The race results are stored in the following class:

The code that manages the list is as follows:

You need to implement the AddRace method. Match the code segment to its location. To answer, drag the appropriate code segment from the column on the left to its location on the right. Each code segment may be used once, more than once, or not at all. Each correct match is worth one point.

Correct Answer:

QUESTION 150 What are the three basic states that a Windows service can be in? (Choose three.) A. B. C. D.

running starting halted stopped

E.

paused

Correct Answer: BDE Explanation: A service can exist in one of three basic states: Running, Paused, or Stopped. QUESTION 151 This question requires that you evaluate the underlined text to determine if it is correct. The benefit of using a transaction when updating multiple tables is that the update cannot fail. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed succeeds or fails as a unit finishes as quickly as possible can be completed concurrently with other transactions

Correct Answer: B Explanation: The benefit of using a transaction when updating multiple tables is that the update succeeds or fails as a unit. QUESTION 152 A data warehouse database is designed to: A. B. C. D.

Require validation of incoming data during real-time business transactions. Enable business decisions by collecting, consolidating, and organizing data. Support real-time business operations. Support a large number of concurrent users.

Correct Answer: B QUESTION 153 How should you configure an application to consume a Web service? A. B. C. D.

Add Add Add Add

the Web service to the development computer. a reference to the application in the Web service. a reference to the Web service in the application. the Web service code to the application.

Correct Answer: C Explanation: Start by adding a Service Reference to the project. Right-click the ConsoleApplication1 project and choose “Add Service Reference”:

QUESTION 154 Which of the following must exist to inherit attributes from a particular class? A. B. C. D.

Public properties A has-a relationship Static members An is-a relationship

Correct Answer: A Explanation: There must be some public properties that can be inherited. QUESTION 155 You need to create an application that processes data on a last-in, first-out (LIFO) basis. Which data structure should you use? A. B. C. D.

Stack Array Tree Queue

Correct Answer: A Explanation: A stack implements LIFO. QUESTION 156 In the application life cycle, the revision of an application after it has been deployed is referred to as: A. B. C. D.

Monitoring Maintenance Unit testing Integration

Correct Answer: B QUESTION 157 All objects in .NET inherit from which item? A. B. C. D.

a reference type the System.Type class a value type the System.Object class

Correct Answer: D Explanation: The System.Object class supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy. QUESTION 158 You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not already reserved by another guest. Which type of programming should you use to determine whether the room is still available when the request is made? A. B. C. D.

functional in-browser dynamic server-side

Correct Answer: D QUESTION 159 In your student directory database, the Students table contains the following fields: firstName lastName emailAddress telephoneNumber You need to retrieve the data from the firstName, lastName, and emailAddress fields for all students listed in the directory. The results must be in alphabetical order according to lastName and then firstName. Which statement should you use?

A. B. C. D.

Option Option Option Option

A B C D

Correct Answer: D Explanation: to sort use: ORDER BY LastName, FirstName QUESTION 160 HOTSPOT You are creating a Windows Store application that uses the following gesture:

Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.

Correct Answer:

QUESTION 161 You are creating an application that presents the user with a Windows Form. Which event is triggered each time the Windows Form receives focus? A. B. C. D.

Load Enter Activated paint

Correct Answer: B Explanation: When you change the focus by using the mouse or by calling the Focus method, focus events of the Control class occur in the following order: Enter GotFocus LostFocus Leave Validating Validated QUESTION 162 This question requires that you evaluate the underlined text to determine if it is correct. A data dictionary that describes the structure of a database is called metadata. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C.

No change is needed normalization a database management system (DBMS)

D.

metacontent

Correct Answer: A QUESTION 163 Two classes named Circle and Square inherit from the Shape class. Circle and Square both inherit Area from the Shape class, but each computes Area differently. Which term is used to describe this object-oriented concept? A. B. C. D.

encapsulation superclassing polymorphism overloading

Correct Answer: C Explanation: You can use polymorphism to in two basic steps: Create a class hierarchy in which each specific shape class derives from a common base class.

Use a virtual method to invoke the appropriate method on any derived class through a single call to the base class method. QUESTION 164 HOTSPOT You open the Internet Information Services 7.5 Manager console as shown in the following exhibit:

You need to examine the current configuration of the server W2008R2. Use the drop-down menus to select the answer choice that answers each question. Each correct selection is worth one point.

Correct Answer:

QUESTION 165 HOTSPOT For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 166 The Dog class and the Cat class inherit from the Animal class. The Animal class includes a breathe() method and a speak() method. If the speak() method is called from an object of type Dog, the result is a bark. If the speak() method is called from an object of type Cat, the result is a meow. Which term is used to describe this objectoriented concept?

A. B. C. D.

multiple inheritance encapsulation polymorphism data hiding

Correct Answer: C Explanation: Polymorphism is often referred to as the third pillar of object-oriented programming, after encapsulation and inheritance. Polymorphism is a Greek word that means “many-shaped” and it has two distinct aspects: At run time, objects of a derived class may be treated as objects of a base class in places such as method parameters and collections or arrays. When this occurs, the object’s declared type is no longer identical to its run-time type. Base classes may define and implement virtual methods, and derived classes can override them, which means they provide their own definition and implementation. At run- time, when client code calls the method, the CLR looks up the run-time type of the object, and invokes that override of the virtual method. Thus in your source code you can call a method on a base class, and cause a derived class’s version of the method to be executed. QUESTION 167 DRAG DROP You are extending an application that stores and displays the results of various types of foot races. The application contains the following definitions:

The following code is used to display the result for a race:

The contents of the console must be as follows: 99 seconds 1.65 minutes 99 You need to implement the FootRace class. Match the method declaration to the method body. To answer, drag the appropriate declaration from the column on the left to its body on the right. Each declaration may be used once, more than once, or not at all. Each correct match is worth one point.

Correct Answer:

QUESTION 168 Which type of Windows application presents a parent window that contains child windows?

A. Multiple-document interface (MDI) B. Command-line interface (CLI) C. Single-document interface (SDI) D. Application programming interface (API) Correct Answer: A Explanation: A multiple document interface (MDI) is a graphical user interface in which multiple windows reside under a single parent window. Such systems often allow child windows to embed other windows inside them as well, creating complex nested hierarchies. This contrasts with single document interfaces (SDI) where all windows are independent of each other.

QUESTION 169

You are creating a Web application. The application will be consumed by client computers that run a variety of Web browsers. Which term is used to describe the process of making the application available for client computers to access? A. B. C. D.

Deploying Hosting Virtualization Casting

Correct Answer: B Explanation: You host web applications. QUESTION 170 You are developing a webpage that enables students to manage races. The webpage will display two lists: past races and upcoming races. The page also contains a sidebar with contact information and a panel with social media settings that can be edited. Race results can be shared on social media. How many components will be on the webpage? A. B. C. D.

2 3 4 5

Correct Answer: C QUESTION 171 You have a website that includes a form for usemame and password. You need to ensure that users enter their username and password. The validation must work in all browsers. Where should you put the validation control? A. B. C. D.

in in in in

the Web.config file the server-side code only the client-side code only both the client-side code and the server-side code

Correct Answer: D Explanation: From version 2.0 on, ASP.NET recognized the JavaScript capabilities of these browsers, so client-side validation is now available to all modern browsers, including Opera, Firefox, and others. Support is even better now in ASP.NET 4.0. That said, it’s important not to forget that JavaScript can be disabled in any browser, so client-side validation cannot be relied upon–we must always validate any submitted data on the server. QUESTION 172 You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not already reserved by another guest. Which type of programming should you use to determine whether the room is still available when the request is made? A. B. C. D.

client-side batch processing server-side multithreaded

Correct Answer: C Explanation: For room availability we need to check a database located on a server. QUESTION 173 You are creating an application for computers that run Windows XP or later. This application must run after the computer starts. The user must not be aware that the application is running. The application performs tasks that require permissions that the logged-in user does not have. Which type of application allows this behavior?

A. B. C. D.

Windows Forms application DOS batch file Ter minate-and-stay-resident (TSR) program Windows Service application

Correct Answer: D QUESTION 174 You have a table named ITEMS with the following fields: ID (integer, primary key. auto generated) Description (text) Completed (Boolean) You need to insert the following data in the table: “Cheese”, False Which statement should you use? A. B. C. D.

INSERT INSERT INSERT INSERT

INTO INTO INTO INTO

ITEMS ITEMS ITEMS ITEMS

(Description, Completed) VALUES (‘Cheese’, 1) (ID, Description, Completed) VALUES (NEWID(), ‘Cheese’, 0) (ID, Description, Completed) VALUES (1, ‘Cheese”, 0) (Description, Completed) VALUES (‘Cheese’, 0)

Correct Answer: D Explanation: The string values TRUE and FALSE can be converted to bit values: TRUE is converted to 1 and FALSE is converted to 0. Incorrect: Not B, not C: ID is autogenerated and should not be specified. QUESTION 175 This question requires that you evaluate the underlined text to determine if it is correct. Converting an object to a more general type is called upcasting. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed downcasting interfacing flexing

Correct Answer: A Explanation: Casting up a hierarchy means casting from a derived object reference to a base object reference. QUESTION 176 What are two advantages of normalization in a database? (Choose two.) A. B. C. D.

reduces schema limitations minimizes impact of data corruption decreases space used on disk prevents data inconsistencies

Correct Answer: CD QUESTION 177 You have a server that limits the number of data connections. What should you use to optimize connectivity when the number of users exceeds the number of available connections?

A. B. C. D.

Named pipes Normalization Connection timeouts Connection pooling

Correct Answer: D

QUESTION 178 This question requires that you evaluate the underlined text to determine if it is correct. Converting a value type to a reference type in an object is called boxing. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed unboxing interfacing mapping

Correct Answer: A Explanation: Boxing is an implicit conversion of a Value Types (C# Reference) to the type object or to any interface type implemented by this value type. QUESTION 179 A class named Manager is derived from a parent class named Employee. The Manager class includes characteristics that are unique to managers. Which term is used to describe this object-oriented concept? A. B. C. D.

inheritance data modeling data hiding encapsulation

Correct Answer: A Explanation: Classes (but not structs) support the concept of inheritance. A class that derives from another class (the base class) automatically contains all the public, protected, and internal members of the base class except its constructors and destructors. Incorrect: not D: Encapsulation is sometimes referred to as the first pillar or principle of object- oriented programming. According to the principle of encapsulation, a class or struct can specify how accessible each of its members is to code outside of the class or struct. Methods and variables that are not intended to be used from outside of the class or assembly can be hidden to limit the potential for coding errors or malicious exploits. QUESTION 180 You need to create a property in a class. Consumers of the class must be able to read the values of the property. Consumers of the class must be prevented from writing values to the property. Which property procedure should you include? Set A. B. C. D.

Get Let Return

Correct Answer: B QUESTION 181 You need to ensure the data integrity of a database by resolving insertion, update, and deletion anomalies. Which term is used to describe this process in relational database design? A. B.

Normalization Integration

C. D.

Isolation Resolution

Correct Answer: A Explanation: Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy. Normalization usually involves dividing large tables into smaller (and less redundant) tables and defining relationships between them. The objective is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database using the defined relationships. QUESTION 182 You have a class with a property. You need to ensure that consumers of the class can write to the value of the property. Which keyword should you use? A. B. C. D.

Add value Set Get

Correct Answer: C Explanation: Set: The set { } implementation receives the implicit argument “value.” This is the value to which the property is assigned. Property. On a class, a property gets and sets values. A simplified syntax form, properties are implemented in the IL as methods (get, set). QUESTION 183 This question requires that you evaluate the underlined text to determine if it is correct. The bubble sort algorithm steps through the list to be sorted, comparing adjacent items and swapping them if they are in the wrong order. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed merge library insertion

Correct Answer: A QUESTION 184 This question requires that you evaluate the underlined text to determine if it is correct. A piece of text that is 4096 bytes or smaller and is stored on and retrieved from the client computer to maintain state is known as a ViewState. Select the correct answer if the underlined text does not make the statement correct. Select “No change is needed” if the underlined text makes the statement correct. A. B. C. D.

No change is needed cookie form post QueryString

Correct Answer: B Explanation: A piece of text that is 4096 bytes or smaller and is stored on and retrieved from the client computer to maintain state is known as a Cookie. QUESTION 185 You are developing a database that other programmers will query to display race results.

You need to provide the ability to query race results without allowing access to other information in the database. What should you do? A. B. C. D.

Add an AFTER UPDATE trigger on the result table to reject updates. Create an index on the result table. Place the query into a stored procedure. Disable implicit transactions.

Correct Answer: C QUESTION 186 Which function does Simple Object Access Protocol (SOAP) provide when using Web services? A. B. C. D.

communications protocol model for describing Web services directory of registered Web services security model

Correct Answer: A Explanation: SOAP, originally defined as Simple Object Access Protocol, is a protocol specification for exchanging structured information in the implementation of web services in computer networks. It relies on XML Information Set for its message format, and usually relies on other application layer protocols, most notably Hypertext Transfer Protocol (HTTP) or Simple Mail Transfer Protocol (SMTP), for message negotiation and transmission. QUESTION 187 HOTSPOT For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 188 HOTSPOT For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.

Correct Answer:

QUESTION 189 A table named Student has columns named ID, Name, and Age. An index has been created on the ID column. What advantage does this index provide? A. B. C. D.

It It It It

reorders the records alphabetically. reorders the records numerically. speeds up query execution. minimizes storage requirements.

Correct Answer: C Explanation: Faster to access an index table. QUESTION 190 You are creating a database for a student directory. The Students table contains the following fields:

Which statement will retrieve only the first name, last name, and telephone number for every student listed in the directory?

A. B. C. D.

Option Option Option Option

A B C D

Correct Answer: A Explanation: Use SELECT…FROM and list the fields you want to retrieve.

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF