MVC 2
MVC 2
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
false
a)[inject]
b)none -----------------ANS
c) [injection creato]
d) [inject initialze]
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
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
b) DataContext
c)MOdel-defined Functions
d) None-----------doubt
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
14)what are the significance of recovery model setting??
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
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 aprtioned tables and indexes is divided into units .......ans
(b) the data is partitioned horizontally,...........ans
25)which statements are true about large clr user defined types?
ans)Delete(DbConnection)
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
c.Hidden files
d.Log files-----------------------------Ans
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.
c.User-defined functions do not support output parameters.---------------------------------Ans
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
Ans:True
49.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
b.i only
51.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)]
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
b.None
c.False--->ans
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?
public Context():base()
Select one:
ans:2&3
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
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
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>
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--------------------------------------------------------------------------------------------ANS
both I and II
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
value=System.Data.Entity.DropCreateDatabaseAlways`1[[BlogDataLayer.BlogDBContext,
BlogDataLayer]], EntityFramework/></ appSettings></configuration>---------------------------------------------
--------------------ANS
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
Select one:
True-------------------------------------------------------ANS
False
Select one:
True-------------------------------------------------------ANS
Fasle
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.
b.Inline collections
c.Linq to objects
d.Anonymous types
Select one:
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".Which of the following will be helpful?
select one
ans: $function(){
$("#searchBox").autocomplete("/Product/SearchCandidates",{minChars:3});
});
a.Specifies that the DML trigger is excuted instead of the triggering SQl statement
Select one:
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.-------------------------------------------------------ANS
c.The leaf layer of a nonclustetred index is amde up of index pages instead of data pages.--------------------
-----------------------------------ANS
d.The leaf layer of a nonclustetred index is amde up of data pages instead of index 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
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
I only
II only---------------ANS
both I and II
18.By default in Entity Framework Snapshot change tracking is enabled snapshot change tracking
mechanism.
True-------------------------------------------------------ANS
Fasle
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
Select one:
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
Select one:
a.A technique gor achieving tight coupling between objects and their collaborators.
b.A technique gor achieving loose coupling between objects and their collaborators.---------------------------
----------------------------ANS
c.A technique gor achieving tight coupling between Model and their views.
d.A technique gor 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
A) CONTEXT.CONTEXTOPTIONS.ENABLED = FALSE;
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 APL--------------------------------
-----------ANS
33. ObjectContext mainly used for which of the following ?
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:
Take(b =>b.Subjects).Query().Count();
Include(b =>b.Subjects).Query().Count();
Collection(b =>b.Subjects).Query().Count();--------------------------------------------------------------------------------
ANS
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
e. each partition has a B-tree structure that contains the index rows for that specific partition------ans
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
39. 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();
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
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]
the database changes, an error pops up in the application. which of the foolowing 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---------------------------------------------------------------------------------------ANS
d.True
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
Select one:
a.System Transaction-------------------------------------------ANS
b.SqlTransaction
c.EntityTransaction
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
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>
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
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
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
56.where can CLR functions be used?
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
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
Note:The input to the optimizer consists of the query, the database schema (table and index
definitions), and the database statistics.
(https://technet.microsoft.com/en-us/library/ms190623(v=sql.105).aspx)
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
Select one:
True----------------------------------------------------ANS
False
45.What are the conditions for assemblies created by using EXTERNAL ACCESS permission sets?
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----------------------------------ANS
b.Delete package
c.Uninstall-package PackageName
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 cant 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?
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
30.In Model We can keep Which of the following:
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?
a:Physical_File_name
b:Logical_file_name......................ans
c:Primary_File_Name
d:Os_File_Name...........................ans
23.23)which of the following options are true about temp. stored procedures
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
22.In entity framework ,Data is retrieved as objects.
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
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
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--------------------------------------------------------------------------------------------ANS
c.Both I and II
Select one:
ANS:a,b,c
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();
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
17) Which statements are true about CLR stored procedures?
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----------ANS
TRUE
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
25) ModelBinder interface defines---------
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----------------------------------------ANS
b.False
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
b.i and iii
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
d.SQL Server-level principal---------------------------Ans
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 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>
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)
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
FAlse
True-------ans
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
b.The function body defined in BEGIN ...END block contains a series of T-SQL statements--------------ans
a.Languge
b.Culture------------ans
c.Localization
d.Uiculture-----------ans
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
b.Getting the values to use as the action method's arguments.
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();
Select one or more:
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?
a)HTMLSerializationLibrary
b)CSRFLibrary
c)AntiXSSLibrary-------Ans
d)SecurityLibrary
=> True-----Ans
7) You are given a task to restrict the user to enter the surname which shall not be more than 15
characters How you will achieve this/
=> [StringLength(15)]
=> True------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
=> Localization is the process of = Adapting a global product for a particular language and country---Ans
17)We can write raw sql query in SQLQyery() method in entity framework
=> True----Ans
*************************************************************************************
*****************************
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-----------------------ans
b.DropCreateDatabaseWhenModelChanges
c.DropCreateDataabase Always
d.All
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 :
a.<%=Ajax.ActionLink("Click here","Sample". new AjaxOptions
(LoadingElementId="AONE",Question="Are you sure ?", Update TargetId="ProductAone",})%>
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.-------------ans
b. DropCreateDatabaseWhenModelCHanges
c. DropCreateDatabaseAlways------------------ans
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=404redirect=ErrorController.Status404/>
</customerrors>
</system.web>
--------------------------------------------------------------------------------ans a
b. <system.web>
<errorstatuscode=404redirect=ErrorController.Status404/>
</customerrors>
</system.web>
<system.webServer>
<httpErrorserrormode=Detailed/>
</system.web>
c. <system.web>
<errorstatuscode=404redirect=ErrorController.Status404/>
</customerrors>
</system.web>
<system.webServer>
<httpErrorserrormode=Detailed/>
</system.web>
d. <system.web>
<customErrors mode=RemoteOnly>
<errorstatuscode=404redirect=ErrorController.Status404/>
<errorstatuscode=GeneralExceptionredirect=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
b. return file------------------------ans
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
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
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")
17.What will be the order of TDD steps:
IV.Watch it fail.
Select one:
a.II,IV,I,II----------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:
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.--true
II.An instance of a given type can only exist in one entity set.---ans
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);
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)for the two entites in that relationship.
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
43.What do you understand by RAW ajax?
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
Select one:
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();
c. var user = context.Users
.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
b. False
a. Materialization is the process of returning queries back to the client as CLR types...................ans
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
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
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
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?
}
II. 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.Modified from EntityState.Unchanged.
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
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]
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
b. Model
c. Column.......................ans
d. Entity
a. Mapping manual
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.
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
d. Deferred or Lazy Loading
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();
b. NorthwindEntities dbContext = new NorthwindEntities();
product.UnitPrice = 1000;
dbContext.SaveChanges();
product.UnitPrice = 1000;
dbContext.UpdateChanges();
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
state true or false
a. true
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
select one
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
III.the entity framework uses the metadata in the mapping types to translate queries against the
conceptual model to data source specific commands
select one:
b.I & II
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
47.table splitting enables which of the following?
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
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-------------------------------ANS
c)poco
d)none
4)razor syntax have intellisense
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
c)allow access to external system resource such as files,networks and environment variables----------------
ans
only 1
only 2
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
b)use clustered index when a query returns largs resultsets----------------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 apne 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)protected override void OnModelCreating(DbModelBuilder
modelBuilder){modelBuilder.Entity<Blog>().HasRequired(e=>e.BlogAbout).WithRequiredPrincipal();mod
elBuilder.Entity<Blog>().ToTable("Blogs");modelBuilder.Entity<BlogAbout>().ToTable("Blogs");}
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
@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))
...]
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
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
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
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 iitializer 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
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
Q.45 Entity Framework provide us with which of thefollowing attribute to indicate multiple relationships
a [InsertProperty]
b [InverseProperty]-------------------ans
c [InProperty]
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
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
a public.HtmlHelper(|ViewContext viewContext,ViewDataContainer
viewDataContainer,RouteCollection routeCollection)
b public.HtmlHelper(ViewContext viewContext,|ViewDataContainer
viewDataContainer,RouteCollection routeCollection)-------------------ans
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
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