QUESTION 131
You need to allow a consumer of a class to modify a private data member. What should you do?
A. |
Assign a value directly to the data member. |
B. |
Provide a private function that assigns a value to the data member. |
C. |
Provide a public function that assigns a value to the data member. |
D. |
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. |
0 |
B. |
1 |
C. |
2 |
D. |
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. |
Session |
B. |
ViewState |
C. |
Application |
D. |
Cookies |
Correct Answer: C
Explanation:
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. |
Enter |
B. |
Paint |
C. |
Load |
D. |
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. |
trace |
B. |
cookie |
C. |
server transfer |
D. |
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. |
Web site |
B. |
Web directory |
C. |
Virtual directory |
D. |
Application server |
E. |
Application directory |
Correct Answer: AC
Explanation:
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. |
Software testing |
B. |
Prototyping |
C. |
Flowcharting |
D. |
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. |
No change is needed |
B. |
computer that hosts the application |
C. |
computer that you plan to deploy from |
D. |
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:
Free VCE & PDF File for Microsoft 98-361 Real Exam
Instant Access to Free VCE Files: MCSE|MCSA|MCITP…
Instant Access to Free PDF Files: MCSE|MCSA|MCITP…
70-410 Dumps VCE PDF
70-411 Dumps VCE PDF
70-412 Dumps VCE PDF
70-413 Dumps VCE PDF
70-414 Dumps VCE PDF
70-417 Dumps VCE PDF
70-461 Dumps VCE PDF
70-462 Dumps VCE PDF
70-463 Dumps VCE PDF
70-464 Dumps VCE PDF
70-465 Dumps VCE PDF
70-480 Dumps VCE PDF
70-483 Dumps VCE PDF
70-486 Dumps VCE PDF
70-487 Dumps VCE PDF