wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CASE Net Unit 4-6

Total questions: 50

Worksheet time: 50mins

Name
Class
Date
1.

What techniques are used to eliminate the vulnerabilities in web application?

a)

A proper input validation

b)

Injection attacks

c)

Vulnerable attacks

2.

Which are the TWO approaches that the developer can take to perform input validation?

a)

Client-side Input Validation

b)

SQL Input validation

c)

Server-side Input Validation

3.

A client-side language is used to perform client side validation that includes languages such as...

a)

PHP

b)

JavaScript

c)

VBScript

4.

Server-side Input Validation consumes extra time and ______________

a)

Data

b)

Processes

c)

Bandwidth

d)

Network traffic

5.

What is an Input Filtering?

a)

A process of rejecting or accepting user inputs as per predefined criteria

b)

It prevents the application from unrecognized or malicious inputs

c)

The user input matches or compares with the predefined set of input characters to determine acceptability

d)

All of the above

6.

There are two techniques to filter inputs.

Select the correct answers

a)

Black Listing

b)

User Inputs

c)

Malicious Inputs

d)

White Listing

7.

What is the usage of a RequiredField validation control

a)

Is to ensure that designated input fields are not left blank

b)

To add control in the web

c)

To custom summary control

8.

The server tag <asp:RangeValidator> is used to...

a)

Ensure that designated input fields are not left blank

b)

Add the RequireField validation control in the web form for a specific input field

c)

Add the range validation control in the web for specific input field

9.

What tag is actually used to add the RegularExpression Validation control?

a)

<asp: RegularExpressionValidator>

b)

<asp: RegularExpressionController>

c)

<asp: RegularExpressionValidatorInput>

d)

asp: RegularExpressionValidator

10.

The server tag <asp: ValidationSummary> is used to ...

a)

Add Validation Summary Control

b)

To summary the web

c)

To display any error message summary

d)

All of the above

11.

This techniques helps in distinguishing between ________ and _________________________ of user input.

a)

Code, data irrespective

b)

Parameters, query

c)

SQL, data irrespective

12.

The parameterized stored procedure also allows the developer

a)

To write SQL code

b)

To escape special characters from user input before supplying them to query

c)

To replace the escape characters

13.

A type of users inputs can be HTML, JavaScript, uploaded files, White List

a)

True

b)

False

14.

If the HtmlEncode method is not used, then malicious input may...

a)

Return to an error that request it out of bounds

b)

Harm the application

c)

Be added using middleware

15.

What is an output encoding?

a)

A technique in which characters are treated as data instead of characters themselves

b)

Is the amount of codes produced by a machine

c)

Is the process of converting data from one form to another.

16.

Choose which word describes better the process of rejecting users inputs as per predefined criteria.

a)

Server-slide

b)

Input Validation

c)

Input Filtering

d)

Output Validation

17.

Difference between Authentication and Authorization

Choose only the ones that describes Authentication

a)

Is the process of verifying a user's identity

b)

Is always performed first than the other process

c)

Is a process of giving a specific rights to other process

18.

Choose the meaning of Account Hijacking

a)

Intercepting the traffic to read and modify data

b)

Accessing the account of a legitimate user by guessing or stealing the credentials

c)

Acquiring higher level privileges for an account

19.

What is Phishing

a)

Luring the legitimate user to enter his/her credential through fake website links

b)

Intercepting the traffic to read or modify data during transmission

c)

Gaining access to restricted resources

20.

Select which common attack means "Acquiring Higher-level privileges for an account"

a)

Phising

b)

Privilege Escalation

c)

Sniffing privileges

d)

Unauthorized access

21.

Which one uses client certificates to prove their identity?

a)

Certificate Authentication

b)

Anonymous authentication

22.

Choose the statements that describes "Impersonation"

a)

A process of ensuring user identity to access protected resources.

b)

Is the approval or denial of the access to resources is based on user identity

c)

It helps run server processes by using security credentials of the client

23.

Choose true or false if an Impersonation Option is missing.


-Impersonation is Disabled

-Impersonation Enabled

-Impersonation Enabled for a Specific Identity

a)

FALSE

b)

TRUE

24.

Select the ways of programming for user authorization

a)

Explicit Authorization

b)

Declarative Authorization

c)

Imperative Authorization

d)

User Authorization

25.

SQL Server supports Three types of roles

a)

User-defined Database Roles

b)

Application Roles

c)

SQL Role

d)

Fixed Database Roles

26.

IdentityServer4 is an _______________ and ____________ framework for ASP.NET Core 2

a)

OpenID Connect, OAuth 2.0

b)

Issues access token, APIs

c)

Implement ASP.NET, Mvc Client

27.

Which is the name of Namespace for Authorization?

a)

Microsoft.AspNetCore.Authorization

b)

ASP.NetCoreIdentity

c)

AuthorizationHandlers

28.

ASP.Net Core Identity (ASP.NetCoreIdentity) provides _______________ to manage roles

a)

RoleManager

b)

Control Management

c)

RoleAdministrator

29.

What should be used to prevent users from repeated login attempts with wrong passwords

a)

The number of failed login attempts should be set to the minimum level

b)

The number of failed login attempts should be set to the maximum level

30.

Regular expressions are used to validate the _______________ entered through the ____________________ control

a)

Expressions, validation

b)

Expressions, CreateUserWizard

c)

Password, CreateUserWizard

31.

________________ is the process of verifying a user's identity with an application on the basis of verification of some sort of credentials

a)

Identification

b)

Authentication

c)

Delegation

d)

None of the above

32.

Name the process of giving an authenticated user the specific rights to access a particular resource

(a)  

33.

Delegation is a more powerful form of impersonation where ____________ can access the resources located on remote server

a)

ASP.NET

b)

SQL

c)

System.Web.MVC

34.

Each of these processes is performed at different levels of the .NET web application security architectures

Choose the right ones

a)

ASP.NET

b)

Enterprise Services

c)

SQL server level

d)

All of the above

35.

____________________ refers to protection of information by transforming it in such a way that resulting transformed form is unreadable to an unauthorized party

a)

Signatures

b)

Cryptography

c)

Code

d)

Hashing

36.

Ciphers are _____________ used to encrypt or decrypt the data.

a)

Encrypted data

b)

Encryption Keys

c)

Algorithms

37.

Functions of Cryptography

a)

Confidentially

b)

Integrity

c)

Non-repudiation

d)

Authentication

e)

All of the above

38.

What should you do to secure .NET Applications from Cryptographic attacks?

a)

Avoid implementing custom cryptography function as it may create weak encryption

b)

Keep the keys as long as possible

c)

Change keys periodically

d)

Use digital signatures for improving asymmetric encryption

e)

Secure XML document using digital signature

39.

.NET Cryptography Namespaces

a)

System.Security.Cryptography

b)

System.Security.Cryptography.X509Certificate

c)

System.Security.Cryptography.Xml

d)

All of the above

40.

_______________ is used to maintain confidentiality, integrity, and authenticity of the sensitive information.

a)

Cryptography

b)

Symmetric

c)

Asymmetric

d)

Hashing

41.

The use of the XML file in the application increases as it provides more flexibility in exchanging information

a)

True

b)

False

42.

Hashing is used to check the integrity of the message

a)

True

b)

False

c)

Super False

43.

Choose the correct words to fill the blank

_______ signatures are used to prevent ________ file from tampering.


Note: Same word is used to fill both spaces

a)

XML

b)

.NET

c)

Digital

44.

The digital certificate is used to ...

a)

Secure Public keys in the digital process

b)

Check the integrity of the message

c)

Prevent XML file from tampering

d)

Maintain confidentially

45.

What does the secret manager tool do?

a)

Stores sensitive data on the local system

b)

Can read secrets stored

c)

Stores secrets on your local machine

d)

All of the above

e)

None of the above

46.

What does configure the data protection system to alter the default cryptographic algorithms used to generate protected payload?

a)

UseCryptographicAlgorithms

b)

System.Security.Cryptography

c)

Hashing String

47.

Multiple applications using the same physical key repository are isolated from each other by: _____________

a)

IDataProtector

b)

App isolation

c)

Data Protection System

48.

Extract environment variables values by calling _______________

a)

Vulnerable Code

b)

AddEnvironmentVariables

c)

Hashing String

49.

What does include ASP.NET Core to protect data?

a)

Data protection API

b)

System.Security.Cryptography.Xml

c)

Trusted Intermediary solution

50.

Which are the basic areas of cryptography?

a)

Symmetric encryption

b)

Asymmetric encryption

c)

Hashing

d)

Digital Signatures

e)

All of the above