header1.html

Thursday, 4 April 2013

Entity Framework Quiz-1


This Quiz is on Basics of Entity Framework,Check here simple quiz on .NET Framework

Entity Framework Quiz-1
1.In the Entity Framework, which is the primary object that you use to query and modify data?
ObjectContext
EntityObject
DataContext
None Of these


2.Which of the following is NOT TRUE about the Entity Framework?
It automatically generates the classes from the model and updates these classes dynamically when the model is changed.
It takes care of database connectivity.
It provides query syntax for querying the model
It does not provide any mechanism to track changes to the model’s objects.


3.What is scalar property?
A property of an entity that maps to a all fields in the storage model.
A property of an entity that maps to a single field in the storage model.
Both
None of above


4.Is it possible to change the mappings between the object model and the database/XML (data storage) schema without changing the application code?
Yes
No


5.Is it possible to carry forward the existing applications built on ADO.NET to the Entity Framework?
Yes
No


6. Is it possible to create an entity model without a pre-existing database?
Yes
No


7.True or False: With Entity Framework the queried data is returned as rows and columns or data table records.
True
False


8.Does Entity Framework support foreign keys?
Yes
No


9.Is it possible to use Entity Framework with web services and WCF?
Yes
No


10.True or False: Entity Framework moves the entity model into three XML files that are used by the EF runtime.
True
False
Take a quiz on .NET Framework here..

.NET Framework Quiz-1


After successful implementation of My First Quiz on Computer Awareness,we are now moving to some technical stuff let's start from .NET Framework.Click hereto Check Quiz.
.NET Framework Quiz-1
1.Which of the following define the rules for .Net Languages?
GAC
CLS
CTS
CLR


2.___________ namespace is not defined in the .NET class library.
System.CodeDom
System
System.IO
System.Text


3. Dot Net Framework consists of :
Common language runtime
Set of class libraries
Common language runtime and set of class libraries
None of above


4.Which of the following statements are correct about JIT?
JIT compiler compiles instructions into machine code at run time.
The code compiler by the JIT compiler runs under CLR.
The instructions compiled by JIT compilers are written in native code.
The instructions compiled by JIT compilers are written in Intermediate Language (IL) code.
1,2,3
2,4
3,4
1,2


5.Which of the following is the root of the .NET type hierarchy?
System.Type
System.Base
System.Parent
System.Object


6.Code that targets the Common Language Runtime is known as
Unmanaged
Distributed
Managed Code
Native Code


7.Which of the following statements correctly define .NET Framework?
It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services.
It is an environment for developing, building, deploying and executing only Web Applications.
It is an environment for developing, building, deploying and executing Distributed Applications.
It is an environment for developing, building, deploying and executing Web Services.


8.How many types of compilers availbale under CLR?
4
2
1
3


9.Which of the following statements is correct about Managed Code?
Managed code is the code that is compiled by the JIT compilers.
Managed code is the code where resources are Garbage Collected.
Managed code is the code that runs on top of Windows.
Managed code is the code that is written to target the services of the CLR.


10.Which of the following utilities can be used to compile managed assemblies into processor-specific native code?
gacutil
ngen
sn
ildasm