Question No: 141 – (Topic 2)

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?

Windows Store app

console-based

DirectX

Windows Service

Answer: B

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 No: 142 HOTSPOT – (Topic 2)

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

Answer:

Explanation:

C:\Users\Kamran\Desktop\image.jpg

Question No: 143 HOTSPOT – (Topic 2)

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.

Answer:

Explanation:

C:\Users\Kamran\Desktop\image.jpg

Question No: 144 – (Topic 2)

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 quot;No change is neededquot; if the underlined text makes the statement correct.

No change is needed

unboxing

interfacing

mapping

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 No: 145 – (Topic 2)

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 quot;No change is needed#39;#39; if the underlined text makes the statement correct.

No change is needed

joins

grouping

ordering

Answer: A

Question No: 146 – (Topic 2)

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?

in the Web.config file

in the server-side code only

in the client-side code only

in both the client-side code and the server-side code

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 No: 147 HOTSPOT – (Topic 2)

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.

Answer:

Explanation:

C:\Users\Kamran\Desktop\image.jpg

Question No: 148 – (Topic 2)

Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to as:

Software testing

Prototyping

Flowcharting

Analyzing requirements

Answer: A

Question No: 149 HOTSPOT – (Topic 2)

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.

Answer:

Explanation:

C:\Users\Kamran\Desktop\image.jpg

Question No: 150 – (Topic 2)

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?

client-side

batch processing

server-side

multithreaded

Answer: C

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