Live Help (Start Chat)
View Count: 0
Duration: 42 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 25 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 24 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

This video is very nice and I want to see all lecture.

Posted By Ramekbal singh on 11-Jul-2017

This video is very nice and I want to see all lecture.

Posted By Ramekbal singh on 11-Jul-2017
Question No: 1 of 24
Data Annotations are implemented as 
Options:
  1. Sealed classes
  2. Static classes
  3. Attribute classes
  4. Regular classes
View Answer/Explanation:
c
Explanation:
Data annotations are attribute classes in the namespace System.ComponentModel.DataAnnotations

Question No: 2 of 24
Data Annotations are in namespace 
Options:
  1. System.ComponentModel.Annotation
  2. System.Data.Annotations
  3. System.DataAnnotations
  4. System.ComponentModel.DataAnnotations
View Answer/Explanation:
d
Explanation:
Data annotations are attribute classes in the namespace System.ComponentModel.DataAnnotations

Question No: 3 of 24
Data Annotations can be used only in ASP.NET MVC Applications 
Options:
  1. True
  2. False
View Answer/Explanation:
b
Explanation:
These annotations are available across various Visual Studio projects includingASP.NET MVC, Web Forms, Silverlight & WPF.

Question No: 4 of 24
Data Annotations are used wit 
Options:
  1. Controller
  2. Model
  3. View
  4. Business Objects
View Answer/Explanation:
b
Explanation:
The benefit of implementing the rules within model object is that this will ensure that the validation will be enforced via any scenario within our application that uses the model object. This will help ensure that we keep our code DRY and avoid repeating rules in multiple places

Question No: 5 of 24
Which of the following are not valid Annotation 
Options:
  1. StringLength
  2. Remote
  3. CreditCard
  4. FileExtensions
View Answer/Explanation:
c
Explanation:
StringLength, Remote & File Extension are validations Attributes.

Question No: 6 of 24
Display Attribute can be used for which of the following 
Options:
  1. Either Show or Hide model property
  2. Setting the Order of Model Properties
  3. To set the text of label of Model Property
  4. Format the Value of Model property
View Answer/Explanation:
b c
Explanation:
It has two properties Name is text of Label Order is used to set the order of item in the list.

Question No: 7 of 24
Which property of Validation Attributes can be used for changing the error message? 
Options:
  1. Text
  2. ErrorMessage
  3. Error
  4. ErrorText
View Answer/Explanation:
b
Explanation:
Gets or sets an error message to associate with a validation control if validation fails.(Inherited from ValidationAttribute.)

Question No: 8 of 24
public class Employee 
 {    
 [Required(_____________ = "User Name is Required")]    
 public string UserName { get; set; }
 } 
Fill In the blank 
Options:
  1. ErrorMessage
  2. Required
  3. Error
  4. Message
View Answer/Explanation:
a
Explanation:

Question No: 9 of 24
[_________(1, 10)] public int PropertyName { get; set; } 
Fill in the blank if the value of PropertyName should between 1 and 10 
Options:
  1. Between
  2. RangeValidation
  3. Range
  4. BetweenValidation
View Answer/Explanation:
c
Explanation:

Question No: 10 of 24
[FileExtensions(__________ = "png,jpg,jpeg,gif")]
 Public string Photo {get; set ;} 
Fill in the blank. 
Options:
  1. Types
  2. Files
  3. Attachments
  4. Extensions
View Answer/Explanation:
d
Explanation:
To Restrict or Validating the file type using File Extensions

  1