0% found this document useful (0 votes)
1K views59 pages

MVC - Entity Framework - SQL Server PDF

The question asks which Entity Framework method is used to get the correct type for a target role in a relationship. The answer is GetRelatedEnd, which returns the related end of a relationship given the relationship and entity type.

Uploaded by

mayur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views59 pages

MVC - Entity Framework - SQL Server PDF

The question asks which Entity Framework method is used to get the correct type for a target role in a relationship. The answer is GetRelatedEnd, which returns the related end of a relationship given the relationship and entity type.

Uploaded by

mayur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

​True ​or
[Link] 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]
[Link] d) [inject initialze]
[Link]
[Link] 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) [Link] = FALSE;
c) Url customization B) [Link]=FALSE;
d) account rendering C) [Link] = FALSE;
D) [Link] = 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 [Link] where [Link] == "Kishore" include new {
12) _____________is an xml-based language which describes the entities, [Link], [Link], [Link] };
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 [Link]​? <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 [Link](function(result){${result).each(function(result
Details{get;set;} ){$("<option>").val([Link]).text([Link])
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;} [Link]([Link](data)) {var list=("<ul></ul>");
$([Link]).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 [Link] where [Link] == "Kishore" select new {
if(parseInt(val)){ var service=nes ProductService();
[Link], [Link], [Link] } [Link]([Link](data)) {var list=("<ul></ul>");
b. from s in [Link] where [Link] == "Kishore" where new { $([Link]).each(function(){$("<li>"+this+"</li>").dependTo(list);});
[Link], [Link], [Link] };
$("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
[Link](function(result){${result).each(function(result
) a. public string Pname{ get; set;}
{$("<option>").val([Link]).text([Link]) .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,[Link]);

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,[Link]);
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,[Link]);

c. public class Employee{[key]public string EmployeeId{get;set;}public string d. public string Pname{ get; set;}
FirstName{get;set;}[DatabaseGenerated([Link] [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,[Link]);

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? [Link]
[Link]
a. Part 1=@[Link]("Sampleone","Feedback") [Link]
Part 2= [ChildActionOnly] [Link]
public ActionResult Sample_one()
{*..some code..*} 33)Which statements are true about CLR stored procedures?
[Link] is a reference to a [Link] Framework common language
b. Part 1=@[Link]("Sampleone","Feedback") runtime(CLR)method.
Part 2= [ChildAction] public ActionResult [Link] method can take and return user-supplied parameters
Sample_one() [Link] method can only take input parameters.
{*..some code..*} [Link] are implemented as public,static methods on a class in a .NET
Framework assembly.
c. Part [Link] are implemented as private,protected methods on a .NET Framework
1=@[Link]("Sample_one","Feedback") assembly.
Part 2= [ChildActionOnly] public ActionResult
Sample_one() 34)What are the benefits of using a Unique index?
{*..some code..*} [Link] is less error prone.
[Link] integrity of the defined columns is ensured
d. Part 1=@[Link]("Sampleone","Feedback") [Link] information helpful to the query optimizer is provided.
Part 2= [ChildAction] public ActionResult [Link] performance is not degraded.
Sample_one()
{*..some code..*}
36)Which of the following is not the Design goal of [Link] 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? [Link] the Web
a) ​Dependency Resolver [Link]
b) hTTPCONFIGURATION
(​c) Mesaage Handlers [Link] only
d) CLASS [Link] i and ii
[Link] 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
[Link]<Entity>(t=>[Link]); 37)What are the limitations of Ownership chaining?
[Link]<Entity>().HasKey(t=>[Link]); [Link] only to DML statements:SELECT,INSERT,UPDATE and DELETE.
[Link]<Entity>(t=>[Link]); [Link] owners of the caliing and the called objects must be the same.
[Link] of the listed options. [Link] owners of the calling and the called objects must be different.
[Link] 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 [Link] 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 [Link] 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. [Link] 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? [Link] 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. [Link] 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 [Link] default, the entry framework will generate the database queries and
designer or entity framework​? [Link] First Approach​. update commands when your code interacts with the model?
[Link] First Approach. True ​or false ??
[Link] Approach.
[Link] of the listed options.
[Link] is defined as _______ of the object, but not the behavior of the [Link] 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 [Link] help him, which of the following would you
[Link] choose?
[Link] select one;
[Link] a.[[Link]=ArgumentOutOfRange]
[Link] b.[[Link]]
c.[ExpectedException(typeof(ArgumentOutOfRange))]
[Link] framework is an open source framework? ​True ​or false d.[[Link]=True]

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

[Link] namespace is used to handle EntityClient provider? a. the .dll files that are requested for a model binder
a. [Link] [Link] interfacae that are required for a model binder
[Link] c. the assembly that are required fro a model binder
[Link] d. the methods that are required for a model binder
[Link] 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
[Link] b. It can be used to fix the max length of charcters for the entire column
[Link] 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
[Link] only changes automatically? select one :
[Link] I and II [Link]
[Link] .Remove
3. How is a User-defined table-valued function in SELECT,INSERT,UPDATE or [Link]
DELETE statements is invoked? [Link]

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 [Link] 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 [Link] 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 [Link] 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
[Link] file would you configure? Select one: [Link] 13) Which of the following are database initializers used in Entity
[Link] Framework (or) what are available database initializers in
[Link] 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 [Link] 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: @[Link]
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: @[Link](carinfo)
on the server </p>
d) None of the options
d. <p>
17) What is meant by materialization in entity framework? car information: @[Link]
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:- "[Link] 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=”[Link],
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 [Link],BlogDataLayer”value=”[Link]
object ateDatabaseAlways`1[[[Link], 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=”[Link],
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=”[Link],
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 ([Link]()) {%><%= [Link]()%} c. I and III
b. <% using ([Link]()) {%><%= [Link]()%} d. I, II and III
c. <% using ([Link]()) {%><%= [Link]()%}
d. <% using ([Link]()) {%><%= [Link]()%} 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 “@[Link]” 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 [Link]-defined stored procedures-Tract SQL & CLR.
the Boolean parameter? [Link] Stored Procedures.
Select one [Link] Stored Procedures.
a. HttpNotFoundResult [Link] Stored Procedures.
b. RedirectResult
c. HttpStatusCodeResult 52) Which method converts string to HTML Encoded string?
d. HttpRedirectResult [Link].
[Link].
35. You are handling a page of event. Now the content and information you [Link].-
have cached so that it is loading quickly but you need to keep a clock which [Link].
shows time for the event dynamic. Which of the following will be helpful?
a. <%DateTime([Link]);%> 53) [Link],contains settings that apply to an entire [Link]
b.<%[Link](t=>[Link]())> true or False. ​[Link].
c. <% var c = [Link]() %>
d. <%session s= new session[“Time”];%> 54) The ObjectContext class is not [Link] ​True ​or False..

36. What is entity Key?Select One 55) Which of the package can be used to write an implementation for
[Link] 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 [Link].
b. An entity key is a property or a set of properties of an entity type [Link].
that are used to determine the column for searching index [Link]
c. An entity key is a property or a set of properties of an entity type [Link];
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 [Link] ​True ​or False.
website in [Link] 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”. [Link]<Post>().HasRequired(p=>[Link])
Which of the following would he choose?
[Link]<Post>().NeedRelationship(p=>[Link]) b. The user
[Link]<Post>().Required(p=>[Link]) c. Authentication memberships
[Link] of the listed options. d. Role memberships​-
e. Role aggregation
60) Which of the following statements are TRUE?
[Link] wins and store wins are actions which are used when concurrency [Link] expression starts with​______@______.
happens. [Link] Client wins the data from the server is loaded in to your entity
objects. [Link] Store wins data from the entity object is saved to the database. [Link] 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
[Link] and iii following will be helpful? select one:
[Link] i
d.i,ii and iii a.$(function()($"#searchBox").autocomplete("/Product/SearchCandidates".{
minChars:3}):})
************************************************************** b.$(function(){$("#searchBox").autocomplete("/Product/SearchCandidats
[Link] to Entities provides developers to write LINQ queries ",{minChars:3});});
Stata True or False. ​True c.$(function(){$("#DivideBox")autocomplete("/Product/SearchCandidates",{
minchars:3});});
[Link] does not support Complied Queries. ​True ​or false d.$(function(){$("#searchBox")autocomplete("/Product/SearchCAndidates",
{minchars:3})});
[Link] to Entity Query results are usually returned as which of the following?
Select one: [Link] 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. [Link] collections
[Link] to objects [Link] that the DML trigger is excuted instead of the triggering SQl
[Link] types statement
[Link] of the listed options. [Link] overrides the actions of the triggering statements
[Link] can be specified for DDl or logon triggers
[Link] is also known as____________.Select one: [Link] cannot be specifoed for DDl or logon triggers.
[Link] the listed options
b.L10N [Link] of the following provider is used to access data in conceptual
[Link]-zation model?Select one:
[Link]
[Link] provider
[Link] of the following principals are included in the security context ? [Link]
[Link]
Select one or more: [Link]
a. The login
[Link] 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 [Link] of the
[Link] data columns of the underlying table are not stored in order based on following should you choose?select one:
their nonclustered keys.
[Link] data rows of the underlying table are sorted and stored in order based [Link] class EventController:Controllers{public ActionResult
on their nonclustered keys. Index(){AspNerDB db = new AspNerDB(); var
[Link] leaf layer of a nonclustetred index is made up of index pages instead f=[Link](e=>[Link]).take(30);return
of data pages. View(f);}}
[Link] 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:-[Link] f=[Link](e=>[Link]).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=[Link](e=>[Link]).take(30);return
2. The leaf layer of a nonclustered index is made up of index pages View(f);}}
instead of data pages. [Link] class EventController:Controllers{public ActionResult
Index(){AspNerDB db = new AspNerDB(); var
[Link] of the following statements are true about Clustered index? f=[Link](e=>[Link]).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 [Link] 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.
[Link]
c.A clustered index is implemented as a B-tree index strucuture
[Link]
d.A clustered index is implemented as aLinked-list structure.
[Link]
[Link]

[Link] of the following object is used to query and modify data?


[Link] 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?
[Link]
[Link] Select one:
[Link] [Link]
[Link] of the listed options.
[Link] d.A technique for achieving tight coupling between Model and their
[Link] respective server.
[Link] of the listed options
24. Entities define the______________of an object but not the behavior of
[Link] default in Entity Framework Snapshot change tracking is enabled the [Link] one:
snapshot change tracking [Link] ​true ​or false
[Link]
[Link]
[Link] wants to make the appearance of his site [Link] wants to [Link]
show an image when a "divhello" result takes time to display. [Link] of the liosted options.

Which of the following should he choose? 25.A basic TDD cycle is______. Select one:
Select one:
a.[....@[Link]("Hello","Hello",new [Link]-Green-Refactor
AjaxOptions(){UpdateTargetID="div- [Link]-Error-Resolve
hello",HttpMethod="GET",LoadingElementId="divloadingimage"})....] [Link]-Green-Resolve
b.[....@[Link]("Hello","Hello",new [Link]-Pass-Repeat
AjaxOptions(){UpdateTargetID="divhello",HttpMethod="GET",LoadingEleme
ntId="divloadingimage"})....] [Link] can pass information from a controller to a view using ViewBag.
c.[....@[Link](AjaxOptions(){UpdateTargetID="divhello",HttpMetho State ​true ​or False: K
d="GET",LoadingElementId="divloadingimage"})....]
d.[....@[Link]("Hello","Hello",new [Link] of the following keyword is used for lazy loading related data in
AjaxOptions(){UpdateTargetID="divhello",HttpMethod="GET",LoadingEleme entity framework?
ntId="divloadingimage"})....]
Select one:
[Link] template is used in entity framework to generate code in C# by [Link]
reading .edxm file? a. C# template [Link]
b. T4 template [Link]
c. XML template [Link]
d. none
31. [Link](new SampleFilter())- what will the above piece
[Link] 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. [Link] index(){var friends =
a. they are inherited from another user defined stored procedure [Link](a =>
b. they are DLLs developed in a programming language like c that an [Link]);return View(friends);}
instance of Microsoft SQL server can dynamically load and run b. [Link] index(){var friends = [Link];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. [Link] index(){var friends =
API [Link](a =>
[Link]);return View([Link]);}
33. ObjectContext mainly used for which of the following ? d. [Link] index(){var friends =
[Link](a =>
i. Database connection ii. [Link]);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 [Link] 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 [Link] with index_id >0 for wrote this varserver = [Link]["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 ?
{
[Link] = "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 [Link] MVC 3 web application. He is using SQL
[Link] 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
[Link] = "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 [Link] which folder is the [Link] 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
[Link]
42. if we use database first generation a Dbcontext is generated by default [Link]
State true or false a. true-
[Link] 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 [Link] current code has all the html and processing
code in same [Link] of the following should he choose?
select one: a.
select Select one:
[Link] him to use seperate models and controller for each logic and store [Link] file name should be unique -
it in new database [Link] file must reside on one of the following devices: the local server on
[Link] 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. [Link] Network[SAN],or an iSCSI-based network-
him to create a new page for every logic. [Link] path specified must exist on the drive prior to creating the database
[Link] of the listed option
[Link] the correct code to execute sql raw query in the entity frameqwork
[Link] class is used for tractions in entity framework? Select one: from the following select one:
[Link] Traction [Link](var ctx = new schoolDBentities())
[Link] {
[Link] varstudentlist = [Link]("select*from
[Link] of the listed options. student").tolist<student>();
}
[Link] of these
[Link] of the following statements are true about varbinary data type? [Link](var ctx = new schoolDBentities())
Selct one or more: {
[Link] can hold binary data. varstudentlist = [Link]("select*from
[Link] can hold character data. student").tolist<student>();
[Link] exceed 8000 characters }
[Link] value is absed on regular expression logic [Link](var ctx = new schoolDBentities())
{
[Link] are the steps for creating partition tables&indexes? Select varstudentlist = [Link]("select*from
one or more: student").tolist<student>();
[Link] partition function to specify how a table or index that uses the }
function can be partitioned
[Link] partition function to specify the placement of the partitions of a [Link] current date using javascript as Sat Jun 4 [Link] one:
partition function on filegroups
[Link] partition Schema to specify the placement of the partitions of a a. <p
partition function on filegroups id-"sample"></p>
[Link] partition Schema to specify how a table or index that uses the <script> var d= new
function can be partitioned Date();
[Link] a table or index using the partition Schema [Link]("sample").innerHTML=[Link]();
</script> b.
[Link] 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();
[Link]("sample").innerHTML=[Link](); </script>
c. [Link] Loading
<p [Link] Loading
id-"sample"></p> [Link] Loading
<script> var b= new [Link]
Date();
[Link]("sample").innerHTML=[Link]() [Link] resolver() is destructor [Link]...............
; </script> d.
<p [Link] can CLR functions be used?select one or more: (doubt)
id-"sample"></p>
<script> var d= new
[Link] functions can be used to access external files
Date();
[Link] functions can be used to access network resources
[Link]("sample").innerHTML=[Link]();
[Link] functions can be used to configure the instance of SQL server
</script>
[Link] functions can be used to access WEb services
[Link] functions can be used to connect to other databases
[Link] of the following is issued to obtain a configuration object for a
given property in Fluent API?
[Link] syntax of GetService Method is?Select one
Select one:
[Link](Type serviceType )
[Link]()
[Link] GetService(Type serviceType )
[Link]()
[Link] GetService([Link] )
[Link]()
[Link] GetService([Link] )
[Link]()

[Link] cache is used to cache output of a controller :true


[Link] 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
[Link]
controller method is invoked
[Link]
[Link]
[Link] sql is a storage independent query language :true
[Link]
*************************************************************
[Link] 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.
[Link] employee=(from emp in [Link]
where [Link]="John"select
[Link] of the following loading is supported by Entity framework?
emp).FirstOrDefault<Employee>()
select one:
[Link] employee=(from emp in [Link] where
[Link]=="John"select emp).FirstOrDefault<Employee>() [Link] to XML is based on in-memory XML programming interface.
State True or False. True-
[Link] employee=(from emp in [Link] where
[Link]=="test" select emp); [Link] of the listed options [Link] are the conditions for assemblies created by using EXTERNAL
ACCESS permission sets? Select one or more:
[Link] of the following does the input to QueryOptimizer consist?
[Link] assesmbly code should be type-safe-
Select one or more: [Link] assesmbly should contain only static data members in its classes unless
[Link] query- they are marked as read-only
[Link] database schema- [Link] classes in the assesmbly must contain finalizer methods
[Link] database statistics- [Link] classes or methods of the assesmbly should be annotated only with
[Link] 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. ([Link]
([Link]
[Link] command will remove the package?Select one:
[Link] are the following are the type of entity?
[Link] packageName
Select one or more: [Link] package
[Link] entity [Link]-package PackageName
[Link] proxy entity [Link] of the listed options.
[Link]
[Link] Ref Link:
[Link]
[Link] statements are true about RANK function? ing-the-package-manager-console

Select one or more: [Link] need to write a view to show Hi!"username" If user is authenticated
[Link] returns the rank of each row in the table within the partition of a display signoff link & sign in link for anonymous [Link] of the following
database.- should you choose?Select one:
[Link] rank of a row is equal to the number of ranks that come before the
row in question. a.<%if([Link]){Hi!<%=[Link]([Link]
[Link] rank of a row is one plus the number of ranks that come before the ame)%>[<%=[Link]("SignOff","SignOff","Account")%>]<%}else{%>[
row in question- <%=[Link]("Sign In","Sign In","Account")%>]<%}%>
[Link] RANK function returns consecutive integers. b.<%{Hi!<%=[Link]([Link])%>[<%=[Link]
[Link] Rank function does not always return consecutive integers. nk("Sign Off","Sign
Off","Account")%>]<%}else{%>[<%=[Link]("Sign in","Sign
in","Account")%>]<%}%> 35) On what conditions can you perform concurrent online index operations
c.<%(user=Authorize){Hi!<%=[Link]([Link])%>[< on the same table?
%=[Link]("Sign Off","Sign a) Creating multiple clustered indexes
Off","Account")%>]<%}else{%>[<%=[Link]("Sign in","Sign b) Creating multiple nonclustered indexes
in","Account")%>]<%}%> c) Reorganizing different indexes on the same table
[Link] 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
[Link] 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 [Link] 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..............
[Link] are given a task by your manager that include assembly binding?? b:Data Logic..................
:[Link] c:Session Logic...............
Note: [Link] contains configuration settings for machine-wide d:Validation Logic............
assembly binding, built-in remoting channels, and [Link]. 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............

[Link] of the following arguments of the CREATE TRIGGER statements [Link] entity framework ,Data is retrieved as objects.
specifies the security context under which the trigger is executed. a)all true..................
server
b)with encryption [Link] are Entity state members?
c)execute as select one
d)instead of a:Added b:Deleted
c:Modified
[Link] default, LINQ supports which of the following d:All of the listed options..................
[Link] Loading [Link]
Loading [Link] the following definition and choose the correct option. >Contains
[Link] 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.([Link] c:ModelBinder d:Dependency Resolver
ween-lazy-loading-and-eager-loading) [Link] need to perform an arithmetic operation in Razor view. which of the
following will accomplish the task?
[Link] of the following statements are true about trigger a. "@[value][arithmatic operator][value]"
creation?(multiple) b. "@;([value][arithmatic operator][value])"
[Link] TRIGGER must be the first statements in the batch c. "@:([value][arithmatic operator][value])"
[Link] TRIGGER must be the last statements in the batch d. "@([value][arithmatic operator][value])"
[Link] TRIGGER can apply to only one table-
[Link] TRIGGER can apply to multiple tables [Link] 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
[Link] 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-
[Link] does LINQ to SQL do:
16. What will be the output of the following code
Public ActionResult Search (string idea="A"){ [Link] enables you to query data using Datacontext
return View(); [Link] provides tightly coupled approach
}
I. It will set the default value of String idea to "A" Select one: [Link]
II. It will set the default pointer of idea to "A" I
[Link] II
Select one: [Link] I and II
a. Both I and II [Link] I or II
b. II only
c. None of the listed [Link] Framework____________________ all data before storing it to the
d. I only database by default ,using valiadtion method.

[Link] which of the following conditions one should go for partitioning table [Link] ..........
select one or more:
[Link] contain large amounts of data that are used in different ways. [Link] lets yu pic date from calendar instead of writing it?true
[Link] contain large amount of table
[Link] or updates against the table are not performing as intended, or [Link] of the following method in Entity type configuration is used to
maintenance costs exceed predefined maintenance periods..... [Link] tables configure an optional relationship? [Link]..........
has many columns.
[Link] 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.
[Link]
[Link] [Link].................
[Link] [Link]
[Link] of the above [Link]
[Link]
[Link] file will conatin the application level configurations?
select one: [Link] of the following is used to configure a Code First Model?
[Link] select one
[Link] [Link] API....................
[Link].................. [Link]
[Link] [Link]
Note:[Link] configuration data is stored in XML text files that are each [Link] of the listed options
named [Link].
[Link] 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
[Link]................. [Link] refference is not invoked at the start of the test. -
[Link] [Link] of the above
[Link]
[Link] [Link] can we create basic Entity Mapping?
**************************************************************
[Link] are given a task to make the current from secure such that it can be Select one:
prevented [Link] of the following will be helpful? [Link]<Blog>().MapStoredProcedures();
[Link]<Blog>().MapToStoredProcedures();-
Select one: [Link]<Blog>().ToStoredProcedures();
a.<% using([Link]()){%> <% = [Link]()%> [Link]<Blog>().StoredProcedures();
b.<% using([Link]()){%> <% = [Link]()%>-
c.<% using([Link]()){%> <% = [Link]()%> 14) How is a user defined table valued function in select insert update or
d.<% using([Link]()){%> <% = [Link]()%> delete statements is invoked?
a user defined table valued function can be invoked in the from clause of a
[Link] 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
[Link] running under cassini. and delete statement a user defined table valued function can be invoked in
[Link] 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
[Link] only 15) Entity framework supports automatic change tracking of the loaded
[Link] I and II entities during the life time of the conext. true-
[Link] of the listed options.
16) Which are the different types of file groups?
[Link] 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++ [Link] does the ROWCOUNT_BIG function work?select one or more
sharepoint
selenium [Link] the total number of rows in a table
[Link] the number of rows affected by the last staetement executed
20) Which exception will raise when you define an Entity Data Model that [Link] return type of ROWCOUNT_BIG is bigint
uses stored procedures to make updates to the data source [Link] return type of ROWCOUNT_BIG is int
OptimisticException
ConcurrencyException [Link] 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 [Link] are unique or contain distinct values
[Link] change frequently
[Link] of the statement is true about VARCHAR datatype? [Link] are accessed sequently
select one or more: [Link] there are wide keys.-
[Link] can hold alphanumeric data
[Link] storage size of varchar data type is fixed [Link] good practice what should you follow to prevent XSS attacks?
[Link] row can hold different no of characters up to the maxlength defined.- select one or more
-
[Link] row can hold fixed number of characters as defined by max length. [Link] HTML markup
[Link] put untrusted data-
[Link] is an XML file [Link] [Link] not use javascript
[Link] allow cross scripts
[Link] can we stop autodetection change in entity framework?
select one: [Link] do you understand by state management?select one:
[Link]=false;-
[Link]=false; [Link] is a process by which you override the state and client information over
[Link]=true; multiple requests for the same pages.
[Link]=True; [Link] 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 [Link] True or False. [Link] is a process by which you maiintain the client and server information
[Link] over multiple requests for the same or different pages
[Link] is a process by which by whoch you maintain the state and page
60)Which of the following are different Securable scopes? [Link] information over multiple requests for the same or different pages
[Link]
[Link] [Link] do you mean by eager loading in MVC?
[Link]-
[Link] objects(child objects)are loaded automatilly with its parent object. d.A deterministic function always returns the different results when it is
[Link] objects(child objects)are not loadede automatically with its parent called with a specific set of input parameters
object until they are requested.
[Link] 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 ?
[Link]
[Link] I and II select one:
[Link] only
[Link] class BloggingContext:DbContext(public BloggingContext () (this
[Link] are user-defined functions different from User-defined stored Configuration LazyLoadingEnabled =true;))
procedures? select one or more:
[Link] class BloggingContext:DbContext(public BloggingContext () (this
[Link] user-defined function the default parameter is specified with a DEFAULT Configuration LazyLoadingEnabled =false;))
keyword
[Link] user-defined function omitting the parameter also implies default value [Link] class BloggingContext:DbContext(public BloggingContext () (this
[Link]-defined functions do not support output parameters Configuration EnableLazyLoading =false;))
[Link] defined functions do support output parameters
[Link] class BloggingContext:DbContext(public BloggingContext () (this
[Link] a good practice we should put HTML in which of the following? Configuration EnableLazyLoading =true;))
[Link]
[Link] View [Link] method in MOdelBuilder make sure that entity should have
[Link]-Partial View relationship with other entity? select one:
select one:
[Link]
a.I and II [Link]
[Link] and III [Link]
c.I and III [Link] of the following are the attributes of
d.I,II,III [Link] class?
[Link] 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
[Link] Authentication
[Link] of the following statement is used to fetch an entity using [Link] Authentication
composite key ? [Link] Authentication
select one: [Link] Authentication
[Link]
[Link](key1,key2)
[Link](key1,Key2) [Link] of the following class provides you important methods to configure
[Link](key1,key2) entities and its properites to override various code-first conventions?
[Link](obj) select one

[Link] the code to show alert on page. [Link]


select one: [Link]
[Link]
[Link]("you have generated an alert box") [Link]
[Link]("you have generated an alert box");
[Link] [Link] EF v4.0 and DbCOntext EF V4.1 True
[Link](you have generated an alert box);
[Link] can be one PreApplicationStartMethod per assembly.
[Link] is a class. True
state true or False true
[Link] COnceptual model,which of the following defines relationship between
[Link] which system Storeprocedure the administrator will register the two entity types?select one:
extended stored procedure DLL to the SQL server? select one:
[Link]
a.sp_ActiveDirectory_obj [Link]-
b.sp_addextendedproc [Link]
c.sp_addlinkedsrvlogin [Link]
d.sp_addlinkedserver
[Link] of the following annontation is to EF that a particular property is
[Link] Framework can track changes to the model's objects. required ?select one: [Link]
True- [Link]
FAlse [Link]
[Link]
[Link] type of authentication accepts login credentials that will be
checked against the domain or local server and are sent in a hashed format? [Link] of the following loads the related data inscalaar and navigation
select one: properties along with query result at first shot ? select one :
[Link] controller class is responsible for the following processing stages:
[Link] Loading selct one:
[Link] Loading
[Link] Loading [Link] the appropriate action method to call and validating that it can be
[Link] Loading called
[Link] the values to use as the action method's arguments.
[Link] class is used to execute an Entity SQL COmmand against an entity [Link] all errors that might occur during the execution of the action
mode ? select one method
[Link]-
[Link]
[Link] [Link] a unit test to check whether the partcipant A1 has covered half
[Link] distance of total. Select one: a.
[Link] [TestMethod]
{
[Link] statement are true about an inline scalar function? int total_distance=2; int
[Link] is no functiion body distance_covered=10;
[Link] function body defined in BEGIN ...END block contains a series of T-SQL int distance_left=10;
statements
[Link] scalar value is a result of a single statement Disatnce d1=new Distance("A1",total_distance)
[Link] scalar value is a result of all statements in the BEGIN...END block [Link](distance_covered);
int left=[Link];
[Link] enable globalization ,whcih of the following parameters are set in auto
mode?select one or more: [Link](distance_left,left);
}
[Link] b.
[Link] [TestMethod]
[Link] {
[Link]- int total_distance=2; int
distance_covered=10;
[Link] of the following advantage does a strongly typed view have ? int distance_left=10;
select one:
Disatnce d1=new Distance("A1",total_distance)
[Link] time [Link](distance_covered);
[Link]- int Left1=[Link];
[Link] buffering
[Link] [Link](distance_left.left);
}
c. [Link]
[Link]
[TestMethod] [Link]
{
int total_distance=2; int [Link] 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) [Link]
[Link](distance_covered); [Link]
int Left1=d1@remaining; [Link]
[Link]
[Link](distance_left.left); 1) Which namespace is used to include NET data provider for SQL server?
} a)System Data SqlClient -
[Link] the listed options b)System Data ComponentModel
c)System Data SqlProvider
[Link] 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 @[Link](); 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
[Link] denotes usage of Scope Resolution operator- c)Parameter names can be specified
[Link] denotes usage of Compound operator d)If parameter names are specified,the argument values do not have to be
[Link] operator is denoted by a::symbol- in the same sequence as the parameters.........
[Link] operator provides access to public non-static memebers of acompind
data type 3) Which libraries are added for XSS provision? Select one or more:
[Link] operator provides access to static memebers of a compund data type. a)HTMLSerializationLibrary
b)CSRFLibrary
[Link] of the following model is the design model to include tables,stored c)AntiXSSLibrary-
procedures,views,keys and relatonship? Select one: [Link] d)SecurityLibrary-
[Link]
[Link] [Link] statements are true about ranking functions?
[Link] of the listed options.
Select one or more:
[Link] are used to control placement of_______. Select one: [Link] are deterministic functions
[Link] [Link] are Non deterministic functions........................
[Link] return a ranking value for each row in a pattern......... d.<%session s = new session['Time'];>
[Link] 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:
[Link] is no function body,no declaration 11)SELECT name AB object_name
[Link] function body defined in BEGIN...END block contains a series of T-SQL .SCHEMA-NAME(schema_id) AB schema_name
statements........... .type-desc
[Link] scalar value is a result of a single statement with multi value. .create_date
[Link] scalar value is a result of all the statement in the BEGIN..END .modify_date
block........... FROM sys objects

[Link] 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 [Link] you will achieve this? [Link] uses the sys.all_objects catalog view
[Link] uses the [Link] catalog
Select one: view................................................................
a. [Link] returns all database objects that have been modified in the last 10 years
[StringLength(15)] [Link] 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;} [Link] only the student name,who are having name as a"Mahesh".
.................................... c. Which of the following would you choose?
[[Link](15)]
public int Sname{get;set;} d. Select one:
[[Link](15)]
a. var query = from stu in Students
public int Sname{}
where [Link] = "Mahesh"
select stu
8) Entity data model considers the business domain => True b. var query = from stu in Students where [Link] =
"Mahesh" select Students
[Link] are handling page [Link] 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 [Link] == "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 [Link] == "Mahesh"
a.<% DateTime([Link]);%> select Students
b.<%[Link](t=>[Link]());%>
................. 13)Match the following
c.<%var c = [Link]() %>
=> 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
[Link] has which of the following syntax? c)data dependency
d)SQL dependency...................
Select one:
[Link] class JsonResult:ActionResult.......................... 24)what is meant by eagerly loading in entity framework?
[Link] class JsonResult:ActionBinder Select one:
[Link] class JsonResult:ViewResult a)eager loading is the process where by a query for one type of entity also
[Link] 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
[Link] 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
[Link] trigger executes after the statement that d)none
triggered it completes.............. 26)Which of the following statements are true about the DATABASE
[Link] trigger executes after the last trigger in the queue argument of the CREATE TRIGGER statement?
[Link] the statemnt fails with an error the trigger in not executed............... Select one or more:
[Link] triggers cannot be specified for tables,they can only be specified for [Link] the scope of a DDL trigger to the current database.
views. [Link] trigger fires whenever event_type or event_group occurs in the
[Link] triggers cannot be specified for views,they can only be specified for current database.-
tables.............. [Link] trigger fires whenever a new record is inserted in tables of the current
database.
[Link] foreign key columns are not included in the model, the association [Link] 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: [Link]
a)primary data files.................. [Link]
b)secondary data files.............. [Link]
c)hidden files [Link] 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: [Link] are given a task by manager to check whether the given request
[Link] 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?
[Link] 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
[Link] caches all data modifications&then erases from the start of the traction [Link]);}[TestMethod]public void
or to a savepoint sample(){"~/Product".ShouldMapTo<ProductController>(z=>zIndex());}
[Link] erases all data modifications made from the start of the traction or to a
savepoint [Link] void initialixe(){MyApplication>RegisterRoutes(Route
[Link] reverses all the modifications made before the COMMIT TRACTION [Link]);}[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(){[Link](Route
a list of products and only that particular portion of the web page should [Link]);}[TestMethod]public void
get updated and the whole page should not be [Link] 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());}
[Link] ActionResult Index(string query){var c=new ProductContext();var [Link] a conceptual model which of the following are makeup from properties
products=[Link] and define the structure of top-level concepts? select one. a. object
.Where(p=>[Link](query)||query==null).OrderByDescending(p b. database
=>[Link]).Take(10).Tolist();} [Link] types ([Link]
us/library/ee382840(v=vs.110).aspx) d.
[Link]([Link]()){return none
PartialView("productTable",products);}return View("Index",products);
[Link] are the steps for creating partition tables & indexes?
c.<%using([Link]("Index","Product",new
AjaxOptions{HttpMethod="GET",UpdateTargetId="product Select one or more:
Table"})){%><input [Link] 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-
[Link] a partiton function to specify the placement of the partitions of a
[Link] of the listed options partition function on filegroups
[Link] me__ [Link] a partiton scheme to specify the placement of the partitions of a
a. windows communication Farm. partition function on filegroups
b. windows communication Forum [Link] a partiton scheme to specify how a table or index that uses the
c. windows communication Form- function can be partitioned
d. windows communicationFoundation [Link] a table or index using the partition scheme.
[Link](objEmp);[Link]();
[Link] to convert dbContext to object context?
[Link] does partition function work?
Select one:
[Link] context =((IObjectContextAdapter)dbContext).ObjectContext; Select one or more:
[Link] context = a.A partition function specifies how the table or index is partitioned
((IObjectContextAdapter)dbContext).ObjectContext;- [Link] function maps the database into a set of partitions.
[Link] context =((IObjectContextAdapter)dbContext).ObjectContext; [Link] function maps the domain into a set of partitions.
[Link] of the listed options [Link] create a partition function,you must specify the numbers of partitions,
the partitioning rows & the number of constraints for each partition.
[Link] 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 [Link] property of
Select one: caching should be used here?
[Link] EFEntities db = new Learn EFEntities(); Select one:
Employee objEmp = new Employee(); a. Use of VaryByParam -NOT SURE
[Link] = [Link]; [Link] = b. Use of VaryByCustom
[Link]; [Link] = [Link]; c. VaryByControl
[Link] = [Link]; d. None
[Link] = [Link]; [Link] can we remove pluralization in entities?
[Link](objEmp);[Link](); Select one :

[Link] EFEntities db = new Learn EFEntities(); [Link]<PluralizingTableNameConvention>()


Employee objEmp = new Employee();
[Link] = [Link]; [Link]<PluralizingTableNameConvention>()
[Link] = [Link];- [Link]<TurnOffPluralizingTableNameConvent
[Link] = [Link]; ion>()
[Link] = [Link]; [Link] = [Link]<PluralizingTableNameEntity>()
[Link];
[Link](objEmp);[Link]();
[Link] 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
[Link] EFEntities db = new Learn EFEntities(); whether it is showing or [Link] of the following would you choose?
Employee objEmp = new Employee(); select one:
[Link] = [Link];
[Link] = [Link]; a.[TestMethod]Public void Product_view_check()
[Link] = [Link];
{
[Link] = [Link]; [Link] =
var products= new LIst<Products>()
[Link];
{ }
new Product {Title="Samsung"},new Product {Title="Apple"} [Link]
}.AsQueryable();
[Link] helper Class exist in which namespace?
var repository = new Mock <lproductRepository>(); var select one:
controller = new ProductController([Link]); a. [Link]
[Link](p=>[Link]()).Returns(products); var b b. [Link].MVC3
= [Link]().[Link] as c. [Link]
IENumerable<Products>[Link]([Link](B)); d. [Link]
}
[Link] 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>() [Link] user = [Link](b=> [Link]=="Vijay".FirstOrDefault();var
{ subjectCount = [Link]();
new Product {Title="Samsung"},new Product {Title="Apple"}
}.AsQueryable(); [Link] user = [Link](b=> [Link]=="Vijay".FirstOrDefault();var
subjectCount = [Link](user).Take(b=>[Link]).Query().Count();
var repository = new Mock <lproductRepository>(); var
controller = new ProductController([Link]); [Link] user = [Link](b=> [Link]=="Vijay".FirstOrDefault();var
[Link](p=>[Link]()).Returns(products); subjectCount = [Link](user).Include(b=>[Link]).Query().Count();
var b = [Link]().[Link]
as IENumerable<Products>[Link]([Link](b)); [Link] user = [Link](b=> [Link]=="Vijay".FirstOrDefault();var
} subjectCount =
[Link](user).Collection(b=>[Link]).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"} [Link] & Relationships
}.AsQueryable(); [Link] & keys
[Link]
var repository = new Mock <lproductRepository>(); var [Link]
controller = new ProductController([Link]);
[Link](p=>[Link]()).Returns(products); [Link] which of the following the entities and relationships are created on the
var z = [Link]().[Link] EDMX design surface? select one:
as [Link] First Approach
IENumerable<Products>[Link]([Link](z));
[Link] First Approach 16 and 21(both same options in diff order). which of the following code will
[Link] Approach provide custom error pages for 404 errors and general exceptions? a.
[Link] <[Link]>
<customErrors mode=”RemoteOnly”
[Link] 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>
</[Link]>
a.<%=[Link]("Click here","Sample". new AjaxOptions
(LoadingElementId="AONE",Question="Are you sure ?", Update b. <[Link]>
TargetId="ProductAone",})%> <customErrors mode=”LocalOnly”
defaultRedirect=”Error/GeneralException”>
b.<%=[Link]("Click here","Sample". new AjaxOptions <errorstatuscode=”404”redirect=ErrorController.Status404”/>
(LoadingElementId="AONE",Confirm="Are you sure ?", Update </customerrors>
TargetId="ProductAone",})%> </[Link]>
<[Link]>
c.<%=[Link]("Click here","Sample". new AjaxOptions <httpErrorserrormode=”Detailed”/>
(LoadingElementId="AONE",Query="Are you sure ?", Update </[Link]>
TargetId="ProductAone",})%>
c. <[Link]>
d.<%=[Link]("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 </[Link]>
b. handling all errors that might occur during the execution of the action <[Link]>
method. <httpErrorserrormode=”Detailed”/>
c. storing data in a persistent storage </[Link]>
d. getting the values to use as the action method's arguments
d. <[Link]>
([Link] <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 </[Link]>
c. Index <[Link]>
d. Proxy <httpErrorserrormode=”Detailed”/>
</[Link]>
[Link] the values to usse as the action methods arguments
[Link] 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? [Link] data in a persistent storage
a. Display File [Link] presentation logic
b. return file -
c. download file [Link] files have _________ extension.
d. None select one:

[Link] 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
[Link]
[Link] 55. which of the following class provides you important methods to
[Link] configure entities and its properties to override various code first
[Link] conventions? select one:

34(Kajal).which of the following is an example of direct mapping? [Link]


select one: [Link]
[Link]
[Link]<Product>().property(p=>[Link]).DirectMap("product_id [Link]
");
[Link]<Product>().property(p=>[Link])==("product_id"); [Link] you are testing the value of variable "a" is not getting set and you
[Link]<Product>().property(p=>[Link])=("product_id"); need to have value of "a" before stating of [Link] will you solve this
[Link]<Product>().property(p=>[Link]).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."[Link]" 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 [Link] 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
[Link] testing,you are using dynamically generated test [Link] 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.
[Link] [Link] a global temporary procedure is created,all users with EXCUTE
[Link] permissions can access it & permissions can also be revoked explicitly.
[Link] of the listed options
[Link] [Link] want a particular section of your site to be accessed by "Admins"
[Link] of the following is the correct option to go about it?
[Link] of the following namespace supports code-first conventions?
Select one: Select one:
[Link] [Link]=Admins
[Link] [Link]="Admins"
[Link] [Link](Roles=Admins")
[Link] of the listed options d.(Authorize="Admins")

[Link] is "ExcuteStoreCommand" method? [Link] will be the order of TDD steps:


Select one: [Link] enough code so that it passes the test.
[Link] a unit test.
[Link] SQL statements in an Entity framework environment [Link] the test again to watch it pass.
[Link] values in the model [Link] it fail.
[Link] xml data
[Link] of the listed options. Select one:
[Link],IV,I,III
[Link] is the purpose of key annotation? [Link],I,II,IV
[Link],I,II,III
Select one: [Link],I,IV,III
[Link] set the columns as Unique
[Link] set the columns as required [Link](callback)-What is the function of this method?
[Link] set the columns as primary key-
[Link] set the columns as foreign key Select one:
[Link] a class library to be executed, whenever an AJAX reqest begins and
[Link] statement are true about Global Temporary stored procedure? there is more tahn one active.
Select one or more: [Link] 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 [Link] a function to be executed,whenever an AJAX reqest begins and
EXECUTE permission. there is none already active.
[Link] a method to be executed,whenever an AJAX reqest begins and [Link] need to install A but it requires [Link] this scenario,what will the Nuget
there is none already active. download?

[Link] does the following Query do? Select one:


[Link] A
INSERT INTO docs [Link] will throw an error(build error will be thrown)
SELECT 10,xCol FROM (SELECT * FROM OPENROWSET(BULK c.A & B
'C:\temp\[Link]',SINGLE_BLOB)AS xCol)AS R(xCol) [Link] B

Select one: [Link] which of the following options, Aggregate functions be used as
[Link] is typed XML insert statement. Expressions? Select one or more:
[Link] XML Data Generated Using FOR XML with TYPE Directive [Link] select list of a SELECT statement(either a subquery or an outer query) -
c.A new row is inserted into the table named docs
[Link] 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\[Link] 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 [Link] OVER clause
key and the BLOB for the XML column xCol. [Link] 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
[Link] of the following statements are TRUE?
[Link] entity sets can be defined using the same entity type. [Link] [Link] on console are implemented as powershell command.
instance of a given type can only exist in one entity set. State True or False.
[Link] entity key for the instance may not unique within the entity set. Select one:
True
Select one: False
a.I and II
[Link] and III [Link] 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. [Link] 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
[Link] loading is the process of loading related entites/objects. that relationship.
State True or False. True
Select one:
[Link] I
[Link] II
[Link] I nor II Select one:
[Link] I and II.- [Link] not only let you describe client and server side
[Link]-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: [Link] [Link] DataAnnotations you can not only drive database schema
[Link] generation, but you can also map your code first classes to a pre-existing
[Link] database.
[Link] [Link] provide only the most commonly needed configuration
changes you can be make on your code first classes. [Link] the listed options
[Link] do you understand by RAW ajax?
[Link] does the Query exeuction plan define?
Select one:
[Link] communicate to business server making the use of Select one or more:
"XMLHTTPREQUEST" [Link] sequence in which the source tables are accessed.
[Link] communicate to database server making the use of "XSLREQUEST" [Link] sequence in which the rows are accessed.
[Link] communicate to client server making the use of "XMLHTTPREQUEST" [Link] methods used to extract data from each table
[Link] communicate to database server making the use of [Link] methods used to arrange data from each table.
"XMLHTTPREQUEST"
[Link] of the following line of code will invoke the cart controllers ad
[Link] helpers Supports the rendering of HTML controls in a view. method?
State True or False. Select
one: Select one:
True [Link] redirect("Cart/Add")
False [Link] View("[Link]")-
[Link] Content("[Link]")
[Link] can have more than 1 [Link] file in [Link] MVC3 [Link]("[Link]?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 [Link] file in sub root folders we can use multiple
[Link] files in our application but each folder should contains only a. var user = [Link]
one [Link] file. .Where(b => [Link] !="Raja")
.Take(b => [Link])
[Link] view files have Extention_____ cshtml-________. .FirstOrDefault();
[Link] of the following options are CORRECT about data annotations?
b. var user = [Link]
.Where(b => [Link] =="Raja")
.Select(b => [Link]) [Link] should be true.
.FirstOrDefault(); [Link] should be true.
Navigation property should be defined as public, virtual. Context will NOT do
c. var user = [Link] lazy loading if the property is not defined as virtual.
.Where(b => [Link] =="Raja")....................................
.Include(b => [Link]) 9) Entity Framework will support in web services and WCF.
.FirstOrDefault(); State True or False.
a. True .......................
d. var user = [Link] b. False
.Where(b => [Link] ="Raja")
.Take(b => [Link]) 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
[Link]<Entity>().Property(t=>[Link]).HasMaxLength(50
) 13) [Link] Property Provides access to features of the
[Link]<Entity>().Property(t=>[Link]).HasMaxLength(50)........ context that deal with change tracking of entities. State True or False.
...............
[Link]<Entity>().Property(t=>[Link]).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. [Link] should be true. II. I. public class Context: DbContext


[Link] 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]
{
} [Link]
} [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 [Link] from (SELECT[Extent2].[StudentId]AS[StudentId],[Extent3].[CourseId]AS[CourseId
[Link] 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 [Link] from c in [Link] where INNER JOIN
[Link] == 1 select new {[Link],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 .................
[Link]
a. NorthwindEntities dbContext = new NorthwindEntities(); Product
product = [Link]( p=> [Link] == [Link] you use the using statement,then compiler automatically creates a
"Aniseed Syrup"); try/finally block and calls dispose in the finally block.
[Link] = 1000; state true or false
[Link](); [Link]....................
[Link]
b. NorthwindEntities dbContext = new NorthwindEntities(); Product [Link] of the following property is used to map two seperate types in the
product = [Link]( p=> [Link] == storage model? select one
"Aniseed Syrup");............................................ [Link] = [Link] entity...................
1000; [Link] property
[Link](); [Link]
[Link] of these
c. NorthwindEntities dbContext = new NorthwindEntities(); Product
product = [Link]( p=> [Link] == Note:scalar property:A property of an entity that maps to a single field in the
"Aniseed Syrup"); storage model
[Link] = 1000;
[Link](); split entity:An entity type that is mapped to two separate types in the
storage model.
d. NorthwindEntities dbContext = new NorthwindEntities(); Product
product = [Link]( p=> [Link] == [Link] namespace is used to include .net data provider for sql server?
"Aniseed Syrup"); [Link] [Link]
= 1000; [Link]
[Link](); [Link]
[Link]....................
[Link] of the following is used to manipulating dataset using linq?
[Link] to dataset..................... [Link] template used to generate which of the following?
[Link] of these select one
[Link] TO SQL [Link] of these
[Link] TO XML [Link] ignorant modeltypes
[Link] ignorant entity types.........................s
32.a POCO class will not be inherited from entity object class state [Link] ignorant object types
true or false Note:
[Link]..................... POCO Entities
[Link] 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 [Link] 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 () [Link] expressions in the query might be executed on the server and
types from a conceptual model. some parts might be executed locally on the [Link]-side evaluaion of
an expression takes place before the query is executed
[Link] model support quering only entities defined in entity on the server...................
datamodel state true or false a. true [Link] expressions in the query might be executed on the server and some
[Link] parts might be executed locally on the [Link]-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. [Link] of
conceptual model to stored procedures in the data source. these
[Link] expressions in the query might be executed on the server and some
[Link] is the purpose of the [Link] parts might be executed locally on the [Link]-side evaluaion of an
namespace? select one expression takes place before the query is executed on the server.
[Link] of these
[Link] first approach to use [key] attribute
[Link] first approach to use [key] attribute........................... [Link] of the following annotation validates property whether it has
[Link] first to use [key] attribute minimum length of the array or string? (or) Which attribute is used to set
minimum length for column?
[Link] can we mark properties in the entity framework to be ignored? select one:
select one [Link] of these
a.[remove] [Link]
b.[ignored] [Link]...........................
c.[notmapped].......................... [Link]
[Link] of these
[Link] splitting enables which of the following?
[Link] of the following statements are TRUE? select one:
[Link] an entity framework application data is loaded from the file with the [Link] map two tables to multiples entities
[Link] [Link] map a single table to multiple entities..........................
[Link] information is publicaly accessible [Link] map a single entity to multiple tables
[Link] entity framework uses the metadata in the mapping types to trlate [Link] map a single schema to multiple entities
queries against the conceptual model to data source specific commands
select one: [Link] can we enable concurrency mode in entity framework?
select one:
[Link] & III a.<property name="status" type="byte" nullable="false"
b.I & II concurrencymode="true"/>
[Link] & III b.<property name="status" type="byte" nullable="false"
d.I & III.............................. concurrencymode="enabled"/>
c.<property name="status" type="byte" nullable="false"
concurrencymode="yes"/> [Link] can we get objectcontext from DBcontext?
d.<property name="status" type="byte" nullable="false" select one:
concurrencymode="fixed"/>............................. [Link]
[Link]()
[Link] of the following is true about overlapping keys? [Link] of these
select one: d.((lobjectcontextadaptor)db).objectcontext;.......................
[Link] 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-
[Link] keys are composite keys where some properties in the key are b)ntext
also part of another key in the entity c)integer
[Link] of these............................................................. d)image-
[Link] cannot have an overlapping key in an independent association e)cursor

[Link] 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: [Link] model?
[Link] a)entitydatareader
[Link] b)Dbcontext
[Link]........................ c)objectcontext
d)entityconnection
[Link] 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)[Link]
c)poco
select one: d)none
[Link]
[Link] 4)razor syntax have intellisense
[Link] key true or false true
[Link] property.......................
5)how do aggregate functions work?
[Link] 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
[Link].................................(may be) single/summarized value-
[Link]
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
[Link]
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
[Link] "Allow this precompiled site to update" under Output
20)i have a table blog which i want to split into two [Link] of the Assemblies-
followin is the correct snippet? ->Compilation-
a)protected override void OnModelCreating(DbModelBuilder [Link] "Allow this precompiled site to update" under configuration
modelBuilder){[Link]<Blog>().HasRequired(e=>[Link]). >Compilation
WithRequiredPrincipal();[Link]<Blog>().ToTable("Blogs");mod [Link] "Allow this precompiled site to update" under signing
[Link]<BlogAbout>().ToTable("Blogs");} >Compilation
b)protected override void OnModelCreating(DbModelBuilder [Link] "Allow this precompiled site to update" under
modelBuilder){[Link]<Blog>().ToTable("Blogs");modelBuilder. deployment->Compilation
Entity<BlogAbout>().ToTable("Blogs");}
c)protected override void OnModelCreating(DbModelBuilder [Link] have a certain number of products with price ranging from high to
modelBuilder){[Link]<Blog>().HasRequired(e=>[Link]). low to medium. You
WithRequiredPrincipal();} want to filter products by their respective price [Link] of the following
d)protected override void OnModelCreating(DbModelBuilder option will fulfill this conditions? a.[...
modelBuilder){[Link]<Blog>().HasRequired(e=>[Link])m @using([Link]("index","Range"))
[Link]<Blog>().ToTable("Blogs");[Link]<BlogAbout {
>().ToTable("Blogs");} [Link]("Product",new selectList([Link]))
<input type="submit" value="filter"/>
[Link] the performance of [Link] MVC application drastically. }
[Link] profiling ...]
[Link] Regeneration
[Link] updation b.[...
[Link] caching- @using([Link]("index","Product"))
{
[Link] of the following statements are TRUE?(MULTIPLE ) [Link]("Range",new selectList([Link]))
[Link] file is an [Link] <input type="password" value="filter"/>
[Link] declares a conceptual model,storage model and mapping between }
these models ...]
[Link] divided into three categorieS SSDL,CSDL and MSL
c.[...
Select one: a.I @using([Link]("index","Product"))
and II {
b. II and III [Link]("Range",new selectList([Link]))
c. I and III <input type="submit" value="filter"/>
d.I,II and III }
...]
[Link] dont want to allow anyone to do any change to the code being
deployed on production [Link] will be the solution?
d.[... [Link](distance_left,Left);
@using([Link]("index","Product")) }
{ b.[TestMethod]
[Link]("Range",new selectList([Link])) {
<input type="submit" value="filter"/> int total_distance=2; int
} distance_covered=10; int
...] distance_left=10;
Distance d1=new Distance("A1",total_distance);
[Link] happens when you create a primary key constraint? [Link](distance_covered);
[Link] index on the column ,or columns is automatically created which is int Left=d1@remaining;
by default nonclustered
[Link] index on the column ,or columns is automatically created which is [Link](distance_left,Left);
by default clustered }
[Link] index on the column ,or columns is automatically created which is
by default spatial [Link] of the lists
[Link] index on the column ,or columns is automatically created which is d.[TestMethod]
by default XML {
int total_distance=2; int
[Link] 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 [Link](distance_covered);
directly accessible by DQL server int Left1=[Link];
[Link] placed in a stored procedure are interpreted one line at a time
during execution [Link](distance_left,Left);
d,commands placed in a stored procedure are executed as one batch }
[Link] procedures reduce network traffic- [Link]([Link])- this is correct for
the BindModel method [Link]
[Link] a unit test to check whether the participant A1 has covered half [Link]
the ditance of total a.[TestMethod]
{ 35.
int total_distance=2; int [Link] class is used to execute an entity SQL command against an entity
distance_covered=10; int mode?
distance_left=10; [Link]
Distance d1=new Distance("A1",total_distance); [Link]
[Link](distance_covered); [Link]
int Left=[Link]; [Link] of the lists
[Link] objects can be serialized and deserialized with binary serialization context,view data container,and route collection." a
[Link] [Link](IViewContext viewContext,ViewDataContainer
[Link] viewDataContainer,RouteCollection routeCollection) b
[Link](ViewContext viewContext,IViewDataContainer
[Link] server 2008 security model is based on three categories that viewDataContainer,RouteCollection routeCollection) c
seperate the basic elements of [Link] among the [Link](ViewContext viewContext,ViewDataContainer
following are those?(Multiple ) [Link] viewDataContainer,|RouteCollection routeCollection)
[Link] d
[Link] [Link](@viewContext,@viewDataContainer,@routeCollection)
[Link]
Q.53 What doesa Dependency resolver() do?
[Link] is the support for XML integrated into SQL server?(multiple ) a Creates a new dependency b Creates a
[Link] for the xml data type new interface c Initializes a new interface
[Link] 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
[Link] to handle bulk loading of xml data Q.54 Which ActinResult rediects to another action method?
[Link] 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")[Link]();
c no
b NorthwindEntities dbContext = new
NorthwindEntities();("same everywhere only last line d None of the listed options
changes")[Link](); c NorthwindEntities dbContext
= new NorthwindEntities();("same everywhere only last Q.59 Find the object query methods from the following
line changes")[Link](); a Distinct
d NorthwindEntities dbContext = new NorthwindEntities();("same b Except c
everywhere only last line changes")[Link](); 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
[Link] 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:

[Link] [Link]
[Link] [Link]
select one : [Link]-
[Link]
[Link]
[Link] only [Link] are the advantages of using EXECUTE AS clause?
c.I only Select one or more:
[Link] I and II.
[Link] execution becomes faster
[Link] is the significance of clr enabled option ?
select one or more: [Link] can control which user account the databse engine uses to validate
permissions on any objects that are referenced by the module.
[Link] is used to specify whether user assembles can be run by SQL Server [Link] 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.
[Link] clr enabled option can be set to value TRUE to denote that assembly
execution is allowed on SQL SErVER [Link] of the module only need permissions to execute the module
[Link] 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
[Link] clr enabled option can be set to value 1 to denote that assembly [Link] 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

[Link] of the following option is correct to get the blog details details by [Link] Framework 4.1 permits accessing which of the following
order it ascending based on OrderName ? properties?
Select one : [Link] Value
[Link] Value
[Link] s in [Link] groupby [Link] ascending select s; [Link] Value select
[Link] s in [Link] orderby [Link] ascending select s; one:
[Link] s in [Link] where [Link] ascending select s;
[Link] a.I and II only
[Link] 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
[Link],you have to update the page [Link] are the different types of Windows -level principals ?
asynchronously using [Link] method with Action "Act" ,Home Select one or more:
controller "HO" & the id to update is "up" .
[Link] Authorization
which of the following would you choose ? [Link] Domain Login
Select one: [Link] Database Login
[Link] local login-
a. "@using ([Link]("HO"
,"Act", new AjaxOptions[HttpMethod [Link] does the SELECT statement define ?. select one or more:
="GET" ,
InsertionMode=[Link], a. The format of the database.
UpdateTargetid="up"}))" [Link] format opf the result [Link] is specified modify in the select list.
[Link] tables that contain the source [Link] is specified in the FROM
b. "@using ([Link]("HO" clause.
,"Act", new AjaxOptions{HttpMethod [Link] 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=[Link], WHERE clause or in an ON Clause following FROM.
UpdateTargetid=""}))"
[Link] conditions that the rows in the source tables must satisfy to quality for
c."@using ([Link]("Act" ,"HO", new the SELECT [Link] are specified in the WHERE and HAVING
AjaxOptions{HttpMethod ="GET" , clauses.
InsertionMode=[Link],
UpdateTargetid="up"}))" -b,c,d,e

d."@using ([Link]("HO" ,"Act", [Link]-console exe shows output on console. => True
new AjaxOptions{HttpMethod ="GET" ,
InsertionMode=[Link],
[Link] are user-defined functions different from user- defined stored
UpdateTargetid="up"}))"
procedures ? select one or more :
[Link] framework may support composite keys. => TRue-
[Link] user- defined function the default parameter is specified wiwth a
DEFAULT keyword.
[Link] of the following is the Correct options for Database First approach
[Link] user-defined function omitting the parameter also implies default value
?Select one :
[Link]-defined functions do not support output parameters
[Link]-defined functions do support output parameters.
[Link] a database from the Model
[Link] a Model from the Class
[Link] are stored procedure similar to procedures developed in other
[Link] a Model from the Database-
programming languages ? select one or more:
[Link] a object from the Model
49. Which of the following are the three parts of ENtity Framework ?
[Link] input paramaters and return mulitiple values in the form of output
parameters in the calling procedures or batch [Link] Class Object
[Link] prograaming statements that perform operations in the database [Link] Database [Link]
including calling the other procedures and Mapping information select
[Link] a status value to a calling procedure or batch to indicate success or one:
failure
[Link] be interpreted externally . a.I and II
b.I and III
[Link] have to create a view model which will show a cricket player's [Link] 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")]
[Link] class PlayerInfoModel { public [Link] {get;set} public public ActionResult GetBySname(string Sname)
[Link] {get;set} public [Link] {get;set} {
public [Link]{get;set} public [Link] {get;set} } //get song name from the database
return View();
[Link] 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 [Link]() } Select one:

[Link] class PlayerInfoModel { TeamName {get;set} Name {get;set} wickets a.[Link]


{get;set} b.[Link]
Runs{get;set} Rank {get;set} } c.[Link]
d.[Link]
[Link] class PlayerInfoModel { public string TeamName {get;set} public
string Name {get;set} public int wickets {get;set} [Link] 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:
[Link] can access data in view using________
select one [Link] (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result
var courseList = [Link](1)
[Link]@Data Where(c =>[Link] =="City1").ToList<GetCourseList>();
[Link] Data foreach (GetStudentList cs in courseList)
[Link] [Link]("Course Name:(0), Course Location:(1)",
d.View_Data [Link],[Link]);)
[Link] (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result
var courseList = [Link](1) [Link]
Where([Link] =="City1").ToList<GetCourseList>(); [Link] side custom validation of custom type="compare"-
foreach (GetStudentList cs in courseList) [Link] remote validation to compare to compare two properties and
[Link]("Course Name:(0), Course shows and error message if not equal
Location:(1)",[Link],[Link]);) [Link] side validation for custom property and error message.

[Link] (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result var [Link] return a string literal , which method is used ?Select one :
courseList = [Link](1)
Where(c => [Link] =="City1").ToList<GetCourseList>(); [Link]
foreach (GetCourseList cs in courseList) [Link]-
[Link]("Course Name:(0), Course [Link]
Location:(1)",[Link],[Link]);) [Link]
[Link]() method Constructs a new context instance using
[Link] (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result conventions to create the name of the database. True
var
courseList = [Link](1) 1)Can you convert a Nonpartitioned Table to Partitioned Table?If
In(c => [Link] =="City1").ToList<GetCourseList>(); yes,how?Choose all that apply.
foreach (GetCourseList cs in courseList)
[Link]("Course Name:(0), Course Select one:
Location:(1)",[Link],[Link]);) [Link] creating a partitioned non-clustered index on the table by using the
CREATE INDEX statement
[Link] Framework has in-memory copy of the original values and uses this [Link] creating a partitioned clustered index on the table by using CREATE
for working out what has changed. True INDEX statement
[Link] using the ALTER TABLE SWITCH statement to switch the data of the
[Link] GetClientValidation table to a range-partitioned table has only one partition
{ [Link] 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.
[Link] = FormatErrorMessage([Link]()); [Link] cannot convert a Nonpartitioned Table to Partitioned Table.

[Link] ="compare"; 2)Which of the following is the query product by Categoryname?


[Link]("sample",SamplePropertyName);
yield return z; Select one:
} [Link] dbContext = new NorthwindEntities();var query =from p
Analyse the code and identity which of the following statement is true ? in [Link] where [Link] == "Seafood"
select p;IEnumerable<Product>product = query;
select one :
[Link] dbContext = new NorthwindEntities();var query =from p 8)IIS stands for______. [Link] Information Services
in [Link] where [Link] == "Seafood"
select p;IEnumerable<Product>product = [Link](); 9)Which of the following are the default parameters are route?
[Link] dbContext = new NorthwindEntities();var query =from p
in [Link] where [Link] == "Seafood" Select one or more:
select p;IEnumerable<Product>product = [Link](); [Link]
[Link] dbContext = new NorthwindEntities();var query =from p [Link]
in [Link] where [Link] == "Seafood" [Link]
select p;IEnumerable<Product>product = [Link](); [Link]

3)How are the traction locks acquired by a SELECT statement controlled? 10)What are the benifits of POCO?
[Link] cose associated with code will be less
Select one or more: [Link] updateable even if the properties in POCO are chnaging
[Link] by the traction concurrency setting for the connection. [Link] coupled from the Database
[Link] by the traction isolation level setting for the connection.-
Select one:
[Link] by any locking hints specified in the WHERE clause. a.I and II
[Link] by any locking hints specified in the FROM clause. [Link] 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 [Link] 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(); [Link] First
c.$(".create#ProductDate").datepicker(); [Link] First Approach
d.$(".attach#ProductionDate").datepicker(); [Link] first
[Link] 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:
[Link]-package packageName-RemoveDepencies Select one:
[Link] the listed options [Link] that three specified objects are equal
[Link]-Dependencies [Link] that two specified objects are equal
[Link] Depencies [Link] the listed options
[Link] 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 [Link] 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;}
[Link] d.[Database([Link])][Display(Name="Confirm
[Link] password")][Compare("Password",ErrorMessage="The entry doesn't match
[Link] with password entered.")]public string ConfirmPassword{get;set;}
d.O/Pcache
**************************************************************
15)In a website you need to use certain caching rule [Link] 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 [Link] the view contains aggregations
Index(){/*some code*/} [Link] the view contains compositions
b.[OutputCache][CacheProfile="CacheProfile1"]public string Index(){/*some [Link] the view contains table joins
code*/} [Link] the view contains a combination of aggregations & joins
c.[OutputCache,CacheProfile="CacheProfile1"]public string Index(){/*some [Link] the view contains locks
code*/}
[Link] 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 [Link] specifies how strings are stored and compared.
[Link] file. State true or False. => False [Link] specifies how integers are stored.
[Link] 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 [Link] 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 [Link] 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([Link])][Display(Name="Confirm
password")][ToCompare("Password",ErrorMessage="The entry doesn't Select one:
match with password entered.")]public string ConfirmPassword{get;set;} [Link]<Student>()
b.[Database([Link])][Display(Name="Confirm [Link]<student>();-
[Link]<Student>(); 13)cache profiles are supported for
[Link] 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
[Link] static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, d. standard view and models but not for child actions
string name)
[Link] static MvcHtmlString DropDownList(HtmlHelper htmlHelper, string 14)Which statements are true about table-valued parameters?
name)
c. public static MvcHtmlString DropDownList([Link] htmlHelper, select one or more:
string name) a. They are user defined scalar values that are passed into a procedure or
[Link] 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 [Link] 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 [Link] of the following T-SQL statement are not allowed in DML trigger
d. None of the listed options
************************************************************* select one or more:
[Link] code should be a. ALTER DATABASE
[Link] b. LOAD DATABASE
[Link] c. CREATE
d. UPDATE
select one or more: a. e. CREATE DATABASE
Both I and II
b. II only [Link] 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=[Link](feedback@Body);
b. feedback .Body=[Link]([Link]);
[Link] attribute is used to set complex type in entity framework c. feedback .Body=Sanitizer@GetSafeHtmlFragment([Link]);
annotations select one: d. feedback .Body=[Link]([Link]);
a. ComplexType- [Link] 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
[Link] happens if the SCHEMABINDING option is used in CREATE FUNCTION item in the colectionviewsource is updated. a. true-
statement select one or more:
[Link] are the isolation semantics for FILESTREAM storage ?
select one or more:
a. the isolation semantics are governed by database engine traction d. [Link]<Song>()
isolation levels- .ManyHas(song=>[Link])
.WithRequired(feedback=>[Link]);
b. when the FILESTREAM data is accessed through the win32
APIs,readcommitted,repeatable-read and serializable [Link] 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 [Link] 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
[Link] jane is creating a page for songs feedback. the mapping should be
done in such way that one song can have more [Link] 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. [Link]<Song>() processed in the TRY block
.HasMany(song=>[Link]) c. the error is processed in the CATCH block-
.WithRequired(feedback=>[Link]); d. T-SQL statements in the TRY block that follow the statement that
generated the error are not executed
b. [Link]<Song>()
.HasMany(song=>song@feedbacks) 14. Choose Maria to add a JQuery refrence in file
.WithRequired(feedback=>feedback@Song);
:<Script src="../Scripts/[Link]"
c. [Link]<Songs>() type="text/javascript"></Script>
.HasMany(song=>[Link])
.WithRequired(feedback=>[Link]);
[Link] NonDeterministic functions from the following [Link] foreignkeycolumn=(FK_ID)null;
[Link] foreignkeycolumn=(key)null;
Select one or more: [Link] [Link] foreignkeycolumn=null;-
[Link]- [Link] of listed
[Link]
[Link] [Link] is/are a/the console commands in nuget from the following?
e.Current_Timestamp select one:
[Link] the listed
Deterministic functions always return the same result any time they are [Link]
called with a specific set of input values and given the same state of the [Link]
database. Nondeterministic functions may return different results each time [Link]
they are called with a specific set of input values even if the database state
that they access remains the same. [Link] caching lets you store the output of a/an method in the memory
on the web server select one:
16. The [Link] ______________ control supports data binding [Link] and memory
scenarios in Web Applications that use the [Link] Entity Framework. [Link] & memory
::EntityDataSource [Link] & memory-
[Link] & 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 [Link]
the browser+always message shows which item is added instead of message [Link]
when yu have recently added. Which option would yu choose?
[Link] entity framework uses mapping metadata to trlate queries against
: public ActionResult Index() the conceptual model storing specific commands.
{ state true or false [Link]
ViewData["selection"]=Session["selection"]; [Link]
/*rest of code*/}
[Link] 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. : [Link] first will create database named MyDb in the local SQL server
var z=from q in [Link] [Link] first will create database with the same name as context class name.
where [Link]=="Rocky" [Link] first will create database named "name=MyDb" in the local SQL
orderby [Link] server
select q;
[Link] first will use connection string named MyDb defined in the config file
************************************************************** to craete the database
[Link] of the following code removes a relationship by setting the foreign
key to null? select one:
[Link] "return json()" denyGet is default to avoid
[Link] Select One: a.I
[Link] copying only
[Link] loading [Link] only
[Link] hijacking- [Link] I and II
[Link] of the above
[Link] Razor,we can write code and markup in single file and still get desired
output select one: [Link] [Link] of the following is TRUE about entity set select
[Link] of the listed one:
[Link] [Link] entity is a logical container for instances of an entity type and instances
[Link]- of any type derived from that type

[Link] do u mean by Lazy loading in MVC?


[Link] objects are loade automatically with its parent objects [Link]
objects are not loaded automatically with its parent object until they are
requested
[Link] entity set is defined within an entity container which is logical grouping of entity
sets and association
[Link] 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 [Link] above listed

[Link](staffentity).References(s=>[Link]).load()indicates
which of the following select one:
[Link] loading
[Link] loading
[Link] loading
[Link] loading

[Link] can insert data into your databse tables during database initialization process
=> [Link]-

[Link] method is used to get the entity based on composite keys in entity
framework? select one: [Link]
[Link]
[Link]
[Link]

[Link] of these are jquery event methods?


select one or more: [Link]()
[Link]()
[Link]()
[Link]()

[Link] command show list of command?


select one:
[Link]
[Link]
[Link]
[Link]

You might also like