Ef, SQL
Ef, SQL
select one:
c.GetObjectstateEntries
d.None
---------------------------------------------------------------------------------
Q.47 Which of the following method of the ObjectStateManager is used to get Object State entry?
c GetRelationshipManager
d ChangeRelationshipState
------------------------------------------------------------------------------------------
JASBIR
on the other hand when john logged in via his credentials he could .what may be the reason?
c)url cutomization
d)account rendering
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
---------------------------
3)if foreign key coloumns are not available in the model , the relationship are reffered with the object
references instead of
b)dependent association
c)relationship
d)entityrelationship
------------------------------------------------------------------------------------------------------------------------------------------
--------------
4)which all index options can be set without rebuilding the index?
a)allow_page_locks-------------ans
b)allow_row_locks-------------ans
c)ignore_dup_keys----------ans
d)data_compression
e)statistics_norecompute-------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
true ----------------ans
false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)[inject]
b)none -----------------ANS
c) [injection creato]
d) [inject initialze]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
7)which of the following is not a HtmlHelper?
a)LabelFor
b)EditorFor
c)ValidationMessageFor
------------------------------------------------------------------------------------------------------------------------------------------
--------------
A) CONTEXT.CONTEXTOPTIONS.ENABLED = FALSE;
B)CONTEXT.CONTEXTOPTIONS.PROXY=FALSE;
A) CONTEXT.CONTEXTOPTIONS.PROXYENABLED = FALSE;
B)CONTEXT.CONTEXTOPTIONS.PROXYCREATIONENABLED = FALSE;---------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
9)SaveChanges() will be raised exception when which of the following object is added to the
a)DbException
b)Savexception
c)ChangeException
d)UpdateException-------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
true--------answer
false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
11)which of the following class object is used for manipulatiing entity and trigger the changes while
insert
a) DbContext -----------ans
b) DataContext
c)MOdel-defined Functions
d) None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
12)_____________is an xml-based language which describes the entities, functions and relationships
which create a conceptual model of an application?
a) Model-wide mapping
b)entity mapping
c) property mapping
d) all -------------answer
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)it determines how much data can be recovered in the event of a media failure-----------------ans
b) it determines the location where the data should be recovered in the event of a media failure
c)the default recovery is full , which provieds the greatest level of recovery----------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)it returns the rank of each row in the table within the partition of a database-----------ans
b) the rank of a row is equal to the number of ranks that comes before the row in question
c) the rank of a row is one plus the number of ranks that comes before the row in question------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
16) In application page. you are supposed to take details from a user but you to make sure that the user
doesn't leave this space blank. Which of the following will accomplish this objective?
a. [Required]
b. [Required]
c. [Must]
d. [Must]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
17) Which of the following option is CORRECT to select only the coulumns StudentName, Department
and GroupName from the student entity of the student name "Kishore"?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
18)which of the following should you to choose to activate buildview property in asp.net?
ans) <MvcBuildViews>true</MvcBuildViews>
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
20)dependencyresolver() is destructor?
ans)false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
(a)The data of partioned tables and indexes is divided into units .......ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
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 Show it's details. Do it without Using Json.
service.GetInstructorNames(function(result){${result).each(function(result)
{$("<option>").val(this.ID).text(this.Name) .appendTo("#productSelect");});});-----------------Ans
b. $("#productSelect").change(function(){ var val=$("#productSelect").val() if(parseInt(val)){ var
service=nes ProductService(); service.GetProductDetails(val.function(data)) {var list=("<ul></ul>");
$(data.Facts).each(function(){$("<li>"+this+"</li>").appendTo(list);}); $("productShow").html(list); }); }
else { $("#productShow").html("");} });
service.GetInstructorNames(function(result){${result).each(function(result)
{$("<option>").val(this.ID).text(this.Name) .appendTo("#productSelect");});
------------------------------------------------------------------------------------------------------------------------------------------
--------------
23) Which of the following Entity will create a table with the following specifications:
b. public class Employee{ public string EmployeeId {get;set;} public string FirstName {get;set;} public
string FullName {get;set;}public string DepartmentId{get;set;} public Department Department{get;set;}}
d. public class Employee{ [key] public string EmployeeId {get;set;} public string FirstName {get;set;}
public string FullName {get;set;}public string DepartmentId{get;set;} public Department
Department{get;set;}}
------------------------------------------------------------------------------------------------------------------------------------------
--------------
24. You have to validate project name from the company database.-Which of the following will be
helpful?//hold
return Java(result,JsonRequestBehavior.AllowGet);
return Json(result,JsonRequestBehavior.AllowGet);------------------------Ans
return Json(Pname,JsonRequestBehavior.DenyGet);
return Json(result,JsonRequestBehavior.AllowGet);
------------------------------------------------------------------------------------------------------------------------------------------
--------------
25)which statements are true about large clr user defined types?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
ans)Delete(DbConnection)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
27. Which of the following code can be used as an option for partial view through child request?
a. Part [email protected]("Sampleone","Feedback")
Part 2= [ChildActionOnly]
{*..some code..*}
b. Part [email protected]("Sampleone","Feedback")
Part 2= [ChildAction]
{*..some code..*}
c. Part [email protected]("Sample_one","Feedback")
Part 2= [ChildActionOnly]
{*..some code..*}------------------------------------------------------Ans
d. Part [email protected]("Sampleone","Feedback")
Part 2= [ChildAction]
{*..some code..*}
------------------------------------------------------------------------------------------------------------------------------------------
--------------
28)which one of the following are the properties of the HTTPcONFIGURATION CLASS?
a) Dependency Resolver--ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
true-----------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.ModelBuilder.CreateKey<Entity>(t=>t.KeyColumnYouWant);
b.ModelBuilder.Entity<Entity>().HasKey(t=>t.KeyColumnyouWant);-----------------------ans
c.ModelBuilder.Key<Entity>(t=>t.KeyColumnYouWant);
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.static
b.public-----------------------------------Ans
c.proxy
d.virtual----------------------------------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
34)What are the benefits of using a Unique index?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
c.Hidden files
d.Log files-----------------------------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
36)Which of the following is not the Design goal of ASP.NET MVC3? //hold ans should be none of the
listed as it asks for not goal
ii.Testable
a.ii only--------------------------------Ans
b.Both i and ii
d.i only
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b.The owners of the caliing and the called objects must be the same.-------------------------Ans
c.The owners of the calling and the called objects must be different.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b.It creates a column of type int in the table & sets it as a primary key.----------------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Removes the need for the whole page to be refreshed as the result of a HTTPGet.
b.Removes the need for the whole page to be refreshed as the result of a postback.---------------Ans
d.Only individual regions of the page that have changed are updated.-----------------------------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
40)How are user defined functions different from User-defined Stored Procedures?
a.In user-defined function the default parameter is specified with a DEFAULT keyword.------------ans
b.In User-defined function omitting the parameter also implies default value.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
41)Which of the following is used to provide short expression for querying entities over linq?
a.LINQ to DataSet.
b.LINQ to SQL.
c.Lambda expression.--------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
42)Which of the following approach do we avoid working with the visual designer or entity framework?
c.Database Approach.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
43)Novak is a given a task by his manager to strictly load a particular image only after page gets
loaded.What will you advice him to do?
d.i,ii,iii
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Project Manager.
b.Package Manager.-----------------Ans
c.Package Model.
d.Priority Manager.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.It is an aggregate function that causes an additional column to be used with a value of 1 when the row
is added by either the CUBE or ROLLUP operator.--------ANS
b.It is an aggregate function that causes an additional column to be used with a value of 0(True) when
the row is added by either the CUBE or ROLLUP operator.
c.It is an aggregate function that causes an additional column to be used with a value of 0 when the row
is not the result of CUBE or ROLLUP operator.-------ANS
d.It is an aggregate function that causes an additional column to be used with value equal to the number
of rows added by either the CUBE or ROLLUP operator.
e.Grouping is allowed only in the select list associated with a GROUP BY clause that contains either the
CUBE or RoLLUP operator. ------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
queries and update commands when your code interacts with the model?
Ans:True
------------------------------------------------------------------------------------------------------------------------------------------
--------------
47.entity is defined as _______ of the object, but not the behavior of the object?(QUES NOT CLEAR)
a.Object
b.Schema--------------ANS
c.Entity
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
49.In an application page, you are suppose to take students % between 40-80.
select one
a.[Range (40,80)]
b.[between (40;80)]
c.[Range (40,80)]
d.[Range (40||80)]
50.What kind of data does the XML datatypes store in SQL server? (Multiple ans)
a.Office documents
b.Memory maps
c.XML documents---->ans
ssd.Fragments--->ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.Both i and ii-----ANS
b.i only
c.ii only
------------------------------------------------------------------------------------------------------------------------------------------
--------------
but he does not known how to write a code to declare that an exception is expected.
select one;
a.[Exception.Expected=ArgumentOutOfRange]
b.[ArgumentOutOfRangeException.Expected]
c.[ExpectedException(typeof(ArgumentOutOfRange))]----->ans
d.[ArgumentOutOfRange.Expected=True]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.database administrator
b.database user-->ans
c.database role-->ans
d.windows role
e.Application role-->ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.All
b.Any--->ans
c.None
d.Auto
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Ans: True
------------------------------------------------------------------------------------------------------------------------------------------
--------------
58.If your are moving your project from MVC2 to MVC3 what will be the
value of "UnobtrusiveJavaScriptEnabled"
a.True--->ans
b.None
c.False
d.Auto
59.We can write raw sql query in SQLQuery() method in entity framework? T or F
Ans:true
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. System.Data.EntityClient--->ans
b.System.Transactions
c.system.data.annotations
*************************************************************************************
***********************************************
ajith
I.ViewData
II.TempData
Select one:
a.I only
b.II only
------------------------------------------------------------------------------------------------------------------------------------------
--------------
2. Which of the following snippet creates database in local sql express by default?
I.public class Context:DbContext
public Context():base()
Select one:
ans:2&3
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.A User-defined table-valued function can be invoked in the FROm clause of a SELECT,INSERT,UPDATE
& DELETE statement------------------------------------------------ANS
b.A User-defined table-valued function can be invoked as a stored procedure from a clause of a
SELECT,INSERT,UPDATE & DELETE statement
c.A User-defined table-valued function can be invoked in the WHERE clause of a SELECT,INSERT,UPDATE
& DELETE statement
d.A User-defined table-valued function can be invoked in the USING clause of a SELECT,INSERT,UPDATE
& DELETE statement
------------------------------------------------------------------------------------------------------------------------------------------
--------------
4. You are given a task by your manager that includes assembly binding.Which file would you configure?
Select one:
a.System.config
b.Web.config
c.Machine.config---------------------------------------------------------------ANS
d.Config.config
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Secondary
b.Primary----------------------------------------ANS
c.User-defined-------------------------------------------ANS
d.Hidden
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one
a. the .dll files that are requested for a model binder
------------------------------------------------------------------------------------------------------------------------------------------
--------------
7. Which statements are true about the maax constant in a varchar type?
a. It can be used when the data can exceed more than 8000 charcters-----------------ans
b. It can be used to fix the max length of charcters for the entire column------------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
8. ___________ is an XML based language which describes the entities , functions and relationships
which create a conceptual model of a application.
select one
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one
c.If the statement fails with an error the trigger is not executed.------------------------------ans
d. AFTER triggers cannot be specified for tables , they can only be specified fro views.
e.AFTER triggers cannot be specified for views, they can only be specified for tables.-----------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
10. Which of teh following methods make entity framework fro detecting changes automatically?
selct one
a.DBSet.FInd
b.DBSet .Remove
C.DBSEt.Attach
d.all---------------------------------------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
11) Which one in the following is not included in the configuration hierarchy?
root web
IIS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
12) Unchanged State is the default state for an entity while the entity is retrieved from the database.
TRUE------------------ANs
FALSE
------------------------------------------------------------------------------------------------------------------------------------------
--------------
13) Which of the following are database initializers used in Entity Framework
CreateDatabaseIfNotExist ---------------ANS
DropCreateDatabaseIfModelChanges -------ANS
DropDatabaseAlways
DropCreateDatabaseAlways ---------------ANS
CreateDatabaseAlways
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Assert.areequal(distance,message,z);
------------------------------------------------------------------------------------------------------------------------------------------
--------------
some expression in the query might be executed on the server and some parts might be
executed locally on the
client. Client-side evaluation of an expression takesplace before the query is executed on the
server-------------------------ANS
some expression in the query might be executed on the server and some parts might be
executed locally on the
server. Client-side evaluation of an expression takesplace before the query is executed on the
server
some expression in the query might be executed on the server and some parts might be
executed locally on the
client. server-side evaluation of an expression takesplace before the query is executed on the
server
------------------------------------------------------------------------------------------------------------------------------------------
--------------
16) which of the following statements are true about varchar data type?
each row can hold different number of characters up to the max length defined-----ANs
each row can hold fixed number of characters as defined by max length
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Materialization is the process of returning query results back to the client as entity types
Materialization is the process of returning query results back to the client as CLR types-----------
ANS
Materialization is the process of returning query back to the client as CLR types
------------------------------------------------------------------------------------------------------------------------------------------
--------------
removes the need for the whole page to be refreshed as the result of a HTTPGet
only individual regions of the page that have changed are updated-------------------ANS
Removes the need for the whole page to be refershed as the result of a postback-----ANs
------------------------------------------------------------------------------------------------------------------------------------------
--------------
19) Correct syntax for ActionLink with following argument AjaxHelper, String, String, AjaxOptions is a.
string linkText,
string modelName,
AjaxOptions ajaxOptions)
b.
string linkText,
string actionName,
AjaxOptions ajaxOptions;
c.-----------------------------ANS
string linkText,
string actionName,
AjaxOptions ajaxOptions)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
20) Which of the following will render carinfo object stored in viewbag to a view
Select one:
a.
<p>
</p>
b.
<p>
</p>
c.
<p>
</p>
d.---------------------------------------------- ANS
<p>
</p>
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Navigation properties provide a way to navigate an assiciation between two entity types
Every object can have navigation property for every relationship in which it participates
Navigation properties allow you to navigate and manage relationship in both directions,
returning either a reference object or a collection
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
23) which exception will raise when you define an entity data model that uses stored procedures to
make updates to the data source
OptimisticException
ConcurrencyException
OptimisticConcurrencyException -----------ANS(Doubt)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
24) analyse the link:- "http://localhost/music/". Choose the option which is correct for it
I only
II only
both I and II --------------------------------------------------------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
25) Which of the following model is used to defined application specific object
SqlDataModel
ObjectModel
------------------------------------------------------------------------------------------------------------------------------------------
--------------
26. What are the different classes into which the SQL server divides principles?
a. windows-level principle-------------------------------ANS
b. field-level principle
c. database-level principle------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one
28. How can the execution plan of queries on partitioned tables and indexes be examined?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
29. You are given a task to make the current form secure such that it can be prevented csrf. Which of
the following will be helpful?
Select One
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I. The CompiledQuery class provides compilation and caching of queries for reuse.
II. Execute method is to create a new delegate to represent the compiled query.
III. Once the query is compiled you can only supply parameters of primitive type but you cannot replace
parts of the query that would change the generated SQL
Select one
a. I and II
b. II and III
c. I and III------------------------------------------------------------------------------------------ANS
d. I, II and III
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select One
[(https://msdn.microsoft.com/en-in/library/ms187019.aspx
Multicolumn unique indexes guarantee that each combination of values in the index key is unique. For
example, if a unique index is created on a combination of LastName, FirstName, and MiddleName
columns, no two rows in the table could have the same combination of values for these columns.
Provided that the data in each column is unique, you can create both a unique clustered index and
multiple unique nonclustered indexes on the same table.
Unique indexes provide additional information helpful to the query optimizer that can produce more
efficient execution plans.)]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
34. Which action result type will return a temporary redirect (HTTP 302 status code) or a permanent
redirect (HTTP 301 status code) depending on the Boolean parameter?
Select one
a. HttpNotFoundResult
b. RedirectResult----------------------------------------------------------------------------------
ANS(https://www.asp.net/mvc/mvc3)
c. HttpStatusCodeResult
d. HttpRedirectResult
------------------------------------------------------------------------------------------------------------------------------------------
--------------
35. You are handling a page of event. Now the content and information you have cached so that it is
loading quickly but
you need to keep a clock which shows time for the event dynamic. Which of the following will be
helpful?
a. <%DateTime(t.now);%>
b. <%Response.WriteSubstitution(t=>DateTime.Now.ToLongTimeString())%>-------------------------------------
--------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select One
a. An entity key is a property or a set of properties of an entity type that are used to determine
identity--------------------------------------------------------------------ANS
b. An entity key is a property or a set of properties of an entity type that are used to determine the
column for searching index
c. An entity key is a property or a set of properties of an entity type that are used to identity
relationship among the entities.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
37. Problem Statement- Peter is a web developer and has created a website in ASP.NET MVC3 using
razor view. People were giving feedback on his site without going through products detail page. They
were navigating to the feedback page by editing the URL.
Select one
a. The solution given by Brock is legitimate
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.HtmlUtility.HttpCode.
b.HtmlUtility.XmEncode.
c.HttpUtility.HtmlEncode.---------------------------------------------Ans
d.HttpUtility.HtmlCode.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.True.
b.False.--------------------------------------------------------------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.True.---------------------------------------------------------------Ans
b.False.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
55) Which of the package can be used to write an implementation for ASP.NET Identity that targets
different persistence stores such as Azure Table Storage,NoSQL databases etc.?
a.Microsoft.AspNet.Identity.Core.-------------------------------------Ans
b.Microsoft.AspNet.Identity.EntityFramework.
c.Microsoft.AspNet.Identity.OWIN
d.Microsoft.ASPNET.Security;
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
57) public class DependencyResolver-is the syntax for Dependency resolver class.State True or False.
a.True---------------------------------------------------------------------Ans
b.False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
58) Which of the following code snippets is correct for an entity Post having relationship with Blog?
a.modelBuilder.Entity<Post>().HasRequired(p=>p.Blog)------------------------Ans
b.modelBuilder.Entity<Post>().NeedRelationship(p=>p.Blog)
c.modelBuilder.Entity<Post>().Required(p=>p.Blog)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
59) Which of the following approach do we avoid working with the visual designer or entity framework?
c.Database Approach.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
i.Client wins and store wins are actions which are used when concurrency happens.
ii.In Client wins the data from the server is loaded in to your entity objects.
iii.In Store wins data from the entity object is saved to the database.
a.i and ii
c.only i----------------------------------------------Ans
*************************************************************************************
************************************************
mohak
True-------------------------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
True-------------------------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
3.Linq to Entity Query results are usually returned as which of the following?
Select one:
a.A collection of zero or more typed entity objects or a projection of complex types defined in the
conceptual model.--------ans
b.Inline collections--------ans
c.Linq to objects
d.Anonymous types--------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.All the listed options
b.L10N-------------------------------------------------------ANS
c.LOC-zation
d.LCn
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. The login
b. The user--------------------------ANS
c. Authentication memberships--------ANS
d. Role memberships-----ans
e. Role aggregation
------------------------------------------------------------------------------------------------------------------------------------------
--------------
6.How are user defined functions different from User-defined Stored Procedures?
a.In user-defined function the default parameter is specified with a DEFAULT keyword.----ans
b.In User-defined function omitting the parameter also implies default value.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.@---------------------------------------------------ANS
b.%
c.#
d.$
------------------------------------------------------------------------------------------------------------------------------------------
--------------
8.john is given a task to make his website a bit intelligent and in the process he's been told to add
autocomletion on the "searchBox".
select one
a.$(function()($"#searchBox").autocomplete("/Product/SearchCandidates".{minChars:3}):})
b.$(function(){$("#searchBox").autocomplete("/Product/SearchCandidats",{minChars:3});});-----------------
--------------------------------------ANS
c.$(function(){$("#DivideBox")autocomplete("/Product/SearchCandidates",{minchars:3});});
d.$(function(){$("#searchBox")autocomplete("/Product/SearchCAndidates",{minchars:3})});
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Specifies that the DML trigger is excuted instead of the triggering SQl statement
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.EntityClient provider-------------------------------------------------------ANS
b.SqlClientProvider
c.EntityModelProvider
d.EntityContext
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.The data columns of the underlying table are not stored in order based on their nonclustered keys.
b.The data rows of the underlying table are sorted and stored in order based on their nonclustered keys.
c.The leaf layer of a nonclustetred index is made up of index pages instead of data pages.--------------------
-----------------------------------ANS
d.The leaf layer of a nonclustetred index is made up of data pages instead of index pages.
Link:-https://technet.microsoft.com/en-us/library/ms177484(v=sql.105).aspx
Nonclustered indexes have the same B-tree structure as clustered indexes, except for the following
significant differences:
1. The data rows of the underlying table are not sorted and stored in order based on their nonclustered
keys.
2. The leaf layer of a nonclustered index is made up of index pages instead of data pages.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.A clustered index sorts and stores the data rows of the table or view in order based on clustered index
key------------------------------------ANS
b.A clustered index sorts and stores the data columns of the table or view in order based on the
clustered index key.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.OjectContext-------------------------------------------------------ANS
b.EntityOject
c.DataContext
------------------------------------------------------------------------------------------------------------------------------------------
--------------
14. Your manager has given youa task to write a code to list recent 30 events and this should be
accessible to no one other than admins.
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Compare
b.Range
c.Required-------------------------------------------------------ANS
d.StringLength-------------------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
16.Which of the following annotation is used to mark one or more properties to be used for concurrency
checking while user modifies in an entity?
Select one:
a.ConcurrencyCheck-------------------------------------------------------ANS
b.DatabaseCheck
c.EntityCheck
------------------------------------------------------------------------------------------------------------------------------------------
--------------
17.analyse the link:- "http://localhost/music/". Choose the option which is correct for it
II only
------------------------------------------------------------------------------------------------------------------------------------------
--------------
18.By default in Entity Framework Snapshot change tracking is enabled snapshot change tracking
mechanism.
True-------------------------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)it determines how much data can be recovered in the event of a media failure-----------------Ans
b) it determines the location where the data should be recovered in the event of a media failure
c)the default recovery is full , which provieds the greatest level of recovery-----------------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
20.George wants to make the appearance of his site better.He wants to show an image when a
"divhello" result takes time to display.
a.[[email protected]("Hello","Hello",new AjaxOptions(){UpdateTargetID="div-
hello",HttpMethod="GET",LoadingElementId="divloadingimage"})....]
b.[[email protected]("Hello","Hello",new AjaxOptions(){UpdateTargetID="div-
hello",HttpMethod="GET",LoadingElementId="divloadingimage"})....]
c.[[email protected](AjaxOptions(){UpdateTargetID="divhello",HttpMethod="GET",LoadingElementId
="divloadingimage"})....]
d.[[email protected]("Hello","Hello",new
AjaxOptions(){UpdateTargetID="divhello",HttpMethod="GET",LoadingElementId="divloadingimage"})....
]------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
21.which template is used in entity framework to generate code in C# by reading .edxm file?
a. C# template
b. T4 template---------------------------------ANS
c. XML template
d. none
22.Which of the following are used to locate the entities at the ends of an association in a conceptual
model?
Select one:
b.Attributes
c.Index
d.Proxy
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.A technique for achieving tight coupling between objects and their collaborators.
b.A technique for achieving loose coupling between objects and their collaborators.----------------------------
---------------------------ANS
c.A technique for achieving tight coupling between Model and their views.
d.A technique for achieving tight coupling between Model and their respective server.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
24.Entities define the______________of an object but not the behavior of the object.
select one:
a.Object
b.schema-------------------------------------------------------ANS
c.Entity
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.Red-Green-Refactor-------------------------------------------------------ANS
b.Debud-Error-Resolve
c.Red-Green-Resolve
d.Fail-Pass-Repeat
------------------------------------------------------------------------------------------------------------------------------------------
--------------
True-------------------------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I.ViewData
II.TempData
Select one:
a.I only
b.II only
------------------------------------------------------------------------------------------------------------------------------------------
--------------
28.Which of the following keyword is used for lazy loading related data in entity framework?
Select one:
a.protected
b.virtual-------------------------------------------ANS
c.const
d.abstract
------------------------------------------------------------------------------------------------------------------------------------------
--------------
B)CONTEXT.CONTEXTOPTIONS.PROXY=FALSE;
C) CONTEXT.CONTEXTOPTIONS.PROXYENABLED = FALSE;
D)CONTEXT.CONTEXTOPTIONS.PROXYCREATIONENABLED = FALSE;---------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
30.which of the package can be used to write an implementation for ASP.NET Identity that targets
different persistence stores such as Azure Table Storage, NoSQL databases etc..,?
Select one:
a.Microsoft.AspNet.Identity.OWIN
b.Microsoft.AspNet.Identity.Core...................ans
c.Microsoft.AspNet.Identity.Entityframework
d.Microsoft.ASPNET.Security
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
32. Which of the following statements are true about extended stored procedures?
d. they are programmed by using the SQL server extended stored procedure API--------------------------------
-----------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
i. Database connection
Select one:
a. i and ii
b. i and iii
c. ii and iii
d. i, ii and iii-------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
35. which of the following is the correct option to get related subjects count without loading
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
36. Which statements are true about nonclustered indexes with respect to partitions?
a. nonclustered indexes have one row in sys.partitions with index_id >0 for each partition used by the
index-------------------------------------------ANS
b. nonclustered indexes have one column in sys.partitions with index_id >0 for each partition used by
the index
------------------------------------------------------------------------------------------------------------------------------------------
--------------
37. If we want to retrieve friend along with contact entity, which of the following code will fetch us the
required result ?
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. SQL server stores only the source for stored procedures and rtiggers--------------------------------------------
------------------------------ANS
b. SQL server keeps the stored procedures & triggers in compiled form for future execution
c. when a stored procedure or trigger is first executed, the source is compiled into an execution plan-----
---------------------------------------ANS
d. if the stored procedure or trigger is again executed before the execution plan is aged from memory,
the relational
e. if the execution plan has aged out of memory, a new plan is built-------------------------------------------------
----------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
r39. Jason is trying to access Appsettings of "sampleserverA" & the accidently wrote this varserver =
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
40. choose a code block which will show "Hello World" on the WEb page
select one:
return View();
return View();
}
c. None of the listed options
return View();
------------------------------------------------------------------------------------------------------------------------------------------
--------------
41. "Type or Namespace name "SampleTest" could not be found" - you are getting the above error while
you
select one:
a. You didn't instantiate the object for the sampletest controller and view
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a. true-------------------------------------------------------------ANS
b. false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
43. which of the following are the standard query operators of LINQ ?
select one:
a. select
b. where
c. groupby
------------------------------------------------------------------------------------------------------------------------------------------
--------------
44. which method in the DBcontext writes inserts, updates and deletes to the data source ?
select one:
a. save
b. saveChanges-------------------------------------------ANS
c. saveEntity
------------------------------------------------------------------------------------------------------------------------------------------
--------------
45. Natasha is typing to access a page but she is not able to do it. on the other hand, when john logged
in
select one:
c. URL customization
d. Account rendering
------------------------------------------------------------------------------------------------------------------------------------------
--------------
46. Entity framework provides us with which of the following attribute to indicate multiple relationships
select one:
a. [insertProperty]
b. [InverseProperty]------------------------------------------------------------ANS
c. [INProperty]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
48. sam is developing ASP.NET MVC 3 web application. He is using SQL 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 should sam
add to take care of this ?
select one:
a. DropCreateDatabaseselfModelChanges<>()-------------------------------------------ANS
b. RefreshDb<>()
c. DeleteUpdateDatabaseselfModelChanges<>()
------------------------------------------------------------------------------------------------------------------------------------------
--------------
49. which statements are true about the max constant in a varchar type ?
select one:
a. It can be used when the data can exceed more than 8000 characters---------------------------------------------
-----ANS
b. it can be used to fix the max length of characters for the entire column-----------------------------------------
--ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.AUTO
b.None
c.False
d.True---------------------------------------------------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one :
a.App_Data
b.App_Start-------------------------------------------ANS
c.Content
d.Filter
------------------------------------------------------------------------------------------------------------------------------------------
--------------
52.Rafael is a new developer and the manager has told him to make the current code less complex.The
current code
Select one:
a.Advice him to use seperate models and controller for each logic and store it in new database
b.Advice him to use partial views and create custom Html helpers to make the ocde readable and less
croeded of all the things in one place.---------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.System Transaction-------------------------------------------ANS
b.SqlTransaction
c.EntityTransaction
------------------------------------------------------------------------------------------------------------------------------------------
--------------
54.Which of the following statements are true about varbinary data type?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Create partition function to specify how a table or index that uses the function can be partitioned-------
------------------------------------ANS
b.Create partition function to specify the placement of the partitions of a partition function on
filegroups
c.Create partition Schema to specify the placement of the partitions of a partition function on
filegroups------------------------------------------ANS
d.Create partition Schema to specify how a table or index that uses the function can be partitioned
c.The file must reside on one of the following devices: the local server on which SQL Server is installed,a
Storage
d.The path specified must exist on the drive prior to creating the database--------------------------------------
Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
57.find the correct code to execute sql raw query in the entity frameqwork from the following
select one:
b.none of these
{
varstudentlist = ctx.students.sqlquery("select*from student").tolist<student>();-----------------------
--------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.-------------------------------------------ANS
<p id-"sample"></p>
<script>
document.getElementById("sample").innerHTML=d.toDateString();
</script>
b.
<p id-"sample"></p>
<script>
document.getElementById("sample").innerHTML=b.toDateString();
</script>
c.
<p id-"sample"></p>
<script>
document.getElementById("sample").innerHTML=d.toDateString();
</script>
d.
<p id-"sample"></p>
<script>
var d= new Date();
document.getElementById("sample").innerHTML=d.toDate();
</script>
------------------------------------------------------------------------------------------------------------------------------------------
--------------
59.Which of the following is issued to obtain a configuration object for a given property in Fluent API?
Select one:
a.ToTable()
b.HasKey()
c.HasDatabaseGeneratedOption()
d.Property()-------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.CreateDatabaseIfNotExists----------------------------------ANS
b.MigrateDatabaseToLatestVersion
c.CustomDBinitializer----------------------------------ANS
d.AlterDatabasewithchanges
*************************************************************************************
************************************************
arjun
Entity Framework supports three ways to load related data -
shown in this topic apply equally to models created with Code First and the EF Designer.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.Eager Loading
b.Lazy Loading
c.Explictly Loading
d.All -----------------------------------------------------------------------------ANS
59.if stored procedure returns complex type that is only on conceptual model and not in databse table
ans:complex
------------------------------------------------------------------------------------------------------------------------------------------
--------------
58.George wants to make the appearence of his site better.He wants to show an image when a
"divhello" result takes time to display
select one
a.[[email protected](Ajax.Options())
UpdateTargetId="div-hello",Httpmethod="GET",LoadingElementId="divloadingimage"
} )...]
b.[[email protected]("Hello","Hello",new Ajax.Options())
UpdateTargetId="div-hello",Httpmethod="GET",LoadingElementId="divloadingimage"
} )...]
c.[[email protected]("Hello","Hello",new Ajax.Options())
UpdateTargetId="divhello",Httpmethod="GET",LoadingElementId="divloadingimage"
} )...]-------------------------------------------------------------------------------------------------------ANS
d.[[email protected](Ajax.Options())
UpdateTargetId="divhello",Httpmethod="GET",LoadingElementId="divloadingimage"
} )...]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.true
b.false...............ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one
a.object.GetService(
Type serviceType
b.object GetService(
Type serviceType
)-----------------------------------------------------------------------------ANS
c.object GetService(
object.serviceType
)
d.object GetService(
Type.serviceType
------------------------------------------------------------------------------------------------------------------------------------------
--------------
ans:true
so that the same content does not need to be generated each time the same controller method is
invoked
------------------------------------------------------------------------------------------------------------------------------------------
--------------
ans:true
------------------------------------------------------------------------------------------------------------------------------------------
--------------
52.which of the following method is used to get correct type for the specified target role in a
relationship in the class relationshipmanager?
select one:
a.GetRelated End---------------------------------------------------ANS
b.getRelatedCollection
c.GetObjectstateEntries
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
51.Which of the following is the full form of CSDL ?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
50.How can we get the single employee name when there are many employees whose name is "John" in
the database?
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.The query-------------------------------------------------ans
(https://technet.microsoft.com/en-us/library/ms190623(v=sql.105).aspx)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.POCO entity------------------------------------------------------------ANS
c.DbContext
d.ObjectContext
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.It returns the rank of each row in the table within the partition of a database.----------------------------------
--ANS
b.The rank of a row is equal to the number of ranks that come before the row in question.
c.The rank of a row is one plus the number of ranks that come before the row in question--------------------
-----ANS
e.The Rank function does not always return consecutive integers. ---------------------------------------------------
----------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
46.LINQ to XML is based on in-memory XML programming interface.
Select one:
True----------------------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
45.What are the conditions for assemblies created by using EXTERNAL ACCESS permission sets?
b.the assesmbly should contain only static data members in its classes unless they are marked as read-
only
d.the classes or methods of the assesmbly should be annotated only with allowed
codes attributes------------------ANS
(https://msdn.microsoft.com/en-us/library/ms189524.aspx)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.Root web
b.IIS
Select one:
a.Materialization is the process of returning query results back to the client as entity types.
b.Materialization is the process of returning query results back to the client as CLR types.---------------------
----------ANS
c.Materialization is the process of returning queries back to the client as CLR types.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.Remove packageName
b.Delete package
------------------------------------------------------------------------------------------------------------------------------------------
--------------
41.You need to write a view to show Hi!"username" If user is authenticated display signoff link & sign in
link for anonymous user.
Select one:
a.<%if(Request.IsAuthenticated){Hi!<%=Html.Encode(page.User.Identity.Uname)%>[<%=Html.ActionLin
k("SignOff","SignOff","Account")%>]<%}else{%>[<%=Html.ActionLink("Sign In","Sign
In","Account")%>]<%}%>-------------------------------------------------------------------------------------------ANS
b.<%{Hi!<%=Html.Encode(page.User.Identity.UName)%>[<%=Html.ActionLink("Sign Off","Sign
Off","Account")%>]<%}else{%>[<%=Html.Action.Link("Sign in","Sign in","Account")%>]<%}%>
c.<%(user=Authorize){Hi!<%=Html.Encode(page.User.Identity.UName)%>[<%=Html.ActionLink("Sign
Off","Sign Off","Account")%>]<%}else{%>[<%=Html.ActionLink("Sign in","Sign in","Account")%>]<%}%>
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a) "a"
b) "=>"-----------Ans
c) " "
d) "@"
------------------------------------------------------------------------------------------------------------------------------------------
--------------
ans:true
Note:Detached is the default state of a newly created entity because the context can’t track the creation
of any object in your code.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a) Returns the rank of rows within the partition of a result set, without any gaps in the ranking---------
Ans
b) The rank of a row is one plus the number of distinct ranks that come before the row in question-------
--Ans
c) Returns the rank of each row within the partition of a result set
d) The rank of a row is one plus the number of ranks that come before the row in question
37.You are given a task by your manager that include assembly binding??
ans:Machine.Confing
Note: Machine.config contains configuration settings for machine-wide assembly binding, built-in
remoting channels, and ASP.NET.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a) Updates a package----------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
35) On what conditions can you perform concurrent online index operations on the same table?
e) Reorganizing different indexes while rebuilding nonoverlapping indexes on the same table---------------
-ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a) context.ContextOptions.Enabled=false
b) context.ContextOptions.Proxy=false
c) context.ContextOptions.ProxyEnabled=false
d) context.ContextOptions.ProxyCreationEnabled=false----------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a) it is a mechanism that can make a remote client call in order to validate a form field without passing
the entire form to the server
d) A mechanism that can make a remote server call in order to validate a form field without posting the
entire form to the server------------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
32) Which of the following is the CORRECT option for Model First approach?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
31) Which of the following are the properties of the HTTPConfiguration class?
a) Message Handlers----------Ans
b) Comparer
c) Stack Tree
d) Dependency Resolver--------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a:Business Logic..............ans
b:Data Logic..................ans
c:Session Logic...............ans
d:Validation Logic............ans
Note:The model is where the domain-specific objects are defined. These definitions should include
business logic (how objects behave and relate),
validation logic (what is a valid value for a given object), data logic (how data objects are persisted) and
session logic (tracking user state for the application).
------------------------------------------------------------------------------------------------------------------------------------------
--------------
d)none
Note: You can apply NotMapped attribute to a property which you do NOT want to create a column in a
database table for.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)all server
b)with encryption
c)execute as--------------ans
d)instead of
------------------------------------------------------------------------------------------------------------------------------------------
--------------
ii.Eager Loading
iii.Deferred Loading
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
25.Which of the following two are name types of SQL Server Files? (//hold)
a: Physical_File_name
b: Logical_file_name ......................ans
c: Primary_File_Name
d: Os_File_Name ...........................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
23)which of the following options are true about temp. stored procedures
with respect to performance?
b:Heavy use of temporary stored procedures can create contention on the system tables in tempdb
and adversely affect performance........ans
e:sp_executesql discard data in the system tables and therefore avoids the problem............ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
true..................ans
false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one
a:Added
b:Deleted
c:Modified
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one
a. An entity is a property or a set of properties of an entity type that are used to determine identity.------
------------------ans
b. An entity is a property or a set of properties of an entity type that are used to determine the column
for searching index
c. An entity is a property or a set of properties of an entity type that are used to identify relationship
among the entities
d. All of the listed options
------------------------------------------------------------------------------------------------------------------------------------------
--------------
19.Read the following definition and choose the correct option. -->Contains methods to create types of
objects locally or remotely ,or obtain references to existing remote objects.
select one
a:Activator................ans
b:Validator
c:ModelBinder
d:Dependency Resolver
------------------------------------------------------------------------------------------------------------------------------------------
--------------
18.You need to perform an arithmetic operation in Razor view. which of the following will accomplish
the task?
a. "@[value][arithmatic operator][value]"
b. "@;([value][arithmatic operator][value])"
c. "@:([value][arithmatic operator][value])"
d. "@([value][arithmatic operator][value])"-------------------------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. ability to transform the result of a query into XML on the client side ---------------------------------------------
----------------ANS
b. ability to create an XML view of relational data bye using an annotated XSD mapping schema file-------
------------------------------------------------------ANS
e. ability to expose functionality offered by stored procedures, user-defined functions, and template
queries as SOAP-based web services-------------------------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
return View();
Select one:
a. Both I and II
b. II only
d. I only-------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
15.In which of the following conditions one should go for partitioning table
a.table contain large amounts of data that are used in different ways.-----------------------------------ans
c.Queries or updates against the table are not performing as intended, or maintenance costs exceed
predefined maintenance periods.....ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
14.which of the statement are true about DATABASE argument of the create trigger statement
c.The trigger fires whenever new record is inserted in table in current database
d.The trigger fires whenever record is deleted from table in current database.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
13.which of the following method is used to change relationship state of two entity object
a.ChangeRelationship
b.ChangeRelationshipState--------------------------ANS
c.ChangeRelation
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.Config.config
b.Global.aspx
c.Web.config..................ans
d.Packages.Config
Note:ASP.NET configuration data is stored in XML text files that are each named Web.config.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.onlt I
b.only II
d.neither I or II
------------------------------------------------------------------------------------------------------------------------------------------
--------------
10.Entity Framework____________________ all data before storing it to the database by default ,using
valiadtion method.
b.Validates ..........ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
7.Whhich of the following method in Entity type configuration is used to configure an optional
relationship?
a.HasOptional..........ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
6.what are the different classes into which sql server divides principals?
ans:a,c,d
------------------------------------------------------------------------------------------------------------------------------------------
--------------
4.___________ allows you to store and retrieve values using object-property syntax rather than key-
value syntax used by dictionary object.
a.ViewBag.................ans
b.Tempdata
c.viewindex
d.ViewData
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one
a.Fluent API....................ans
b.EntityModel
c.Web.Config
------------------------------------------------------------------------------------------------------------------------------------------
--------------
1.What provides the ability to asynchronously exchange data between a web browser and a web server?
select one
a.XMLHttpRequest.................ans
b.XSLHttpRequest
c.CSSHtmlRequest
d.XMLHtmlRequest
*************************************************************************************
********************************************************************************
gokul-1st attempt
(Gokul)
1.You are given a task to make the current from secure such that it can be prevented cstf.Which of the
following will be helpful?
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
c.If the statemnt falls with an error the trigger is not executed...............................ans
d.AFTER triggers cannot be specified for tables,they can only be specified foe views
e.AFTER triggers cannot be specified for views,they can only be specified foe tables...................ans
ANS:a,c,e
Select one:
True--------------------------------------------------------------------------------------------ANS
false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
4.How can the execution plans of queries on partitioned tables and indexes be examined?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.I only
b.II only
------------------------------------------------------------------------------------------------------------------------------------------
--------------
6.public void TestDate()
AssertAreEqual(distance,message.z);
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one;
True--------------------------------------------------------------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.modelBuilder.Entity<Blog>().MapStoredProcedures();
b.modelBuilder.Entity<Blog>().MapToStoredProcedures();--------------------------------------------------------------
--------------------ANS
c.modelBuilder.Entity<Blog>().ToStoredProcedures();
d.modelBuilder.Entity<Blog>().StoredProcedures();
------------------------------------------------------------------------------------------------------------------------------------------
--------------
11) Which of the following is true for DB initialization in config file
ANS
value="System.Data.Entity.DropcreateDatabasealways'1[[BlogdataLayer.BlogDBContext,BlogdataLayer]]
,EntityFramework"/>
</appSettings></configuration>
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Navigation properties provide a way to navigate an association betwwen two entity types
Every object can have a navigation property for every relationship in which it participates
Navigation properties allow you to navigate and manage relationship in both directions,
returning either a reference object or a collection
------------------------------------------------------------------------------------------------------------------------------------------
--------------
14) How is a user defined table valued function in select insert update or delete statements is invoked?
a user defined table valued function can be invoked in the from clause of a select, insert, update
and delete statement------------ANS
a user defined table valued function can be invoked as a stored procedure from a select, insert,
update and delete statement
a user defined table valued function can be invoked in the where clause of a select, insert,
update and delete statement
a user defined table valued function can be invoked in the using clause of a select, insert, update
and delete statement
------------------------------------------------------------------------------------------------------------------------------------------
--------------
15) Entity framework supports automatic change tracking of the loaded entities during the life time of
the conext.
true-----------------------------ANS
false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Secondary
Primary------------------ANS
User-defined-------------ANS
Hidden
------------------------------------------------------------------------------------------------------------------------------------------
--------------
they are implemented as public static ,methods on a class in a .net framework assembly-----------
-------ANS
they atre implemented as private protected methods on a class in a .net framework assembly
------------------------------------------------------------------------------------------------------------------------------------------
--------------
18) You are working on a web application and for a particular small operation it is loading the whole
page. Which of the following technology will you adopt to improve the functionality
AJAX-------------------------ANS
C++
sharepoint
selenium
------------------------------------------------------------------------------------------------------------------------------------------
--------------
19) Which of the following methods make entity framework for detecting changes automatically?
DbSet.Find
DbSet.remove
DbSet.Attatch
------------------------------------------------------------------------------------------------------------------------------------------
--------------
20) Which exception will raise when you define an Entity Data Model that uses stored procedures to
make updates to the data source
OptimisticException
ConcurrencyException
OptimisticConcurrencyException
------------------------------------------------------------------------------------------------------------------------------------------
FALSE
TRUE----------ANS
NONE
AUTO
------------------------------------------------------------------------------------------------------------------------------------------
--------------
22) Which of the following will render carinfo object stored in viewbag to a view
<p>---------------------------------------------- ANS
</p>
------------------------------------------------------------------------------------------------------------------------------------------
--------------
23) Problem statement:- peter is a web developer and has created website in ASP>NET MVC# using
razor view. people were giving feedback on his site without goignthrough the products details page.
they were navigating to the feedback page by
------------------------------------------------------------------------------------------------------------------------------------------
--------------
HtmlUtility.Httpcode
HttpUtility.HtmlEncode---------------------------ANS
HttpUtility.Htmlcode
HtmlUtility.XmlEncode
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
41. You are given a task by your manager that includes assembly binding.Which file would you
configure?
select one:
a.System.config
b.web.config
c.Machine.config-----------------------------------ANS
d.Config.config
------------------------------------------------------------------------------------------------------------------------------------------
--------------
42.
Unchanged state is the default state for an entity while the entity is retrived from the database
a.True-----------------------------------------------ANS
b.False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
d.Each row can hold fixed number of characters as defined by max length.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
44.Which action result typewill return a temporary redirect(HTTP 302 sattus code) or a permanent
redirect(HTTP 301 status code),depending on a boolean parameter?
select one:
a.HttpStatusCodeResult
b.HttpRedirectResult
c.HttpNotFoundResult
d.RedirectResult------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.true
b.False----------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
46.______________is an XML -based language which describes the entities ,functions and relationships
which create a conceptual model of a application.
select one:
d.None of above
------------------------------------------------------------------------------------------------------------------------------------------
--------------
47. Which statements are true about the max constant in a varchar type?
a.It can be used when the data can exceed more than 8000 charactes.---------------------ans
b.it can be used to fix the max length of charactes for the entire column---------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.true---------------------------------------ANS
b.False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
49.Which of the package can be used to write an implementation for ASP.NET identify that targets
different persistence store such as Azure Table Storage,NoSql database etc.
a.Microsoft.AspNet.Identity.Core---------------------------------------------------ANS
b.Microsoft.AspNet.Identity.EntityFramework
c.Microsoft.AspNet.Identity.OWN
d. Microsoft.AspNet.Identity.Security
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.Context.Configuration.AutoDetectChangesEnabled=false;------------------------------------ANS
b.Context.Configuration.AutoDetectChangesdisabled=false;
c.Context.Configuration.AutoDetectChangesEnabled=true;
d.Context.Configuration.AutoDetectChangesdisabled=True;
------------------------------------------------------------------------------------------------------------------------------------------
--------------
i.The CompiledQuery class provides compilation and caching of queries for reuse
iii.Once the query is compiled you can supply parameters of primitive type but you cannot replace parts
of the query that would change the generated SQL
a.i and ii
------------------------------------------------------------------------------------------------------------------------------------------
--------------
i.ViewData
ii.TempData
a.i only
b.ii only
53)Which of the following snippet creates database in local sql express by default?
public Context():base()
{
}
public SchoolDBContext():base("name=EduDB")
a.i and ii
------------------------------------------------------------------------------------------------------------------------------------------
--------------
54)Which of the following code snippets is correct for an entity Post having relationship with Blog?
a.modelBuilder.Entity<Post>().HasRequired(p=>p.Blog)------------------------Ans
b.modelBuilder.Entity<Post>().NeedRelationship(p=>p.Blog)
c.modelBuilder.Entity<Post>().Required(p=>p.Blog)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.CreateDatabaseIfNotExists--------------------------Ans
b.DropCreateDatabaseIfModelChanges-------------------Ans
c.DropDatabaseAlways
d.DropCreateDatabaseAlways---------------------------Ans
e.CreateDatabaseAlways
------------------------------------------------------------------------------------------------------------------------------------------
--------------
57)What are the different classes into which the SQL Server divides principals?
a.Windows-level principal-----------------------------Ans
b.Field-level principal
c.Database-level principal-----------------------------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b.An entity key is a property or a set of properties of an entity type that are used to determine the
column for searching index
c.An entity key is a property or a set of properties of an entity type that are used to identify relationship
among the entities
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.True---------------ans
b.False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Server-------------------Ans
b.Client
c.Database------------------Ans
d.Schema---------------------Ans
*************************************************************************************
*************************************************************************************
*************************************************************
HEMANT
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
4.which of the following will render carinfo object stored in VIewBAg to a view?
select one
a.<p>
</p>
b.<p>
</p>
c.<p>
</p>---------------------------------ans
d.<p>
</p>
5.As good practice what should you follow to prevent XSS attacks?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.It is a process by which you override the state and client information over multiple requests for the
same pages.
b.It is a process which you override the state and page information over single functional calls for the
same controller
c.It is a process by which you maiintain the client and server information over multiple requests for the
same or different pages
d.It is a process by which by whoch you maintain the state and page information over multiple requests
for the same or different pages------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
II.Related objects(child objects)are not loadede automatically with its parent object until they are
requested.
Select one:
a.I only-----------------ans
b.None
c.Both I and II
d.II only
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.In user-defined function the default parameter is specified with a DEFAULT keyword---------------ans
b.In user-defined function omitting the parameter also implies default value
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I.View
II.Partial View
III.Semi-Partial View
select one:
d.I,II,III
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. A non-determiinstic function always returns the same result when it is called with a specific set of
input parameters
b.A deterministic function always returns the same result when it is called with a specific set of input
parameters-----------------ans
c.A non-deterministic function always returns the different results when it is called with a specific set of
input parameters--------------ans
d.A deterministic function always returns the different results when it is called with a specific set of
input parameters
------------------------------------------------------------------------------------------------------------------------------------------
--------------
19.Which of the following option is Correct to turn off lazy loading for all the entities for BLogging
Context?
select one:
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
20.Which method in MOdelBuilder make sure that entity should have relationship with other entity?
select one:
a.Required
b.NeedRelationship
c.HasRequired---------------ans
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. Timestamp-------------------ans
b. Model
c. ConcurrencyCheck------------------ans
d. Entity
------------------------------------------------------------------------------------------------------------------------------------------
--------------
24.Which of the following statement is used to fetch an entity using composite key ?
select one:
a.Context.MYDbSetTableEntity.Find(key1,key2)-----------------------ans
b.Context.MYDbSetTableEntity.Take(key1,Key2)
c.context.MyDbSetTableEntity.Include(key1,key2)
d.context.MyDbSetTableEntity.GetEntity(obj)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Stack Tree
b.Dependency Resolver---------ans
c.Message Handlers----------ans
d.Comparer
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
c.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
28.ObjectContext is a class.
true----------ans
false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
29.Using which system Storeprocedure the administrator will register the extended stored procedure
DLL to the SQL server?
select one:
a.sp_ActiveDirectory_obj
b.sp_addextendedproc----------ans
c.sp_addlinkedsrvlogin
d.sp_addlinkedserver
------------------------------------------------------------------------------------------------------------------------------------------
--------------
True------------ans
FAlse
------------------------------------------------------------------------------------------------------------------------------------------
--------------
31.What type of authentication accepts login credentials that will be checked against the domain or
local server and are sent in a hashed format?
select one:
a.BAsic Authentication
b.Digest Authentication-------------------ans
c.Forms Authentication
d.Windows Authentication
d.All
------------------------------------------------------------------------------------------------------------------------------------------
--------------
32.which of the following class provides you important methods to configure entities and its properites
to override various code-first conventions?
select one
a.EntityCOntext
b.EntityTypeCOnfiguration---------------ans
c.DBCOntext
d.ObjectContext
------------------------------------------------------------------------------------------------------------------------------------------
--------------
True ----------------------------------ANS
FAlse
------------------------------------------------------------------------------------------------------------------------------------------
--------------
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
36.In COnceptual model,which of the following defines relationship between two entity types?
select one:
a.Entity
b.Association----------------ans
c.Object
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.Needed
b.required------------------ans
c.Unique
d.Key
39.which of the following loads the related data inscalaar and navigation properties along with query
result at first shot ?
select one :
a.LAzy Loading
b.Eager Loading------------------ans
c.Explicitly Loading
d.Dynamic Loading
------------------------------------------------------------------------------------------------------------------------------------------
--------------
42.which class is used to execute an Entity SQL COmmand against an entity mode ?
select one
a.EntityCommand-------------ans
b.EntityCOnnection
c.SqlCOmmand
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
43.which statement are true about an inline scalar function?
b.The function body defined in BEGIN ...END block contains a series of T-SQL statements
------------------------------------------------------------------------------------------------------------------------------------------
--------------
45.To enable globalization ,whcih of the following parameters are set in auto mode?
a.Languge
b.Culture------------ans
c.Localization
d.Uiculture-----------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
46.which of the following advantage does a strongly typed view have ?
select one:
a.Run time
b.Intellisense---------ans
c.faster buffering
d.loading
------------------------------------------------------------------------------------------------------------------------------------------
------------
selct one:
a.Locating the appropriate action method to call and validating that it can be called
c.Handling all errors that might occur during the execution of the action method
d.All------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
51.Choose a unit test to check whether the partcipant A1 has covered half distance of total.
Select one
a.
[TestMethod]
int total_distance=2;
int distance_covered=10;
int distance_left=10;
d1.covered(distance_covered);
int left=d1.remaining;
Assert.AreEqual(distance_left,left); -----------------ans
b.
[TestMethod]
int total_distance=2;
int distance_covered=10;
int distance_left=10;
d1.covered(distance_covered);
int Left1=d1.remaining;
Assert.AreEqual(distance_left.left);
c.
[TestMethod]
int total_distance=2;
int distance_covered=10;
int distance_left=10;
d1.covered(distance_covered);
int Left1=d1@remaining;
Assert.AreEqual(distance_left.left);
------------------------------------------------------------------------------------------------------------------------------------------
--------------
PRINT @odetails.ToString();
d.The operator provides access to public non-static memebers of acompind data type
------------------------------------------------------------------------------------------------------------------------------------------
--------------
56.Which of the following model is the design model to include tables,stored procedures,views,keys and
relatonship?
Select one:
a.Mapping
b.Conceptual----------------------ans
c.Storage
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.Object -------------ans
b.Property
c.data
d.File
------------------------------------------------------------------------------------------------------------------------------------------
--------------
58.Which of the following method of the ObjectStateManager is used to get Object State entry?
Select one:
a.TryGetObectStateEntry-------------ans
b.ChangeObjectState
c.GetRelationshipManager
d.ChangeRelationshipState
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.CreateDatabaseIfNotExists----------------ans
b.MigrateDatabaseToLatestVersion
c.CustomDBInitializer--------------ans
d.AlterDatabasewithchanges
*************************************************************************************
******************************************************************************
MATHI
1) Which namespace is used to include NET data provider for SQL server?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
2) When you execute user-defined functions that return scalar values, hw are the parameters specified?
d)If parameter names are specified,the argument values do not have to be in the same sequence as the
parameters.........ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)HTMLSerializationLibrary---------------------Ans
b)CSRFLibrary
c)AntiXSSLibrary---------------------Ans
d)SecurityLibrary---------------------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b.The function body defined in BEGIN...END block contains a series of T-SQL statements...........ans
d.The scalar value is a result of all the statement in the BEGIN..END block...........ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
=> True-----Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
7.You are given a task by manager to restrict the user to enter the surname which shall not be more
than 15 characters.How you will achieve this?
Select one:
a.
[StringLength(15)]
b.
[StringLength(15)]
c.
[Length.String.Sname(15)]
d.
[Length.String.Sname(15)]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
=> True------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
9.You are handling page event.Now the content and information you have cached so that it is loading
quickly but you need to keep the clock which shoes time for the event dynamic.
Select one:
a.<% DateTime(t.now);%>
b.<%Response.writeSubstitution(t=>DateTime.Now.ToLongTimeString());%>.................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
10)Database model provides the normalized schema designed by the database administrator
=> True-------Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
.SCHEMA-NAME(schema_id) AB schema_name
.type-desc
.create_date
.modify_date
c.It returns all database objects that have been modified in the last 10 years
d.It returns all database objects that have been newly added in the last 10 days................................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.
select stu
b.
select Students
c.
d.
select Students
------------------------------------------------------------------------------------------------------------------------------------------
--------------
=> Localization is the process of = Adapting a global product for a particular language and country---Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
14.which of the package can be used to write an implementation for ASP.NET Identity that targets
different persistence stores such as Azure Table Storage, NoSQL databases etc..,?
Select one:
a.Microsoft.AspNet.Identity.OWIN
b.Microsoft.AspNet.Identity.Core...................ans
c.Microsoft.AspNet.Identity.Entityframework
d.Microsoft.ASPNET.Security
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b.It creates a column of type int in the table & sets it as a primary key.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
c.If the statemnt fails with an error the trigger in not executed...............ans
d.AFTER triggers cannot be specified for tables,they can only be specified for views.
e.AFTER triggers cannot be specified for views,they can only be specified for tables..............ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
18.Which of the following annotation is used to mark one or more properties to be used for concurrency
checking while user modifies in an entity?
Selct one:
a.ConcurrencyCheck..................................ans
b.DatabaseCheck
c.EntityCheck
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.CreateDatabaseIfNotExists.....................ans
b.MigrateDatabaseToLatestVersion
c.CustomDBinitializer......................ans
d.AfterDatabasewithchanges
------------------------------------------------------------------------------------------------------------------------------------------
--------------
20.When foreign key columns are not included in the model, the association information is managed as
an independent object.
Slect one:
True......................ans
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)ability to transfor the result of a query into XML on the client side........................ans
b)ability to create an XML view of relational data by using an annoted XSD mapping schema
file..............ans
d)Ability to expose functionality offered by stored procedures, user defined and template queries as
SOAP based web service..............ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
c)hidden files
d)log files................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a)key dependency
b)file dependency
c)data dependency
d)SQL dependency...................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a)eager loading is the process where by a query for one type of entity also loads .................ans
b)eager loading is the process where by a query for one type of entity also loads
c)eager loading is the process of query only the details mapped in the entity
d)none
------------------------------------------------------------------------------------------------------------------------------------------
--------------
25)savechanges() will be raised exception when which of the following object is added to the
ObjectContext and it cannot be successfully created in
Select one:
a)DbException
b)SaveException
C)ChangeException
D)UpdateException...............................................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
26)Which of the following statements are true about the DATABASE argument of the CREATE TRIGGER
statement?
b.The trigger fires whenever event_type or event_group occurs in the current database.---------Ans
c.The trigger fires whenever a new record is inserted in tables of the current database.
d.The trigger fires whenever a records are deleted from the tables in the current database.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
27)Which of the following property allows to navigate from one end to other end association?
Select one:
a.Navigation----------------------------Ans
b.Select
c.Update
------------------------------------------------------------------------------------------------------------------------------------------
--------------
28)Which of the following is used to provide short expression for querying entities over linq?
Select one:
a.LINQ to DataSet
b.LINQ to SQL
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Rolls back an implicit transaction to the beginning of the transaction,or to a savepoint inside the
transaction----------------------Ans
b.Rolls back an explicit transaction to the beginning of the transaction,or to a savepoint inside the
transaction----------------------Ans
c.It caches all data modifications&then erases from the start of the transaction or to a savepoint
d.It erases all data modifications made from the start of the transaction or to a savepoint--------------------
------------------------Ans
e.It reverses all the modifications made before the COMMIT TRANSACTION statement
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.Materialization is the process of returning query results back to the client as entity types.
b.Materialization is the process of returning query results back to the client as CLR types.----------Ans
c.Materialization is the process of returning queries back to the client as CLR types.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Returns the rank of rows within the partition of a result set,without any gaps in the ranking---------------
Ans
b.The rank of a row is one plus the number of distinct ranks that come before the row in question---------
----Ans
c.Returns the rank of each row within the partition of a result set
d.The rank of a row is one plus the number of ranks that come before the row in question
------------------------------------------------------------------------------------------------------------------------------------------
--------------
32)Whenever a user searches for a product on the web page,user should get a list of products and only
that particular portion of the web page should
get updated and the whole page should not be refreshed.Which of the following will help you to achieve
this?
Select one:
.Where(p=>p.Name.StartsWith(query)||query==null).OrderByDescending(p=>p.Price).Take(10).Tolist();}
b.if(Request.IsAjaxRequest()){return PartialView("productTable",products);}return
View("Index",products);
c.<% using(Ajax.BeginForm("Index","Product",new
AjaxOptions{HttpMethod="GET",UpdateTargetId="product Table"})){%><input
type="text"name="q"/><input type="submit"value="Search"/><%}%>
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
34)Which statements are true about the max constant in a varchar type?
a.It can be used when the data can exceed more than 8000 characters---------------------------------------------
--------ANS
b.It can be used to fix the max length of characters for the entire column------------------------------------------
----ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
37.WCF means__
d. windows communicationFoundation
38.you are given a task by manager to check whether the given request routes to the index action of
product controller. which of the following snippets which can be helpfull?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. stringlength--------------------------ANS
b.required--------------------ANS
c.compare
d.range
------------------------------------------------------------------------------------------------------------------------------------------
--------------
40.which of the following code can be used as an option for partial view through child request?
a. [email protected] ("sample_one","Feedback")
part2 = [ChildAction]
{*..somecode..*}
b. [email protected] ("sampleone","Feedback")
part2 = [ChildActionOnly]
{*..somecode..*}
c. [email protected] ("sample_one","Feedback")
part2 = [ChildActionOnly]
{*..somecode..*}
d. None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I.client wins and store wins are actions which are used when concurrency happens
II. in client wins the data from the server is loaded in to your entity objects.
III. in storre wins data from the entity object is saved to the database.
select one
a.I and II
c.only I--------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
42)We can write raw sql query in SQLQyery() method in entity framework
=> True----Ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
43.in a conceptual model which of the following are makeup from properties and define the structure of
top-level concepts?
select one.
a. object
b. database
d. none
------------------------------------------------------------------------------------------------------------------------------------------
--------------
d. none listed.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
45. which template is used in entity framework to generate code in C# by reading .edxm file?
a. C# template
b. T4 template---------------------------------ANS
c. XML template
d. none
------------------------------------------------------------------------------------------------------------------------------------------
--------------
46.What are the steps for creating partition tables & indexes?
a.Create a partiton function to specify how a table or index that uses the function can be partitioned-----
------------------------------------ANS
b.Create a partiton function to specify the placement of the partitions of a partition function on
filegroups
c.Create a partiton scheme to specify the placement of the partitions of a partition function on
filegroups----------------------------------ANS
d.Create a partiton scheme to specify how a table or index that uses the function can be partitioned
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
II.Testable
Select one :
a.I only
b.II only
d.Both I and II
------------------------------------------------------------------------------------------------------------------------------------------
--------------
50.which of the following are the CORRECT code snippets to insert data into Employee Table using EF?
Select one:
objEmp.HREmpId = txtHREmpId.Text;
objEmp.Firstname = txtFirstName.Text;
objEmp.Lastname = txtLastName.Text;
objEmp.Address = txtAddress.Text;
objEmp.City = txtCity.Text;
db.Employees.AddObject(objEmp);db.InsertChanges();
objEmp.HREmpId = txtHREmpId.Text;
objEmp.Firstname = txtFirstName.Text;---------------------------------------------ANS
objEmp.Lastname = txtLastName.Text;
objEmp.Address = txtAddress.Text;
objEmp.City = txtCity.Text;
db.Employees.AddObject(objEmp);db.SaveChanges();
objEmp.HREmpId = txtHREmpId.Text;
objEmp.Firstname = txtFirstName.Text;
objEmp.Lastname = txtLastName.Text;
objEmp.Address = txtAddress.Text;
objEmp.City = txtCity.Text;
db.Employees.AddObject(objEmp);db.acceptChanges();
------------------------------------------------------------------------------------------------------------------------------------------
--------------
d.To create a partition function,you must specify the numbers of partitions, the partitioning rows & the
number of constraints for each partition.---------------ANS
e.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
52. Jameson is using a real estate website for Manhattan. He is getting the name of builders quickly
while for New York it takes time.What property of caching should be used here?
Select one:
b. Use of VaryByCustom
c. VaryByControl
d. None
Select one:
a. #
b. $
c. %
d. @--------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
54. Fredrick is carrying out a TDD and is expecting ArgumentOutOfRange exception but he does not
know how to write a code to declare that an exception is expected.
Select one:
a. [Exception.Expected=ArgumentOutOfRange]
b. [ArgumentOutOfRangeException.Expected]
c. [ExpectedException(typeOf(ArgumentOutOfRangeException)]----------------------ANS
d. [ArgumentOutOfRange.Expected=True]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
55.How can we remove pluralization in entities?
Select one :
a.modelBuilder.Conventions.Remove<PluralizingTableNameConvention>()----------------------------------------
--ANS
b.context.Conventions.Remove<PluralizingTableNameConvention>()
c.modelBuilder.Conventions.Remove<TurnOffPluralizingTableNameConvention>()
d.modelBuilder.Conventions.Remove<PluralizingTableNameEntity>()
56.JAson is tryin gto access APP Settings of "SampleserverA"& he accidentally wrote this. Var server
=ConfigurationMAnager.AppSettings["SampleServer"];
Select one:
d.All
------------------------------------------------------------------------------------------------------------------------------------------
--------------
57.You are given a task by the manager to show the list of products from product repository .
you have wriiten a code and now you are testing whether it is showing or not.
select one:
}.AsQueryable();
repository.Setup(p=>p.FIndAll()).Returns(products);
var b = controller.Index().ViewData.Model
as
IENumerable<Products>Assert.IsTrue(products.SequenceEqual(B));
{
new Product {Title="Samsung"},new Product {Title="Apple"}
}.AsQueryable();
repository.Setup(p=>p.FIndAll()).Returns(products);
var b = controller.Index().ViewData.Model
as IENumerable<Products>Assert.IsTrue(products.SequenceEqual(b));
}.AsQueryable();
repository.Setup(p=>p.FIndAll()).Returns(products);
var z = controller.Index().ViewData.Model
as
IENumerable<Products>Assert.IsTrue(products.SequenceEqual(z));
d.none
------------------------------------------------------------------------------------------------------------------------------------------
--------------
58.AJAX helper Class exist in which namespace?
select one:
a. System.net.MVC
b. System.Web.MVC3
c. System.MVC
d. System.Web.MVC-----------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one
a. Context.ContextOptions.Enabled=False;
b. Context.ContextOptions.Proxy=False;
c. Context.ContextOptions.ProxyEnabled=False;
d. Context.ContextOptions.Proxy CreationEnabled=False;--------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
60.which of the following id the correct option to get the related subjects count without loading it of the
student name is"vijay" ?
Select one:
*************************************************************************************
*****************************
PRAJAKTA
select one:
c.Entities
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
5.In which of the following the entities and relationships are created on the EDMX design surface?
select one:
c.Database Approach
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.CreateDatabaseIfNotExists
b.DropCreateDatabaseWhenModelChanges
c.DropCreateDataabase Always
d.All-----------------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
8.whenever a user clicks on a product, you have to make sure to ask him/her whether he/she sure about
it or not .
select one :
b. handling all errors that might occur during the execution of the action method.-----------------ans
(https://msdn.microsoft.com/en-in/library/dd410269(v=vs.100).aspx)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
13. what are available database initializers in EntityFramework Code first model?
a. CreateDatabaseifNotExists.
b. DropCreateDatabaseWhenModelCHanges
c. DropCreateDatabaseAlways
------------------------------------------------------------------------------------------------------------------------------------------
--------------
15. which of the following are used to locate the entities at ends of an association in a conceptual
model?
a. Navigation properties-------------------------ans
b. Attributes
c. Index
d. Proxy
------------------------------------------------------------------------------------------------------------------------------------------
--------------
16 and 21(both same options in diff order). which of the following code will provide custom error pages
for 404 errors and general exceptions?
a. <system.web>
<errorstatuscode=”404”redirect=ErrorController.Status404”/>
</customerrors>
</system.web> --------------------------------------------------------------------------------ans
b. <system.web>
<errorstatuscode=”404”redirect=ErrorController.Status404”/>
</customerrors>
</system.web>
<system.webServer>
<httpErrorserrormode=”Detailed”/>
</system.web>
c. <system.web>
<errorstatuscode=”404”redirect=ErrorController.Status404”/>
</customerrors>
</system.web>
<system.webServer>
<httpErrorserrormode=”Detailed”/>
</system.web>
d. <system.web>
<customErrors mode=”RemoteOnly”>
<errorstatuscode=”404”redirect=ErrorController.Status404”/>
<errorstatuscode=”GeneralException”redirect=”Error/GeneralException”/>
</customerrors>
</system.web>
<system.webServer>
<httpErrorserrormode=”Detailed”/>
</system.web>
------------------------------------------------------------------------------------------------------------------------------------------
--------------
22. You want to return a file from the server which method you will use?
a. Display File
c. download file
d. None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
23. which of the followinf are used to locate the entities at the ends of an association in a conceptual
model?
a. Navigation properties---------------------------------------------------------------ans
b. attributes
c. Index
d. Proxy
------------------------------------------------------------------------------------------------------------------------------------------
--------------
25. Which of the following statements are true about AFTER Trigger?
d. AFTER triggers cannot be specified for tables, they can only be specified for views
e. AFTER triggers cannot be specified for views, they can only be specified for tables.------------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
29. Repeated
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. LCN
b. L10N----------------------------ans
c. All
d. LOC-zation
------------------------------------------------------------------------------------------------------------------------------------------
--------------
32.The output cache contains a different version of the requested document for each combination of
specified parameters is applicable for?
select one:
a.VaryByCustom
b.VaryByControl
c.VaryByParam-----------------------------------ans
d.VaryByheader
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.modeBuilder.Entity<Product>().property(p=>p.ID).DirectMap("product_id");
b.modeBuilder.Entity<Product>().property(p=>p.ID)==("product_id");
c.modeBuilder.Entity<Product>().property(p=>p.ID)=("product_id");
d.modeBuilder.Entity<Product>().property(p=>p.ID).HasCoulmnName("product_id");-----------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I. coderush express
a. None
b. II only
c. I only-------------------------ans
d. Both I and II
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b.Handling errors that might occur dring the execution of the action method--------------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a. .rsrcx
b. .srcx
c. .resx---------------------------ans
d. .src
------------------------------------------------------------------------------------------------------------------------------------------
--------------
55. which of the following class provides you important methods to configure entities and its properties
to override various code first conventions?
select one:
a.EntityCOntext
b.EntityTypeCOnfiguration ------------------------ans
c.DBContext
d.ObjectContext
------------------------------------------------------------------------------------------------------------------------------------------
--------------
57.when you are testing the value of variable "a" is not getting set and you need to have value of "a"
before stating of test.
select one:
*************************************************************************************
*************
3.Which of the following statements is used to fetch an entity using composite key?
Select one:
a.context.MyDbSetTableEntity.Find(key1,key2)----------------------------------------------------------------------------
---------ans
b.context.MyDbSetTableEntity.Take(key1,key2)
c.context.MyDbSetTableEntity.Include(key1,key2)
d.context.MyDbSetTableEntity.GetEntityKey(Obj)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
4.While testing,you are using dynamically generated test double.Which type of test double it is?
Select one:
a.Stubs -----------------------------------------------------------------------------------------------------------ans
b.Fakes
d.Mocks
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.System.Data.Entity
b.System.Data.ComponentModel
c.System.Data.Entity.ModelConfiguration.Conventions -----------------------------------------------------------------
----------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
7.What is "ExcuteStoreCommand" method?
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b.A Global temporary procedre is available to all connections with explicit EXECUTE permission.
c.A Global temporary procedure is dropped when the clean-up function is called by the calling
procedure.
d.A Global temporary procedure is dropped at the end of the last session using the procedure.-------------
-------------------------------------------------------ans
e.If a global temporary procedure is created,all users with EXCUTE permissions can access it &
permissions can also be revoked explicitly.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
15.You want a particular section of your site to be accessed by "Admins" only.Which of the following is
the correct option to go about it?
Select one:
a.Allow=Admins
b.Access="Admins"
c.Authorize(Roles=Admins")-----------------------------------------------------------------------------------------------------
-----------------------ans
d.(Authorize="Admins")
------------------------------------------------------------------------------------------------------------------------------------------
--------------
IV.Watch it fail.
Select one:
a.II,IV,I,III----------ans
b.III,I,II,IV
c.IV,I,II,III
d.II,I,IV,III
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.Attach a class library to be executed, whenever an AJAX reqest begins and there is more tahn one
active.
b.Attach a header to be executed,whenever an AJAX reqest begins and there is none already active.
c.Attach a function to be executed,whenever an AJAX reqest begins and there is none already active.----
----------ans
d.Attach a method to be executed,whenever an AJAX reqest begins and there is none already active.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
b.Strong XML Data Generated Using FOR XML with TYPE Directive
Note:The INSERT statement in the following code segment reads the content of file C:\temp\xmlfile.xml
as a BLOB by using OPENROWSET.
A new row is inserted into the table named docs with a value of 10 for the primary key and the
BLOB for the XML column xCol.
A well-formedness check occurs when file content is assigned to the XML column.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I.Multiple entity sets can be defined using the same entity type.
II.An instance of a given type can only exist in one entity set.
III.The entity key for the instance may not unique within the entity set.
Select one:
Note:The entity key for the instance is unique within the entity set.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.ModelBuilder.CreateKey<Entity>(t=>t.keyColumnYouWant);
b.modelBuilder.Entity<Entity>().HasKey(t=>t.keyColumnYouWant);--------------------------------------------------
---ans
c.ModelBuilder.Key<Entity>(t=>t.keycolumnYouWant);
------------------------------------------------------------------------------------------------------------------------------------------
--------------
27.Eager loading is the process of loading related entites/objects.
Select one:
True-----------------------------------------------ans
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
32.You need to install A but it requires B.In this scenario,what will the Nuget download?
Select one:
a.Only A
c.A & B
d.Only B
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
True--------------------------------------------------------------------------------------------true
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
True-------------------------------------------------------------------------------------------ans
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I.n Entity Framework, an entity can be related to other entities through an association(realtionship)
II.Each relationship contains two ends that describe the entity type and the multiplicity of the
type(one,zero-or-more,or many)
Select one:
a.Only I
b.Only II
c.Neither I nor II
------------------------------------------------------------------------------------------------------------------------------------------
--------------
42.Code-First will create the database tables with the name of_________ properties in the context class.
Select one:
a.Entity
b.Oject
c.Model
d.Dbset--------------------------------------------------------------------------------------------------------------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
True-----------------------------------------------------------------------------------------------ans
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
True-----------------------------------------------------------------------------------------------ans
False
Note:By creating web.config file in sub root folders we can use multiple web.config
files in our application but each folder should contains only one web.config file.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.cshtml------------ans
b.csxml
c.csxss
d.csaspx
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.DataAnnontations not only let you describe client and server side validation in your code first classes,
but they also allow you to enchance and
even correct the assumptions that code first will make about your classes based on its conventions.
b.With DataAnnotations you can not only drive database schema generation, but you can also map your
code first classes to a pre-existing database.
c.DataAnnotations provide only the most commonly needed configuration changes you can be make on
your code first classes.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
58.Which of the following line of code will invoke the cart controllers ad method?
Select one:
a.return redirect("Cart/Add")
b.return View("Cart.Add")-----------------------------------------------------------------ans
c.return Content("Cart.Add")
d.Response.Redirect("Cart.aspx?Add")
------------------------------------------------------------------------------------------------------------------------------------------
--------------
59.If foreign key columns are not avaliable in the model, the relationships
are reffered with the object references instead of foreign key properties.What is this association
called?
Select one:
a.Independent association---------------ans
b.Dependent association
c.Relationship
d.EntityRelationship
*************************************************************************************
*****************************************************
JASBIR-ENTITY FRAMEWORK
1) Which of the following is the CORRECT option for getting the user whose name is "Raja" and to load
all the roles related to the user eagerly?
.FirstOrDefault();
.FirstOrDefault();
.FirstOrDefault();
.FirstOrDefault();
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. System.Data.Annotations
c. System.Transactions
d. System.Data.EntityClient.....................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
3) Which of the following Entity will create a table with the following specifications:
[key]
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
[key]
[key]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. Eager loading is the process whereby a query for one type of entity also loads related entities as part
of the query.................ans
b. Eager loading is the process whereby a query for one type of entity also load related entities as part of
the query on demand
d. Eager loading is the process of query only the details mapped in the entity
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. True.................................ans
b. False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. Materialization is the process of returning queries back to the client as CLR types
b. Materialization is the process of returning query results back to the client as entity types
c. Materialization is the process of returning query results back to the client as CLR types...................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
III. Navigation property should be defined as public, virtual. Context will NOT do lazy loading if the
property is not defined as virtual.
b. II and III
c. I and III
d. I and II
Note:
Navigation property should be defined as public, virtual. Context will NOT do lazy loading if the property
is not defined as virtual.
a. True .......................ans
b. False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. True ...................ans
b. False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. context.Configuration.AutoDetectChangesDisable = false;
b. context.Configuration.AutoDetectChangesEnabled = false;...........................ans
c. context.Configuration.AutoDetectChangesEnabled = true;
d. context.Configuration.AutoDetectChangesDisable = true.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
12) which of the following object is used to track changes, manage entities, concurrency and
relationship of the entities?
a. DbContext
b. EntityDataModel....................ans
c. Entity
d. None of the listed options
------------------------------------------------------------------------------------------------------------------------------------------
--------------
13) DbContxt.ChangeTracker Property Provides access to features of the context that deal with change
tracking of entities. State True or False.
a. True................ans
b. False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
14) Which of the following snippet creates database in local sql express by default?
}
III. public class Context: DbContext
b. I and II
c. I and III------------------------------------------------------ans
d. II and III
------------------------------------------------------------------------------------------------------------------------------------------
--------------
15) In foreign key association when the relationship changed, the Entity state of the dependent object
will change to EntityState.
a. True.................ans
b. False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
16) Which of the following is the default database initializer in Entity framework?(default initializer)
a. CreateDatabaseIfNotExists........................ans
b. DropCreateDatabaseAlways------------------------------ans
c. DropCreateDatabaseIfModelChanges------------------------------ans
d. DropDatabaseAlways
Note:1.CreateDatabaseIfNotExists 2.DropCreateDatabaseIfModelChanges 3.DropCreateDatabaseAlways
4.Custom DB Initializer are the 4 DB initializer
------------------------------------------------------------------------------------------------------------------------------------------
--------------
17) Which of the following is CORRECT for the sql implementation of the below linq query from s in
context.Students from c in s.Courses where s.StandardId == 1 select new {s.Student,c}
a. SELECT
[Extent1].[StudentId]AS[StudentID],
[Extent1].[StudentName]AS[StudentName],
[Join1].[CourseId1]AS[CourseId],
[Join1].[CourseName]As[CouseName],
[Join1].[Location]As[Location],
[Join1].[TeacherId]AS[TeacherId]
FROM [dbo].[Student]AS[Extent1]
INNER JOIN
(SELECT[Extent2].[StudentId]AS[StudentId],[Extent3].[CourseId]AS[CourseId1],[Extent3].[CourseName]A
S[CourseName],[Extent3].[Location]AS[Location],[Extent3].[TeacherId]AS[TeacherId]
FROM [dbo].[StudentCourse]AS[Extent2]
WHERE 1 = [Extent1].[StandardID]
b.SELECT
[Extent1].[StudentId]AS[StudentID],
[Extent1].[StudentName]AS[StudentName],
[Join1].[CourseId1]AS[CourseId],
[Join1].[CourseName]As[CouseName],
[Join1].[Location]As[Location],
[Join1].[TeacherId]AS[TeacherId]
FROM [dbo].[Student]AS[Extent1]
INNER JOIN
(SELECT[Extent2].[StudentId]AS[StudentId],[Extent3].[CourseId]AS[CourseId1].[Extent3].[CourseName]
[Join1].[CourseId1]AS[CourseId],
[Join1].[CourseName]AS[CouseName],
[Join1].[Location]As[Location],
[Join1].[TeacherId]AS[TeacherId]
FROM [dbo].[Student]AS[Extent1]
INNER JOIN
(SELECT[Extent2].[StudentId]AS[StudentId],[Extent3].[CourseId]AS[CourseId1],[Extent3].[CourseName]A
S[CourseName],[Extent3].[Location]AS[Location],[Extent3].[TeacherId]AS[TeacherId]
FROM [dbo].[StudentCourse]AS[Extent2]
WHERE 1 = [Extent1].[StandardID]
d. SELECT
[Extent1].[StudentId]AS[StudentID],
[Extent1].[StudentName]AS[StudentName],
[Join1].[CourseId1]AS[CourseId],
[Join1].[CourseName]As[CouseName],
[Join1].[Location]As[Location],
[Join1].[TeacherId]AS[TeacherId]
FROM [dbo].[Student]AS[Extent1]
Group by
(SELECT[Extent2].[StudentId]AS[StudentId],[Extent3].[CourseId]AS[CourseId1],[Extent3].[CourseName]A
S[CourseName],[Extent3].[Location]AS[Location],[Extent3].[TeacherId]AS[TeacherId]
FROM [dbo].[StudentCourse]AS[Extent2]
OUTER JOIN[dbo].[Course]AS[Extent3]ON[Extent3].[CourseId] = [Extent2].[CourseId] ) AS
[Join1]ON[Extent[1].[StudentID] = [Join1].[StudentId]
WHERE 1 = [Extent1].[StandardID]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
18) Eager loading returns all of the objects including the related objects. State True or False.
a. True----------------------------------------------------------------------------------ans
b. False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. ForeignKey .......................ans
b. Model
c. Column .......................ans
d. Entity
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. Mapping manual
------------------------------------------------------------------------------------------------------------------------------------------
--------------
21) In Lazy loading, the navigation property has to be declared as:
a. public.............ans
b. static
c. virtual............ans
d. proxy
------------------------------------------------------------------------------------------------------------------------------------------
--------------
22) Which of the followings are database initialization strategies in EF Code First?
a. CustomDBInitializer................ans
b. CreateDatabaseIfNotExists...........ans
c. MigrateDatabaseToLatestVersion
d. AlterDatabasewithchanges
------------------------------------------------------------------------------------------------------------------------------------------
--------------
23) If we use database first generation a DbContext is generated by default. State True or False
a. True...............ans
b. False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
24) By default, the Entity Framework will generate the database queries and update commands when
your code interacts with the model. State True or False.
a. True ................ans
b. False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
25) Which method in the DBContext writes inserts, updates, and deletes to the data source?
a. SaveChanges.........................ans
c. Save
d. SaveEntity
------------------------------------------------------------------------------------------------------------------------------------------
--------------
26) Linq to Entity Query results are usually returned as which of the following?
a. Linq to objects
b. A collection of zero or more typed entity objects or a projection of complex types defined in the
conceptual model.............ans
d. Anonymous types...............ans
e. Inline collections..................ans
After a LINQ to Entities query is converted to command trees and executed, the query results are usually
returned as one of the following:
A collection of zero or more typed entity objects or a projection of complex types in the conceptual
model.
CLR types supported by the conceptual model.
Inline collections.
Anonymous types.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
27) Which of the following is used to define plain old CLR Objects that are NoT related to certain
persistence technology?
a. Persistence Ignorance..............ans
c. Self-Tracking Entities
The DataRelation object is used to add relationship between two DataTable objects. What are ...
Persistence Ignorance -
Facilitates you to define your own Plain Old CLR Objects (POCO)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. context.ContextOptions.ProxyCreationEnabled = false;................ans
b. context.ContextOptions.ProxyEnabled = false;
c. context.ContextOptions.Enabled = false;
d. context.ContextOptions.Proxy = false;
------------------------------------------------------------------------------------------------------------------------------------------
--------------
29) Which of the following class is used to programmatically create connection string and parse existing
connecting string to create attributes and methods for the class?
a. EntityConnectionStringBuilder.................ans
b. EntityClientProvider
c. EntityContext
d. EntityConnection
------------------------------------------------------------------------------------------------------------------------------------------
--------------
product.UnitPrice = 1000;
dbContext.Update();
product.UnitPrice = 1000;
dbContext.SaveChanges();
product.UnitPrice = 1000;
dbContext.UpdateChanges();
d. NorthwindEntities dbContext = new NorthwindEntities();
product.UnitPrice = 1000;
dbContext.Save();
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.LINQ to dataset.....................ans
b.none of these
c.LINQ TO SQL
d.LINQ TO XML
------------------------------------------------------------------------------------------------------------------------------------------
--------------
32.a POCO class will not be inherited from entity object class
a.true.....................ans
b.false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
33.database model provides the normalised schema designed by the database administrator
a. true .................ans
b.false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
34.when you use the using statement,then compiler automatically creates a try/finally block and calls
dispose in the finally block.
a.true....................ans
b.false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
35.which of the following property is used to map two seperate types in the storage model?
select one
a.split entity...................ans
b.scalar property
c.association
d.none of these
Note:scalar property:A property of an entity that maps to a single field in the storage model
split entity:An entity type that is mapped to two separate types in the storage model.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
36.which namespace is used to include .net data provider for sql server?
a.system.data.sqlprovider
b.system.data.oracleclient
c.system.data.componentmodel
d.system.data.sqlclient....................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.none of these
Note:
POCO Entities
POCO stands for "plain-old" CLR objects which can be used as existing domain objects with your data
model.
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 behaviors as entity types that are
generated by the Entity Data Model tools.
You can use the POCO template to generate persistence-ignorant entity types from a conceptual model.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. true
b.false
Note:The Entity Framework even supports mapping entities in the conceptual model to stored
procedures in the data source.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
39.when the foreign key columns are not included in the model,the association information is
managedas an independent object
a.true......................ans
b.false
40.entity framework supports automatic change tracking of the loaded entities during the life time of
the context
a.true...........................ans
b.false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one
a.none of these
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one
a.[remove]
b.[ignored]
c.[notmapped]..........................ans
d.none of these
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I.in an entity framework application data is loaded from the file with the extension.csdl
select one:
b.I & II
------------------------------------------------------------------------------------------------------------------------------------------
--------------
44.savechanges() will be raised exception when which of the following object is added to the
objectcontext and it cannot be successfully created in the data source?
select one:
a.saveexception
b.changeexception
c.updateexception..............................ans
d.DBexception
Note:
SaveChanges can generate an UpdateException when an object added to the ObjectContext cannot be
successfully created in the data source.
This can happen if a row with the foreign key specified by the relationship already exists
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
(ans) a.some expressions in the query might be executed on the server and some parts might be
executed locally on the client.client-side evaluaion of an expression takes place before the query is
executed on the server...................ans
b.some expressions in the query might be executed on the server and some parts might be executed
locally on the server.client-side evaluaion of an expression takes place before the query is executed on
the server.
c.none of these
d.some expressions in the query might be executed on the server and some parts might be executed
locally on the client.server-side evaluaion of an expression takes place before the query is executed on
the server.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
46.which of the following annotation validates property whether it has minimum length of the array or
string?
select one:
a.none of these
b.arraylength
c.minlength...........................ans
d.lengthofarray
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
49.the ____________ class supports both LINQ to entities and entitySQL queries against a conceptual
model.
select one:
a.entitytosql..............................ans(may be)
b.none of these
c.objectquery
d.sqlquery
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.to change a foreign key association that includes overlapping keys,it is recommend to modify the
foreign key values instead of using the object references.
b.overlapping keys are composite keys where some properties in the key are also part of another key in
the entity
c.all of these.............................................................ans
51.which of the following annotation is used to mark one or more properties to be used for concurrency
checking while user modifies in an entity?
select one:
a.concurrencycheck......................ans
b.none of these
c.entitycheck
d.databasecheck
------------------------------------------------------------------------------------------------------------------------------------------
--------------
52.which class is responsible for interacting data as object in the entity framework?
select one:
a.entity
b.entitycontext
c.DBset
d.DBcontext........................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.navigation properties provide a way to navigate an association between two entity types.
b.every object can have a navigation property for every relationship in which it participates.
c.navigation properties allow you to navigate and manage relationships in both directions,returning
either a reference object(if the multiplicity is either one or zero-or-0ne)or collection(if the multiplicity is
many)
d.all of these.................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
54.which annotation is used when you have multiple relationships between classes?
select one:
a.onmultiplerelation
b.required
c.foreign key
d.inverse property.......................ans
55.entity state property is enum type
select one:
a.true.................................ans(may be)
b.false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.DBcontext.context
b.DBcontext.getobjectcontext()
c.none of these
d.((lobjectcontextadaptor)db).objectcontext;.......................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
58.find the correct code to execute sql raw query in the entity frameqwork from the following
select one:
b.none of these
varstudentlist = ctx.students.sqlquery("select*from
student").tolist<student>();...............................ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I.the compiled query class provides compilation and caching of queries for reuse
III.once the query is compiled you can only supply parameters of primitive type but you cannot replace
parts of the query that would change the generated SQL.
select one:
d.I & II
------------------------------------------------------------------------------------------------------------------------------------------
--------------
60.which of the following provider is used to access data in the conceptual model?
select one:
a.sqlclientprovider
b.entitycontexy
*************************************************************************************
************************************************************************
a)text------------ans
b)ntext------------------ans
c)integer
d)image---------------------ans
e)cursor-------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)entitydatareader--------------ans
b)Dbcontext
c)objectcontext
d)entityconnection
------------------------------------------------------------------------------------------------------------------------------------------
--------------
3)which of the following is the ability to add and use your own data classes along
a)entityobject
b)dbcontext.context
c)poco------------------------------ANS
d)none
------------------------------------------------------------------------------------------------------------------------------------------
--------------
true or false
true------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
d)they frequently used with the group by clause of the select statement------ans
e)they cannot be used with the group by clause of the select statement
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)allow access only to external assemblies with minimal access to internal computation
------------------------------------------------------------------------------------------------------------------------------------------
--------------
only 1
only 2
none
------------------------------------------------------------------------------------------------------------------------------------------
--------------
8)if we want to create a backward compatible application which of the following view engine will be
preferred in mvc3?
a)sparx
b)aspx
c)razor------ans
d)Nhaml
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)specifies that the DML trigger is executed instead of the triggering sql statement
------------------------------------------------------------------------------------------------------------------------------------------
--------------
return view();
only 1--------------------------------------------------ANS
only 2
both 1 and 2
none
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)use clustered index when a query returns a range of values by using operators such as between
>,>=,<,<=-----------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
12)The _______________class supports both linq to entities sql queries agaimst a conceptual model
a)sqlquery
b)objectquery-------------------ans
c)entitytosql
d)none
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)red-green-refractor----------------------------------------------------ANS
b)unit debug
c)unit test
d)regression test
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)the entity framework lifetime of the context begins when the instance is created and ends when the
instance is either disposed or garbage collected----------------------ans
c)the primary class that is responsible for interacting with data as objects is
system.data.entity.dbcontext------ans
d)dB ENTITY PROPERTIES repersent collections of the specified entites in the context
------------------------------------------------------------------------------------------------------------------------------------------
--------------
true or false
ANS:true
------------------------------------------------------------------------------------------------------------------------------------------
--------------
16)what is the significance of the results pane of the query designer?
b)it shows the results of the most recently executed select query-------------------------------------------------
ans
d)you can modify the database by editing values in the cells of the grid---------------------------------------------
-ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
true or false
true-----ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
A)2 ONLY
B)BOTH
C)NONE
D)1 ONLY---------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
19)which of the following two are name types of sql server files?
a)physical_file_name
b)logical_file_name------------ans
c)primary_file_name
d)os_file_name-------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
20)i have a table blog which i want to split into two blog.which of the followin is the correct snippet?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Output profiling
b.Output Regeneration
c.Output updation
d.output caching----------------------------------------------------------------------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.ALL SERVER
b.WITH ENCRYPTION
C.EXECUTE AS--------------------------------------------------------------------------------ans
D.INSTEAD OF
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.context.ContextOptions.Enabled=false;
b.context.ContextOptions.Proxy=false;
c.context.ContextOptions.ProxyEnabled=false;
d.context.ContextOptions.ProxyCreationEnabled=false;-----------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
24.Which of the package can be used to write an implementation for ASP.NET Identity
that targets different persistence stores such as Azure Table storage.NoSQL database etc
a.Microosoft.asp.net identity.OWIN
b.Microosoft.asp.net security
c.Microosoft.asp.net identity.core---------ans
d.Microosoft.asp.net identity.EntityFramework
II.which declares a conceptual model,storage model and mapping between these models
Select one:
a.I and II
b. II and III
c. I and III
------------------------------------------------------------------------------------------------------------------------------------------
--------------
26.You dont want to allow anyone to do any change to the code being deployed on
------------------------------------------------------------------------------------------------------------------------------------------
--------------
27.You have a certain number of products with price ranging from high to low to medium. You
want to filter products by their respective price range.Which of the following option
a.[...
@using(Html.BeginForm("index","Range"))
Html.DropDownList("Product",new selectList(viewBag.Ranges))
...]
b.[...
@using(Html.BeginForm("index","Product"))
Html.DropDownList("Range",new selectList(viewBag.Ranges))
<input type="password" value="filter"/>
...]
c.[...
@using(Html.BeginForm("index","Product"))
Html.DropDownList("Range",new selectList(viewKnapsack.Ranges))
...]
d.[... ------------------------------------------------------------------ANS
@using(Html.BeginForm("index","Product"))
Html.DropDownList("Range",new selectList(viewBag.Ranges))
...]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
28.You are given a task by your manager that includes assembly binding. Which file
a.system.configuration
b.web.config
c.machine.config------------------------------------ANS
d.config.config
29.what happens when you create a primary key constraint?
a.Unique index on the column ,or columns is automatically created which is by default nonclustered
b.Unique index on the column ,or columns is automatically created which is by default clustered-----------
-----------ANS
c.Unique index on the column ,or columns is automatically created which is by default spatial
d.Unique index on the column ,or columns is automatically created which is by default XML
------------------------------------------------------------------------------------------------------------------------------------------
--------------
30.which of the following keyword is used for lazy loading related data in entity framework?
a.protected
b.virtual----------------------ANS
c.const
d.abstract
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.a collection of compiled T-SQL commands that are directly accessible by SQL SERVER -----------------------
-----ans
B.A COLLECTION of commands written in any base .net language that are directly
c.commands placed in a stored procedure are interpreted one line at a time during execution
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b. delete package
c.remove packagename
33.choose a unit test to check whether the participant A1 has covered half the ditance of total
a.[TestMethod]
int total_distance=2;
int distance_covered=10;
int distance_left=10;
d1.covered(distance_covered);
int Left=d1.remaining;
Assert.AreEqual(distance_left,Left);
b.[TestMethod]
int total_distance=2;
int distance_covered=10;
int distance_left=10;
d1.covered(distance_covered);
int Left=d1@remaining;
Assert.AreEqual(distance_left,Left);
d.[TestMethod]
int total_distance=2;
int distance_covered=10;
int distance_left=10;
d1.covered(distance_covered);
int Left1=d1.remaining;
Assert.AreEqual(distance_left,Left);
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.True ---------------------------------------------------------------------------ans
b.False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
35.
36.which class is used to execute an entity SQL command against an entity mode?
a.EntityCommand ---------------------------------------------------------------------------ans
b.EntityConnection
c.sqlCommand
d.None of the lists
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.true ---------------------------------------------------------------------------ans
b.false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.True---------------------------------------------------------------------------ans
b.False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
39.SQL server 2008 security model is based on three categories that seperate
the basic elements of security.Which among the following are those?(Multiple ans)
a.Principles ---------------------------------------------------------------------------ans
b.Constraints
c.Securables ---------------------------------------------------------------------------ans
d.Permissions ---------------------------------------------------------------------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
40.How is the support for XML integrated into SQL server?(multiple ans)
b.Ability to specify an XQuery against XML data stored in columns and variables of the xml type------------
--------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Q.41 which of the following is the default database initializer in entity framework?
a CreateDatababaseifnotexists ---------------------------------------------------------------------------ans
b DropCreateDatabaseifModelChanges
c DropCreateDtabaseAlways
d DropDtabaseAlways
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a System.Data.EntityClient ---------------------------------------------------------------------------ans
b System.Transactions
c System.Data.Annotations
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a True-------------------------ans
b False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Q.44 Which of the following statements are true about Clustered index?
a A Clustered index sorts and stores the data rows of the table or view in order based on the
b A Clustered index sorts and stores the data columns of the table or view in order based on the
clustered index key.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Q.45 Entity Framework provide us with which of thefollowing attribute to indicate multiple relationships
a [InsertProperty]
b [InverseProperty]-------------------ans
c [InProperty]
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Q.46 Conceptual model properties are not same as the properties created in .edmx file. State True or
False
a True
b False-------------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Q.47 Which of the following method of the ObjectStateManager is used to get Object State entry?
a TryGetObjectStateEntry
b ChangeObjectState -------------------ans
c GetRelationshipManager
d ChangeRelationshipState
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Q.48 Commands on console are implemented as powershell command.
a True-------------------ans
b False
Q.49 GlobalFilters.Filters.Add(new SampleFilter()); - What will the above piece of code do?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Q.50 Repeated
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Q.52 Read the description & identify which method it belongs to.:-"Initializes a new instance of the
HtmlHelper class by using
d public.HtmlHelper(@viewContext,@viewDataContainer,@routeCollection)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b RediredtToAction-------------------ans
c ForwardTo
d ActionRedirect
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Q.55 Read the Followinfdefinition and choose the correct option ----" Contains methods to create types
of objects locally or
a ModelBlinder
b Dependency Resolver
c Activator-------------------ans
d Validator
------------------------------------------------------------------------------------------------------------------------------------------
--------------
q.56 Which of the following class is used to programmatically create connection string and parse existing
connecting string
a EntityConnection
b EntityClientProvider
c EntityConnectionStringBuilder -------------------ans
d EntityContext
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a focus()-------------------ans
b mouseenter()-------------------ans
c on()-------------------ans
d hover()-------------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a Maybe
b Yes-------------------ans
c no
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a Distinct
b Except
c GroupBy
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Q.60 You are handling page ofan event. Now the content and information you have cached so that it is
loading quickly but you
need to keep the clock which shows time for the event dynamic. which of the following will be
helpful?
a <%DateTime(t.now);%)
b <%Response.WriteSubstitution(t=>DateTime.Now.ToLongTimeString());%> -------------------ans
*************************************************************************************
*************************************************************************************
*************************************************************************************
****************
*************************************************************************************
*************************************************************************************
*************************************************************************************
**********************
Leya/Veena/Ajith
1.You need to look up in the database for validation . what kind of validation it is ?
I.remote
II.Self
select one :
a.NOne
b.II only
c.I only----------------------------------ANs
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.It is used to specify whether user assembles can be run by SQL Server
b. The clr enabled option can be set to value FALSE to denote that assembly execution is not allowed on
SQL SErVER
c.The clr enabled option can be set to value TRUE to denote that assembly execution is allowed on SQL
SErVER
d.The clr enabled option can be set to value 0 to denote that assembly execution is not allowed on SQL
SErVER
e.The clr enabled option can be set to value 1 to denote that assembly execution is not allowed on SQL
SErVER
ANS---------------------------a,d,e
------------------------------------------------------------------------------------------------------------------------------------------
--------------
3.Which of the following option is correct to get the blog details details by order it ascending based on
OrderName ?
Select one :
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.II only
c.None
d.I only
------------------------------------------------------------------------------------------------------------------------------------------
--------------
8.The_________ class provides facilites for querying and working with entity data as objects,keeping
track of the entity objects, along with the state information (added,modified,deleted) and the ability to
update entities and write changes back to the database.
select one:
a.DbContext
b.DataContext
c.ObjectContext-------------------------------------------------------------ANS
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b.You can control which user account the databse engine uses to validate permissions on any objects
that are referenced by the module.
c.It provides additional flexibilty and control in managing permissions across the object chain that exsists
between user-defined modules and the objects referenced by those modules.
d.Users of the module only need permissions to execute the module itself;explicit permissions on the
refernced objects are not required.
e.Users of the module need explicit permissions on the referenced objects thereby making it more
secure.
ANS------------------------------b,c,d
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I.Database Value
II.original Value
III.XML Value
select one:
a.I and II only------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Secondary
b.Primary--------------------ANS
c.User-defined--------------------ANS
d.Hidden
------------------------------------------------------------------------------------------------------------------------------------------
--------------
14.Consider,you have to update the page asynchronously using Ajax.BeginForm method with Action
"Act" ,Home controller "HO" & the id to update is "up" .
which of the following would you choose ?
Select one:
InsertionMode=InsertionMode.Replace,
UpdateTargetid="up"}))"
InsertionMode=InsertionMode.Replace,
UpdateTargetid=""}))"
InsertionMode=InsertionMode.Replace,
UpdateTargetid="up"}))"
InsertionMode=InsertionMode.Replace,
UpdateTargetid="up"}))"
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.StringLength------------------------------------ANS
b.Range
c.Compare
d.Required--------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
TRue---------------------------------------------ANS
FAlse
------------------------------------------------------------------------------------------------------------------------------------------
--------------
21.which of the following is the Correct options for Database First approach ?
Select one :
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Windows Authorization
------------------------------------------------------------------------------------------------------------------------------------------
--------------
b.The format opf the result set.This is specified modify in the select list.
c.The tables that contain the source data.This is specified in the FROM clause.
d.How the tables are logically related for the purpose of the SELECT statement . This is defined in the
join specifications,which may appear in the WHERE clause or in an ON Clause following FROM.
e.The conditions that the rows in the source tables must satisfy to quality for the SELECT
Statement.These are specified in the WHERE and HAVING clauses.
ANS---------------------b,c,d,e
------------------------------------------------------------------------------------------------------------------------------------------
--------------
True---------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
31.How are user-defined functions different from user- defined stored procedures ?
a.IN user- defined function the default parameter is specified wiwth a DEFAULT keyword.
b.In user-defined function omitting the parameter also implies default value
------------------------------------------------------------------------------------------------------------------------------------------
--------------
34.How are stored procedure similar to procedures developed in other programming languages ?
a.Accept input paramaters and return mulitiple values in the form of output parameters in the calling
procedures or batch
b.Contain prograaming statements that perform operations in the database including calling the other
procedures
ANS------------------------------------a,b,c
------------------------------------------------------------------------------------------------------------------------------------------
--------------
44.Which of the following statement is TRUE to disable lazy loading for all the entities ?
select one :
------------------------------------------------------------------------------------------------------------------------------------------
--------------
45.You have to create a view model which will show a cricket player's name,team name, wickets taken
,runs scored about and his rank.
select one:
a.Public class PlayerInfoModel { public string.TeamName {get;set} public string.Name {get;set} public
int.wickets {get;set}
b.Public class PlayerInfoModel { public string TeamName() public string Name() public int wickets()
d.Public class PlayerInfoModel { public string TeamName {get;set} public string Name {get;set} public int
wickets {get;set}
public int Runs{get;set} public int Rank {get;set} }------------------------------------------------------------------------
-----ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one
a.View@Data
b.View Data
c.ViewData---------------------------------------------------ANS
d.View_Data
------------------------------------------------------------------------------------------------------------------------------------------
--------------
49. Which of the following are the three parts of ENtity Framework ?
II.Relational Database
select one:
a.I and II
------------------------------------------------------------------------------------------------------------------------------------------
--------------
50.[ActionName("search")]
return View();
Select one:
a.http://localhost/songs/GetBySname/post=lblame?
b.http://localhost/songs/search/blame----------------------------------------------------------ANS
c.http://localhost/songs/GetBySname/blame
d.http://localhost/songs/search/post=lblame?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
53.Which of the following Code will help us to use the table valued functions "GetStudentList" and will
retrieve all the course details of all students from "City1" in Entity Framework ?
select one:
a.using (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result var courseList =
ctx.GetStudentList(1)
b.using (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result var courseList =
ctx.GetStudentList(1)
Where(c.location =="City1").ToList<GetCourseList>();
d.using (var ctx = new SchoolDBEntities()) { //Execute TVF and filter result var courseList =
ctx.GetStudentList(1)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
54.Entity Framework has in-memory copy of the original values and uses this for working out what has
changed.
True----------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
55.IClientValidation GetClientValidation
{
var z =new ModelClientValidationRule();
z.ErrorMessage = FormatErrorMessage(metadata.GEtDisplayName());
z.ValidationType ="compare";
z.validationparameters.Add("sample",SamplePropertyName);
yield return z;
----Analyse the code and identity which of the following statement is true ?
select one :
a.None
c.Performs remote validation to compare to compare two properties and shows and error message if
not equal
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one :
a.Call
b.String---------------------------------------------ANS
c.Literal
d.Content
------------------------------------------------------------------------------------------------------------------------------------------
--------------
57.DbCOntext() method Constructs a new context instance using conventions to create the name of the
database.
True------------------------------------------Ans
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
keerthi:
1(5)Can you convert a Nonpartitioned Table to Partitioned Table?If yes,how?Choose all that apply.
Select one:
a.By creating a partitioned non-clustered index on the table by using the CREATE INDEX statement
b.By creating a partitioned clustered index on the table by using CREATE INDEX statement-------------------
-------------------ANS
c.By using the ALTER TABLE SWITCH statement to switch the data of the table to a range-partitioned
table has only one
partition--------------------------------------ANS
d.By using the ALTER TABLE SWITCH statement to switch the data of the table to a range-indexed table
that has a unique partition.
e.You cannot convert a Nonpartitioned Table to Partitioned Table.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
4(11) Which of the following code removes a relationship by setting the foreign key to null?
Select one:
a.mytable.ForeginKeyColumn = (FK_ID)null;
b.mytable.ForeginKeyColumn =(key)null;
c.mytable.ForeginKeyColumn = null;--------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
5(13)Ashley Is new to developing and the manager has told her to make the form advance by selecting
date.How will Ashley achieve this?
Select one:
a.$(add).datepicker();
b.$(generate).datepicker();
c.$(".create#ProductDate").datepicker();
d.$(".attach#ProductionDate").datepicker();--------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
true--------------------------------------ANS
false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.Uninstall-package packageName-RemoveDepencies--------------------------------------ANS
c.Remove-Dependencies
d.Delete Depencies
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.value
b.ID--------------------------------------ANS
c.Model
d.Action--------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.I and II
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
a.Code First
c.Database first
Select one:
True--------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
14(40)Scott wants to mark an action method to cache the output.Which class will Scott use?
Select one:
a.CacheWithOutput
b.OutputCacheAttribute--------------------------------------ANS
c.Cache
d.O/Pcache
------------------------------------------------------------------------------------------------------------------------------------------
--------------
15(45)In a website you need to use certain caching rule repeatedly.What will be used for you from the
following?
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
True--------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
17(57)In a Entity Framework application, mapping metadata is not loaded from an.msl file
True
False--------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
19(51)You are making a login page where you have to take password from user and you have to confirm
the password again.
Select one:
a.[Database(DataType.Password)][Display(Name="Confirm
password")][ToCompare("Password",ErrorMessage="The entry doesn't match with password
entered.")]public string ConfirmPassword{get;set;}
b.[Database(DataType.Password)][Display(Name="Confirm
password")][@Compare("Password",ErrorMessage="The entry doesn't match with password
entered.")]public string ConfirmPassword{get;set;}
c.[Database(DataType@Password)][Display(Name="Confirm
password")][ToCompare("Password",ErrorMessage="The entry doesn't match with password
entered.")]public string ConfirmPassword{get;set;}
d.[Database(DataType.Password)][Display(Name="Confirm
password")][Compare("Password",ErrorMessage="The entry doesn't match with password
entered.")]public string ConfirmPassword{get;set;}---------------ans
*************************************************************************************
*********************************************************
Vivek:
1(53)Which are the conditions when indexes of views can provide significant performance
adavantages?
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
true-------------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
3(43)Which of the following option is CORRECT to select only the columns StudentName,Department
and GroupName from the student entity of the student name "Kishore"?
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
c.The selection of collation is Language dependent and addresses differences in the way characters are
ordered.------------------------------------------ANS
d.The default collation for a database is based on the server deafult,which is set during the installation
of SQL Server.------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
5(41)How can we mark a CLR entity type student to avoid mapping in a table in database?
Select one:
a.ModelBuilder.Ignore<Student>()
b.ModelBuilder.Remove<student>();------------------------------------ANS
c.ModelBuilder.Delete<Student>();
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
7(31)Which is/are a/the console commands ion Nuget from the following?
Select one:
a.Find
b.Get
c.Uninstall
d.All the listed--------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
8(27) which of the following data annotation attribute isuseful when you have multiple relationship
between two classes
select one:
a. index
b. foriegn key
c. inverse property----------------------------------ANS
d. complex type
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I.related objects(child objects) are located automatically with its parent object
II.related objects(child objects) are not located automatically with its parent object until they are
requested
select one:
a. II only
b. both I and II
c. I only------------------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
10(21)if stored procedure returns complex type that is only on conceptual model and not in database
table, what is it called?
select one:
a. scalar
b. complex------------------------------------ans
c. entities
------------------------------------------------------------------------------------------------------------------------------------------
--------------
11in entity framework application storage mode metadata is rendered from .ssdl file
select one:
a. true--------------------------ans
b. false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. They are user defined scalar values that are passed into a procedure or function---------------------------
ANS
b. They are user defined table types that are passed into a procedure or function
c. They provide an efficient way to pass multiple rows of data to the server----------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
15(6) ________________ occurs when you need to point to another data object from one data object.
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
USE SalesSystem;
Go
SELECT PATINDEX('%ia',Country)
FROM Production.Customer
GO
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 pattern was found.
c. the query returns only those columns in each rows in the table in which the pattern was found.
d. the query returns all rows in the table and reports nonzero values for those rows in the table in which
the pattern was found.----------------------------------------ANS
e. the query returns all rows in the table and reports zero values for all rows in the table in which the
pattern was found.--------------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
17(4)Rashmi has created an application using .net framework 3.5 but IISApp pool shows only version 2.0
for hosting. which of the
select one:
a. it requires a refresh
b. install version 3.5 and change IIS App pool version to 3.5 ------------------------------ANS
*************************************************************************************
*************************************************************************************
***
PRATEEK-MUMBAI
I.readable
II.Maintainable
b. II only
c. none
d. I only
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a. ComplexType--------------------ans
b. MaxLength
c. Key
d. ComplextypeColumn
------------------------------------------------------------------------------------------------------------------------------------------
--------------
c. the database objects that the function references cannot be altered or dropped unless the function is
dropped first-----------ans
d. the database objects that the function references cannot be altered or dropped unless the schema
binding of the
function is removed------------ans
then the database objects that the function references cannot be altered or dropped unless the function
is dropped first,
------------------------------------------------------------------------------------------------------------------------------------------
--------------
4.which of the following T-SQL statement are not allowed in DML trigger
a. ALTER DATABASE-------------ans
b. LOAD DATABASE-----------ans
c. CREATE
d. UPDATE
e. CREATE DATABASE------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
5.you want to prevent your feedback from XSS. which of the following is valid option to do it ?
select one:
a. feedback .Body=Sanitizer.GetSafeHtmlFragment(feedback@Body);
b. feedback .Body=Sanitizer.GetSafeHtml(feedback.Body);
c. feedback .Body=Sanitizer@GetSafeHtmlFragment(feedback.Body);
d. feedback .Body=Sanitizer.GetSafeHtmlFragment(feedback.Body);---------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
6.in TDD, we develop the code first which is then followed by testing
select one:
a. true
b. false------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
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 item in the colectionviewsource is updated.
a. true----------------ans
b. false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. the isolation semantics are governed by database engine transaction isolation levels----------------ans
b. when the FILESTREAM data is accessed through the win32 APIs,read-committed,repeatable-read and
serializable
c. when the FILESTREAM data is accessed through the win32 APIs,only read-committed level is
supported---------ans
d. when the FILESTREAM data is accessed through Transact-SQL,only read-committed level is supported
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. true
b. false---------ans(Inversion of Control)
------------------------------------------------------------------------------------------------------------------------------------------
--------------
10.marry jane is creating a page for songs feedback. the mapping should be done in such way that one
song can have more
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:
a. ModelBuilder.Entity<Song>()
.HasMany(song=>song.feedbacks)
.WithRequired(feedback=>feedback.Song);---------------ans
b. ModelBuilder.Entity<Song>()
.HasMany(song=>song@feedbacks)
.WithRequired(feedback=>feedback@Song);
c. ModelBuilder.Entity<Songs>()
.HasMany(song=>song.feedbacks)
.WithRequired(feedback=>feedback.Song);
d. ModelBuilder.Entity<Song>()
.ManyHas(song=>song.feedbacks)
.WithRequired(feedback=>feedback.Song);
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a. ClassDiagram
b. Graphically------ans
c. Model Diagram
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a. when an error condition is detected in a T-SQL statement that is inside a TRy bloc, control is
immediately passed to the CATCH block------------------ans
d. T-SQL statements in the TRY block that follow the statement that generated the error are not
executed-------------ans
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.Month
b.GetDate-----ans
c.Day
d.GetUtcDate---ans
e.Current_Timestamp----ans
Deterministic functions always return the same result any time they are called with a specific set of
input values and given the same state of the database. Nondeterministic functions may return different
results each time they are called with a specific set of input values even if the database state that they
access remains the same.
------------------------------------------------------------------------------------------------------------------------------------------
--------------
16. The ADO.NET ______________ control supports data binding scenarios in Web Applications that use
the ADO.NET Entity Framework.
ans::EntityDataSource
------------------------------------------------------------------------------------------------------------------------------------------
--------------
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 wish list after refreshing the
duplivate,values are shown as +an error from the browser+always message shows which item is added
instead of message when yu have recently added.
ViewData["selection"]=Session["selection"];
/*rest of code*/}
------------------------------------------------------------------------------------------------------------------------------------------
--------------
18. Choose a query to show all the players with name Rocky and show it according to teamname.
ans:
where q.players.name=="Rocky"
orderby q.TeamName
select q;
*************************************************************************************
*********************************************
jasbir-2
2. In which of the following the entities and relationship are created on EDMX design surface?
select one:
c.Database Apporoach
d.none
------------------------------------------------------------------------------------------------------------------------------------------
--------------
4.which of the following code removes a relationship by setting the foreign key to null?
select one:
a.mytable foreignkeycolumn=(FK_ID)null;
b.mytable foreignkeycolumn=(key)null;
c.mytable foreignkeycolumn=null;--------------------------------ANS
d.none of listed
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
b.Find
c.Uninstall
d.Get
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a)it determines how much data can be recovered in the event of a media failure-----------------ANS
b) it determines the location where the data should be recovered in the event of a media failure
c)the default recovery is full , which provieds the greatest level of recovery----------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
17.output caching lets you store the output of a/an----------- method in the memory on the web server
select one:
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.true---------------------ANS
b.false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
21. Entity SQL allows querying those entites and relationship in a format that is familiar to those who
have used SQL
a.true---------------------------ANS
b.false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
------------------------------------------------------------------------------------------------------------------------------------------
--------------
Select one:
True-------------------------------------------------------ANS
False
------------------------------------------------------------------------------------------------------------------------------------------
--------------
24.The entity framework uses mapping metadata to translate queries against the conceptual model
storing specific commands.
state true or false
a.true------------------------------ANS
b.false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
27.What will happen if you specify "name=MyDb" parameter in the base constructor of a context class?
select one:
a.code first will create database named MyDb in the local SQL server----------------------ANS
b.code first will create database with the same name as context class name.
c.code first will create database named "name=MyDb" in the local SQL server
d.Code first will use connection string named MyDb defined in the config file to craete the database
------------------------------------------------------------------------------------------------------------------------------------------
--------------
29.which class is used to execute an entity SQL command against an entity mode?
select one:
a.EntityCommand---------------------------ANS
b.EntityConnection
c.SqlCommand
d.None
------------------------------------------------------------------------------------------------------------------------------------------
--------------
30.which of the following method of the ObjectStateManager is used to get object state entry?
a.TryGetObjectStateEntry----------------------------------ANS
b.ChangeObjectState
c.GetRelationshipManager
d.ChangeRelationshipState
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.trafficking
b.password copying
c.slow loading
d.json hijacking-----------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
33.In Razor,we can write code and markup in single file and still get desired output
select one:
a.maybe
c.no
d.yes-------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
34. which of the following class provides you important methods to configure entities and its properties
to override various code first conventions?
select one:
a.EntityCOntext
b.EntityTypeCOnfiguration------------------------ANS
c.DBContext
d.ObjectContext
------------------------------------------------------------------------------------------------------------------------------------------
--------------
35.
a.Run Time
b.intellisense--------------------------ANS
c.faster buffering
d.loading
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.minlength------------------------------ANS
b.Maxlength
c.minimum length
d.length
------------------------------------------------------------------------------------------------------------------------------------------
--------------
II.related objects are not loaded automatically with its parent object until they are requested
Select One:
a.I only
b.II only------------------------------ANS
c.Both I and II
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.An entity is a logical container for instances of an entity type and instances of any type derived from
that type
b.An entity set is defined within an entity container which is logical grouping of entity sets and
association
c.the type of the instance is either same as entity type on which the entity set is based or type of
instanceis subtype of entity type
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.lazy loading
b.explicit loading---------------------------ANS
c.database loading
d.object loading
------------------------------------------------------------------------------------------------------------------------------------------
--------------
44.we can insert data into your databse tables during databse initialization process
a.true-------------------------ANS
b.false
------------------------------------------------------------------------------------------------------------------------------------------
--------------
I. coderush express
a. None
b. II only
c. I only-------------------------ANS
d. Both I and II
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.database administrator
b.datatbase user-----------------------------ANS
c.database role---------------------ANS
d.windows role
e.application role------------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
52.which method is used to get the entity based on composite keys in entity framework?
select one:
a.load
b.find-----------------------ANS
c.include
d.take
------------------------------------------------------------------------------------------------------------------------------------------
--------------
c.hidden files.
4.Log files----------------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
a.On()-----------------------ANS
b.hover()--------------ANS
c.mouseenter()------------------ANS
d.focus()------------------ANS
------------------------------------------------------------------------------------------------------------------------------------------
--------------
select one:
a.update
b.Get----------------------------ANS
c.Find
d.Help
------------------------------------------
------------------------------------------
------------------------------------------
--------------------------
6) true or false
7) a,b & d
59) a and b
60) a, b and d
58) d
56) b c d
57) c
54) a…….. I and II
55)a b d
51) model defined functions
52) a abd b
49) inverse property
38) c
35 ) a
36) using(Html.BeginForm("index","Product"))
Html.DropDownList("Range",new selectList(viewBag.Ranges))
}
34) b
31) a b d e
32) b
27) c d
28) b
26 ) a
24) b
22) c
20.types of indexes-------->clustered,unique,nonclustered,Index with included columns
14) a and b
11) b
12) I only
1.
2.
3.
4.
5.
6.jQuery.Vaidator.addmethod----------->a.True or False
10
11.VaryByHeader---------->b.
13
16
17
18
19."kishore"-------------->a
21
23
24.web.config-------->b
25.naviation poperties------>d
26.route registration-------->a
27.EXTERNA_ACCESS permission------------>c,d
29
30
36.[... ------------------------------------------------------------------ANS
@using(Html.BeginForm("index","Product"))
Html.DropDownList("Range",new selectList(viewBag.Ranges))
...]
46.Nuget download------------->a
48.
The data of partitioned tables and indexes is divided into units that can be spread across more than
one filegroup in a database.
The data is partitioned horizontally, so that groups of rows are mapped into individual partitions.
The table or index is treated as a single logical entity when queries or updates are performed on the
data.
56.aggregate-function work-------------->b,c,d
58.IObjetContextAdapter---------->d
59.Dese_Rank function------------>a,b
60.CLR-stored procedures--------->a,b,d