0% found this document useful (0 votes)
782 views59 pages

MVC - Entity Framework - SQL Server PDF

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 59

5)A query is an expression that retrieves data from a data source?

​True ​or
ASP.NET MVC | Entity Framework | SQL Server false
6)for any injection ,we use
Which of the following method is used to get correct type for the specified a)[inject]
target role in a relationship in the class relationship manager? Select one: b)none
a.​GetRelated End c) [injection creato]
b.getRelatedCollection d) [inject initialze]
c.GetObjectstateEntries
d.None 7)which of the following is not a HtmlHelper?
a)LabelFor
​ atasha is trying to access a page but she is not able to do it. on the other
1) N b)EditorFor
hand when john logged in via his credentials he could. what may be the c)ValidationMessageFor
reason? d)None of the listed options

a)webserver credential overriding 8)how can we disable proxy object creation in POCO?
b)role based access A) CONTEXT.CONTEXTOPTIONS.ENABLED = FALSE;
c) Url customization B) CONTEXT.CONTEXTOPTIONS.PROXY=FALSE;
d) account rendering C) CONTEXT.CONTEXTOPTIONS.PROXYENABLED = FALSE;
D) CONTEXT.CONTEXTOPTIONS.PROXYCREATIONENABLED = FALSE;
2) LINQ stands for ​language integrated query.
9)SaveChanges() will be raised exception when which of the following object
3)If foreign key coloumns are not available in the model , the relationship is added to the objectcontext and it cannot be successfully created in the
are refered with the object references instead of foreign key properties data source?
.what is the association called?
a)DbException
a)independent association b)Savexception
b)dependent association c)ChangeException
c)relationship d)UpdateException
d)entityrelationship
10)Activator class cannot be inherited? ​True o
​ r false
4)which all index options can be set without rebuilding the index?
a​)allow_page_locks 11)which of the following class object is used for manipulating entity and
b)allow_row_locks trigger the changes while insert, delete and update on the entity?
c)ignore_dup_keys
d)data_compression a) DbContext
e) statistics_norecompute b) DataContext
c) Model-defined Functions d)none
c. from s in ctx.Students where s.StudentName == "Kishore" include new {
12) _____________is an xml-based language which describes the entities, s.StudentName, s.DepartmentName, s.GroupName };
functions and relationships which create a conceptual model of an d. None of the listed options
application? ​conceptual schema definition language
18) which of the following should you to choose to activate buildview
13)Which of the following mapping is supported by Fluent Api?
property in asp.net​? <MvcBuildViews>true</MvcBuildViews>
a) Model-wide mapping
a) entity mapping 19) ssdl – ​store schema definition language
b) property mapping
c) all 20) dependencyresolver() is destructor? True or ​false

14)what are the significance of recovery model setting? 21) how is the data of partition tables managed?
a)it determines how much data can be recovered in the event of a media (a) The data of partitioned tables and indexes is divided into units
failure (b) the data is partitioned horizontally
b) it determines the location where the data should be recovered in the (c) the default is partial which provides the greatest level of recovery
event of a media failure (d) The table or index is treated as single logical entity.
c)the default recovery is full , which provieds the greatest level of recovery
d) the default is partial which provides the greatest level of recovery 22) Your manager has given you a task. It reads as follows:- the product list
should be shown and when the user clicks on the product name it should
16) In application page. you are supposed to take details from a user but you Show it's details. Do it without Using Json.
to make sure that the user doesn't leave this space blank. Which of the Which of the following would you choose?
following will accomplish this objective?
a. $(function(){ var service=new ProductService();
a. [Required] public Pricate string service.GetInstructorNames(function(result){${result).each(function(result
Details{get;set;} ){$("<option>").val(this.ID).text(this.Name)
b. [Required] public virtual string .appendTo("#productSelect");});});
Details{get;set;}
c. [Must] public virtual string b. $("#productSelect").change(function(){ var val=$("#productSelect").val()
Details{get;set;} if(parseInt(val)){ var service=nes ProductService();
d. [Must] public virtual int Details{get;set;} service.GetProductDetails(val.function(data)) {var list=("<ul></ul>");
$(data.Facts).each(function(){$("<li>"+this+"</li>").appendTo(list);});
17) Which of the following option is CORRECT to select only the coulumns $("productShow").html(list); }); } else { $("#productShow").html("");} });
StudentName, Department and GroupName from the student entity of the
student name "Kishore"?
c. $("#productSelect").change(function(){ var val=$("#productSelect").val()
a. from s in ctx.Students where s.StudentName == "Kishore" select new {
if(parseInt(val)){ var service=nes ProductService();
s.StudentName, s.DepartmentName, s.GroupName } service.GetProductDetails(val.function(data)) {var list=("<ul></ul>");
b. from s in ctx.Students where s.StudentName == "Kishore" where new { $(data.Facts).each(function(){$("<li>"+this+"</li>").dependTo(list);});
s.StudentName, s.DepartmentName, s.GroupName };
$("productShow").html(list); }); } else { $("#productShow").html("");} }); 24. You have to validate project name from the company database.-Which
of
d. $(function(){ var service=new ProductService(); the following will be helpful?//hold
service.GetInstructorNames(function(result){${result).each(function(result
) a. public string Pname{ get; set;}
{$("<option>").val(this.ID).text(this.Name) .appendTo("#productSelect");}); [Remote ("CheckPname"."Home"."Error Message="Name not there")]
public JavaResult CheckPname (string Pname)
23) Which of the following Entity will create a table with the following {/* validation code*/}
specifications: return Java(result,JsonRequestBehavior.AllowGet);

I. It should have FirstName and should be required b. public string Pname{ get; set;}
II. It should have LastName and should be Required [Compare ("CheckPname"."Home"."Error Message="Name not there")]
III. Full Name must be FirstName LastName public JsonResult CheckPname (string Pname)
IV. EmployeeID should be primary key {/* validation code*/}
V. It should have DepartmentID return Json(result,JsonRequestBehavior.AllowGet);
VI. Department Entity should be lazy loading
c. public string Pname{ get; set;}
a. public class Employee [Remote ("CheckPname"."Home"."Error Message="Name not there")]
b. public class Employee{ public string EmployeeId {get;set;} public string public JsonResult CheckPname (string Pname)
FirstName {get;set;} public string FullName {get;set;}public string {/* validation code*/}
DepartmentId{get;set;} public Department Department{get;set;}} return Json(Pname,JsonRequestBehavior.DenyGet);

c. public class Employee{[key]public string EmployeeId{get;set;}public string d. public string Pname{ get; set;}
FirstName{get;set;}[DatabaseGenerated(DatabaseGeneratedOption.Comp [Remote ("CheckPname"."Home"."Error Message="Name not there")]
uted)]public string FullName { get{ return FirstName +"."+ LastName; }} public JsonResult CheckPname (string Pname)
public string DepartmentID{get;set;) public virtual Department {/* validation code*/}
Department{get;set;}} return Json(result,JsonRequestBehavior.AllowGet);

d. public class Employee{ [key] public string EmployeeId {get;set;} public 25)which statements are true about large clr user defined types?
string FirstName {get;set;} public string FullName {get;set;}public string (a​) Extend exisiting SQL Server Type Sysytem​.
DepartmentId{get;set;} public Department Department{get;set;}} b) Department Entity should be lazy loading
(c)Allow you to store CLR objects in SQL Server Database​.
e. public class Employee{[key]public string EmployeeId{get;set;}public string (d) It should have DepartmentID
FirstName {get;set;}[DatabaseGenerated]public string FullName { get{
return
FirstName +"."+ LastName; }} public string DepartmentID{get;set;) public
26)how can we delete the database on the database server if it exists?
Department Department{get;set;}}
Delete (DB connection)
27. Which of the following code can be used as an option for partial view 32)In Lazy loading,the navigation property has to be declared as:
through child request? a.static
b.public
a. Part [email protected]("Sampleone","Feedback") c.proxy
Part 2= [ChildActionOnly] d.virtual
public ActionResult Sample_one()
{*..some code..*} 33)Which statements are true about CLR stored procedures?
a.It is a reference to a Microsoft.NET Framework common language
b. Part [email protected]("Sampleone","Feedback") runtime(CLR)method.
Part 2= [ChildAction] public ActionResult b.The method can take and return user-supplied parameters
Sample_one() c.The method can only take input parameters.
{*..some code..*} d.They are implemented as public,static methods on a class in a .NET
Framework assembly.
c. Part e.They are implemented as private,protected methods on a .NET Framework
[email protected]("Sample_one","Feedback") assembly.
Part 2= [ChildActionOnly] public ActionResult
Sample_one() 34)What are the benefits of using a Unique index?
{*..some code..*} a.It is less error prone.
b.Data integrity of the defined columns is ensured
d. Part [email protected]("Sampleone","Feedback") c.Additional information helpful to the query optimizer is provided.
Part 2= [ChildAction] public ActionResult d.The performance is not degraded.
Sample_one()
{*..some code..*}
36)Which of the following is not the Design goal of ASP.NET MVC3? //hold
28)which one of the following are the should be none of the listed as it asks for not goal
properties of the HTTPCONFIGURATION CLASS? i.Embrace the Web
a) ​Dependency Resolver ii.Testable
b) hTTPCONFIGURATION
(​c) Mesaage Handlers a.ii only
d) CLASS b.Both i and ii
c.None of the listed options
29)choose handle error attribute globaly​. All of the listed options​. d.i only
31)How can we set primary key explicitly for an entity?//Hold
a.ModelBuilder.CreateKey<Entity>(t=>t.KeyColumnYouWant); 37)What are the limitations of Ownership chaining?
b.ModelBuilder.Entity<Entity>().HasKey(t=>t.KeyColumnyouWant); a.Applies only to DML statements:SELECT,INSERT,UPDATE and DELETE.
c.ModelBuilder.Key<Entity>(t=>t.KeyColumnYouWant); b.The owners of the caliing and the called objects must be the same.
d.None of the listed options. c.The owners of the calling and the called objects must be different.
d.Does not apply to dynamic queries inside the module.
43)Novak is a given a task by his manager to strictly load a particular image
38)What does the following syntax do? CREATE only after page gets loaded.What will you advice him to do?
TABLE T1(Col1 int primary key,Col2 xml) I. Tell him to use JavaScript.
a. It creates a row in a table. ii. Tell him to combine OnLoad function withJavaScript.
b. It creates a column of type int in the table & sets it as a primary key iii. Tell him to use AfterLoad function with JavaScript.
c. It creates a column of type xml. A. I and ii
d. It creates an empty table. B. ii and iii
C. I and iii
39)Partial page rendering does which of the following? d. I, ii, iii
a. Removes the need for the whole page to be refreshed as the result of a
HTTPGet 44)In console window,PM stands for _________
b. Removes the need for the whole page to be refreshed as the result of a a. Project Manager.
post back. b. Package Manager.
c. Only header of the page that have changed are updated. c. Package Model.
d. Only individual regions of the page that have changed are updated. d. Priority Manager.

40)How are user defined functions different from User-defined Stored 45)Which statements are true about the GROUPING function?
Procedures? a. It is an aggregate function that causes an additional column to be used
a. In user-defined function the default parameter is specified with a with a value of 1 when the row is added by either the CUBE or ROLLUP
DEFAULT keyword. operator.
b. In User-defined function omitting the parameter also implies default b.It is an aggregate function that causes an additional column to be used
value. with a value of 0(True) when the row is added by either the CUBE or ROLLUP
c. User-defined functions do not support output parameters. operator.
d. User-defined functions do support output parameters. c.It is an aggregate function that causes an additional column to be used
with a value of 0 when the row is not the result of CUBE or ROLLUP
41)Which of the following is used to provide short expression for querying operator​.
entities over linq? d.It is an aggregate function that causes an additional column to be used
a. LINQ to Dataset with value equal to the number of rows added by either the CUBE or
b. LINQ to SQL. ROLLUP operator.
C. Lambda expression. e.Grouping is allowed only in the select list associated with a GROUP BY
D. None of the listed options clause that contains either the CUBE or RoLLUP operator.

42)Which of the following approach do we avoid working with the visual 46.by default, the entry framework will generate the database queries and
designer or entity framework​? a.Code First Approach​. update commands when your code interacts with the model?
b.Model First Approach. True ​or false ??
c.Database Approach.
d.None of the listed options.
47.entity is defined as _______ of the object, but not the behavior of the 52.Fredrick is carrying out a TDD and is expecting ArgumentOutOfRange
object?(QUES NOT CLEAR) exception but he does not known how to write a code to declare that an
exception is expected.To help him, which of the following would you
a.Object choose?
b.Schema select one;
c.Entity a.[Exception.Expected=ArgumentOutOfRange]
d.None b.[ArgumentOutOfRangeException.Expected]
c.[ExpectedException(typeof(ArgumentOutOfRange))]
48.Entity framework is an open source framework? ​True ​or false d.[ArgumentOutOfRange.Expected=True]

49.In an application page, you are suppose to take students % between 53.How are Database-level principles categorized?(Multiple )
4080. which of the following will accomplish this objective?select one a.database administrator
b.database user
a.[Range (40,80)] public virtual int c.database role
Perc{get;set;} d.windows role
b.[between (40;80)] public virtual int e.Application role
Perc{get;set;}
c.[Range (40,80)] public virtual string 54.In caching,by default the location property have the value___
Perc{get;set;} a.All
d.[Range (40||80)] public virtual int b.Any
Perc{get;set;} c.None
d.Auto
50.What kind of data does the XML datatypes store in SQL server?
a.Office documents 55.Which of the following is a way to install/download a Nuget in your
b.Memory maps system?
c.XML documents a.In your browser go to nuget.org>click on download
d.Fragments b.In a visual studio, right click on references>Add
LibraryPackageReferences>search nuget>Install
51.What does a cache profile do?//hold ​c.All of the listed options
i.Cache profile allows libraries to provide fast output to sql d.In visual studio, go to tools>Extension manager>search Nuget>Install
queries ii.Cache profile avoids repetition in cache attributes select
one:
57.Entity framework support foreign key? ​true ​or f
a.Both i and ii
b.i only
58.If your are moving your project from MVC2 to MVC3 what will be the
c.ii only
value of "Unobtrusive JavaScriptEnabled" (or) By default value of
d. None of the listed options "Unobstustive
JavaScriptEnabled" is => ​true ​or false
d.Config.config
59.We can write raw sql query in SQLQuery() method in entity framework? T
orF => ​true ​or false 6. Model Binder Interface defines.select one

60.Which namespace is used to handle EntityClient provider? a. the .dll files that are requested for a model binder
a. System.Data.EntityClient b.the interfacae that are required for a model binder
b.System.Tractions c. the assembly that are required fro a model binder
c.system.data.annotations d. the methods that are required for a model binder
d.None of the listed options
************************************************************** 7. Which statements are true about the max constant in a varchar type?
1. Which of the following require type-casting in the view? a. It can be used when the data can exceed more than 8000 charcters
I.ViewData b. It can be used to fix the max length of charcters for the entire column
II.TempData c. It can be used to store large blocks of text
d. It can be used to store large image types.
Select one:
a.I only 10. Which of the following methods make entity framework fro detecting
b.II only changes automatically? select one :
c.Both I and II a.DBSet.FInd
b.DBSet .Remove
3. How is a User-defined table-valued function in SELECT,INSERT,UPDATE or C.DBSEt.Attach
DELETE statements is invoked? d.all

Select one: 11) Which one in the following is not included in the configuration
a. ​A User-defined table-valued function can be invoked in the FROm clause hierarchy?
of a SELECT,INSERT,UPDATE & DELETE statement ASP.NET Application sub directory
b.A User-defined table-valued function can be invoked as a stored procedure
from a clause of a SELECT,INSERT,UPDATE & DELETE statement ASP.NET root directory
c.A User-defined table-valued function can be invoked in the WHERE clause root web
of a SELECT,INSERT,UPDATE & DELETE statement IIS
d.A User-defined table-valued function can be invoked in the USING clause ASP.NET client server sub directory
of
a SELECT,INSERT,UPDATE & DELETE statement 12) Unchanged State is the default state for an entity while the entity is
retrieved from the database. ​T ​or f?
4. You are given a task by your manager that includes assembly
binding.Which file would you configure? Select one: a.System.config 13) Which of the following are database initializers used in Entity
b.Web.config Framework (or) what are available database initializers in
c.Machine.config EntityFramework Code first model?
CreateDatabaseIfNotExist
DropCreateDatabaseIfModelChanges ajaxHelper, string linkText, string
DropDatabaseAlways actionName, AjaxOptions ajaxOptions;)
DropCreateDatabaseAlways c.
CreateDatabaseAlways public static MvcHtmlString ActionLink(
this AjaxHelper ajaxHelper, string
15) When a LINQ to Entities is Executed linkText, string actionName,
a) some expression in the query might be executed on the server and AjaxOptions ajaxOptions)
some parts might be executed locally on theclient. Client-side
evaluation of an expression takesplace before the query is executed 20) Which of the following will render carinfo object stored in viewbag to a
on the server view.Select one:
b) some expression in the query might be executed on the server and a. <p>
some parts might be executed locally on the server. Client-side car information: @View.carinfo
evaluation of an expression takesplace before the query is executed </p>
on the server b. <p>
c) some expression in the query might be executed on the server and car information: @ViewBag{carinfo}
some parts might be executed locally on theclient. server-side </p>
evaluation of an expression takesplace before the query is executed c. <p> car information: @ViewBag.display(carinfo)
on the server </p>
d) None of the options
d. <p>
17) What is meant by materialization in entity framework? car information: @ViewBag.carinfo
a) Materialization is the process of returning query results back to the </p>.-
client as entity types
b) Materialization is the process of returning query results back to the 21) Which of the following option is correct about Navigation Property
client as CLR types a) Navigation properties provide a way to navigate an assiciation between
c) Materialization is the process of returning query back to the client as two entity types
CLR types b) Every object can have navigation property for every relationship in
d) None of the options which it participates
c) Navigation properties allow you to navigate and manage relationship in
19) Correct syntax for ActionLink with following argument AjaxHelper, both directions, returning either a reference object or a collection
String, d) All of the options
String, AjaxOptions is
a) public static MvcHtmlString 22) IObjectContextAdapter Interface is used to:
ActionLink( this AjaxHelper a)get the reference of ObjectContext from object
ajaxHelper, string linkText, string b)get the reference of ObjectContext from entity c)get
modelName, AjaxOptions ajaxOptions) the reference of ObjectContext from DBModel
b) public static MvcHtmlString d)get the reference of ObjectContext from DBContext
ActionLink( this AjaxHelper
24) analyse the link:- "http://localhost/music/". Choose the option which is
correct for it 30. Which of the following is true in doing DB initialization in config file?
I. Not running under cassini Select one (both a and c are same check once again)
II. running under IIS a. <?xml version=”1.0” encoding=”utf-
8”?><configuration><appSettings><add
I only key=”DatabaseInitializerFrTypeBlogDataLayer.BlogDBContext,
II only BlogDataLayer”/></ appSettings></configuration>
both I and II
none of the options b. <?xml version=”1.0” encoding=”utf-8”?>
<configuration><appSettings><addkey=”DatabaseInitializerFrTypeBlogDat
25) Which of the following model is used to defined application specific aLayer.BlogDBContext,BlogDataLayer”value=”System.Data.Entity.DropCre
object ateDatabaseAlways`1[[BlogDataLayer.BlogDBContext, BlogDataLayer]],
Entity Data Model EntityFramework”/></ appSettings></configuration>
SqlDataModel c. <?xml version=”1.0” encoding=”utf-
ObjectModel 8”?><configuration><appSettings><add
None of the Options key=”DatabaseInitializerFrTypeBlogDataLayer.BlogDBContext,
BlogDataLayer”/></ appSettings></configuration>
26. What are the different classes into which the SQL server divides d. <?xml version=”1.0” encoding=”utf-
principles? . select one or more 8”?><configuration><appSettings><add
a. windows-level principle key=”DatabaseInitializerFrTypeBlogDataLayer.BlogDBContext,
b. field-level principle BlogDataLayer”, value=”Create Database”/></ appSettings></configuration>
c. database-level principle
d. SQL Server- level principle 31. Which of the following statements are true.
28. How can the execution plan of queries on partitioned tables and indexes I. The CompiledQuery class provides compilation and caching of
be examined?. Select one or more queries for reuse.
a. By using the Tract –SQL SET SHOWPLAN_XML II. Execute method is to create a new delegate to represent the
b. By using the Tract –SQL SET STATISTICS_XML compiled query.
c. By using the Tract –SQL SET PARTITION_XML III. Once the query is compiled you can only supply parameters of
d. By using the Tract –SQL SET INDEX_XML primitive type but you cannot replace parts of the query that would change
the generated SQL
29. You are given a task to make the current form secure such that it can be Select one
prevented csrf. Which of the following will be helpful?.Select One a. I and II
b. II and III
a. <% using (Html.BeginForm()) {%><%= Html.AntiXssLibrary()%} c. I and III
b. <% using (Html.BeginForm()) {%><%= Html.AntiForgaryToken()%} d. I, II and III
c. <% using (Html.BeginForm()) {%><%= Html.AntiCSRFToken()%}
d. <% using (Html.BeginForm()) {%><%= Html.AntiCSRFLibrary()%} 32. What do you understand by XSS attack?. Select One
a. Injection of malicious script Select one
b. Injection of class definition a. The solution given by Brock is legitimate
c. Hacking via Browser b. Peter should use “@Html.GoThrough” in place of “@HtmelAction”
d. Hacking through cookies c. Peter should user “ChildActionOnly” in place of “ChildAction​”
d. Such problem can’t exist

34. Which action result type will return a temporary redirect (HTTP 302 51) Identify the different types of stored procedures.
status code) or a permanent redirect (HTTP 301 status code) depending on a.User-defined stored procedures-Tract SQL & CLR.
the Boolean parameter? b.Compiled Stored Procedures.
Select one c.Extended Stored Procedures.
a. HttpNotFoundResult d.System Stored Procedures.
b. RedirectResult
c. HttpStatusCodeResult 52) Which method converts string to HTML Encoded string?
d. HttpRedirectResult a.HtmlUtility.HttpCode.
b.HtmlUtility.XmEncode.
35. You are handling a page of event. Now the content and information you c.HttpUtility.HtmlEncode.-
have cached so that it is loading quickly but you need to keep a clock which d.HttpUtility.HtmlCode.
shows time for the event dynamic. Which of the following will be helpful?
a. <%DateTime(t.now);%> 53) Machine.config,contains settings that apply to an entire Network.State
b.<%Response.WriteSubstitution(t=>DateTime.Now.ToLongTimeString())> true or False. ​b.False.
c. <% var c = dynamic.DateTime() %>
d. <%session s= new session[“Time”];%> 54) The ObjectContext class is not thread-safe.State ​True ​or False..

36. What is entity Key?Select One 55) Which of the package can be used to write an implementation for
ASP.NET Identity that targets different persistence stores such as Azure
a. An entity key is a property or a set of properties of an entity type Table Storage,NoSQL databases etc.?
that are used to determine identity a.Microsoft.AspNet.Identity.Core.
b. An entity key is a property or a set of properties of an entity type b.Microsoft.AspNet.Identity.EntityFramework.
that are used to determine the column for searching index c.Microsoft.AspNet.Identity.OWIN
c. An entity key is a property or a set of properties of an entity type d.Microsoft.ASPNET.Security;
that are used to identity relationship among the entities. d. All of the listed
57) public class DependencyResolver-is the syntax for Dependency
37. Problem Statement- Peter is a web developer and has created a resolver class.State ​True ​or False.
website in ASP.NET MVC3 using razor view. People were giving feedback on
his site without going through products detail page. They were navigating 58) Which of the following code snippets is correct for an entity Post
to the feedback page by editing the URL. having relationship with Blog?
Now as a friend, suggest him to use “ChildAction” through “@HtmlAction”. a.modelBuilder.Entity<Post>().HasRequired(p=>p.Blog)
Which of the following would he choose?
b.modelBuilder.Entity<Post>().NeedRelationship(p=>p.Blog) b. The user
c.modelBuilder.Entity<Post>().Required(p=>p.Blog) c. Authentication memberships
d.None of the listed options. d. Role memberships​-
e. Role aggregation
60) Which of the following statements are TRUE?
i.Client wins and store wins are actions which are used when concurrency 7.Razor expression starts with​______@______.
happens. ii.In Client wins the data from the server is loaded in to your entity
objects. iii.In Store wins data from the entity object is saved to the database. 8.john is given a task to make his website a bit intelligent and in the process
a.i and ii he's been told to add autocomletion on the "searchBox".Which of the
b.ii and iii following will be helpful? select one:
c.only i
d.i,ii and iii a.$(function()($"#searchBox").autocomplete("/Product/SearchCandidates".{
minChars:3}):})
************************************************************** b.$(function(){$("#searchBox").autocomplete("/Product/SearchCandidats
1.LINQ to Entities provides developers to write LINQ queries ",{minChars:3});});
Stata True or False. ​True c.$(function(){$("#DivideBox")autocomplete("/Product/SearchCandidates",{
minchars:3});});
2.DbContext does not support Complied Queries. ​True ​or false d.$(function(){$("#searchBox")autocomplete("/Product/SearchCAndidates",
{minchars:3})});
3.Linq to Entity Query results are usually returned as which of the following?
Select one: 9.What is the significance of INSTEAD OF argument of the CREATE TRIGGER
a.A collection of zero or more typed entity objects or a projection of statement?Select one or more:
complex types defined in the conceptual model. b.Inline collections
c.Linq to objects a.Specifies that the DML trigger is excuted instead of the triggering SQl
d.Anonymous types statement
e.All of the listed options. b.It overrides the actions of the triggering statements
c.It can be specified for DDl or logon triggers
4.Localization is also known as____________.Select one: d.It cannot be specifoed for DDl or logon triggers.
a.All the listed options
b.L10N 10.Which of the following provider is used to access data in conceptual
c.LOC-zation model?Select one:
d.LCn
a.EntityClient provider
5.which of the following principals are included in the security context ? b.SqlClientProvider
c.EntityModelProvider
Select one or more: d.EntityContext
a. The login
11.How are NON-clustered indexes different from Clustered indexes? select
one: 14. Your manager has given youa task to write a code to list recent 30 events
and this should be accessible to no one other than admins.which of the
a.The data columns of the underlying table are not stored in order based on following should you choose?select one:
their nonclustered keys.
b.The data rows of the underlying table are sorted and stored in order based a.public class EventController:Controllers{public ActionResult
on their nonclustered keys. Index(){AspNerDB db = new AspNerDB(); var
c.The leaf layer of a nonclustetred index is made up of index pages instead f=db.WebEvents.OrderByDescending(e=>e.EventTime).take(30);return
of data pages. View(f);}}
d.The leaf layer of a nonclustetred index is made up of data pages instead of b.[Authorize(Roles="Managers")]public class
index pages. EventController:Controllers{public ActionResult Index(){AspNerDB db = new
AspNerDB(); var
Link:-https://technet.microsoft.com/enus/library/ms177484(v=sql.105).aspx f=db.WebEvents.OrderByDescending(e=>e.EventTime).take(30);return
Nonclustered indexes have the same B-tree structure as clustered indexes, View(f);}}
except for the following significant differences: c.[Authorize(Roles="Admin")]public class EventController:Controllers{public
1. The data rows of the underlying table are not sorted and stored in ActionResult Index(){AspNerDB db = new AspNerDB(); var
order based on their nonclustered keys. f=db.WebEvents.OrderByDescending(e=>e.EventTime).take(30);return
2. The leaf layer of a nonclustered index is made up of index pages View(f);}}
instead of data pages. d.public class EventController:Controllers{public ActionResult
Index(){AspNerDB db = new AspNerDB(); var
12.Which of the following statements are true about Clustered index? f=db.WebEvents.OrderByAscending(e=>e.EventTime).take(30);return
View(f);}}
Select one or more:
a.A clustered index sorts and stores the data rows of the table or view in 15.Which of the following are the data annotations attribute?
order based on clustered index key ​-
b.A clustered index sorts and stores the data columns of the table or view in Select one or more
order based on the clustered index key.
a.Compare
c.A clustered index is implemented as a B-tree index strucuture
b.Range
d.A clustered index is implemented as aLinked-list structure.
c.Required
d.StringLength

13.Which of the following object is used to query and modify data?


16.Which of the following annotation is used to mark one or more
properties to be used for concurrency checking while user modifies in an
Select one: entity?
a.ObjectContext
b.EntityOject Select one:
c.DataContext a.ConcurrencyCheck
d.None of the listed options.
b.DatabaseCheck d.A technique for achieving tight coupling between Model and their
c.EntityCheck respective server.
d.None of the listed options
24. Entities define the______________of an object but not the behavior of
18.By default in Entity Framework Snapshot change tracking is enabled the object.select one:
snapshot change tracking mechanism.State ​true ​or false
a.Object
b.schema
20.George wants to make the appearance of his site better.He wants to c.Entity
show an image when a "divhello" result takes time to display. d.None of the liosted options.

Which of the following should he choose? 25.A basic TDD cycle is______. Select one:
Select one:
a.[[email protected]("Hello","Hello",new a.Red-Green-Refactor
AjaxOptions(){UpdateTargetID="div- b.Debud-Error-Resolve
hello",HttpMethod="GET",LoadingElementId="divloadingimage"})....] c.Red-Green-Resolve
b.[[email protected]("Hello","Hello",new d.Fail-Pass-Repeat
AjaxOptions(){UpdateTargetID="divhello",HttpMethod="GET",LoadingEleme
ntId="divloadingimage"})....] 26.We can pass information from a controller to a view using ViewBag.
c.[[email protected](AjaxOptions(){UpdateTargetID="divhello",HttpMetho State ​true ​or False: K
d="GET",LoadingElementId="divloadingimage"})....]
d.[[email protected]("Hello","Hello",new 28.Which of the following keyword is used for lazy loading related data in
AjaxOptions(){UpdateTargetID="divhello",HttpMethod="GET",LoadingEleme entity framework?
ntId="divloadingimage"})....]
Select one:
21.which template is used in entity framework to generate code in C# by a.protected
reading .edxm file? a. C# template b.virtual
b. T4 template c.const
c. XML template d.abstract
d. none
31. GlobalFilters.Filters.Add(new SampleFilter())- what will the above piece
23.What is Dependency Injection?Select one: of code do ?

a.A technique for achieving tight coupling between objects and their Select one:
collaborators. a. It will move it sample filter to the global filter
b.A technique for achieving loose coupling between objects and their b. None of the listed options
collaborators.
c. It will add custom filter "SampleFilter" to the GlobalFilters
c.A technique for achieving tight coupling between Model and their views.
d. it is not possible to add new filter, so it will give an error
37. If we want to retrieve friend along with contact entity, which of the
32. Which of the following statements are true about extended stored following code will fetch us the required result ?
procedures?
select one:
Select one or more: a. public.ActionResult index(){var friends =
a. they are inherited from another user defined stored procedure db.Friends.Include(a =>
b. they are DLLs developed in a programming language like c that an a.Contacts);return View(friends);}
instance of Microsoft SQL server can dynamically load and run b. public.ActionResult index(){var friends = db.Friends;return
c. they run directly in the address space of an instance of SQL server View(friends);}
d. they are programmed by using the SQL server extended stored procedure c. public.ActionResult index(){var friends =
API db.Friends.Insert(a =>
a.Contacts);return View(db.friends);}
33. ObjectContext mainly used for which of the following ? d. public.ActionResult index(){var friends =
db.Friends.add(a =>
i. Database connection ii. a.Contacts);return View(friends);}
Object set of every entity
iii. state of pending changes 38. How does SQL Server execute a stored procedure or a trigger ?

Select one: a. i and ii select one or more:


b. i and iii a. SQL server stores only the source for stored procedures and rtiggers
c. ii and iii b. SQL server keeps the stored procedures & triggers in compiled form for
future execution
d. i, ii and iii c. when a stored procedure or trigger is first executed, the source is
compiled into an execution plan
36. Which statements are true about nonclustered indexes with respect to d. if the stored procedure or trigger is again executed before the execution
partitions? plan is aged from memory, the relational engine detects the existing
plan and reuse it
select one or more: e. if the execution plan has aged out of memory, a new plan is built
a. nonclustered indexes have one row in sys.partitions with index_id >0 for
each partition used by the index 39. Jason is trying to access Appsettings of "sampleserverA" & the accidently
b. nonclustered indexes have one column in sys.partitions with index_id >0 for wrote this varserver = ConfigurationManager.Appsettings["sampleserver"];-
each partition used by the index what result will he get ? select one:
c. by default, a nonclustered index has a single partition
d. by default, a nonclustered index has a multiple partition a. He will get an alert
e. each partition has a B-tree structure that contains the index rows for that b. He will get a nullvalue back
specific partition c. He will get a ArgumentException
d. All the listed options
b. where
40. choose a code block which will show "Hello World" on the WEb page c. groupby
d. all the listed options
select one:
a. public ActionResult Index() 47. how is the information returned from table-valued functions ?
{
View.Message = "Hello World"; select one or more:
return View(); a. information may be returned from table-valued functions using output
} paramaters
b. public ActionResult Index() b. information may be returned from table-valued functions using return
{ paramaters
View@Message = "Hello World"; c. you must specify the parameters by value
return View(); d. you must specify the parameters by reference
}
c. None of the listed options 48. sam is developing ASP.NET MVC 3 web application. He is using SQL
d.public ActionResult Index() server as database. As it is in staring stages,every time the database
{ changes, an error pops up in the application. which of the following method
ViewBag.Message = "Hello World"; should sam add to take care of this ?
return View();
} select one:
a. DropCreateDatabaseselfModelChanges<>()
41. "Type or Namespace name "SampleTest" could not be found" - you are b. RefreshDb<>()
getting the above error while you trying to build a test. what could be the c. DeleteUpdateDatabaseselfModelChanges<>()
reason ?select one: d. none of the listed options

a. You didn't instantiate the object for the sampletest controller and view 51.In which folder is the bundle.config file stored?
b. you didn't have the class called "sample test" Select one :
c. the inline constructor is yet to get validated a.App_Data
d. you have not parsed the class assembly— b.App_Start
c.Content
42. if we use database first generation a Dbcontext is generated by default d.Filter
State true or false a. true-
52.Rafael is a new developer and the manager has told him to make the
43. which of the following are the standard query operators of LINQ ? current code less complex.The current code has all the html and processing
code in same file.Which of the following should he choose?
select one: a.
select Select one:
a.Advice him to use seperate models and controller for each logic and store b.Database file name should be unique -
it in new database c.The file must reside on one of the following devices: the local server on
b.Advice him to use partial views and create custom Html helpers to make which SQL Server is installed,a Storage Area
the ocde readable and less croeded of all the things in one place. c.Advice Network[SAN],or an iSCSI-based network-
him to create a new page for every logic. d.The path specified must exist on the drive prior to creating the database
d.None of the listed option
57.find the correct code to execute sql raw query in the entity frameqwork
53.Which class is used for tractions in entity framework? Select one: from the following select one:
a.System Traction a.using(var ctx = new schoolDBentities())
b.SqlTraction {
c.EntityTraction varstudentlist = ctx.students.sql("select*from
d.None of the listed options. student").tolist<student>();
}
b.none of these
54.Which of the following statements are true about varbinary data type? c.using(var ctx = new schoolDBentities())
Selct one or more: {
a.varbinary can hold binary data. varstudentlist = ctx.students.execute("select*from
b.varbinary can hold character data. student").tolist<student>();
c.can exceed 8000 characters }
d.the value is absed on regular expression logic d.using(var ctx = new schoolDBentities())
{
55.what are the steps for creating partition tables&indexes? Select varstudentlist = ctx.students.sqlquery("select*from
one or more: student").tolist<student>();
a.Create partition function to specify how a table or index that uses the }
function can be partitioned
b.Create partition function to specify the placement of the partitions of a 58.Show current date using javascript as Sat Jun 4 2016.select one:
partition function on filegroups
c.Create partition Schema to specify the placement of the partitions of a a. <p
partition function on filegroups id-"sample"></p>
d.Create partition Schema to specify how a table or index that uses the <script> var d= new
function can be partitioned Date();
e.Create a table or index using the partition Schema document.getElementById("sample").innerHTML=d.toDateString();
</script> b.
56.What are the restrictions related to the database file creation? <p
id-"sample"></p>
Selct one or more: <script> var d= new
a. Database file name shouuld not be more than 8 characters Date();
document.getElementById("sample").innerHTML=b.toDateString(); </script>
c. a.Eager Loading
<p b.Lazy Loading
id-"sample"></p> c.Explictly Loading
<script> var b= new d.All
Date();
document.getElementById("sample").innerHTML=d.toDateString() 57.dependency resolver() is destructor b.false...............
; </script> d.
<p 56.where can CLR functions be used?select one or more: (doubt)
id-"sample"></p>
<script> var d= new
a.CLR functions can be used to access external files
Date();
b.CLR functions can be used to access network resources
document.getElementById("sample").innerHTML=d.toDate();
c.CLR functions can be used to configure the instance of SQL server
</script>
d.CLR functions can be used to access WEb services
e.CLR functions can be used to connect to other databases
59.Which of the following is issued to obtain a configuration object for a
given property in Fluent API?
55.The syntax of GetService Method is?Select one
Select one:
a.object.GetService(Type serviceType )
a.ToTable()
b.object GetService(Type serviceType )
b.HasKey()
c.object GetService(object.serviceType )
c.HasDatabaseGeneratedOption()
d.object GetService(Type.serviceType )
d.Property()

54.output cache is used to cache output of a controller :true


60.Which of the following are database initialization strategies in EF code
First?
Select one or more: It enables us to cache the content returned by any controller method so that
the same content does not need to be generated each time the same
a.CreateDatabaseIfNotExists
controller method is invoked
b.MigrateDatabaseToLatestVersion
c.CustomDBinitializer
53.entity sql is a storage independent query language :true
d.AlterDatabasewithchanges
*************************************************************
50.How can we get the single employee name when there are many
Entity Framework supports three ways to load related data - eager loading,
employees whose name is "John" in the database? Select one:
lazy loading and explicit loading. The techniques shown in this topic apply
equally to models created with Code First and the EF Designer.
a.var employee=(from emp in contextobject.Employee
where emp.EmployeeName="John"select
60.which of the following loading is supported by Entity framework?
emp).FirstOrDefault<Employee>()
select one:
b.var employee=(from emp in contextobject.Employee where
emp.EmployeeName=="John"select emp).FirstOrDefault<Employee>() 46.LINQ to XML is based on in-memory XML programming interface.
State True or False. True-
c.var employee=(from emp in contextobject.Employee where
emp.EmployeeName=="test" select emp); d.None of the listed options 45.What are the conditions for assemblies created by using EXTERNAL
ACCESS permission sets? Select one or more:
49.Which of the following does the input to QueryOptimizer consist?
a.The assesmbly code should be type-safe-
Select one or more: b.the assesmbly should contain only static data members in its classes unless
a.The query- they are marked as read-only
b.The database schema- c.the classes in the assesmbly must contain finalizer methods
c.The database statistics- d.the classes or methods of the assesmbly should be annotated only with
d.the selected rows. allowed
codes attributes
Note:The input to the optimizer consists of the query, the database schema
(table and index definitions), and the database statistics. (https://msdn.microsoft.com/en-us/library/ms189524.aspx)
(https://technet.microsoft.com/en-us/library/ms190623(v=sql.105).aspx)
42.Which command will remove the package?Select one:
48.Which are the following are the type of entity?
a.Remove packageName
Select one or more: b.Delete package
a.POCO entity c.Uninstall-package PackageName
b.Dynamic proxy entity d.None of the listed options.
c.DbContext
d.ObjectContext Ref Link:
http://stackoverflow.com/questions/17653633/uninstallentityframework-us
47.Which statements are true about RANK function? ing-the-package-manager-console

Select one or more: 41.You need to write a view to show Hi!"username" If user is authenticated
a.It returns the rank of each row in the table within the partition of a display signoff link & sign in link for anonymous user.Which of the following
database.- should you choose?Select one:
b.The rank of a row is equal to the number of ranks that come before the
row in question. a.<%if(Request.IsAuthenticated){Hi!<%=Html.Encode(page.User.Identity.Un
c.The rank of a row is one plus the number of ranks that come before the ame)%>[<%=Html.ActionLink("SignOff","SignOff","Account")%>]<%}else{%>[
row in question- <%=Html.ActionLink("Sign In","Sign In","Account")%>]<%}%>
d.the RANK function returns consecutive integers. b.<%{Hi!<%=Html.Encode(page.User.Identity.UName)%>[<%=Html.ActionLi
e.The Rank function does not always return consecutive integers. nk("Sign Off","Sign
Off","Account")%>]<%}else{%>[<%=Html.Action.Link("Sign in","Sign
in","Account")%>]<%}%> 35) On what conditions can you perform concurrent online index operations
c.<%(user=Authorize){Hi!<%=Html.Encode(page.User.Identity.UName)%>[< on the same table?
%=Html.ActionLink("Sign Off","Sign a) Creating multiple clustered indexes
Off","Account")%>]<%}else{%>[<%=Html.ActionLink("Sign in","Sign b) Creating multiple nonclustered indexes
in","Account")%>]<%}%> c) Reorganizing different indexes on the same table
d.All of the listed options. d) Reorganizing unique indexes on multiple tables
e) Reorganizing different indexes while rebuilding nonoverlapping indexes
40) Which of the following is Lambda operator? on the same table-
a) "a"
b) "=>" 33) What is Remote Validation?
c) " " a) it is a mechanism that can make a remote client call in order to validate a
d) "@" form field without passing the entire form to the server
b) A mechanism to validate a client machine through remote call
39.Detatch state is the default state of newly created entity.? c) A mechanism to validate form field using remote conditions
:true d) A mechanism that can make a remote server call in order to validate a
Note:Detached is the default state of a newly created entity because the form field without posting the entire form to the server
context can’t track the creation of any object in your code.
32) Which of the following is the CORRECT option for Model First approach?
38) Which statements are true about DENSE_RANK function? a) Generate a Database from a Model
a) Returns the rank of rows within the partition of a result set, without any b) Generate a Model from the Class
gaps in the ranking- c) Generate a Model from the Database
b) The rank of a row is one plus the number of distinct ranks that come d) Generate a Object from the Model
before the row in question-
c) Returns the rank of each row within the partition of a result set 30.In Model We can keep Which of the following:
d) The rank of a row is one plus the number of ranks that come before the
row in question select one or more
a:Business Logic..............
37.You are given a task by your manager that include assembly binding?? b:Data Logic..................
:Machine.Confing c:Session Logic...............
Note: Machine.config contains configuration settings for machine-wide d:Validation Logic............
assembly binding, built-in remoting channels, and ASP.NET. Note:The model is where the domain-specific objects are defined. These
definitions should include business logic (how objects behave and relate),
36) What does the update command do? validation logic (what is a valid value for a given object), data logic (how data
a) Updates a package objects are persisted) and session logic (tracking user state for the
b) Updates the project application).
c) Updates the Visual studio
d) Updates the solution
29)what is the purpose of NotMapped annotation in entity framework d: Os_File_Name ...........................
a)not to create a property for an entity
b)to remove mapping a property to the data base for an entity.......... 23)which of the following options are true about temp. stored procedures
c)to add property for a data base entity with respect to performance? b:Heavy use of temporary stored procedures
d)none can create contention on the system tables in tempdb and adversely affect
Note: You can apply NotMapped attribute to a property which you do NOT performance........ c:It is recommended that sp_executesql be used
want to create a column in a database table for. instead.................... e:sp_executesql discard data in the system tables and
therefore avoids the problem............

28.Which of the following arguments of the CREATE TRIGGER statements 22.In entity framework ,Data is retrieved as objects.
specifies the security context under which the trigger is executed. a)all true..................
server
b)with encryption 21.What are Entity state members?
c)execute as select one
d)instead of a:Added b:Deleted
c:Modified
27.By default, LINQ supports which of the following d:All of the listed options..................
i.Lazy Loading ii.Eager
Loading 19.Read the following definition and choose the correct option. >Contains
iii.Deferred Loading methods to create types of objects locally or remotely ,or obtain references
Note:By default LINQ supports lazy to existing remote objects. select one a:Activator................ b:Validator
loading.(http://www.dotnettricks.com/learn/entityframework/differencebet c:ModelBinder d:Dependency Resolver
ween-lazy-loading-and-eager-loading) 18.You need to perform an arithmetic operation in Razor view. which of the
following will accomplish the task?
26.Which of the following statements are true about trigger a. "@[value][arithmatic operator][value]"
creation?(multiple) b. "@;([value][arithmatic operator][value])"
a.CREATE TRIGGER must be the first statements in the batch c. "@:([value][arithmatic operator][value])"
b.CREATE TRIGGER must be the last statements in the batch d. "@([value][arithmatic operator][value])"
c.CREATE TRIGGER can apply to only one table-
d.CREATE TRIGGER can apply to multiple tables 17.What are the features supported by SQLXML in SQL Server?
e.A trigger is created only in the current database;however a trigger select one or more
can references objects outside the current database a. ability to trform the result of a query into XML on the client side -
b. ability to create an XML view of relational data bye using an annotated
25.Which of the following two are name types of SQL Server Files? XSD mapping schema file-
select one or more: a: c. ability to access SQL server using HTTP-
Physical_File_name b: d. ability to access SQL server using TCP/IP
Logical_file_name ...................... c: e. ability to expose functionality offered by stored procedures, user-defined
Primary_File_Name functions, and template queries as SOAP-based web services-
11.What does LINQ to SQL do:
16. What will be the output of the following code
Public ActionResult Search (string idea="A"){ I.It enables you to query data using Datacontext
return View(); II.It provides tightly coupled approach
}
I. It will set the default value of String idea to "A" Select one: a.onlt
II. It will set the default pointer of idea to "A" I
b.only II
Select one: c.both I and II
a. Both I and II d.neither I or II
b. II only
c. None of the listed 10.Entity Framework____________________ all data before storing it to the
d. I only database by default ,using valiadtion method.

15.In which of the following conditions one should go for partitioning table b.Validates ..........
select one or more:
a.table contain large amounts of data that are used in different ways. 9.Datepicker lets yu pic date from calendar instead of writing it?true
b.database contain large amount of table
c.Queries or updates against the table are not performing as intended, or 7.Whhich of the following method in Entity type configuration is used to
maintenance costs exceed predefined maintenance periods..... d.If tables configure an optional relationship? a.HasOptional..........
has many columns.
13.which of the following method is used to change relationship state of two 4.___________ allows you to store and retrieve values using object-property
entity object syntax rather than key-value syntax used by dictionary object.
a.ChangeRelationship
b.ChangeRelationshipState a.ViewBag.................
c.ChangeRelation b.Tempdata
d.None of the above c.viewindex
d.ViewData
12.Which file will conatin the application level configurations?
select one: 2.Which of the following is used to configure a Code First Model?
a.Config.config select one
b.Global.aspx a.Fluent API....................
c.Web.config.................. b.EntityModel
d.Packages.Config c.Web.Config
Note:ASP.NET configuration data is stored in XML text files that are each d.None of the listed options
named Web.config.
1.What provides the ability to asynchronously exchange data between a Select one:
web browser and a web server?select one a.[Status=TestMethod]is not written
b.[TestMethod]is not written
a.XMLHttpRequest................. c.proper refference is not invoked at the start of the test. -
b.XSLHttpRequest d.None of the above
c.CSSHtmlRequest
d.XMLHtmlRequest 10.How can we create basic Entity Mapping?
**************************************************************
1.You are given a task to make the current from secure such that it can be Select one:
prevented cstf.Which of the following will be helpful? a.modelBuilder.Entity<Blog>().MapStoredProcedures();
b.modelBuilder.Entity<Blog>().MapToStoredProcedures();-
Select one: c.modelBuilder.Entity<Blog>().ToStoredProcedures();
a.<% using(Html.BeginForm()){%> <% = Html.AntiLibrary()%> d.modelBuilder.Entity<Blog>().StoredProcedures();
b.<% using(Html.BeginForm()){%> <% = Html.AntiForgeryToken()%>-
c.<% using(Html.BeginForm()){%> <% = Html.AntiCSRFToken()%> 14) How is a user defined table valued function in select insert update or
d.<% using(Html.BeginForm()){%> <% = Html.AntiCSRFLibrary()%> delete statements is invoked?
a user defined table valued function can be invoked in the from clause of a
5.Analyse the link:-"Http"//localhost/music/".Choose the option which is select, insert, update and delete statement- a user defined table valued
correct for it. function can be invoked as a stored procedure from a select, insert, update
I.Not running under cassini. and delete statement a user defined table valued function can be invoked in
II.Running under IIS. the where clause of a select, insert, update and delete statement a user
defined table valued function can be invoked in the using
Select one: clause of a select, insert, update and delete statement
a.I only
b.II only 15) Entity framework supports automatic change tracking of the loaded
c.Both I and II entities during the life time of the conext. true-
d.None of the listed options.
16) Which are the different types of file groups?
6.public void TestDate() Secondary
{ Primary
Distance z= new Distance(); User-defined
Hidden
var message = new Sample(z);
18) You are working on a web application and for a particular small
AssertAreEqual(distance,message.z); operation it is loading the whole page. Which of the following technology
}-Analyse the code and identify why it will not work. will you adopt
to improve the functionality
AJAX- *************************************************************
C++ 2.How does the ROWCOUNT_BIG function work?select one or more
sharepoint
selenium a.Returns the total number of rows in a table
b.Returns the number of rows affected by the last staetement executed
20) Which exception will raise when you define an Entity Data Model that c.The return type of ROWCOUNT_BIG is bigint
uses stored procedures to make updates to the data source d.The return type of ROWCOUNT_BIG is int
OptimisticException
ConcurrencyException 3.For which attributes of columns,clustered indexes are not advisable?
OptimisticConcurrencyException select one or more
None of the listed options (doubt) may be is
dbupdateconcurrencyexception...........right a.Columns are unique or contain distinct values
b.Columns change frequently
43.Which of the statement is true about VARCHAR datatype? c.Columns are accessed sequently
select one or more: d.when there are wide keys.-
a.varchar can hold alphanumeric data
b.The storage size of varchar data type is fixed 5.As good practice what should you follow to prevent XSS attacks?
c.Each row can hold different no of characters up to the maxlength defined.- select one or more
-
d.Each row can hold fixed number of characters as defined by max length. a.Santize HTML markup
b.Donot put untrusted data-
48.EDMX is an XML file a.true c.Do not use javascript
d.Do allow cross scripts
50.How can we stop autodetection change in entity framework?
select one: 6.What do you understand by state management?select one:
a.Context.Configuration.AutoDetectChangesEnabled=false;-
b.Context.Configuration.AutoDetectChangesdisabled=false; a.It is a process by which you override the state and client information over
c.Context.Configuration.AutoDetectChangesEnabled=true; multiple requests for the same pages.
d.Context.Configuration.AutoDetectChangesdisabled=True; b.It is a process which you override the state and page information over
single functional calls for the same controller
59)In remote validation HttpPost is used by default.State True or False. c.It is a process by which you maiintain the client and server information
a.True over multiple requests for the same or different pages
d.It is a process by which by whoch you maintain the state and page
60)Which of the following are different Securable scopes? a.Server information over multiple requests for the same or different pages
b.Client
c.Database 7.What do you mean by eager loading in MVC?
d.Schema-
I.Related objects(child objects)are loaded automatilly with its parent object. d.A deterministic function always returns the different results when it is
II.Related objects(child objects)are not loadede automatically with its parent called with a specific set of input parameters
object until they are requested.
19.Which of the following option is Correct to turn off lazy loading for all the
Select one: entities for BLogging Context? (or) Which of the following statement is TRUE
a.I only to disable lazy loading for all the entities ?
b.None
c.Both I and II select one:
d.II only
a.public class BloggingContext:DbContext(public BloggingContext () (this
12.How are user-defined functions different from User-defined stored Configuration LazyLoadingEnabled =true;))
procedures? select one or more:
b.public class BloggingContext:DbContext(public BloggingContext () (this
a.In user-defined function the default parameter is specified with a DEFAULT Configuration LazyLoadingEnabled =false;))
keyword
b.In user-defined function omitting the parameter also implies default value c.public class BloggingContext:DbContext(public BloggingContext () (this
c.User-defined functions do not support output parameters Configuration EnableLazyLoading =false;))
d.User defined functions do support output parameters
d.public class BloggingContext:DbContext(public BloggingContext () (this
16.As a good practice we should put HTML in which of the following? Configuration EnableLazyLoading =true;))
I.View
II.Partial View 20.Which method in MOdelBuilder make sure that entity should have
III.Semi-Partial View relationship with other entity? select one:
select one:
a.Required
a.I and II b.NeedRelationship
b.II and III c.HasRequired
c.I and III 22.Which of the following are the attributes of
d.I,II,III System.ComponentModel.DataAnnotations.Schema class?
18.What is the difference deterministic & non-determinstic scalar-valued
function? select one or more a. Timestamp
b. Model
a. A non-determiinstic function always returns the same result when it is c. ConcurrencyCheck
called with a specific set of input parameters d. Entity or
b.A deterministic function always returns the same result when it is called a. ForeignKey .......................
with a specific set of input parameters b. Model
c.A non-deterministic function always returns the different results when it is c. Column .......................
called with a specific set of input parameters
d. Entity
a.BAsic Authentication
24.Which of the following statement is used to fetch an entity using b.Digest Authentication
composite key ? c.Forms Authentication
select one: d.Windows Authentication
d.All
a.Context.MYDbSetTableEntity.Find(key1,key2)
b.Context.MYDbSetTableEntity.Take(key1,Key2) 32.which of the following class provides you important methods to configure
c.context.MyDbSetTableEntity.Include(key1,key2) entities and its properites to override various code-first conventions?
d.context.MyDbSetTableEntity.GetEntity(obj) select one

27.Choose the code to show alert on page. a.EntityCOntext


select one: b.EntityTypeCOnfiguration
c.DBCOntext
a.alert("you have generated an alert box") d.ObjectContext
b.alert("you have generated an alert box");
c.None 34.ObjectCOntext EF v4.0 and DbCOntext EF V4.1 True
d.alert(you have generated an alert box);
35.There can be one PreApplicationStartMethod per assembly.
28.ObjectContext is a class. True
state true or False true
36.In COnceptual model,which of the following defines relationship between
29.Using which system Storeprocedure the administrator will register the two entity types?select one:
extended stored procedure DLL to the SQL server? select one:
a.Entity
a.sp_ActiveDirectory_obj b.Association-
b.sp_addextendedproc c.Object
c.sp_addlinkedsrvlogin d.None
d.sp_addlinkedserver
37.Which of the following annontation is to EF that a particular property is
30.Entity Framework can track changes to the model's objects. required ?select one: a.Needed
True- b.required
FAlse c.Unique
d.Key
31.What type of authentication accepts login credentials that will be
checked against the domain or local server and are sent in a hashed format? 39.which of the following loads the related data inscalaar and navigation
select one: properties along with query result at first shot ? select one :
48.The controller class is responsible for the following processing stages:
a.LAzy Loading selct one:
b.Eager Loading
c.Explicitly Loading a.Locating the appropriate action method to call and validating that it can be
d.Dynamic Loading called
b.Getting the values to use as the action method's arguments.
42.which class is used to execute an Entity SQL COmmand against an entity c.Handling all errors that might occur during the execution of the action
mode ? select one method
d.All-
a.EntityCommand
b.EntityCOnnection 51.Choose a unit test to check whether the partcipant A1 has covered half
c.SqlCOmmand distance of total. Select one: a.
d.None [TestMethod]
{
43.which statement are true about an inline scalar function? int total_distance=2; int
a.There is no functiion body distance_covered=10;
b.The function body defined in BEGIN ...END block contains a series of T-SQL int distance_left=10;
statements
c.The scalar value is a result of a single statement Disatnce d1=new Distance("A1",total_distance)
d.The scalar value is a result of all statements in the BEGIN...END block d1.covered(distance_covered);
int left=d1.remaining;
45.To enable globalization ,whcih of the following parameters are set in auto
mode?select one or more: Assert.AreEqual(distance_left,left);
}
a.Languge b.
b.Culture [TestMethod]
c.Localization {
d.Uiculture- int total_distance=2; int
distance_covered=10;
46.which of the following advantage does a strongly typed view have ? int distance_left=10;
select one:
Disatnce d1=new Distance("A1",total_distance)
a.Run time d1.covered(distance_covered);
b.Intellisense- int Left1=d1.remaining;
c.faster buffering
d.loading Assert.AreEqual(distance_left.left);
}
c. b.Property
c.data
[TestMethod] d.File
{
int total_distance=2; int 58.Which of the following method of the ObjectStateManager is used to get
distance_covered=10; Object State entry?
int distance_left=10;
Select one:
Disatnce d1=new Distance("A1",total_distance) a.TryGetObectStateEntry
d1.covered(distance_covered); b.ChangeObjectState
int Left1=d1@remaining; c.GetRelationshipManager
d.ChangeRelationshipState
Assert.AreEqual(distance_left.left); 1) Which namespace is used to include NET data provider for SQL server?
} a)System Data SqlClient -
d.All the listed options b)System Data ComponentModel
c)System Data SqlProvider
53.What does the following code denote?(not sure ) d)System Data OracleClient
DECLARE @odetails orderdetails;
SELECT @odetails =orderdetais::GetFirstItem(); 2) When you execute user-defined functions that return scalar values, hw
PRINT @odetails.ToString(); are the parameters specified?
a)The argument values are enclosed in paranthesis
Select one or more: b)The argument values are not enclosed in paranthesis
a.It denotes usage of Scope Resolution operator- c)Parameter names can be specified
b.It denotes usage of Compound operator d)If parameter names are specified,the argument values do not have to be
c.The operator is denoted by a::symbol- in the same sequence as the parameters.........
d.The operator provides access to public non-static memebers of acompind
data type 3) Which libraries are added for XSS provision? Select one or more:
e.The operator provides access to static memebers of a compund data type. a)HTMLSerializationLibrary
b)CSRFLibrary
56.Which of the following model is the design model to include tables,stored c)AntiXSSLibrary-
procedures,views,keys and relatonship? Select one: a.Mapping d)SecurityLibrary-
b.Conceptual
c.Storage 4.Which statements are true about ranking functions?
d.None of the listed options.
Select one or more:
57.Views are used to control placement of_______. Select one: a.They are deterministic functions
a.Object b.They are Non deterministic functions........................
c.They return a ranking value for each row in a pattern......... d.<%session s = new session['Time'];>
d.They return a ranking value for each table in a pattern
10)Database model provides the normalized schema designed by the
5. Which statements are true about a multi-statement scalar fuction? database administrator => True
Select one or more:
a.there is no function body,no declaration 11)SELECT name AB object_name
b.The function body defined in BEGIN...END block contains a series of T-SQL .SCHEMA-NAME(schema_id) AB schema_name
statements........... .type-desc
c.The scalar value is a result of a single statement with multi value. .create_date
d.The scalar value is a result of all the statement in the BEGIN..END .modify_date
block........... FROM sys objects

7.You are given a task by manager to restrict the user to enter the surname Select one or more:
which shall not be more than 15 characters.How you will achieve this? a.It uses the sys.all_objects catalog view
b.It uses the sys.objects catalog
Select one: view................................................................
a. c.It returns all database objects that have been modified in the last 10 years
[StringLength(15)] d.It returns all database objects that have been newly added in the last 10
public int Sname{get;set;} days................................
b.
[StringLength(15)] public string Sname{get;set;} 12.Return only the student name,who are having name as a"Mahesh".
.................................... c. Which of the following would you choose?
[Length.String.Sname(15)]
public int Sname{get;set;} d. Select one:
[Length.String.Sname(15)]
a. var query = from stu in Students
public int Sname{}
where stu.Name = "Mahesh"
select stu
8) Entity data model considers the business domain => True b. var query = from stu in Students where stu.Name =
"Mahesh" select Students
9.You are handling page event.Now the content and information you have c. var query = from stu in Students
cached so that it is loading quickly but you need to keep the clock which where stu.Name == "Mahesh"
shoes time for the event dynamic. Which of the following will be helpful? select stu (sure)
d. var query = from stu in Students
Select one: where stu.Name == "Mahesh"
a.<% DateTime(t.now);%> select Students
b.<%Response.writeSubstitution(t=>DateTime.Now.ToLongTimeString());%>
................. 13)Match the following
c.<%var c = dynamic.DateTime() %>
=> Globalization is the process of = Making a product multi => Localization is
the process of = Adapting a global product for a particular Select one:
language and country a)key dependency
b)file dependency
16.JsonResultClass has which of the following syntax? c)data dependency
d)SQL dependency...................
Select one:
a.public class JsonResult:ActionResult.......................... 24)what is meant by eagerly loading in entity framework?
b.public class JsonResult:ActionBinder Select one:
c.public class JsonResult:ViewResult a)eager loading is the process where by a query for one type of entity also
d.private class JsonResult:ViewResult loads ................. related entities as part of the query
b)eager loading is the process where by a query for one type of entity also
17.Which of the folowing statement are true about AFTER trigger? loads
related entities as part of the query on demand
Select one:(It has to be one or more) c)eager loading is the process of query only the details mapped in the entity
a.AFTER trigger executes after the statement that d)none
triggered it completes.............. 26)Which of the following statements are true about the DATABASE
b.AFTER trigger executes after the last trigger in the queue argument of the CREATE TRIGGER statement?
c.If the statemnt fails with an error the trigger in not executed............... Select one or more:
d.AFTER triggers cannot be specified for tables,they can only be specified for a.Applies the scope of a DDL trigger to the current database.
views. b.The trigger fires whenever event_type or event_group occurs in the
e.AFTER triggers cannot be specified for views,they can only be specified for current database.-
tables.............. c.The trigger fires whenever a new record is inserted in tables of the current
database.
20.When foreign key columns are not included in the model, the association d.The trigger fires whenever a records are deleted from the tables in the
information is managed as an independent object. current database.
True......................
27)Which of the following property allows to navigate from one end to other
22)SQL server consists of which of the following three types of files end association?
Select one:
Select one or more: a.Navigation
a)primary data files.................. b.Select
b)secondary data files.............. c.Update
c)hidden files d.None of the listed options
d)log files................
29)Which statements are true about ROLLBACK TRACTION statement?
23___________ cache until DATA IN A SQL SERVER TABLE CHANGES.
Select one or more: 38.you are given a task by manager to check whether the given request
a.Rolls back an implicit traction to the beginning of the traction,or to a routes to the index action of product controller. which of the following
savepoint inside the traction snippets which can be helpfull?
b.Rolls back an explicit traction to the beginning of the traction,or to a
savepoint inside the traction a. [Testinitialize]public void initialize(){MyApplication>RegisterRoutes(Route
c.It caches all data modifications&then erases from the start of the traction Table.Routes);}[TestMethod]public void
or to a savepoint sample(){"~/Product".ShouldMapTo<ProductController>(z=>zIndex());}
d.It erases all data modifications made from the start of the traction or to a
savepoint b.public void initialixe(){MyApplication>RegisterRoutes(Route
e.It reverses all the modifications made before the COMMIT TRACTION Table.Routes);}[TestMethod]public void
statement sample(){"~/Product".ShouldMapTo<ProductController>(z=>z Details());}

32)Whenever a user searches for a product on the web page,user should get c.[Testinitialize]public void initialize(){MyApplication.RegisterRoutes(Route
a list of products and only that particular portion of the web page should Table.Routes);}[TestMethod]public void
get updated and the whole page should not be refreshed.Which of the sample(){"~/Product".ShouldMapTo<ProductController>(z=>zDetails());}
following will help you to achieve this?
d.[Testmethod]public void sample()
Select one: {"~/Product".ShouldMapTo<ProductController>(B=>zIndex());}
a.public ActionResult Index(string query){var c=new ProductContext();var 43.in a conceptual model which of the following are makeup from properties
products=c.ProductSet and define the structure of top-level concepts? select one. a. object
.Where(p=>p.Name.StartsWith(query)||query==null).OrderByDescending(p b. database
=>p.Price).Take(10).Tolist();} c.entity types (https://msdn.microsoft.com/en-
us/library/ee382840(v=vs.110).aspx) d.
b.if(Request.IsAjaxRequest()){return none
PartialView("productTable",products);}return View("Index",products);
46.What are the steps for creating partition tables & indexes?
c.<%using(Ajax.BeginForm("Index","Product",new
AjaxOptions{HttpMethod="GET",UpdateTargetId="product Select one or more:
Table"})){%><input a.Create a partiton function to specify how a table or index that uses the
type="text"name="q"/><input type="submit"value="Search"/><%}%> function can be partitioned-
b.Create a partiton function to specify the placement of the partitions of a
d.All of the listed options partition function on filegroups
37.WCF me__ c.Create a partiton scheme to specify the placement of the partitions of a
a. windows communication Farm. partition function on filegroups
b. windows communication Forum d.Create a partiton scheme to specify how a table or index that uses the
c. windows communication Form- function can be partitioned
d. windows communicationFoundation e.Create a table or index using the partition scheme.
db.Employees.AddObject(objEmp);db.acceptChanges();
48.How to convert dbContext to object context?
51.How does partition function work?
Select one:
a.DbSet context =((IObjectContextAdapter)dbContext).ObjectContext; Select one or more:
b.ObjectContext context = a.A partition function specifies how the table or index is partitioned
((IObjectContextAdapter)dbContext).ObjectContext;- b.The function maps the database into a set of partitions.
c.DbContext context =((IObjectContextAdapter)dbContext).ObjectContext; c.The function maps the domain into a set of partitions.
d.None of the listed options d.To create a partition function,you must specify the numbers of partitions,
the partitioning rows & the number of constraints for each partition.
50.which of the following are the CORRECT code snippets to insert data into
Employee Table using EF? 52. Jameson is using a real estate website for Manhattan. He is getting the
name of builders quickly while for New York it takes time.What property of
Select one: caching should be used here?
a.Learn EFEntities db = new Learn EFEntities(); Select one:
Employee objEmp = new Employee(); a. Use of VaryByParam -NOT SURE
objEmp.HREmpId = txtHREmpId.Text; objEmp.Firstname = b. Use of VaryByCustom
txtFirstName.Text; objEmp.Lastname = txtLastName.Text; c. VaryByControl
objEmp.Address = txtAddress.Text; d. None
objEmp.City = txtCity.Text; 55.How can we remove pluralization in entities?
db.Employees.AddObject(objEmp);db.InsertChanges(); Select one :

b.Learn EFEntities db = new Learn EFEntities(); a.modelBuilder.Conventions.Remove<PluralizingTableNameConvention>()


Employee objEmp = new Employee();
objEmp.HREmpId = txtHREmpId.Text; b.context.Conventions.Remove<PluralizingTableNameConvention>()
objEmp.Firstname = txtFirstName.Text;- c.modelBuilder.Conventions.Remove<TurnOffPluralizingTableNameConvent
objEmp.Lastname = txtLastName.Text; ion>()
objEmp.Address = txtAddress.Text; objEmp.City = d.modelBuilder.Conventions.Remove<PluralizingTableNameEntity>()
txtCity.Text;
db.Employees.AddObject(objEmp);db.SaveChanges();
57.You are given a task by the manager to show the list of products from
product repository .you have wriiten a code and now you are testing
c.Learn EFEntities db = new Learn EFEntities(); whether it is showing or not.which of the following would you choose?
Employee objEmp = new Employee(); select one:
objEmp.HREmpId = txtHREmpId.Text;
objEmp.Firstname = txtFirstName.Text; a.[TestMethod]Public void Product_view_check()
objEmp.Lastname = txtLastName.Text;
{
objEmp.Address = txtAddress.Text; objEmp.City =
var products= new LIst<Products>()
txtCity.Text;
{ }
new Product {Title="Samsung"},new Product {Title="Apple"} d.none
}.AsQueryable();
58.AJAX helper Class exist in which namespace?
var repository = new Mock <lproductRepository>(); var select one:
controller = new ProductController(repositroy.Object); a. System.net.MVC
repository.Setup(p=>p.FIndAll()).Returns(products); var b b. System.Web.MVC3
= controller.Index().ViewData.Model as c. System.MVC
IENumerable<Products>Assert.IsTrue(products.SequenceEqual(B)); d. System.Web.MVC
}
60.which of the following id the correct option to get the related subjects
b.[TestMethod]Public void Product_view_check() count without loading it of the student name is"vijay" ?
{ Select one:
var products= new LIst<Products>() a.var user = context.users.where(b=> b.name=="Vijay".FirstOrDefault();var
{ subjectCount = user.Subjects.Count();
new Product {Title="Samsung"},new Product {Title="Apple"}
}.AsQueryable(); b.var user = context.users.where(b=> b.name=="Vijay".FirstOrDefault();var
subjectCount = context.Entry(user).Take(b=>b.Subjects).Query().Count();
var repository = new Mock <lproductRepository>(); var
controller = new ProductController(repositroy.Object); c.var user = context.users.where(b=> b.name=="Vijay".FirstOrDefault();var
repository.Setup(p=>p.FIndAll()).Returns(products); subjectCount = context.Entry(user).Include(b=>b.Subjects).Query().Count();
var b = controller.Index().ViewData.Model
as IENumerable<Products>Assert.IsTrue(products.SequenceEqual(b)); d.var user = context.users.where(b=> b.name=="Vijay".FirstOrDefault();var
} subjectCount =
context.Entry(user).Collection(b=>b.Subjects).Query().Count();-
c.[TestMethod]Public void Product_view_check()
{ 2..edmx file will create which of the following?
var products= new LIst<Products>() select one:
{
new Product {Title="Samsung"},new Product {Title="Apple"} a.Entities & Relationships
}.AsQueryable(); b.Entities & keys
c.Entities
var repository = new Mock <lproductRepository>(); var d.None
controller = new ProductController(repositroy.Object);
repository.Setup(p=>p.FIndAll()).Returns(products); 5.In which of the following the entities and relationships are created on the
var z = controller.Index().ViewData.Model EDMX design surface? select one:
as a.Code First Approach
IENumerable<Products>Assert.IsTrue(products.SequenceEqual(z));
b.Model First Approach 16 and 21(both same options in diff order). which of the following code will
c.Database Approach provide custom error pages for 404 errors and general exceptions? a.
d.None <system.web>
<customErrors mode=”RemoteOnly”
8.whenever a user clicks on a product, you have to make sure to ask him/her defaultRedirect=”Error/GeneralException”>
whether he/she sure about it or not .which of the following would you <errorstatuscode=”404”redirect=ErrorController.Status404”/>
choose select one : </customerrors>
</system.web>
a.<%=Ajax.ActionLink("Click here","Sample". new AjaxOptions
(LoadingElementId="AONE",Question="Are you sure ?", Update b. <system.web>
TargetId="ProductAone",})%> <customErrors mode=”LocalOnly”
defaultRedirect=”Error/GeneralException”>
b.<%=Ajax.ActionLink("Click here","Sample". new AjaxOptions <errorstatuscode=”404”redirect=ErrorController.Status404”/>
(LoadingElementId="AONE",Confirm="Are you sure ?", Update </customerrors>
TargetId="ProductAone",})%> </system.web>
<system.webServer>
c.<%=Ajax.ActionLink("Click here","Sample". new AjaxOptions <httpErrorserrormode=”Detailed”/>
(LoadingElementId="AONE",Query="Are you sure ?", Update </system.web>
TargetId="ProductAone",})%>
c. <system.web>
d.<%=Ajax.ActionLink("Click here","Sample". new AjaxOptions <customErrors mode=”RemoteOnly”
(LoadingElementId="AONE",Ask="Are you sure ?", Update defaultRedirect=”Error/GeneralException”>
TargetId="ProductAone",})%> <errorstatuscode=”404”redirect=ErrorController.Status404”/>
12. which of the following are valid for a Contoller class? </customerrors>
a. Encapsulating presentation logic </system.web>
b. handling all errors that might occur during the execution of the action <system.webServer>
method. <httpErrorserrormode=”Detailed”/>
c. storing data in a persistent storage </system.web>
d. getting the values to use as the action method's arguments
d. <system.web>
(https://msdn.microsoft.com/en-in/library/dd410269(v=vs.100).aspx) <customErrors mode=”RemoteOnly”>
<errorstatuscode=”404”redirect=ErrorController.Status404”/>
15. which of the following are used to locate the entities at ends of an <errorstatuscode=”GeneralException”redirect=”Error/GeneralException”/>
association in a conceptual model? a. Navigation properties- </customerrors>
b. Attributes </system.web>
c. Index <system.webServer>
d. Proxy <httpErrorserrormode=”Detailed”/>
</system.web>
a.Getting the values to usse as the action methods arguments
b.Handling errors that might occur dring the execution of the action method
22. You want to return a file from the server which method you will use? c.storing data in a persistent storage
a. Display File d.Encapsulating presentation logic
b. return file -
c. download file 48.Resource files have _________ extension.
d. None select one:

32.The output cache contains a different version of the requested a. .rsrcx


document for each combination of specified parameters is applicable for? b. .srcx
select one: c. .resx
d. .src
a.VaryByCustom
b.VaryByControl 55. which of the following class provides you important methods to
c.VaryByParam configure entities and its properties to override various code first
d.VaryByheader conventions? select one:

34(Kajal).which of the following is an example of direct mapping? a.EntityCOntext


select one: b.EntityTypeCOnfiguration
c.DBContext
a.modeBuilder.Entity<Product>().property(p=>p.ID).DirectMap("product_id d.ObjectContext
");
b.modeBuilder.Entity<Product>().property(p=>p.ID)==("product_id"); 57.when you are testing the value of variable "a" is not getting set and you
c.modeBuilder.Entity<Product>().property(p=>p.ID)=("product_id"); need to have value of "a" before stating of test.How will you solve this
d.modeBuilder.Entity<Product>().property(p=>p.ID).HasCoulmnName("prod error?
uct_id");
34(Prajakta). which of the following add-in is helpful in TDD? select one:
I. coderush express
II. Test Express a."Test.Initialize" public void Initialize() {var a="sometestvalue";}
b.[Testinitialize] public void Initialize() {var a="sometestvalue";}
a. None
b. II only c.[IntializeBeforeTest]public voidInitialize() {var a="sometestvalue";}
c. I only-
d. Both I and II d.public void Initialize() {var a="sometestvalue";}

42. which of the following are valid for a controller class ?select one or more
************************************************************** c.A Global temporary procedure is dropped when the clean-up function is
4.While testing,you are using dynamically generated test double.Which type called by the calling procedure.
of test double it is? d.A Global temporary procedure is dropped at the end of the last session
Select one: using the procedure.
a.Stubs e.If a global temporary procedure is created,all users with EXCUTE
b.Fakes permissions can access it & permissions can also be revoked explicitly.
c.None of the listed options
d.Mocks 15.You want a particular section of your site to be accessed by "Admins"
only.Which of the following is the correct option to go about it?
6.Which of the following namespace supports code-first conventions?
Select one: Select one:
a.System.Data.Entity a.Allow=Admins
b.System.Data.ComponentModel b.Access="Admins"
c.System.Data.Entity.ModelConfiguration.Conventions c.Authorize(Roles=Admins")
d.None of the listed options d.(Authorize="Admins")

7.What is "ExcuteStoreCommand" method? 17.What will be the order of TDD steps:


Select one: I.Write enough code so that it passes the test.
II.Write a unit test.
a.Run SQL statements in an Entity framework environment III.Run the test again to watch it pass.
b.Stores values in the model IV.Watch it fail.
c.excute xml data
d.None of the listed options. Select one:
a.II,IV,I,III
8.What is the purpose of key annotation? b.III,I,II,IV
c.IV,I,II,III
Select one: d.II,I,IV,III
a.To set the columns as Unique
b.To set the columns as required 19.ajaxStart(callback)-What is the function of this method?
c.To set the columns as primary key-
d.To set the columns as foreign key Select one:
a.Attach a class library to be executed, whenever an AJAX reqest begins and
10.Which statement are true about Global Temporary stored procedure? there is more tahn one active.
Select one or more: b.Attach a header to be executed,whenever an AJAX reqest begins and there
a.A Global temporary procedure is available to all connections.- is none already active.
b.A Global temporary procedre is available to all connections with explicit c.Attach a function to be executed,whenever an AJAX reqest begins and
EXECUTE permission. there is none already active.
d.Attach a method to be executed,whenever an AJAX reqest begins and 32.You need to install A but it requires B.In this scenario,what will the Nuget
there is none already active. download?

23.What does the following Query do? Select one:


a.Only A
INSERT INTO docs b.It will throw an error(build error will be thrown)
SELECT 10,xCol FROM (SELECT * FROM OPENROWSET(BULK c.A & B
'C:\temp\xmfile.xml',SINGLE_BLOB)AS xCol)AS R(xCol) d.Only B

Select one: 34.In which of the following options, Aggregate functions be used as
a.It is typed XML insert statement. Expressions? Select one or more:
b.Strong XML Data Generated Using FOR XML with TYPE Directive a.The select list of a SELECT statement(either a subquery or an outer query) -
c.A new row is inserted into the table named docs
d.Querying and Modifying XML Data. b.A COMPUTE or COMPUTE BY clause
Note:The INSERT statement in the following code segment reads the content c.A GROUP BY clause
of file C:\temp\xmlfile.xml as a BLOB by using OPENROWSET. A new d.A HAVING clause
row is inserted into the table named docs with a value of 10 for the primary e.An OVER clause
key and the BLOB for the XML column xCol. 36.Entity Framework(EF) is an Object/Relational
A well-formedness check occurs when file content is assigned to the mapping State True or False Select one:
XML column. Truetrue
False
24.Which of the following statements are TRUE?
I.Multiple entity sets can be defined using the same entity type. II.An 39.Commands on console are implemented as powershell command.
instance of a given type can only exist in one entity set. State True or False.
III.The entity key for the instance may not unique within the entity set. Select one:
True
Select one: False
a.I and II
b.II and III 40.Which of the following options are CORRECT about entity relationships?
c.I and III I.n Entity Framework, an entity can be related to other entities through an
d.I,II and III association(realtionship)
Note:The entity key for the instance is unique within the entity set. II.Each relationship contains two ends that describe the entity type and the
multiplicity of the type(one,zero-or-more,or many) for the two entites in
27.Eager loading is the process of loading related entites/objects. that relationship.
State True or False. True
Select one:
a.Only I
b.Only II
c.Neither I nor II Select one:
d.Both I and II.- a.DataAnnontations not only let you describe client and server side
42.Code-First will create the database tables with the name of_________ validation in your code first classes, but they also allow you to enchance and
properties in the context class. even correct the assumptions that code first will make about your classes
based on its conventions.
Select one: a.Entity b.With DataAnnotations you can not only drive database schema
b.Oject generation, but you can also map your code first classes to a pre-existing
c.Model database.
d.Dbset c.DataAnnotations provide only the most commonly needed configuration
changes you can be make on your code first classes. d.All the listed options
43.What do you understand by RAW ajax?
57.What does the Query exeuction plan define?
Select one:
a.To communicate to business server making the use of Select one or more:
"XMLHTTPREQUEST" a.The sequence in which the source tables are accessed.
b.To communicate to database server making the use of "XSLREQUEST" b.The sequence in which the rows are accessed.
c.To communicate to client server making the use of "XMLHTTPREQUEST" c.The methods used to extract data from each table
d.To communicate to database server making the use of d.The methods used to arrange data from each table.
"XMLHTTPREQUEST"
58.Which of the following line of code will invoke the cart controllers ad
45.HTML helpers Supports the rendering of HTML controls in a view. method?
State True or False. Select
one: Select one:
True a.return redirect("Cart/Add")
False b.return View("Cart.Add")-
c.return Content("Cart.Add")
49.We can have more than 1 Web.config file in ASP.NET MVC3 d.Response.Redirect("Cart.aspx?Add")
State true or False Select one: **************************************************************
True 1) Which of the following is the CORRECT option for getting the user whose
False name is "Raja" and to load all the roles related to the user eagerly?
Note:By creating web.config file in sub root folders we can use multiple
web.config files in our application but each folder should contains only a. var user = context.Users
one web.config file. .Where(b => b.Name !="Raja")
.Take(b => b.roles)
53.Razor view files have Extention_____ cshtml-________. .FirstOrDefault();
56.Which of the following options are CORRECT about data annotations?
b. var user = context.Users
.Where(b => b.Name =="Raja")
.Select(b => b.roles) context.Configuration.ProxyCreationEnabled should be true.
.FirstOrDefault(); context.Configuration.LazyLoadingEnabled should be true.
Navigation property should be defined as public, virtual. Context will NOT do
c. var user = context.Users lazy loading if the property is not defined as virtual.
.Where(b => b.Name =="Raja")....................................
.Include(b => b.roles) 9) Entity Framework will support in web services and WCF.
.FirstOrDefault(); State True or False.
a. True .......................
d. var user = context.Users b. False
.Where(b => b.Name ="Raja")
.Take(b => b.roles) 12) which of the following object is used to track changes, manage entities,
.FirstOrDefault(); concurrency and relationship of the entities?

5) DdContext is just a lightweight version of the ObjectContext class.(TRUE) a. DbContext


b. EntityDataModel....................
7) How to set maximum length for a column using entity framework? c. Entity
d. None of the listed options
a.modelBuilder.SetLength<Entity>().Property(t=>t.Name).HasMaxLength(50
) 13) DbContxt.ChangeTracker Property Provides access to features of the
b.modelBuiler.Entity<Entity>().Property(t=>t.Name).HasMaxLength(50)........ context that deal with change tracking of entities. State True or False.
...............
c.moderlBuilder.SetMaxLength<Entity>().Property(t=>t.Name).HasMaxLengt a. True................
h(50) b. False
d. None of the listed options
14) Which of the following snippet creates database in local sql express by
8) Which of the following statements are TRUE? default?

I. context.Configuration.ProxyCreationEnabled should be true. II. I. public class Context: DbContext


context.Configuration.LazyLoadingEnabled should be true. III. Navigation {
property should be defined as public, virtual. Context will NOT do lazy public Context(): base()
loading if the property is not defined as virtual. {
a. I,II and III.......................
b. II and III }
c. I and III }
d. I and II Note:
Rules for lazy loading: II. public class Context: DbContext
{
public Context(): base("DB Name") INNER JOIN
} (SELECT[Extent2].[StudentId]AS[StudentId],[Extent3].[CourseId]AS[CourseId
1],[Extent3].[CourseName]AS[CourseName],[Extent3].[Location]AS[Location
} ],[Extent3].[TeacherId]AS[TeacherId]
} FROM [dbo].[StudentCourse]AS[Extent2]
INNER JOIN[dbo].[Course]AS[Extent3]ON[Extent3].[CourseId] =
III. public class Context: DbContext [Extent2].[CourseId] ) AS [Join1]ON[Extent[1].[StudentID] =
{ [Join1].[StudentId]
public SchoolDBContext(): base("name=EduDB") WHERE 1 = [Extent1].[StandardID]
{
} b.SELECT
} [Extent1].[StudentId]AS[StudentID],
[Extent1].[StudentName]AS[StudentName],
a. I,II and III [Join1].[CourseId1]AS[CourseId],
b. I and II [Join1].[CourseName]As[CouseName],
c. I and III [Join1].[Location]As[Location],
d. II and III [Join1].[TeacherId]AS[TeacherId]
FROM [dbo].[Student]AS[Extent1]
15) In foreign key association when the relationship changed, the Entity INNER JOIN
state of the dependent object will change to EntityState.Modified from (SELECT[Extent2].[StudentId]AS[StudentId],[Extent3].[CourseId]AS[CourseId
EntityState.Unchanged.state True or False 1].[Extent3].[CourseName]
[Join1].[CourseId1]AS[CourseId],
a. True................. [Join1].[CourseName]AS[CouseName],
b. False [Join1].[Location]As[Location],
[Join1].[TeacherId]AS[TeacherId]
17) Which of the following is CORRECT for the sql implementation of the FROM [dbo].[Student]AS[Extent1]
below linq query from s in context.Students from c in s.Courses where INNER JOIN
s.StandardId == 1 select new {s.Student,c} (SELECT[Extent2].[StudentId]AS[StudentId],[Extent3].[CourseId]AS[CourseId
1],[Extent3].[CourseName]AS[CourseName],[Extent3].[Location]AS[Location
a. SELECT ],[Extent3].[TeacherId]AS[TeacherId]
[Extent1].[StudentId]AS[StudentID], FROM [dbo].[StudentCourse]AS[Extent2]
[Extent1].[StudentName]AS[StudentName], OUTER JOIN[dbo].[Course]AS[Extent3]ON[Extent3].[CourseId] =
[Join1].[CourseId1]AS[CourseId], [Extent2].[CourseId] ) AS [Join1]ON[Extent[1].[StudentID] =
[Join1].[CourseName]As[CouseName], [Join1].[StudentId]
[Join1].[Location]As[Location], WHERE 1 = [Extent1].[StandardID]
[Join1].[TeacherId]AS[TeacherId]
FROM [dbo].[Student]AS[Extent1] c. None of the listed options
25) Which method in the DBContext writes inserts, updates, and deletes to
d. SELECT the data source?
[Extent1].[StudentId]AS[StudentID],
[Extent1].[StudentName]AS[StudentName], a. SaveChanges.........................
[Join1].[CourseId1]AS[CourseId], b. All of the listed options
[Join1].[CourseName]As[CouseName], c. Save
[Join1].[Location]As[Location], d. SaveEntity
[Join1].[TeacherId]AS[TeacherId]
FROM [dbo].[Student]AS[Extent1] 26) After a LINQ to Entities query is converted to command trees and
Group by executed, the query results are usually returned as one of the following: A
(SELECT[Extent2].[StudentId]AS[StudentId],[Extent3].[CourseId]AS[CourseId collection of zero or more typed entity objects or a projection of complex
1],[Extent3].[CourseName]AS[CourseName],[Extent3].[Location]AS[Location types in the conceptual model.
],[Extent3].[TeacherId]AS[TeacherId] CLR types supported by the conceptual model.
FROM [dbo].[StudentCourse]AS[Extent2] Inline collections.
OUTER JOIN[dbo].[Course]AS[Extent3]ON[Extent3].[CourseId] = Anonymous types.
[Extent2].[CourseId] ) AS [Join1]ON[Extent[1].[StudentID] =
[Join1].[StudentId] 27) Which of the following is used to define plain old CLR Objects that
WHERE 1 = [Extent1].[StandardID] are NoT related to certain persistence technology?

a. Persistence Ignorance..............
18) Eager loading returns all of the objects including the related objects. b. None of the listed options
State c. Self-Tracking Entities
True or False. a. True- d. Deferred or Lazy Loading

20) Which of the following are the benefits of Entity framework? 28) The DataRelation object is used to add relationship between two
DataTable objects. What are ... Persistence Ignorance -
a. Mapping manual Facilitates you to define your own Plain Old CLR Objects (POCO)
b. None of the listed options which are independent of any specific persistence technology.
c. Auto generate code
d. Reducing development time 29) Which of the following class is used to programmatically create
24) By default, the Entity Framework will generate the database queries and connection string and parse existing connecting string to create
update commands when your code interacts with the model. State True or attributes and methods for the class?
False.
a. EntityConnectionStringBuilder.................
a. True ................ b. EntityClientProvider
b. False c. EntityContext
d. EntityConnection
30) How can we Update UnitPrice of Product? a. true .................
b.false
a. NorthwindEntities dbContext = new NorthwindEntities(); Product
product = dbContext.ProductSet.Single( p=> p.ProductName == 34.when you use the using statement,then compiler automatically creates a
"Aniseed Syrup"); try/finally block and calls dispose in the finally block.
product.UnitPrice = 1000; state true or false
dbContext.Update(); a.true....................
b.false
b. NorthwindEntities dbContext = new NorthwindEntities(); Product 35.which of the following property is used to map two seperate types in the
product = dbContext.ProductSet.Single( p=> p.ProductName == storage model? select one
"Aniseed Syrup");............................................ product.UnitPrice = a.split entity...................
1000; b.scalar property
dbContext.SaveChanges(); c.association
d.none of these
c. NorthwindEntities dbContext = new NorthwindEntities(); Product
product = dbContext.ProductSet.Single( p=> p.ProductName == Note:scalar property:A property of an entity that maps to a single field in the
"Aniseed Syrup"); storage model
product.UnitPrice = 1000;
dbContext.UpdateChanges(); split entity:An entity type that is mapped to two separate types in the
storage model.
d. NorthwindEntities dbContext = new NorthwindEntities(); Product
product = dbContext.ProductSet.Single( p=> p.ProductName == 36.which namespace is used to include .net data provider for sql server?
"Aniseed Syrup"); product.UnitPrice a.system.data.sqlprovider
= 1000; b.system.data.oracleclient
dbContext.Save(); c.system.data.componentmodel
d.system.data.sqlclient....................
31.which of the following is used to manipulating dataset using linq?
a.LINQ to dataset..................... 37.POCO template used to generate which of the following?
b.none of these select one
c.LINQ TO SQL a.none of these
d.LINQ TO XML b.persistance ignorant modeltypes
c.persistance ignorant entity types.........................s
32.a POCO class will not be inherited from entity object class state d.persistance ignorant object types
true or false Note:
a.true..................... POCO Entities
33.database model provides the normalised schema designed by the POCO stands for "plain-old" CLR objects which can be used as existing
database administrator state domain objects with your data model.
true or false
POCO data classes which are mapped to entities are defined in a data model.
It also supports most of the same query, insert, update, and delete 45.when a linq entities query is excecuted.
behaviors as entity types that are generated by the Entity Data Model tools. select one:
You can use the POCO template to generate persistence-ignorant entity () a.some expressions in the query might be executed on the server and
types from a conceptual model. some parts might be executed locally on the client.client-side evaluaion of
an expression takes place before the query is executed
38.entity model support quering only entities defined in entity on the server...................
datamodel state true or false a. true b.some expressions in the query might be executed on the server and some
b.false parts might be executed locally on the server.client-side evaluaion of an
Note:The Entity Framework even supports mapping entities in the expression takes place before the query is executed on the server. c.none of
conceptual model to stored procedures in the data source. these
d.some expressions in the query might be executed on the server and some
41.what is the purpose of the system.componentmodel.dataannotation parts might be executed locally on the client.server-side evaluaion of an
namespace? select one expression takes place before the query is executed on the server.
a.none of these
b.data first approach to use [key] attribute
c.code first approach to use [key] attribute........................... 46.which of the following annotation validates property whether it has
d.model first to use [key] attribute minimum length of the array or string? (or) Which attribute is used to set
minimum length for column?
42.how can we mark properties in the entity framework to be ignored? select one:
select one a.none of these
a.[remove] b.arraylength
b.[ignored] c.minlength...........................
c.[notmapped].......................... d.lengthofarray
d.none of these
47.table splitting enables which of the following?
43.which of the following statements are TRUE? select one:
I.in an entity framework application data is loaded from the file with the a.to map two tables to multiples entities
extension.csdl b.to map a single table to multiple entities..........................
II.mapping information is publicaly accessible c.to map a single entity to multiple tables
III.the entity framework uses the metadata in the mapping types to trlate d.to map a single schema to multiple entities
queries against the conceptual model to data source specific commands
select one: 48.how can we enable concurrency mode in entity framework?
select one:
a.II & III a.<property name="status" type="byte" nullable="false"
b.I & II concurrencymode="true"/>
c.I.II & III b.<property name="status" type="byte" nullable="false"
d.I & III.............................. concurrencymode="enabled"/>
c.<property name="status" type="byte" nullable="false"
concurrencymode="yes"/> 56.how can we get objectcontext from DBcontext?
d.<property name="status" type="byte" nullable="false" select one:
concurrencymode="fixed"/>............................. a.DBcontext.context
b.DBcontext.getobjectcontext()
50.which of the following is true about overlapping keys? c.none of these
select one: d.((lobjectcontextadaptor)db).objectcontext;.......................
a.to change a foreign key association that includes overlapping keys,it is
recommend to modify the foreign key values instead of using the object **************************************************************
references. 1)which data types cannot be return types of scalar function? a)text-
b.overlapping keys are composite keys where some properties in the key are b)ntext
also part of another key in the entity c)integer
c.all of these............................................................. d)image-
d.you cannot have an overlapping key in an independent association e)cursor

52.which class is responsible for interacting data as object in the entity 2)which class provides the rsults by executing command in conceptual
framework? select one: a.entity model?
b.entitycontext a)entitydatareader
c.DBset b)Dbcontext
d.DBcontext........................ c)objectcontext
d)entityconnection
54.which annotation is used when you have multiple relationships between
classes? (Or) which of the following data annotation attribute isuseful when 3)which of the following is the ability to add and use your own data classes
you have multiple relationship between two classes (or) Entity Framework along with your data model?
provide us with which of thefollowing attribute to indicate multiple a)entityobject
relationships b)dbcontext.context
c)poco
select one: d)none
a.onmultiplerelation
b.required 4)razor syntax have intellisense
c.foreign key true or false true
d.inverse property.......................
5)how do aggregate functions work?
55.entity state property is enum type a)they work only on integer values
state true or false select b)they ignore null values-
one: c)they perform a calculation on a set of values and return a
a.true.................................(may be) single/summarized value-
b.false
d)they frequently used with the group by clause of the select statement- b)objectquery
e)they cannot be used with the group by clause of the select statement c)entitytosql
d)none
6)how does external_access permission set work?
a)allow access only to external assemblies with minimal access to internal 13)TDD uses ________________to drive the design of software?
computation a)red-green-refractor-
b)allows access to internal computations b)unit debug
c)allow access to external system resource such as files,networks and c)unit test
environment variables- d)regression test
d)allow access to registry-
14)which of the followin are true?
8)if we want to create a backward compatible application which of the a)the entity framework lifetime of the context begins when the instance is
following view engine will be preferred in mvc3? a)sparx created and ends when the instance is either disposed or garbage collected-
b)aspx -
c)razor b)the lifetime of the context begins when the application starts
d)Nhaml c)the primary class that is responsible for interacting with data as objects is
system.data.entity.dbcontext
10)what will be the output of the following code:- d)dB ENTITY PROPERTIES repersent collections of the specified entites in the
public actionresult search(string idea ="a"){ context
return view();
} 15)Nunit have many dependencies :true
1)it will set the default value of string idea to "a"
2)it will set the default pointer of idea to "a" 16)what is the significance of the results pane of the query designer? a)it
only 1 shows a grid with data retrieved by the query or view-
only 2 both b)it shows the results of the most recently executed select query-
1 and 2 c)it shows the query syntax
none d)you can modify the database by editing values in the cells of the grid-
e)you can add or delete rows
11)what are the query considerations for using clustered indexes?
a)use clustered index when a query returns a range of values by using 18)what should be tested a controller?
operators such as between >,>=,<,<=
1)proper actionresult are returned or not
b)use clustered index when a query returns largs resultsets-
2)proper model are build or not
c)use clustered index when a query needs to handle null values
d)use clustered index when a query uses join clauses
A)2 ONLY
e)use clustered index when a query uses group by or order by clauses
B)BOTH
C)NONE
12)The _______________class supports both linq to entities sql queries
D)1 ONLY-
agaimst a conceptual model a)sqlquery
a.Uncheck "Allow this precompiled site to update" under Output
20)i have a table blog which i want to split into two blog.which of the Assemblies-
followin is the correct snippet? ->Compilation-
a)protected override void OnModelCreating(DbModelBuilder b.Uncheck "Allow this precompiled site to update" under configuration
modelBuilder){modelBuilder.Entity<Blog>().HasRequired(e=>e.BlogAbout). >Compilation
WithRequiredPrincipal();modelBuilder.Entity<Blog>().ToTable("Blogs");mod c.Uncheck "Allow this precompiled site to update" under signing
elBuilder.Entity<BlogAbout>().ToTable("Blogs");} >Compilation
b)protected override void OnModelCreating(DbModelBuilder d.Uncheck "Allow this precompiled site to update" under
modelBuilder){modelBuilder.Entity<Blog>().ToTable("Blogs");modelBuilder. deployment->Compilation
Entity<BlogAbout>().ToTable("Blogs");}
c)protected override void OnModelCreating(DbModelBuilder 27.You have a certain number of products with price ranging from high to
modelBuilder){modelBuilder.Entity<Blog>().HasRequired(e=>e.BlogAbout). low to medium. You
WithRequiredPrincipal();} want to filter products by their respective price range.Which of the following
d)protected override void OnModelCreating(DbModelBuilder option will fulfill this conditions? a.[...
modelBuilder){modelBuilder.Entity<Blog>().HasRequired(e=>e.BlogAbout)m @using(Html.BeginForm("index","Range"))
odelBuilder.Entity<Blog>().ToTable("Blogs");modelBuilder.Entity<BlogAbout {
>().ToTable("Blogs");} Html.DropDownList("Product",new selectList(viewBag.Ranges))
<input type="submit" value="filter"/>
21.improves the performance of ASP.NET MVC application drastically. }
a.Output profiling ...]
b.Output Regeneration
c.Output updation b.[...
d.output caching- @using(Html.BeginForm("index","Product"))
{
25.Which of the following statements are TRUE?(MULTIPLE ) Html.DropDownList("Range",new selectList(viewBag.Ranges))
I.edmx file is an XML.file <input type="password" value="filter"/>
II.which declares a conceptual model,storage model and mapping between }
these models ...]
III.It divided into three categorieS SSDL,CSDL and MSL
c.[...
Select one: a.I @using(Html.BeginForm("index","Product"))
and II {
b. II and III Html.DropDownList("Range",new selectList(viewKnapsack.Ranges))
c. I and III <input type="submit" value="filter"/>
d.I,II and III }
...]
26.You dont want to allow anyone to do any change to the code being
deployed on production server.what will be the solution?
d.[... Assert.AreEqual(distance_left,Left);
@using(Html.BeginForm("index","Product")) }
{ b.[TestMethod]
Html.DropDownList("Range",new selectList(viewBag.Ranges)) {
<input type="submit" value="filter"/> int total_distance=2; int
} distance_covered=10; int
...] distance_left=10;
Distance d1=new Distance("A1",total_distance);
29.what happens when you create a primary key constraint? d1.covered(distance_covered);
a.Unique index on the column ,or columns is automatically created which is int Left=d1@remaining;
by default nonclustered
b.Unique index on the column ,or columns is automatically created which is Assert.AreEqual(distance_left,Left);
by default clustered }
c.Unique index on the column ,or columns is automatically created which is
by default spatial c.All of the lists
d.Unique index on the column ,or columns is automatically created which is d.[TestMethod]
by default XML {
int total_distance=2; int
31.what is stored procedure? choose all relevant options distance_covered=10; int
a.a collection of compiled T-SQL commands that are directly accessible by distance_left=10;
SQL SERVER Distance d1=new Distance("A1",total_distance);
B.A COLLECTION of commands written in any base .net language that are d1.covered(distance_covered);
directly accessible by DQL server int Left1=d1.remaining;
c.commands placed in a stored procedure are interpreted one line at a time
during execution Assert.AreEqual(distance_left,Left);
d,commands placed in a stored procedure are executed as one batch }
e.stored procedures reduce network traffic- 34.BindModel(ControllerContext.ModelBindingContext)- this is correct for
the BindModel method a.True
33.choose a unit test to check whether the participant A1 has covered half b.False
the ditance of total a.[TestMethod]
{ 35.
int total_distance=2; int 36.which class is used to execute an entity SQL command against an entity
distance_covered=10; int mode?
distance_left=10; a.EntityCommand
Distance d1=new Distance("A1",total_distance); b.EntityConnection
d1.covered(distance_covered); c.sqlCommand
int Left=d1.remaining; d.None of the lists
37.proxy objects can be serialized and deserialized with binary serialization context,view data container,and route collection." a
a.true public.HtmlHelper(IViewContext viewContext,ViewDataContainer
b.false viewDataContainer,RouteCollection routeCollection) b
public.HtmlHelper(ViewContext viewContext,IViewDataContainer
39.SQL server 2008 security model is based on three categories that viewDataContainer,RouteCollection routeCollection) c
seperate the basic elements of security.Which among the public.HtmlHelper(ViewContext viewContext,ViewDataContainer
following are those?(Multiple ) a.Principles viewDataContainer,|RouteCollection routeCollection)
b.Constraints d
c.Securables public.HtmlHelper(@viewContext,@viewDataContainer,@routeCollection)
d.Permissions
Q.53 What doesa Dependency resolver() do?
40.How is the support for XML integrated into SQL server?(multiple ) a Creates a new dependency b Creates a
a.Support for the xml data type new interface c Initializes a new interface
b.Ability to specify an XQuery against XML data stored in columns and d Initializes a new instance of the DependencyResolver Class
variables of the xml type
c.Ability to handle bulk loading of xml data Q.54 Which ActinResult rediects to another action method?
d.ability to merge xml a All of the listed options. b
RediredtToAction c
ForwardTo
Q.43 We can create entity framework without existing
d ActionRedirect
database State True or False a True-
b False
Q.57 Which of these are jQuery Event methods?
Q.46 Conceptual model properties are not same as the properties created in a focus() b mouseenter()
c on() d hover()
.edmx file. State True or False b False
Q.58 Do we have a console option in the Nuget?
Q.51 How can we insert Products with new Category?
a Maybe
a NorthwindEntities dbContext = new NorthwindEntities();("same
b Yes
everywhere only last line changes")dbContext.SaveChanges();
c no
b NorthwindEntities dbContext = new
NorthwindEntities();("same everywhere only last line d None of the listed options
changes")dbContext.AddChanges(); c NorthwindEntities dbContext
= new NorthwindEntities();("same everywhere only last Q.59 Find the object query methods from the following
line changes")dbContext.InsertChanges(); a Distinct
d NorthwindEntities dbContext = new NorthwindEntities();("same b Except c
everywhere only last line changes")dbContext.Insert(); GroupBy
d All of the listed options
Q.52 Read the description & identify which method it belongs to.:-"Initializes *************************************************************
a new instance of the HtmlHelper class by using the specified view
1.You need to look up in the database for validation . what kind of information (added,modified,deleted) and the ability to update entities and
validation it is ? write changes back to the database. select one:

I.remote a.DbContext
II.Self b.DataContext
select one : c.ObjectContext-
d.None
a.NOne
b.II only 11.What are the advantages of using EXECUTE AS clause?
c.I only Select one or more:
d.Both I and II.
a.The execution becomes faster
2.what is the significance of clr enabled option ?
select one or more: b.You can control which user account the databse engine uses to validate
permissions on any objects that are referenced by the module.
a.It is used to specify whether user assembles can be run by SQL Server c.It provides additional flexibilty and control in managing permissions across
b. The clr enabled option can be set to value FALSE to denote that assembly the object chain that exsists between user-defined modules and the objects
execution is not allowed on SQL SErVER referenced by those modules.
c.The clr enabled option can be set to value TRUE to denote that assembly
execution is allowed on SQL SErVER d.Users of the module only need permissions to execute the module
d.The clr enabled option can be set to value 0 to denote that assembly itself;explicit permissions on the refernced objects are not required.
execution is not allowed on SQL SErVER
e.The clr enabled option can be set to value 1 to denote that assembly e.Users of the module need explicit permissions on the referenced objects
execution is not allowed on SQL SErVER thereby making it more secure.

a,d,e b,c,d

3.Which of the following option is correct to get the blog details details by 12.Entity Framework 4.1 permits accessing which of the following
order it ascending based on OrderName ? properties?
Select one : I.Database Value
II.original Value
a.from s in ctx.Blogs groupby s.BlogName ascending select s; III.XML Value select
b.from s in ctx.Blogs orderby s.BlogName ascending select s; one:
c.from s in ctx.Blogs where s.BlogName ascending select s;
d.None a.I and II only
b.II and III only
8.The_________ class provides facilites for querying and working with entity C.I and III only
data as objects,keeping track of the entity objects, along with the state d.I,II and III
14.Consider,you have to update the page 24.Which are the different types of Windows -level principals ?
asynchronously using Ajax.BeginForm method with Action "Act" ,Home Select one or more:
controller "HO" & the id to update is "up" .
a.Windows Authorization
which of the following would you choose ? b.Windows Domain Login
Select one: c.Windows Database Login
d.Windows local login-
a. "@using (Ajax.BeginForm("HO"
,"Act", new AjaxOptions[HttpMethod 25.what does the SELECT statement define ?. select one or more:
="GET" ,
InsertionMode=InsertionMode.Replace, a. The format of the database.
UpdateTargetid="up"}))" b.The format opf the result set.This is specified modify in the select list.
c.The tables that contain the source data.This is specified in the FROM
b. "@using (Ajax.BeginForm("HO" clause.
,"Act", new AjaxOptions{HttpMethod d.How the tables are logically related for the purpose of the SELECT
="GET" , statement . This is defined in the join specifications,which may appear in the
InsertionMode=InsertionMode.Replace, WHERE clause or in an ON Clause following FROM.
UpdateTargetid=""}))"
e.The conditions that the rows in the source tables must satisfy to quality for
c."@using (Ajax.BeginForm("Act" ,"HO", new the SELECT Statement.These are specified in the WHERE and HAVING
AjaxOptions{HttpMethod ="GET" , clauses.
InsertionMode=InsertionMode.Replace,
UpdateTargetid="up"}))" -b,c,d,e

d."@using (Ajax.BeginForm("HO" ,"Act", 29.nunit-console exe shows output on console. => True
new AjaxOptions{HttpMethod ="GET" ,
InsertionMode=InsertionMode.Replace,
31.How are user-defined functions different from user- defined stored
UpdateTargetid="up"}))"
procedures ? select one or more :
17.Entity framework may support composite keys. => TRue-
a.IN user- defined function the default parameter is specified wiwth a
DEFAULT keyword.
21.which of the following is the Correct options for Database First approach
b.In user-defined function omitting the parameter also implies default value
?Select one :
c.User-defined functions do not support output parameters
d.user-defined functions do support output parameters.
a.Generate a database from the Model
b.Generate a Model from the Class
34.How are stored procedure similar to procedures developed in other
c.Generate a Model from the Database-
programming languages ? select one or more:
d.Generate a object from the Model
49. Which of the following are the three parts of ENtity Framework ?
a.Accept input paramaters and return mulitiple values in the form of output
parameters in the calling procedures or batch I.DOmain Class Object
b.Contain prograaming statements that perform operations in the database II.Relational Database III.Object
including calling the other procedures and Mapping information select
c.Return a status value to a calling procedure or batch to indicate success or one:
failure
d.Can be interpreted externally . a.I and II
b.I and III
45.You have to create a view model which will show a cricket player's c.II and III
name,team name, wickets taken ,runs scored about and his rank. which of d.I,II, and III.
the following should you choose? select one:
50.[ActionName("search")]
a.Public class PlayerInfoModel { public string.TeamName {get;set} public public ActionResult GetBySname(string Sname)
string.Name {get;set} public int.wickets {get;set} {
public int.Runs{get;set} public int.Rank {get;set} } //get song name from the database
return View();
b.Public class PlayerInfoModel { public string TeamName() public string }-Analyse at the code & choose
Name() public int wickets() Which of the following will invoke the above mentioned method?
public int Runs() public int.Rank() } Select one:

c.Public class PlayerInfoModel { TeamName {get;set} Name {get;set} wickets a.http://localhost/songs/GetBySname/post=lblame?


{get;set} b.http://localhost/songs/search/blame
Runs{get;set} Rank {get;set} } c.http://localhost/songs/GetBySname/blame
d.http://localhost/songs/search/post=lblame?
d.Public class PlayerInfoModel { public string TeamName {get;set} public
string Name {get;set} public int wickets {get;set} 53.Which of the following Code will help us to use the table valued functions
public int Runs{get;set} public int Rank {get;set} } "GetStudentList" and will retrieve all the course details of all students from
"City1" in Entity Framework ? select one:
48.We can access data in view using________
select one a.using (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result
var courseList = ctx.GetStudentList(1)
a.View@Data Where(c =>c.location =="City1").ToList<GetCourseList>();
b.View Data foreach (GetStudentList cs in courseList)
c.ViewData COnsole.WriteLine("Course Name:(0), Course Location:(1)",
d.View_Data cs.CourseName,cs.Location);)
b.using (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result
var courseList = ctx.GetStudentList(1) a.None
Where(c.location =="City1").ToList<GetCourseList>(); b.Client side custom validation of custom type="compare"-
foreach (GetStudentList cs in courseList) c.Performs remote validation to compare to compare two properties and
COnsole.WriteLine("Course Name:(0), Course shows and error message if not equal
Location:(1)",cs.CourseName,cs.Location);) d.Server side validation for custom property and error message.

c.using (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result var 56.To return a string literal , which method is used ?Select one :
courseList = ctx.GetStudentList(1)
Where(c => c.location =="City1").ToList<GetCourseList>(); a.Call
foreach (GetCourseList cs in courseList) b.String-
COnsole.WriteLine("Course Name:(0), Course c.Literal
Location:(1)",cs.CourseName,cs.Location);) d.Content
57.DbCOntext() method Constructs a new context instance using
d.using (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result conventions to create the name of the database. True
var
courseList = ctx.GetStudentList(1) 1)Can you convert a Nonpartitioned Table to Partitioned Table?If
In(c => c.location =="City1").ToList<GetCourseList>(); yes,how?Choose all that apply.
foreach (GetCourseList cs in courseList)
COnsole.WriteLine("Course Name:(0), Course Select one:
Location:(1)",cs.CourseName,cs.Location);) a.By creating a partitioned non-clustered index on the table by using the
CREATE INDEX statement
54.Entity Framework has in-memory copy of the original values and uses this b.By creating a partitioned clustered index on the table by using CREATE
for working out what has changed. True INDEX statement
c.By using the ALTER TABLE SWITCH statement to switch the data of the
55.IClientValidation GetClientValidation table to a range-partitioned table has only one partition
{ d.By using the ALTER TABLE SWITCH statement to switch the data of the
var z =new ModelClientValidationRule(); table to a range-indexed table that has a unique partition.
z.ErrorMessage = FormatErrorMessage(metadata.GEtDisplayName()); e.You cannot convert a Nonpartitioned Table to Partitioned Table.

z.ValidationType ="compare"; 2)Which of the following is the query product by Categoryname?


z.validationparameters.Add("sample",SamplePropertyName);
yield return z; Select one:
} a.NorthwindEntities dbContext = new NorthwindEntities();var query =from p
Analyse the code and identity which of the following statement is true ? in dbContext.ProductSet where p.Categories.CategoryName == "Seafood"
select p;IEnumerable<Product>product = query;
select one :
b.NorthwindEntities dbContext = new NorthwindEntities();var query =from p 8)IIS stands for______. b.Internet Information Services
in dbContext.ProductSet where p.Categories.CategoryName == "Seafood"
select p;IEnumerable<Product>product = query.ToList(); 9)Which of the following are the default parameters are route?
c.NorthwindEntities dbContext = new NorthwindEntities();var query =from p
in dbContext.ProductSet where p.Categories.CategoryName == "Seafood" Select one or more:
select p;IEnumerable<Product>product = query.ToArray(); a.value
d.NorthwindEntities dbContext = new NorthwindEntities();var query =from p b.ID
in dbContext.ProductSet where p.Categories.CategoryName == "Seafood" c.Model
select p;IEnumerable<Product>product = query.ToString(); d.Action

3)How are the traction locks acquired by a SELECT statement controlled? 10)What are the benifits of POCO?
I.Maintainace cose associated with code will be less
Select one or more: II.Easily updateable even if the properties in POCO are chnaging
a.Controlled by the traction concurrency setting for the connection. III.Loosely coupled from the Database
b.Controlled by the traction isolation level setting for the connection.-
Select one:
c.Controlled by any locking hints specified in the WHERE clause. a.I and II
d.Controlled by any locking hints specified in the FROM clause. b.II and III
c.I and III
5)Ashley Is new to developing and the manager has told her to make the d.I,II and III
form advance by selecting date.How will Ashley achieve this?
11)What are the different types of development approaches in EF?
Select one:
a.$(add).datepicker(); Select one:
b.$(generate).datepicker(); a.Code First
c.$(".create#ProductDate").datepicker(); b.Model First Approach
d.$(".attach#ProductionDate").datepicker(); c.Database first
d.All of the listed options
6)EF supports multiple modeling technique. State true or false
13)AreEqual(Object,Oject)-what does this method do when used with
7)How to remove dependencies? assert?
Select one:
a.Uninstall-package packageName-RemoveDepencies Select one:
b.All the listed options a.Verifies that three specified objects are equal
c.Remove-Dependencies b.Verifies that two specified objects are equal
d.Delete Depencies c.All the listed options
d.Verifies that two specified objects are not equal
password")][@Compare("Password",ErrorMessage="The entry doesn't
14)Scott wants to mark an action method to cache the output.Which class match with password entered.")]public string ConfirmPassword{get;set;}
will Scott use? c.[Database(DataType@Password)][Display(Name="Confirm
password")][ToCompare("Password",ErrorMessage="The entry doesn't
Select one: match with password entered.")]public string ConfirmPassword{get;set;}
a.CacheWithOutput d.[Database(DataType.Password)][Display(Name="Confirm
b.OutputCacheAttribute password")][Compare("Password",ErrorMessage="The entry doesn't match
c.Cache with password entered.")]public string ConfirmPassword{get;set;}
d.O/Pcache
**************************************************************
15)In a website you need to use certain caching rule repeatedly.What will be 1)Which are the conditions when indexes of views can provide significant
used for you from the following? performance adavantages?

Select one: Select one or more:


a.[OutputCache(CacheProfile="CacheProfile1")]public string a.When the view contains aggregations
Index(){/*some code*/} b.When the view contains compositions
b.[OutputCache][CacheProfile="CacheProfile1"]public string Index(){/*some c.When the view contains table joins
code*/} d.When the view contains a combination of aggregations & joins
c.[OutputCache,CacheProfile="CacheProfile1"]public string Index(){/*some e.When the view contains locks
code*/}
d.Copying the code & pasting again. 2)EntityClient Api provides the functionalities for connection with
database,execute commands,retrieving query. => TRUE
16)We can create entity Framewoerk without existing database. 4)Which of the following statements are true about Collation?
State true or False. => True
Select one or more:
17)In a Entity Framework application, mapping metadata is not loaded from a.Collation specifies how strings are stored and compared.
an.msl file. State true or False. => False b.Collation specifies how integers are stored.
c.The selection of collation is Language dependent and addresses
18).What is the expion of MSL in Entity Framework? differences in the way characters are ordered.
Mapping Specification Language d.The default collation for a database is based on the server deafult,which is
set during the installation of SQL Server.
19)You are making a login page where you have to take password from user
and you have to confirm the password again.Which of the following? 5)How can we mark a CLR entity type student to avoid mapping in a table in
database?
Select one: a.[Database(DataType.Password)][Display(Name="Confirm
password")][ToCompare("Password",ErrorMessage="The entry doesn't Select one:
match with password entered.")]public string ConfirmPassword{get;set;} a.ModelBuilder.Ignore<Student>()
b.[Database(DataType.Password)][Display(Name="Confirm b.ModelBuilder.Remove<student>();-
c.ModelBuilder.Delete<Student>(); 13)cache profiles are supported for
d.None of the listed options.
select one:
6)Identify the correct syntax :-DropDownListMethod(HtmlHelper, String) a. standard controller actions but not for child actions-
b. standard controller actions but and for child actions
Select one: c. standard child actions but not for controller actions
a.public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, d. standard view and models but not for child actions
string name)
b.public static MvcHtmlString DropDownList(HtmlHelper htmlHelper, string 14)Which statements are true about table-valued parameters?
name)
c. public static MvcHtmlString DropDownList(this.HtmlHelper htmlHelper, select one or more:
string name) a. They are user defined scalar values that are passed into a procedure or
d.public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, function
istring name) b. They are user defined table types that are passed into a procedure or
function
10)if stored procedure returns complex type that is only on conceptual c. They provide an efficient way to pass multiple rows of data to the server
model and not in database table, what is it called?
d. they provide an efficient way to pass a connection to the server
select one: a.
scalar 15) ________________ occurs when you need to point to another data
b. complex- object from one data object.
c. entities
d. none of the listed options select one:
a. int data type
11) in entity framework application storage mode metadata is rendered b. string data type
from c. float data type
.ssdl file a. true d. complex data type
16)what will be the output of the following query ?
12)Unobtrusive javascript is used to USE SalesSystem;
Go
select one: SELECT PATINDEX('%ia',Country)
a. keep the content accessible when markup is unavailable FROM Production.Customer GO
b. keep the scripts accessible when markup is unavailable select one or more:
c. keep the markup and content accessible when javascript is unavailable a. the query returns those rows in the table in which the pattern was found.
b. the query returns all the columns for those rows in the table in which the
d. none of the listed options pattern was found.
c. the query returns only those columns in each rows in the table in which a. the user-defined function cannot be deleted unless the database is
the pattern was found. dropped
d. the query returns all rows in the table and reports nonzero values for b. the user-defined function cannot be modified unless the database is
those rows in the table in which the pattern was found dropped
e. the query returns all rows in the table and reports zero values for all rows c. the database objects that the function references cannot be altered
in the table in which the pattern was found. or dropped unless the function is dropped first
d. the database objects that the function references cannot be altered
17)Rashmi has created an application using .net framework 3.5 but IISApp or dropped unless the schema binding of the function is removed
pool shows only version 2.0 for hosting. which of the following
should she choose? Note:If a function is created with the SCHEMABINDING option, then the
database objects that the function references cannot be altered or dropped
select one: unless the function is dropped first, or the function is altered and the
a. it requires a refresh SCHEMABINDING option is not specified.
b. install version 3.5 and change IIS App pool version to 3.5
c. Version 3.5 is not installed in IIS App pool 4.which of the following T-SQL statement are not allowed in DML trigger
d. None of the listed options
************************************************************* select one or more:
1.TDD code should be a. ALTER DATABASE
I.readable b. LOAD DATABASE
II.Maintainable c. CREATE
d. UPDATE
select one or more: a. e. CREATE DATABASE
Both I and II
b. II only 5.you want to prevent your feedback from XSS. which of the following is
c. none valid option to do it ? select one:
d. I only a. feedback .Body=Sanitizer.GetSafeHtmlFragment(feedback@Body);
b. feedback .Body=Sanitizer.GetSafeHtml(feedback.Body);
2.which attribute is used to set complex type in entity framework c. feedback .Body=Sanitizer@GetSafeHtmlFragment(feedback.Body);
annotations select one: d. feedback .Body=Sanitizer.GetSafeHtmlFragment(feedback.Body);
a. ComplexType- 6.in TDD, we develop the code first which is then followed by testing
b. MaxLength b. false
c. Key
d. ComplextypeColumn 7. we set IsSynchronizedWithCurrentItem property of the objects list box to
true. that way every time you change the selection in the listbox the current
3.what happens if the SCHEMABINDING option is used in CREATE FUNCTION item in the colectionviewsource is updated. a. true-
statement select one or more:
8.what are the isolation semantics for FILESTREAM storage ?
select one or more:
a. the isolation semantics are governed by database engine traction d. ModelBuilder.Entity<Song>()
isolation levels- .ManyHas(song=>song.feedbacks)
.WithRequired(feedback=>feedback.Song);
b. when the FILESTREAM data is accessed through the win32
APIs,readcommitted,repeatable-read and serializable 11.which of the following restrictions is true about action method in
isolation levels are supported controller ?

c. when the FILESTREAM data is accessed through the win32 APIs,only select one:
readcommitted level is supported- a. Method can be private
b. Method can be overloaded
d. when the FILESTREAM data is accessed through Tract-SQL,only c. Method can be proctected
readcommitted level is supported d. Method can't be static

e. when the FILESTREAM data is accessed through 12.which of the following do an entity data model render a model ?
Tract-SQL,readcommitted,repeatable-read and serializable
isolation levels are supported select one:
a. ClassDiagram
9. IOC stands for inversion of constraint b. Graphically
b. false-(Inversion of Control) c. Model Diagram
d. None of the listed options
10.marry jane is creating a page for songs feedback. the mapping should be
done in such way that one song can have more 13.identify the steps in handling errors in a stored procedure
than one feedback as many as users will be providing the feedback. which
of the following option will help her accomplish her task ? select one or more:
a. when an error condition is detected in a T-SQL statement that is inside a
select one: TRy bloc, control is immediately passed to the CATCH block b. the error is
a. ModelBuilder.Entity<Song>() processed in the TRY block
.HasMany(song=>song.feedbacks) c. the error is processed in the CATCH block-
.WithRequired(feedback=>feedback.Song); d. T-SQL statements in the TRY block that follow the statement that
generated the error are not executed
b. ModelBuilder.Entity<Song>()
.HasMany(song=>song@feedbacks) 14. Choose Maria to add a JQuery refrence in file
.WithRequired(feedback=>feedback@Song);
:<Script src="../Scripts/jquery.validate.min.js"
c. ModelBuilder.Entity<Songs>() type="text/javascript"></Script>
.HasMany(song=>song.feedbacks)
.WithRequired(feedback=>feedback.Song);
15.Identify NonDeterministic functions from the following a.mytable foreignkeycolumn=(FK_ID)null;
b.mytable foreignkeycolumn=(key)null;
Select one or more: a.Month c.mytable foreignkeycolumn=null;-
b.GetDate- d.none of listed
c.Day
d.GetUtcDate 7.which is/are a/the console commands in nuget from the following?
e.Current_Timestamp select one:
a.all the listed
Deterministic functions always return the same result any time they are b.Find
called with a specific set of input values and given the same state of the c.Uninstall
database. Nondeterministic functions may return different results each time d.Get
they are called with a specific set of input values even if the database state
that they access remains the same. 17.output caching lets you store the output of a/an method in the memory
on the web server select one:
16. The ADO.NET ______________ control supports data binding a.view and memory
scenarios in Web Applications that use the ADO.NET Entity Framework. b.process & memory
::EntityDataSource c.Action & memory-
d.Controller & memory
17. Yu are handling a site of products and the users are complaining
about the wish list error. Common opinion is once yu add the item in the 21. Entity SQL allows querying those entites and relationship in a format
wish list after refreshing the duplivate,values are shown as +an error from that is familiar to those who have used SQL a.true
the browser+always message shows which item is added instead of message b.false
when yu have recently added. Which option would yu choose?
24.The entity framework uses mapping metadata to trlate queries against
: public ActionResult Index() the conceptual model storing specific commands.
{ state true or false a.true
ViewData["selection"]=Session["selection"]; b.false
/*rest of code*/}
27.What will happen if you specify "name=MyDb" parameter in the base
18. Choose a query to show all the players with name Rocky and show it constructor of a context class? select one:
according to teamname. : a.code first will create database named MyDb in the local SQL server
var z=from q in db.players b.code first will create database with the same name as context class name.
where q.players.name=="Rocky" c.code first will create database named "name=MyDb" in the local SQL
orderby q.TeamName server
select q;
d.Code first will use connection string named MyDb defined in the config file
************************************************************** to craete the database
4.which of the following code removes a relationship by setting the foreign
key to null? select one:
32.In "return json()" denyGet is default to avoid
a.trafficking Select One: a.I
b.password copying only
c.slow loading b.II only
d.json hijacking- c.Both I and II
d.None of the above
33.In Razor,we can write code and markup in single file and still get desired
output select one: a.maybe 38.Which of the following is TRUE about entity set select
b.none of the listed one:
c.no a.An entity is a logical container for instances of an entity type and instances
d.yes- of any type derived from that type

37.what do u mean by Lazy loading in MVC?


I.related objects are loade automatically with its parent objects II.related
objects are not loaded automatically with its parent object until they are
requested
b.An entity set is defined within an entity container which is logical grouping of entity
sets and association
c.the type of the instance is either same as entity type on which the entity
set is based or type of instanceis subtype of entity type d.all above listed

43.myDBContextEntity(staffentity).References(s=>s.subjects).load()indicates
which of the following select one:
a.lazy loading
b.explicit loading
c.database loading
d.object loading

44.we can insert data into your databse tables during database initialization process
=> a.true-

52.which method is used to get the entity based on composite keys in entity
framework? select one: a.load
b.find
c.include
d.take

55.which of these are jquery event methods?


select one or more: a.On()
b.hover()
c.mouseenter()
d.focus()

59.which command show list of command?


select one:
a.update
b.Get
c.Find
d.Help

You might also like