Asp.Net Security MCQ

If any user has disabled cookies in their browsers, what can you do to enable them to use forms authentication?

 Set cookieless=true;

 Use the AutoDetect setting of the cookieless attribute

 None

 Set BoweserCookieEnabled=true;

Which of the following Web.config files correctly enables the Web application to track the LastVisit of anonymous users in a variable of type DateTime?

Answer

Correct Answer:

 <anonymousIdentification enabled='true' />

<profile>

<properties>

<add name='LastVisit' type='System.DateTime' allowAnonymous='true' />

</properties>

</profile>



Note: This Question is unanswered, help us to find answer for this one

You are creating an ASP.NET application for Google. The company uses Microsoft Windows authentication. All users are in the Google domain.

You want to configure the application to use the following authorization rules:

1. Anonymous users must not be allowed to access the application.

2. All employees except Raj and Shiva must be allowed to access the application.


Which code you will apply to configure the application?

Answer

Correct Answer:

 <authorization>

<deny users=' Google \Raj, Google \Shiva'>

<deny users='?'>

<allow users='*'>

</authorization>


Note: This Question is unanswered, help us to find answer for this one

How many types of authentication ASP.NET supports?

Answer

Correct Answer: All

Note: This Question is unanswered, help us to find answer for this one

You are creating an ASP.NET application for company CareerRide. You use form based authentication to validate users. You need to prevent unauthenticated users from accessing the application. What should you do?

Answer

Correct Answer: In the authorization section of the Web.config file, set the users attribute of the deny element to '?'

Note: This Question is unanswered, help us to find answer for this one

Choose the correct option according to given statements.


Statement 1: Authentication is the process that determines the identity of a user.

Statement 2: Authorization is the process of determining whether a user is permitted access to any part of an application, or any particular resource.

Statement 3: Authorization is the process that determines the identity of a user.

Statement 4: Authentication is the process of determining whether a user is permitted access to any part of an application, or any particular resource.


Answer

Correct Answer: Statement 1 and Statement 2 are correct

Note: This Question is unanswered, help us to find answer for this one

Which of the following controls provides a link for unauthenticated users to log on?

Answer

Correct Answer: LoginStatus

Note: This Question is unanswered, help us to find answer for this one

Windows-Based Authentication is well suited for.

Answer

Correct Answer: Intranet environment

Note: This Question is unanswered, help us to find answer for this one

You use the ASP.NET Web Site Administration Tool to configure ASP.NET membership with forms authentication. What should you name your login form so that you do not have to modify the Web.config file?

Answer

Correct Answer: Login.aspx

Note: This Question is unanswered, help us to find answer for this one

The following group profile properties defined under a group name in Web.config file. How will you access Street and City property?

Answer

Correct Answer: - Profile.Address.Street - Profile.Address.City

Note: This Question is unanswered, help us to find answer for this one