You are on page 1of 55

-------------------------------------------------------ABHISHEK

GROUP-------------------------------------------------------
DAY 1
Q1. How do you detect code contract failures inside?
A).Programmatically check pre and post condition of a contract and set contract
failure property to true if errors are found.
B).create event monitor object and pass contract failure event handler ref to the
obj constructor
C).Assign an event handler to the race contract fail event
D).Set contract fail Property of contract object to the name of custom race
contract field event Handler
E).Assign an Event handler to contract failed Event
https://msdn.microsoft.com/en-us/library/dd264808(v=vs.110).aspx

Q2.You are creating Calculator Application with History recording and need to
convert string to single and double which interface method you will call.
A).IFormat Provider
B).IConvertable
C).IDisposable
D).IEnumerable
E).IClonable
https://msdn.microsoft.com/en-us/library/system.iconvertible(v=vs.110).aspx

Q3.Which identity attribute directs the CLR to perform Binding operation on
strong name assemblies.
A).Assembly Key File Attribute
B). Assembly Product Attribute
C). Assembly by Title Attribute
D). Assembly by default Alias Attribute
E). Assembly version Attribute
https://msdn.microsoft.com/en-us/library/4w8c1y2s(v=vs.110).aspx

DAY 2
Q4. You are developing a multithreaded gaming application which requires
construction of numerous large objects to improve applications performance. You
decide to initialize the large objects. However multiple objects might initialize at
the same time and you are concerned about thread deadlocks. Based on the
scenario above how you accomplish this requirement.
a) Set the thread.is background property to true for all threads.
b) Use thread managed thread id to read all thread identifiers and set the lazy
instance to use the highest identifier
c) Specify lazy thread safety mode. Publication only when constructing the lazy
instance of each object
d) Call the lazy initializer ensure initialised <T> method on the lazy instance
from each thread
e) Set the thread Priority property to lowest for all threads.
ANS:

Q5. You are programing the file upload procedures your team will use in its file
sharing application. The application lets the end user choose a custom
destination where uploaded files will be stored. You need to ensure that the user
has write access to choose destination directory.
Based on the scenario above which action do you take so that the uploaded files
can be written to user chosen destination directory?
a) Call file system security Remove access rule () to remove any read only
attributes present on the custom destination directory.
b) Call Directory info Get Access Control () to check if the user has write
permission & if absent call file System Security Persist () to grant write
Permission
c) Grant the user write access in the ACL of the destinations parent directory by
calling Set Security Descriptions dll Form ()
d) Call Directory GetAccessControl () to check if the user has write permission &
if absent modify the ACL to grant permission and call Directory SetAccessControl
()
e) Add the end users primary group to the list of unauthorized groups by calling
Object Security Set Group ().

ANS: D
LINK: https://msdn.microsoft.com/en-
us/library/system.io.directory.setaccesscontrol%28v=vs.110%29.aspx

Q6. Your multiplayer gaming server application communicates with clients using multiple
socket objects sending messages over internet protocol version 4 (IPV4) Channels. For
future
Compatibility you decide to provide communication over IPV6 channels without
initialising additional sockets.
How do you enable both IPV4 and IPV6 communications using the same socket
connection?
a) Initialise a second socket using IPV6 & call its Bind () method.
b) Specify the Protocol Type TCP parameters to trace BIND () method.
c) Set the sockets Dual Modes Property to trace
d) Set the sockets supports IPV6 property to trace call the sockets Receive sync ()
method
e) Call the sockets receiving async () method

ANS: C
LINK: https://msdn.microsoft.com/en-
us/library/windows/desktop/bb513665(v=vs.85).aspx

DAY3
Q7. When using the XMLReaderSettings class which step do you take to obtain
the instance of the XMLReader class?
a) Use a stringReader to instantiate the Xml reader
b) Call the XMLReader settings Constructor
c) Get a Reader from an XMLDocument
d) Call the XMLReader static create method
e) Call method XMLReader Settings.Clone()

ANS: D
LINK: https://msdn.microsoft.com/en-
us/library/system.xml.xmlreader.create(v=vs.110).aspx

Q8. Which mechanism do you use to query conceptual model data created within
an application based on the entity framework?
a) Transact SQL with LINQ extensions
b) Any .NET programming language with LINQ extensions.
c) Entity Script embedded scripting language
d) Entity SQL language
e) LINQ to SQL provider using native Transact SQL

ANS:D
LINK: https://msdn.microsoft.com/en-us/library/bb387145(v=vs.110).aspx

Q9. You created a new sales magnet application which connects to a central
database to store some info. The applications sqlConnection.ConnectionString
includes the following keyword –value pairs Server=centraDB.com
Encrypt=true;
TrustServerCertificate=false;
The server common name (CN) stored in the database server’s encryption
certificate is Centraldb.local
Based on the scenario above, what is the result when your application attempts
to connect to the database?
a) The management application connects successfully to the database
server
b) The database server fails back to an unencrypted connection
c) The connection succeeds but is limited to read only operation
d) The management application fails to connect with the database server
e) The database server negotiates a lower level encryption for
compatibility.
ANS: D
LINK: https://msdn.microsoft.com/en-us/library/bb879949(v=sql.110).aspx

Q10. Which interface do you implement when creating a custom role-based
security mechanism?
a. Iuser
b. IPermission
c. IPriniciple
d. ISecurityToken
e. IRoleProvider
ANS: C
LINK: https://msdn.microsoft.com/en-us/library/ff649350.aspx

Q11. Which configuration adjustment do you make to specify versions of the CLR
required for your application to run?
a. Add the application name to the manifest file associated with the
.NET version assembly file
b. Add <requiredRunTime> elements for each supported versions in
the application configuration file
c. Update the requiredRunTime property of the global
System.Environment.Runtime Object with supported versions
d. Add <SupportRunTime> elements for each supported versions in
the application configuration file
e. Add <unsupportedRunTime > elements for each unsupported
version In the application configuration file.

ANS: D
LINK: https://msdn.microsoft.com/en-us/library/jj152935(v=vs.110).aspx
-------------------------------------------------------PRANJALI
GROUP-------------------------------------------------------
DAY 1:
1. Scenario : You have written code which calls the dispose() method on an
object. During runtime testing, you discover something else is trying to
invoke a method on the object after the dispose() method has already been
called.
Based on the scenario above, which exception is thrown as a result of trying
to access the disposed object ?

a. Garbage Collection Exception
b. Invalid Program Exception
c. Operation Cancelled Exception
d. Object Disposed Exception
e. Content Marshal Exception
https://msdn.microsoft.com/en-
us/library/system.objectdisposedexception(v=vs.110).aspx

2. Which form of security do you implement in order to update an application’s
security by using attributes and no additional coding ?

a. File access permission
b. Identity Permissions
c. Imperative security
d. Code access permissions //rght but we want attribute
e. Declarative security
https://msdn.microsoft.com/en-us/library/kaacwy28(v=vs.80).aspx

3. Scenario : You work for a gaming company and are tasked with upgrading
the code of the backend server application. The backend is originally
designed for SQL 2008 but it is being
upgraded to work with SQL2012 for improved spatial data performance.
During testing you discover that the upgraded backend can connect but it is
unable to access some of the SQL 2012 enhanced features

The SQLConnection.ConnectionString used by the backend to connect is :
Server =GameServer;
Database = locationdb;
Integrated Security= false;
User id= GameAdmin;

Type System Version=latest Application name =Fighter Game Based on the scenario above . b.com/en-us/library/zcx1eb1e(v=vs. Clone() c. Call the XML reader a static create method. .aspx 5.data. Set timers execute on originator property to true.microsoft.net languages you confirm the types are cross-compatible without conversion by checking them against which component? a.connectionstring(v=vs. You are using a System. The user id value must be sa for all 2012 connections e.TimerObject. e. No use enhanced keyword is present in the connection string b. c. Implement iSynchronise on the control. https://msdn. The type system version value must be set to SQLServer2012 https://msdn. When using XML Reader settings class.microsoft. e.aspx //TO FIND THE RIGTH ANSWER 6. GC b.as px 4.110). CTS e. Password =12345. d.com/en- us/library/system.com/en-us/library/x1h1125x(v=vs. Replace the timer with System.Timers.microsoft. A data source keyword is missing from the connection string d. The password value length does not meet SQL 2012 requirements c. Use a string reader to instantiate XMLReader. which step do you take to obtain an instance of class XML Reader class? a.110). an invalid operation exception is raised. CLR c. CIL https://msdn. d. Get a Reader from XML document.sqlclient. Whenever Elapsed event fires.110). Call the method XMLReader settings. Which step you perform to convert the exception and update control? a. When moving datatypes between different . why is the upgraded backend appplication unable to access some of the SQL 2012 enhanced features a.Therading. Call invoke method to update control. Set control background property to true. DLR d. b.sqlconnection. Call the XMLReader settings constructor.Timer object to regularly pull data from remote service and update it in WPF control.

Eager http://www. Based on the scenario above.microsoft.100). Explicit c.elapsed(v=vs.com/en- us/library/system.Current https://msdn. c. Which kind of Entity Framework loading occurs when the Include method is called to retrieve related data at the same time the entity is read? a.https://msdn.CurrenUICulture e. Thread.110). d.delegate. Which action do you take to obtain a list of all handlers registered with a particular event? a. Use the EventsHelper class to get a list of required methods. Scenario: You are creating a video editing application with the ability to load different user interface resources based on the user’s culture.CurrentThread.microsoft.Culture b. Dynamic b. Thread.microsoft. Scenario: While creating an assembly. Call GetRegisteredHandlers() on the event.com/en- us/library/system. Call serialize() on the event. https://msdn.globalization.Currentcontext c. CultureInfo.CLSCompliantAttribute to the assembly and set its value to true. b.3/eager-loading-with- dbcontext.aspx 10.timers. applying the CLSCompliantAttribute(true) attribute to the assembly has what effect ? . Thread. you apply the System.aspx 9.getinvocationlist(v=vs. Delayed d. UICulture.net/EntityFramework4. Call GetInvocationList() on the event.aspx 8. which property do you adjust to inform Resource Manager of the culture-specific resources to load at run time? a.timer. Lazy e.entityframeworktutorial.currentuiculture(v=vs.aspx 7. Implement a custom collection and event accessors.cultureinfo.CurrentCulture d.com/en- us/library/system.110). e. Based on the scenario above.CurrentThread.

com/en-us/library/ms173152. Encapsulation https://msdn. The compiler assumes all private types are Common Language Specification (CLS) constraint. Based on the scenario above . 11.aspx .microsoft. Composition d. Inheritance b. Scenario: You are creating an inheritance hierarchy in your accounting application so that derived types are assigned to parent types. a. Polymorphism e. The Common Language Runtime (CLR) makes the assembly type-safe and runs verification on the assembly. which OOP concept permits both the identical name and the independent code? a. Aggregation c. b. but they will contain independent implementation code. c. d. e. The class loader assumes the type is type-safe. The JIT compiler does not perform verification since it is already determined to be type-safe by the compiler. The derived types will have methods with names identical to those in the parent type. The compiler ensures that no public exposedtype has any construct that would prevent it from being accessed by another language.

 Contract custom class  Contract requires  ICustomer Contract  Contract .1) You are debugging a new video editing application and are using code contracts to verify coding assumption in the program.microsoft.trace.2) You have created browsing application and want to monitor application transmission buffer usage during run time execution.com/en-us/research/project/code-contracts/ Q.3) You are using contracts in your current project and need to specify a class to serve as a contract for related interface. You create new trace source object which will write information about buffer fill size to a trace listener. which development tools run as static checker to verify your contracts during compilation. which trace source method you will used to write buffer fill size message to the listener. which code attribute you will use to declare contract class association.  Assert  Trace information  Write Line  Write trace  Write string https://msdn. We have Same Question like this in another doc in that we have Financial Application -CCrefgen is answer in that question  CC rewrite  GACUTIL  Verifcon  CC doc  CC Check https://www. You have added declarative contract in cod and want to verify contracts at compile time.com/en- us/library/system.microsoft.aspx Q.diagnostics.-------------------------------------------------------DHANANJAY GROUP--------------------------------------------------- Date: 30/09/16 Q.traceinformation(v=vs.110).

Convert <T> interface method.aspx Q.net/mvc/overview/getting-started/getting-started-with-ef-using- mvc/reading-related-data-with-the-entity-framework-in-an-asp-net-mvc-application Q.aspx Q.microsoft.110).7) You are attempting to Uninstall a shared named Morning. After running the command.  Use the List class ConvertAll() method. https://msdn.com/en-us/library/73fe8cwf(v=vs.com/en-us/library/8ffc3x75(v=vs.com/en- us/library/system.Management  System.Runtime https://msdn.AppDomainSetup  System.Reflection.4) How do you convert all element of a generic List <T> collection to be different types in a new List <T>?  Pass the conversion types to the constructor of a new system type converted.contracts. you .contractclassforattribute(v=vs.  Manually cast between the types in a custom class derived from the List Collection generic base class.asp.aspx Date: 1/10/16 Q.microsoft.110). you use classes in which namespaces?  System.6) To make your business application generate Common Intermediate Language (CIL) and Metadata dynamically at run time.Carpool from the Global Assembly Cache (GAC) via the “Gacutil/u” command.  Create a converter delegate object and assign a custom class handler to cast the types.Activator  System.  Implement the ICollection.Emit  System.110).diagnostics.  Contract class for https://msdn.5) Which kind of Entity Framework loading occurs which the include method is called to retrieve related data at the same time the entity is read?  Dynamic  Lazy  Delayed  Eager  Explicit https://www.microsoft.

Carpool value from the Global sub key in the registry.Net project.microsoft.9) you are asked to produce assemblies that will be used by the deployment team.microsoft. which action do you take to uninstall the Morning. Based on the above scenario. you are tasked with integrating the application into an updated .com/alanshi/2003/12/10/why-cant-i-uninstall-my- assembly/ Q.com/net/adapter-design-pattern Date 2/10/16 Q.” Based on above scenario.dofactory. You want to ensure the assemblies you provide are well formed and contain valid code.  Delete the assembly files from the GAC Directory.aspx http://www.Carpool Assembly?  Remove the Morning.msdn.110).com/en-us/library/62bwd2yd(v=vs. You need to intercept calls made by the legacy application and change into a format the new project can interpret and use.com/en-us/kb/873195 https://blogs.com/en-us/library/orm-9780596527730-01-04. which design pattern do you implement and refactor the calls?  Strategy  Composite  Adapter  Observer  Iterator.aspx .microsoft.microsoft. which tool do you use to verify your assemblies. https://support.encounter the message “Unable to Uninstall: assembly is required by one or more application pending references. Based on the scenario above.  peverify  Assembly viewer  Assembly validate  A language specific compiler  ILDASM https://msdn.  Run the “Gacutil/Silent” command to supress the message. https://msdn.  Run the “Regasm/Unregister” command  Run the “Gacutil/Silent” command and specify a scheme.8) Your team is working with a legacy window application containing numerous com objects.

110).microsoft.microsoft.  Decorate the class Dispose method with the Supress Finalise Attribute.keepalive(v=vs.110).gc.aspx .10) which step do you perform to prevent an object being Garbage Collected?  Call a GC collect Method with a parameter of false.asyncpostbacktrigger(v=vs. Both child control and exterior nested control must be able to update the parent controls.com/en-us/library/system. https://msdn.  Call a GC Supress Finalise Method from inside the class Dispose Method.  Call a GC Keepalive Method with the Supress Finalise Attribute.web.  Call a GC WaitForPending Finaliser Method.  Add an Update panel Trigger control and set the control Id property to reference the nested panel.com/en-us/library/system.11) You are writing an Asynchronous web application and the webpage contains parent and nested update panel controls.Q.  Set the Children as Trigger property to true for control inside the parent panel and to false for controls inside nested panel. https://msdn.  Add an AsynchPostBackTrigger and set the control ID property as reference to control of the nested panel  Add a ScriptManager proxy control  Set Update mode to conditional for the parent panel and to always for the nested panel.ui.aspx Q.

EventMonitor Answer : 2 https://msdn.ResourceManager 3.EventLog 4. TO create custom event logs which namespace you use ? Option.diagnostics(v=vs.-------------------------------------------------------KOMAL GROUP---------------------------------------------------------- 30/09/16(Group 4) 1. 1.aspx 2. System.resources.System.aspx 3.com/en-us/library/system. custom validator 3.com/en-us/library/system.Regular Expression validator .ApplicationLog 2.System.110).resourceset(v=vs.110). Which object do you Instantiate to gather cultural resources? Using resource readers and store them in hash tables Options:1.microsoft.Diagnostic 3.ResourceBuilder 2.microsoft.System.Compare validator 2.ResouceCLient 4.ResourceSet 5.Resx Resource Writer Answer: 4 https://msdn. Which control do you use to execute custom JavaScript client side code which validates data from input control? Options:1.

Isynchronizer 2.ICollection 5.110).ilist(v=vs.you quickly realise the file exceeds logical memory space limit for mapped files option: 1.Ithreadable 3.microsoft.Isynchornizable .increase size of logical memory allocated to memory mapped files 4.IArrayList 2.IEnumerable 4.create multiple views of file ensuring each one is below memory limit Answer: 5 https://msdn.110).aspx 6.Create multiple file mapping ensuring each one is below memory limit 3.microsoft.Increase the windows system swap file to accommodate file size 5. You are creating a testing application and need to call the method of an object created by another thread and then marshal the callback to original thread Options:1. you are developing a census application and need to create a 1D index accessible array with lower bound of Zero 1.Ilinkedlist Answer: 2 https://msdn.com/en-IN/library/9eee01cx(v=vs.aspx 5.71).Expression validator Answer : 2 https://msdn.Ilist 3.collections.4.microsoft.com/en-us/library/dd997372(v=vs. You are working with an extremely large file and decide to use memory mapping to access it within your application .aspx 01/10/16 (Group 4) 4.Split the files into smaller files ensuring each are is below memory limits 2.com/en-us/library/system.

Adapter 2. SelectMany() 2. Your app will run on high performance. set validaterequest attribute on @page directive 5.microsoft.com/en-us/library/ff649310.110).4. You have developed a weather product which pulls information from dB at multiple separate weather stations. SingleTon 5. set the compliationmode attribute on @page directive to always 2. replace default sessionId Generator with custom Generator 4.microsoft. when developing the web application how do you supress cross side scripting (cxss) of untrusted user browser input echoed to page? 1. LastOrDefault() . Dependency Injection 3.com/en- us/library/system.isynchronizeinvoke(v=vs. Observer 4.componentmodel.IthreadState 5.aspx 8. Abstract factory Answer: 2 https://msdn. CanSerialize() on output Answer: 4 https://msdn.100).aspx 7. set the enablesessionState attribute on @page directive false 3.which design pattern do you implement to inorder to improve unit testing in your code by loosely coupling object dependencies through object constructor arguments 1. multiprocessor server so you decided to use parallel LinQ (PlinQ) calls to as parallel to distribute query workload Option: 1.aspx 03/10/16(Group 4) 9.microsoft.Isynchornize Invoke Answer:5 https://msdn.com/en-us/library/hh323705(v=vs.

ArrayList 5.Reflection namespace 5. View Accessor Answer: 4 https://en. Apply attribute to selected type only once 3.aspx 12. Mapped Buffer 3. Apply attribute Only at Assembly level 2. List<T> 4.CLS complaint attribute Answer: 3 https://msdn. Array 2. CollectionBase 3.com/2010/02/03/parallelism-in-net-part-8-plinqs-forall-method/ 10.110).3. how do you ensure its design complies with common language specifications(CLS) 1.com/en-us/library/ms132397(v=vs. Inherit attribute directly or indrectly from system attribute 4.org/wiki/Memory-mapped_file 11.com/en-us/library/dd383744(v=vs. GroupJoin() Answer: 3 https://msdn.aspx http://reedcopsey.110). Memory Stream 2.aspx . Collection<T> Answer: 5 https://msdn. File 5. ForAll() 4. Inherit attribute directly from System. Limit attribute to only system. Creating a custom attribute .com/en-us/library/system.microsoft.wikipedia.microsoft. Zip() 5. Which Object do you use to access and update the contents of memory mapped files 1. Managed Pointer 4.clscompliantattribute(v=vs.microsoft. Which base class do you use when creating generic collections 1.110).

COm callable (calling . containing large amount of event processing code.microsoft. Runtime Callable(calling com components) 2.com/en-us/library/mt653985. Implement the IStrongEventListener interface within your application 2.com/en-us/library/aa970850(v=vs. use Standard event pattern to explicitly define connection between event publisher and subscriber Answer: 4 https://msdn.net components) 4. while you are debugging the code you notice listener object with no reference have a direct connection to corresponding publisher object and are not picked up by GC. Which wrapper do you use to invisibly access components from legacy com based application 1. Use strongEventManager to implement a collection between event publisher and subscriber 3.codeproject. Refactor application to use strongEventManager as an intermediate object between event Pulisher and SUbscriber 4. Component interface 5. Options: 1.aspx “””””””””””””””””””””””””””””””””SECOND HALF””””””””””””””””””””””””””””””””””””””” -------------------------------------------------------- Abhishek--------------------------------------------------- For 2 days: .aspx 14.110).microsoft. You are assign the task to debug the dotNEt wpf application.com/Articles/5001/NET-COM-Interoperability https://msdn. Runtime component 3.13.Use Weak Event Pattern to Resolve Strong Connection between Event Publisher and subscriber 5. Idispatch Interface Answer: 1 http://www.

decending() http://stackoverflow.com/questions/12428985/distinct-and- orderby-issue https://msdn.15. Which LINQ expression do u execute to de-duplicate and sort the array? 1) From s in ages orderby s descending group p by s select s.Transform(oldPriceList.Transform(oldPriceList. 4) Xslt.Combine(XmlFilePath. and the style sheet is loaded into an XslCompiledTransform named “xslt”. which method do you call to execute the transform and to write the result to an XmlWriter named “newPriceList”? 1) Xslt.Distinct() 4) Select unique s from s in ages sortby s descending 5) (From s in ages orderby s select distinct s). newPriceList).1.xslt”). You want callers using your API to be able to use the contracts but do not want to include the contracts in the final executable code.”pricelist. 5) Xslt.6.9. 2.aTransform(oldPriceList.8.”new PriceList.Transfrom(Path.4.8.7.oldPriceList.new StringReader(oldPriceList)).CreateReader().1. You need to eliminate duplicate elements from the array and sort the elements in decsending order.1. 3) Xslt. 2) Select distinct s from s in ages sortby s descending 3) (from s in ages orderby s descending selest s).8.2.xslt”)).Combine(xmlFilePath. Based on the scenario above.Transform(writer . YOU have an integer array named “ages” containing the elements{7.CreateWriter () ). You are writing a shopping cart application which reads prices from an XML document and transforms the list using a style sheet. 2) Xslt.com/en-us/library/bb348456 . You have developed a financial services Application Programming Interface (API) and include Code contracts in the API to manage preconditions and postconditions.newPriceList).1.3.23}. Which development would u use to build a contract reference assembly to distribute alongside your final executable code? 1) Ccrefgen 2) Refcodeasm 3) Ccode 4) Cccheck 5) Regasm 3.CreateReader(). Path.microsoft. The prices are loaded into an XDocument named “oldPriceList".

componentmodel. and runtime mode.aspx 2.microsoft. which interface do you implement to call the method and marshal the result? a) ISynchronizable b) IThreadable c) IThreadSafe d) ISynchronizeInvoke e) ISynchronizer https://msdn. d) Use an activator object to pass the data to the custom event. Based on the scenario above. You are creating a custom event that passes user defined data in a custom EventArgs argument. c) Use the standard EventHandler with a custom EventArgs class. version. b) Call Finalize on custom EventArgs. interface identifier and type of interface 2) GUID of CLR instance and resources optimization method.com/en- us/library/system.isynchronizeinvoke(v=vs.asp.4. Based on the scenario above. 3) A collection of interface pointer to the COM interface exposed by the CLR 4) Pointer to the runtime host’s memory heap and the size of its allocated memory 5) Name of runtime host DLL. You are creating a texting application and need to call the method of an object created by another thread and then marshal the call back to the original thread. .110).net/t/1543851.aspx? Custom+event+handlers+in+ASP+NET 3. https://forums. The Common Type System (CTS) supports which type of interface? a) Multiple inheritance with language interoperability. Which se tof parameters do you need to specify in order to successfully load the Common LanG Runtime(CLR) into a process? 1) the class identifier. e) Create a custom delegate type to pass the custom EventArgs. 1. b) Single inheritance with language interoperability c) Multiple inheritance only when the base types are each written in different languages. how do you pass EventArgs to the custom event? a) Call Member wise clone on the custom EventArgs.

e) Single inheritance from base types written in the same language.Services webService class.streetdirectory. 2.html ---------------------------------------------------------------- Pranjali----------------------------------------------- 5th Oct Scenario 12: You are developing an instant messaging application based on the Windows Common Foundation (WCF) Service oriented programming model. http://www. how do you expose the class method? 1. 5.in/books? id=5C5FBp6n8W4C&pg=PA335&lpg=PA335&dq=You+need+to+ex pose+a+method+of+the+server+side+class+for+use+by+clients +of+WCF+services.com/travel_guide/119921/technology/understan ding_common_type_system_in_net_framework. and the class must be able to find the exe. Create a public class declared with the OperationContractAttribute attribute with an action property set to ‘*’ (Asterisk). 4.google. and declare the method using the OperationContractAttribute attribute. define the public method.and declare the method using the OperationContract attribute. Inherit the particular public class from System. Create a public interface for the particular class declared with the Web Service attribute and declare the public method using the Web Method attribute. You need to expose a method of the server side class for use by clients of WCF services.co.d) Multiple inheritance from base types written in same language. Create a class public interface for the particular class declared with the serviceContract attribute.Web. Create the particular class as public. Answer: https://books.config file to load the configuration for the RemotableType Class. 3. Question 12: Based on the above scenario.+how+do+you+expose+the+class+method? &source=bl&ots=_4VVSETHxp&sig=n1pnYDBQfbnwU0RSdzC5ORm .

Call FilesystemSecurity. You need to ensure that the user has write access to the chosen destination directory.aspx Question 14: .io.RemoveAccessRule() to remove any read- only attributes present on the custom Destination Directory.110).setaccesscontrol(v=vs. modify the ACL (Access Control List) to grant permission and call Directory SetAccessControl().110). Call Directory. which action do you take so that the uploaded files can be written to the user chosen destination directory? 1. 4.getaccesscontrol(v=vs.GetAccessControl() to check if the user has write permission. 5. https://msdn.directory. and if absent. Grant the user write access in the ACL of the destinations parent directory by calling SetSecurityDescriptorSddlForm(). Add the end users primary group to the list of authorized groups by calling ObjectSecurity SetGroup() 2.io. call FileSystemSecurity Persist() to grant write permission. and if absent.aspx https://msdn.directory. 3.%20how %20do%20you%20expose%20the%20class%20method %3F&f=false ------------------------------------------------------------------------------------------ ---------------------------- Scenario 13: You are programming the file upload procedures your team will use in its file sharing application.microsoft.com/en- us/library/system.8o1E&hl=en&sa=X&ved=0ahUKEwi7j_7ThcvPAhVEvY8KHc1DCDAQ 6AEIRTAG#v=onepage&q=You%20need%20to%20expose%20a %20method%20of%20the%20server%20side%20class%20for %20use%20by%20clients%20of%20WCF%20services.GetAccessControl() to check if the user has write permission. The application lets the end user choose a custom destination where uploads file will be stored. Question 13: Based on the scenario above. Call Directory Info.microsoft.com/en- us/library/system.

new() 2.Carpool Assembly? . NativeActivityCancellationToken 4.threading.com/en- us/library/system.” Not Sure Maybe 1 or 4 Question: Which action do you take to uninstall the Morning. Which constraint is required to use array covariance with a generic class of type T? 1. Generic Type 5.microsoft. After running the command. TaskCancellationTokenSource 2.Carpool from the Global Assembly Cache (GAC) via the “gacutil/u” command. AsyncCodeCancellationToken 5. you encounter the message “Unable to uninstall: assembly is required by one or more applications pending references.cancellationtokensource(v=vs.aspx Question 15: Which object do you inspect to determine if a long-running task will be cancelled? 1. ICustomInterface() 3. CancellationTokenSource Answer : https://msdn.110). Struct 4. Class Answer : (5)Class https://msdn.microsoft.aspx 6th oct 16: Scenario: You are attempting to uninstall a shared assembly named Morning.com/en-us/library/d5x73970. CallBackCancellationToken 3.

Nullable<T> 5.110).com/en-us/library/dd997286(v=vs. Run the “gacutil/ur” command. TargetSite 2. Run the “gacutil/silent” command to supress the message. 4.aspx 18: Scenario: you are programming a photo editing application which can handle photographs containing very large amounts of data.aspx 17: Scenario: you are diagnosing the cause of an exception caught in your weather tracking application .110). WeakReference<T> https://msdn.Carpool value from the Global subkey in the registry. For efficiency.targetsite(v=vs.110). 1. HResult 4.microsoft. Message 3. 2. LargeLoad <T> 3.com/en-us/library/ex0ss12c(v=vs. Source https://msdn.microsoft. Question: Which property do you examine to determine the original method which threw the exception? 1.you determine the exception originates in a different method than the method which caught the exception.aspx .com/en-us/library/dd642331(v=vs. Remove Morning. you do not want to initialize the object containing the photo data until first use. 5. Delete the assembly files from the GAC directory. Data 5.exception. 3.aspx https://msdn.microsoft.microsoft. and specify a scheme. Progress <T> 2. Question: Which instance do you use to construct the photo object but defer its initialization until the first time the object is accessed? 1.com/en- us/library/system. https://msdn. Run the “regasm/unregister” command.110). Lazy<T> 4.

85).NET development tool do you use to install assemblies Into the Global Assembly Cache? 1. Regsvr32 2.microsoft. Gacutil 5. interface identifier and type of interface.aspx 20: Question: which . 2) GUID of CLR instance and resource optimisation method 3) A collection of interface pointer to the Com interface exposed by the CLR .110). Anonymous Page 3. Named Pipes https://msdn. Regasm 3.NET Input/output (I/O) mechanism do you use to exchange Interprocess Communication (IPC) messages across a network between two unrelated processes? 1.aspx#base. Gacedit 4. Ethernet packets 2. Dynamic Sockets 4.com/en-us/library/dkkx7f79(v=vs.com/en- us/library/windows/desktop/aa365574(v=vs.using_pipes_fo r_ipc ------------------------------------------------------ Dhananjay----------------------------------------------------------------- Date: 04/10/16 Dhananjay Question No : 1 Q1) which set of parameters do you need to specify in order to successfully load the Common Language Runtime (CLR) into a process? 1) The class Identifier.microsoft. Distributed Proxies 5. Reggac https://msdn.19: Question: Which .

110).httplistener(v=vs. https://msdn.com/en- us/library/system.net.microsoft. To help secure the chat messages from eavesdropping .aspx Que 2) How do you detect code contract failures inside your own applications? 1> Assign an event handler to the ContractFailed event 2> Programmatically check the precondition and postcondition of the contract and set the ContractFailure property of the contract object to true if errors are found 3>Set the Contract Failed property of the Contract object to the name of custom Raise ContractFailed event handler 4>Assign an event handler to the Raise Contractfailed event 5>create an event monitor call back object and pass a ContractFailure event handler reference to the object constructor https://msdn.microsoft.com/en-us/library/bb985611.Your chat program uses an encrypted HTTP connection listening on port 31313 Que.aspx . The Chat program communicates with other clients through an HTTPListener Object using the standard Hypertext Transfer Protocol(HTTP) commands .microsoft. 4) Pointer to the runtime host’s memory heap and the size of its allocated memory 5) Name of runtime host DLL version and runtime mode.>Based on the scenario above . which Uniform Resource Identifier (URI) prefix string do you add to allow HttpListener to receive messages from other chat clients 1>https://all:31313 2>https://chat:80/31313 3>https://31313:80/ 4>https://+:31313/ https://+:31313/ https://msdn.com/en-us/library/bb985611.aspx Que 3)You are programming a simple distributed chat program for use on your company's LAN.

PaintNewColor as protected instead of public 3>Declare a FrontDoor. Both classes define a public method named PaintNewColor .separate weather stations . However the compiler generates a warning complaining about override the paintdoor method when you compile the application Based on the scenario above how do you resolve the compiler warning while keeping PaintNewcolor accessible to other classes 1>Include the Virtual keyword modifier when declaring Door.microsoft.com/en-us/library/9fkccyh4.microsoft.PaintNewColor as private instead of public https://msdn.PaintNewColor as static 4>Include the abstract keyword modifier when declaring Door. multiprocessor server so you decide to use paraalel LINQ(PLINQ) calls to as parallel LINQ(PLINQ) calls to As parallel to distribute the query workload .Que 4)You are creating a new class representing a complete data structure and need to use a foreach loop to iterate over the data in the structure Based on the scenario above which interface do you implement to expose the class data to the foreach loop 1>IIterator<T> 2>IEnumerator<T> 3>IForEachable<T> 4>ISupportsForEach<> 5>IEnumerable<> "https://msdn. 2)You have developed a weather prediction application which pulls information from database at multiple .PaintNewColor 5>Declare a FrontDoor.aspx" Date: 5th Oct ------------------------------------ Q1)you have developed a3d computer drafting application which contains a base class named Door and it’s derived class name FrontDoor.Your application will turn on a high performance .110%29.PaintNewColor 2>Declare a FrontDoor.PaintNewColor is also modified with a override keyword.which records door on screen.Frontdoor.aspx Q.com/en- us/library/9eekhta0%28v=vs.

5) Which Component is queried by Composition container to discover usable parts With an application based on MEF(managed Extensibility Framework)? 1) A host Container 2) A platform independent MEF provider 3) A related external data store 4) A local collection object .Based on the scenario above.110).microsoft.which method do you call to invoke the queries in parallel and automatically combine the result? 1>Select many() 2>Zip() 3>GroupJoin() 4>forAll() 5>Last or Default() How to: Create and Execute a Simple PLINQ Query Q.3) You are on a team writing code which implements the ICorProfilerInfo4 interface to profile performance of your Company’s new flight simulation game. You want to test performance changes affecting the rendering engine after the game has been active for an hour and need the Just-In-Time(JIT) compiles to recompile the rendering functions.microsoft.com/en-us/library/hh361094(v=vs. which method do you call to request that the JIT compiler recompile the rendering function? · SetFunctionReJIT() · PushJITRevert() · RequestReJIT() · GetReJITPs() · RequestRevert() https://msdn.4) What is the result of including the by ref keyword when passing a reference type parameter to a method ? 1) the program throws a NotSupoortException 2)The parameter is stored on the unmanaged heap 3)The original pointer to the reference type is passed to the method 4)the application fails to successfully compile 5)the parameter is stored on the stack instead of the managed heap https://msdn.aspx Q.after binding the queries to PLINQ using as parallel .aspx Q.com/en-us/library/s6938f28. Based on the scenario above.

doc/dcain004. Based on the scenario above. Now. 2) Update the application web.110). how do you restore your application to a functional state.microsoft.1.microsoft.ibm .config file to add a <framework> vrsion tag 3) Restart IIs to trigger automatic recreation of the application domain 4) Re-Create the IIs virtual directory associated with your application 5) Run the aspnet-registration tool to correct IIs file mappings. 5) A catalog object https://msdn.htm 3)Which Encoding do you specify when reading file data stored with the most significant byte first? 1) ASCII 2) Unicode 3) UTF-32 .0/com. 1) Reinstall the .110). https://www.dc.Net framework using the dotnet/x application matching your version number.aspx 2) During the deployment phase of your web service application one of the junior team member ignores your direction and installs the Internet Information Server after installing the .install.com/en- us/library/system.Net framework.target(v=vs.aspx 07/10/2016 Dhananjay (GN-03) 1)Which property of System.ibm.delegate represents the object used to execute the delegate callback method? 1)Method 2)ParentTarget 3)MethodInstance 4)MethodContext 5)Target https://msdn.com/support/knowledgecenter/SSZRWV_8. none of your application pages are loading correctly and IIs records multiple errors.com/en-us/library/dd460648(v=vs.delegate.

) Max() b. You are developing a file management application .) Group By c.) Order by() e.)Object Services b.which queryable method do you call to sort by increasing days of attendance? a.aspx Q5) Which component of the Entity Framework specifies mappings between conceptual and storage models? a.codeproject.4) Little Endian Unicode 5) Big Endian Unicode http://www.NET data provider d.com/Articles/885262/Reading-and-writing-Unicode- data-in-NET Q4) You are modifying a classroom attendance application that uses LINQ to entities to read records of student information from a database.90).Your boss asks you to sort the Students in order of increasing days attended Based on the scenario above .com/en-IN/library/cc982042(v=vs.aspx ----------------------------------- Komal------------------------------------------------------------------------------------------ 04/10/16(Group 4) 1.) Order by descending() https://msdn.com/en-us/library/hh165540(v=nav.microsoft.100).)Order by Ascending() d. your application must be able to verify write permission for files on the disk Option: .)Entity data Model c.)Entity Client data provider https://msdn.microsoft.)ADO.

Write) e. c.110).xml”).componentmodel.permissions. FileI/O permissions(System.permission.SecurityAction.aspx . File i/O permission(System. write=@”\data\configoption.microsoft.FileMode. a.xml”) b.Open.Demand(). ExportMetadata d.aspx----- 1quest 2.security. @”\data\configoption.assert. Answer: https://msdn.writ e=@”\data\configoption.microsoft.xml”) d. FileI/O permission(File I/O permission access.exportmetadataattribute( v=vs.composition.Permission. as well as their properties . ExportMany c.fileiopermission(v=vs.Write. write=”=@”\data\configoption. Export e.110). File I/O permissions(FileIOPermissionAccess.xml”).xml\”). FileStream(@”\data\configoption. FileAccess.security. ExternalData https://msdn. ExportContainer b.FileShare.Access.com/en- us/library/system. fields and methods to add additional information to exported values Options: a.verify(). Which attribute do you decorate on managed extensibility framework types .com/en- us/library/system.Demand.securityAction.security.

110). (int x . Windows communication Foundation WS(SVC) d.net active sensor methods (ASMX) c.length > x a.microsoft.microsoft. active server page extended (ASPX) e Comma separated variable (CSV) https://msdn. String c.Convert<T> interface method e.com/en- us/library/system. Web Service configuration(config) b. pass conversion types to constructor of new system.web.TypeConverter c. How do you convert all elements of Generic list<T> collection to be different types in new list<T> Options: a.ui. string s) => s.aspx 4.com/en-us/library/73fe8cwf(v=vs. Delegate void e. Manually cast Between types in custom class derived from ListCollection <T> generic base class b. Create a converter delegate object and assign a custom event handler to caste types https://msdn.childrenastriggers(v=vs. ASP. What is the Default file extension used by internet information service (ISS) to identify special content files related to WCF services Options: a. int32 . Implement ICollection.updatepanel. 3.aspx 5.110). use List class ConvertAll() method d. Boolean b. Char d.

You are writing an asynchronous web application and webpage contains parent and nested update panel controls.Webservice class and declare the method using the OperationContractAttribute attr 4.Web. Create a public class decorated with OperationContractAttribute attr with an Action property set to "*" 2. add an UpdatePanelTrigger control and set control and set control id property to reference the nested panel 5/10/2016 1) You are developing an instant messagingapplication based on the WCF service-oriented programming model. Inherit parrticular public class from System. Add an asyncpostbackTrigger control and set the control id property as reference to control of nested panel c. Create a public interface for particular class decorated with the ServiceContract attribute. Create the particular class as public define the public method and the class must be able to find the exe. set the childrenAsTrigger property to true for controls inside parent panel and to false to the control inside nested panel e. You need to expose a method of the server-side class for use by clients of WCF services how do you expose the class method 1. not nested controls must be able to update parent controls Options a.Services. and declare the method using OperationContract attribute 3. Both child controls and exterior. Add a scriptManager proxy control b. 6. Create a public intereface for the particular class decorated with the webservice attrand declare the public method using WebMethod attr 5. Set the update mode to conditional for parent panel and to always for nested panel d. config file to load config for RemotableType class .

0) as Total from Customers c.Name. c.CustomerId group bby c. Delegates 3.Name.2) from c in customers join 0 on orders on c. isnull(sum(o.Name 4.Amount). select c.Name.aspx 4)Which category of value types in CTS allows you to use literal constants as placeholders for integer values in your code? 1.microsoft. You need to diagnose why program's db connection is failing what do you access to review diagnotic info about failed ADO.NET to store geolocation data in a database.CustomerId group by c. Server Performance Log 5. Internet Info Server Log 2. select c.CustomerId group bby c.Name 3.com/en-us/library/hh213095. isnull(sum(o. but you are unable to successfully connect to database. isnull(sum(o.0) as Total from Orders o right join Customers c on o.CustomerId group by c.0) as Total from Orders o inner join Customers c on o.Name 2. select c. isnull(sum(o.CustomerId equals o.Amount).NET connections? 1.Name 5.CustomerId=c. Backup Transaction Log 3. Virtual Log File 4.0) as Total from Orders o join Customers c on o.Amount). Classes .Amount). orders o where o.Name. Total = grouped.Name.Key.Amount).Amount:0) } Which sql code is equi to LINQ expr above 1. Extended Events Log https://msdn.DefaultifEmpty() group j2 by c. Structures 2.CustomerId=c.CustomerId=c.Sum(t=>t!=null?t.CustomerId=c. select c.0) as Total from Orders o left join Customers c on o.CustomerId group bby c.CustomerId into j1 from j2 in j1.Name 3) You are programming a surveyor utility which uses ADO.Name into grouped select new { Customer = grouped.CustomerId=c.Name. isnull(sum(o. Enumerations 4. select c.

110).String(bstr) data 2. Interfaces https://msdn.eventlog(v=vs.microsoft.com/en-us/library/sbbt4032.aspx 5)You are creating multiuser file sharing application. Which datatype do you convert in order to pass string reliably between dotnet and com based component Options: 1. CreateEventSource() 2.5.com/en- us/library/system. Unmanaged 2 bytes Booleans 4. Simple value types . ToString() 3. WriteEntry() https://msdn. BeginInit() 4.diagnostics.microsoft. PutEvent() 5. Objects containing only simple value types 5.aspx Group 4: 07/10/2016 1. Com Based invariant 3. You want to add quick notification event to appl log each time user log on to appl which eventlog method do you call to add the logon notification to appl log? 1. Com.

Select Query https://msdn.80) 3.com/en- us/library/system.com/Articles/5001/NET-COM-Interoperability 2.codeproject. Connector string 5. You need to modify string value config settings for recently deployed application. Settings key https://msdn. Which contract method do you call at the beginning of checkout process to verify CartTotalPrice is positive Options: . Properties 2.configuration(v=vs. App settings 3. To mitigate the errors changes in an external file linked to client application .microsoft.configuration.aspx 4. You are developing a shopping cart widget which stores the final cart total in variable named CartTotalPrice .Configuration allows you to read config settings Options: 1. Instrumentation Query 3. which property in System.http://www. Object Query 2.com/en- us/subscriptions/downloads/ms186146(v=vs. you need to use code contracts during testing to ensure CartTotalPrice holds a Positive value when passed to checkout process. Which class do you use as a base class when constructing windows management instrumentation (WMI) queries Options: 1. Management Query 5.110).microsoft. Attributes 4. Event Query 4.

Call finalize on custom EventArgs 5. CartTotalPrice.0) 5. 3. Encapsulation . Contract.com/en-us/library/dd412847(v=vs. You are creating a custom event that passes user-defined data in custom EventArgs argument . Contract. but they will contain independent implementation code Based on scenario above which OOP concept permits both identical names and their independent codes.microsoft. Use std Eventhandler with custom EventArgs class 4. Inheritance 4. Contract.Requires(CartTotalPrice>0) 2. Polymorphism 2. Options: 1. Use an Activator object to pass the data to custom event .aspx 2. how do you pass EventArgs to custom event? Options: 1.aspx ‘’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’Rest28 Q & A’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’ 1.microsoft.eventargs. Call MemberwiseClone on Custom EventArgs https://msdn.com/en-us/library/system. Debug.Exists(CartTotalPrice.110). Create a custom delegate type to pass custom EventArgs 2. Composition 3.Assert(CartTotalPrice=0) 4. 1. You are creating an inheritance hierarchy in your accounting app so that derived types are assigned to parent types the derived types will have methods with names identical to those in parent type.Equals(0) https://msdn.Ensures(CartTotalPrice>null) 3.

aspx 3.aspx 5. Garbage collection https://msdn.com/en-IN/library/wa80x488. Namespaces 2. Options: 1.microsoft. Delegates 4.microsoft. Partial classes https://msdn. you confirm the types are cross compatible without conversion by checking them against which component Options: 1.com/en-us/library/ms173152.com/en-us/library/zcx1eb1e(v=vs. Common Type System(CTS) 3. ControlExists() 2.110). FindInParentControl() 3. Which method do you call to locate a control existing within a specified parent control Options: 1. When moving datatypes between different .aspx 4.microsoft. Common language Runtime(CLR) 5. Aggregation https://msdn.NET framework language . Common Intermediate lang(CCIL) 4. FindChild() . What do you use to separate autogenerated code from user defined code. Anonymous types 3. 5. Interfaces 5. Dynamic lang Runtime (DLR) 2.

Complied Query 4.110). Options: 1. update and delete operations.microsoft. DocumentViewer 3.110). 4. FindControl() 5.com/en-us/library/aa970268(v=vs.100).data.TreeView 5. MetaData WorkSpace 3.aspx 7. Based on scenario which class of Entity Framework do you use and track operation.Object Result 5. toolBar 2.com/en-us/library/486wc64h(v=vs.Object State Manager https://msdn. You are writing a data storage app and read to encapsulate and properly track data object during create.aspx 8. POST and DELETE verbs? Options: . Which protocol format is used by data services to change data using GET.com/en- us/library/system.objectstatemanager(v=vs. PUT.Grid https://msdn. Entity Connections 2. SerachControls() https://msdn.microsoft. TextBOx 4. Inorder to arrange a windows control by location and size to form a userdefined layout you call methods and set the prop of Which wpf class? Options: 1.objects.aspx 6.microsoft.

Extensible Messaging and Presence Protocol (XMPP) 9. XAML 5. Unicode 2. ISecurityToken 4.com/en-us/library/ff649350. 1.microsoft.aspx#secnetch03_rolebasedauth 10. ASCII . IUsers https://msdn. SOAP 4. IPrincipal 2. Which encoding do you specify when reading file data stored with most significant byte first ? Options: 1. Which interface do you implement when creating a custom Role-based Security mechanism? Options: 1. IPermission 3. Big Endian Unicode 3. IRoleProvider 5. UTF-32 4. Open Data Protocol (oDATA) 3. Little Endian Unicode 5. XML 2.

Based on the scenario. Build your application using VS.DisableSilentRejection 3. To write applications based on scenario above. You are developing a Sports tracking application using two different . CompositionOptions. Compile all modules then use VS. ComponentActionsType.Auto 2.ExposeAllExceptions . then use the “al” assembly linker tool 5.NET IDE to merge modules 6. Options: 1.110).NET IDE using single solution project 3.codeproject. how do you combine modules written in two different languages.aspx 12.All 4.NET applications. Compile all modules. then use the “ildasm” bol to create a text file for import into “ilasm” bol 4.com/en-us/library/226t7yxe(v=vs. which flag in the composition container constructor you define in order to expose composition Exceptionhandling.microsoft. Compile all modules into portable executable (PE) format. CompositionOptions.ExportCompositionService 5. into a single assembly module and create an output file containing assembly manifest multi-file assemblies? Options: 1. DisplayMode. https://msdn. You are testing the code of instant chat application which uses composition container objects used needs to catch composition exceptions for debugging.com/Articles/885262/Reading-and-writing-Unicode-data-in- NET 11. CompositionOptions. http://www. Compile all modules using “csc” or “vbc” compiler tools and then the “lib” library manager 2.

You are using System.Timer object 2. Instrumentation Query 2. Whenever the elapsed event fires an invalid Operator Exception is raised. Set timers ExecuteOnOriginator property to true 4. https://books.Timers. Set controls Background property to true 3. Based on the scenario.managementquery %28v=vs. Implement ISynchronizeInvoke on control .Threading.in/books?id=uM- ucQI506UC&pg=PA99&lpg=PA99&dq=which+flag+in+composition+container+constructor+d o+you+define+in+order+to+expose+composition+exception+for+handling&source=bl&ots=8 5g3BzXalU&sig=xQBoi1LaRqH7oJH4WkXec2FUMg8&hl=en&sa=X&ved=0ahUKEwi- lJqkic3PAhWHM48KHZagC0YQ6AEIITAB#v=onepage&q=which%20flag%20in %20composition%20container%20constructor%20do%20you%20define%20in%20order %20to%20expose%20composition%20exception%20for%20handling&f=false 13. Options: 1. Replace timer with System.co.google.management. Event Query https://msdn. Object Query 5.microsoft. Select Query 4.com/en-us/library/system. Management Query 3.110%29. which step do you perform to correct the exception and update control. Which class do you use as base class when constructing Windows Management Instrumentation (WMI) queries? Options: 1.aspx 14.Timer object to regularly pull data from a remote service and update it in WPF control.

110%29.aspx .aspx 15. Use an alternate window installer deployment instead of ClickOnce https://msdn. FileStream 4. 5. Call Invokers method to update control https://msdn.com/en-us/library/aa730865(v=vs. Provide custom UI for discovering updates 2. Check for updates in bg thread after app starts 4. The customer only has access to low bandwidth network connection at its physical site.file%28v=vs. File https://msdn.com/en-us/library/system. Set update interval to One month 3.timer(v=vs. Check for updates before the app starts 5. You are creating ClickOnce deployment project for your customer’s application.110).IO class do you use to call static methods for creating and manipulating files ? Options: 1. File Info 2. StringWriter 3.timers. Which System.microsoft. StreamWriter 5.io.microsoft.aspx 16.80).microsoft. This will result in lengthy download times when installing from across the network. Based on the above scenario. which action would you take to reduce the cust time between installation time and first use? Options: 1.com/en-us/library/system.

com/en- us/library/system.Contracts ans>System.aspx Q2)To retrieve the route URL of data bound controls in your web application. Your boss instructs you to add code contract to the program code to help the beta testing team identify programming issues *Based on scenario above.Contracting e>System.com/en-us/library/dd264808(v=vs.which namespace do you import to gain access to code contract precondition method a>System.webcontrols.objectdatasource(v=vs.3) You are tasked with creating a database connection inside one of the managed code objects of your company’s sale application.Contracts https://msdn. Call the system GC.microsoft.CodeAnalysis d>System. You need to release this unmanaged resources as soon as possible.ui.web.Diagnostic. 1.110).Diagnostic.Diagnostic. how do you release the connection release as soon as possible.Tracing c>System.you call methods from which class a>Data Adapter b>Grid View c>Repeater d>ObjectDataSource Class e>Object Data Set ans> ObjectDataSource Class https://msdn.aspx Q. collect method . Based on the scenario above.Code.----------------------------------------------------------dhananjay group--------------------------------------------------------- Q1)You are finished work on DVD burning application.microsoft.Diagnostic.Provider b>System.110).Configuration.

keepalive(v=vs.com/en-us/library/bb359438(v=vs.aspx Q6).WaitForPendingFinalizers() method e.SuppressFinalize() method from inside the class DisposeMethod b. While you are debugging the code you noticed listener objects with no references have a direct connection to corresponding publisher object and are not picked up by GC Based on the scenario how do you expose listener object for GC a. Executive it at collection time 4. 2.)Call a GC.microsoft.microsoft. Comparer<T> 4.NET WPF Application containing large amount of Event processing code.110). Unique<T> 5.4) You are creating a real time file audit utility and need to create a high performance collection holding only unique elements not sorted in any particular order.com/en-us/library/498928w2(v=vs.)Implement IStrongEventListener interface within the application c.KeepAlive() method with parameters referencing a class object c. https://msdn. clean up the unmanaged resources 5.)Call a GC.)Call a gc.aspx Q.)Use strong event manager to implement connection between event publisher and subscriber .)Decorate class DisposeMethod with supressFinalize attribute https://msdn. Let automatic GC. 1. Create a dispose methods and call it explicitly when you want to release the resource.)Call a GC.com/en-us/library/system.)Refactor the application to use StrongEventManager as Intermediate objects between Event publishers and subscription b.)Use weak event pattern to resolve strong connection between event publisher and subscriber d.aspx Q5). Create a finalized method and list the GC.microsoft. Queue<T> https://msdn. Based on the scenario to create the desired collection you implement and interface from which class. Stack<T> 2.110). HashSet<T> 3.Collect method with parameters false d.Which step do you perform to prevent an object from being garbage collected a. Unload the application domain that contains resources 3.gc.110).You are assigned the task of debugging a .

based on the above scenario to provide access you use class from which namespace.e. Choice1> System.50. You defined variable named markupAmount and initialize it with value as 1100.EnterpriseServices https://msdn..Net Choice4> System.com/en-us/library/system.100).aspx https://msdn.aspx Q8) You are developing a business management application which enables . Choice1> Add properties to thread class and update through update constructor Choice2>Pass the data as custom array to overload thread constructor Choice3>pass a paramerterized ThreadStart object to thread constructor Choice4>synchronize thread code with monitor object containing custom data Choice5>pass a SendOrCallPostback delegate to thread constructor.microsoft.aspx Q7)How do you pass custom data to thread object at its runtime.aspx Q9) You are programming shopping cart application.)Use standard event pattern to explicitly define connection between event publisher and subscriber https://msdn.com/en-us/library/ts553s52(v=vs.Managment Choice5> System.Net objects to access COM + Services.110).microsoft.threading.enterpriseservices(v=vs.110).Messaging Choice3> System.parameterizedthreadstart(v=vs.Runtime Choice2>System.110).microsoft. https://msdn. Based on this scenario markupAmount variable can store it as which data type a)Double b)Int32 c)Float d)Object e)Long Q10) You are writing a multithread bussiness application and have programmed it to abort( ) one or more running thread under sitution of heavy system load Based on this scenario above what happen to aborted thread afer abort( ) method is called a) The thread suspend and its thread state set to stopped b)The thread shutdow clearly and peform garbage cleanup .microsoft.com/en-us/library/aa970850(v=vs.com/en- us/library/system.

com/en-us/library/windows/desktop/ms686760(v=vs.aspx Q12) You are creating a video editing application to have ability to load different UI resources based on users culture Based on the above scenario which property do you adjust to inform resource manager of culture specific resources to load at runtime.thread.aspx ‘’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’54 Questions’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’”””””” -------------------------------------------------Pranjali group---------------------------------------------------- .currentuiculture(v=vs.CurrentThread.Culture 4)UICulture.threading. 1)Threads. c)The aborted thread return with an error code od -29 SCC_E_CONNECTIONFAILURE d)Abort( ) move the thread to memory mapped field e) A ThreadAbortException is raised in aborting thread Ans :-> A ThreadAbortException is raised in aborting thread Link :-> https://msdn.Current 5)Thread.microsoft.microsoft.com/en-us/library/5b50fdsz(v=vs.CurrentCulture 3)Thread.CurrentContext Answer-1 https://msdn.aspx Q11) You are developing a multithreaded disk burning application your application must impose a limit On number of threads than concurrently access specific resources Based on the Scenario above which class do you use to limit the number of accessible threads a)Semaphore b)monitor c)Thread_Pool d)Mutex e)Thread Ans=a)Semaphore https://msdn.CurrentUICulture 2)CultureINfo.110).85).CurrentThread.microsoft.110).com/en- us/library/system.

com/en-us/library/ff647353.microsoft.aspx 3) Which tool do you use to profile application memory usage to analysis counters? a. WMI b.microsoft.tou want instance of other classes to be able directly access the flavour class ? a) Public b) Private c) Static d) Protected e) Internal 2) Which WPF class do you use a base class for programming user developing control? a) Object Control b) Control Base c) User d) Abstract Control Ans: UserControl Link: https://msdn. Performance Monitor.aspx 4) Which culture type do you declare to make formatted dates sent across a network in deposit of culture and user locale settings? a) Specific b) Invariant c) UICulture d) Independent e) Neutral https://msdn.microsoft. https://msdn.windows.com/en-us/library/ff727783.aspx 6) Command to generate encryption certificate? ANS: Command pvk2pfx -pvk "azureconfig.forms.com/en- us/library/system.pvk .aspx 5) To change the view state mode of a control in your web application you modify the properties from which class? a) Compositecontrol b) EntityDataSource c) ModelDataSource d) ParentControl e) ContextContainer (Answer not found) https://msdn. SOS c.1) You are creating a new class named Ice-cream which contains property named flavour.110). Assembly Binding Log Viewer d. Task Manager e.com/en-us/library/ms972976.control(v=vs.microsoft.

In the scenario above.aspx/ 12) You are programming a multithreaded gaming application and call a method attribute with async keyword.50).com/en-us/library/dd997305.110).aspx 10) Which class do you used to read character input from UTF-32 encoded text file Ans: File access (UTF-32Encoding class) https://msdn.Concurrent https://msdn. user has crossed the maximum number of delivery attempts.110).microsoft.110).microsoft.microsoft. What does message queue do to manage messages which exceeds the maximum number of delivery attempts? a) deadLetter b) Error c) Isolation d) Undeliverable e) Poison https://msdn.50.aspx 13) Which Interface implemented by the exception class enables you to pass exception objects reliably across machine level boundaries? a) Exception b) IInterOp c) IPersistable .aspx 9) Which data service class do you use to maintain state full information on the client regarding additions and removals of related entity objects a) DataServiceRequest b) DataServiceResponse c) EntityChangedParams d) DataServiceCollection e) ChangeOperationResponse https://msdn.microsoft.com/en-us/library/ee474331(v=vs. the call returns an instance of which type? a) Task b) Parallel https://msdn.microsoft.com/en-us/library/hh191443(v=vs. The markupAmount value can store its value as which in .microsoft.com/en-us/library/ms789028(v=vs. https://msdn.aspx 11) To Manage and enforce thread safe access to collections you use collection from which namespace Ans: System.com/en-us/library/ms404377(v=vs.NET value type? a) Int32 b) Float c) Long d) Double e) Object https://msdn. You define a variable named “markupAmount” and initialize it with a value of 1100.collections.microsoft.aspx 7) You are programming a shopping cart application .com/en-us/library/hh680928(v=pandp.com/en-us/library/678hzkk9.110).aspx 8) Music streaming application.

com/en-us/library/ms172146(v=vs.90). d) ISerializable e) ISystemException (Answer not found) 14) You have integer array named ages{7.54.} In this. Transaction b. http://stackoverflow. What happens to the aborted thread after Abort() method is called? a. XAML b.aspx? _e_pi_=7%2CPAGE_ID10%2C9605049645 16) You are programming a method with the ability to commit or rollback database activity across multiple db. XML c.1.NET programming language d) It compiles native code to CIL the first time an application is started e) It compiles one version of CIL to another version of CIL https://msdn.microsoft. The thread suspends and its threadstate is set to stopped b.NET user interface elements as text- base definition? a. Which .Distinct() b) From s in ages orderby s descending group p by s select s c) Select unique s from ages descending s. What LINQ query you will write to achieve it? a) (from s in ages orderby s descending select s). you have to eliminate duplicate elements and sort the give array in descending order.aspx? _e_pi_=7%2CPAGE_ID10%2C8070754719 18) Which markup language do you use to declare .85). XUL https://msdn.com/en-in/library/ht8ecch6(v=vs.110). Committabletransaction c. Transactionmanager e. XSL e. Enlistment https://msdn.aspx? _e_pi_=7%2CPAGE_ID10%2C8253839195 17) You are writing a multithreaded business application and have programmed it to Abort() one or more running threads under situations of heavy system load. TransactionScope d. ThreadAbortException is raised https://msdn.….com/en-us/library/ty8d3wta(v=vs.com/en-us/library/ms752059(v=vs. UIML d.aspx .microsoft.microsoft.4.NET framework class do you use to implicitly manage transaction? a.microsoft.110). The thread shuts down completely and performs garbage cleanup c.12.com/questions/19334128/selecting-distinct-value- orderby-desc 15) How does JIT compiler affect CIL code? a) It converts from CIL to native code while the application is running b) Caches CIL in memory for reuse the next time an application is started c) It decompiles from CIL to human readable .

com/en-us/library/ms764635(v=vs. A pack of card is divided into 4 groups.int> counts) { Foreach(var element in counts) { //Perform operations on elements } } What is the datatype of elements? Answer : IEnumerable https://msdn. Based on above scenario.19) You are programming multithreaded gaming application and call method attribute of async keyword. d) Name of runtime host DLL.microsoft. the call return an instance of which type? a) Task b) WaitHandle c) Dispatcher d) Parallel e) IAsyncResult https://msdn. b) in class with property and get & set method.110). b) Collection of interface pointers.85).aspx 20) There was a ques on GROUP BY query of LINQ. version.aspx 24) public static void ShowType(Object o) { Type t=o.t. interface identifier.com/en-us/library/01918c6x(v=vs.com/en-us/library/hh191443(v=vs. What will be the correct syntax? 21) In what anonymous type is converted by compiler? a) in struct with properties.GetType(). Console. https://msdn.Name.com/en-in/library/bb397696. c) Pointer to runtime hosts memory.t.microsoft.aspx- 23) static void ProcessWordCounts(Dictionary<string.90).0f) is called in the code above? .0f*3. } What is written to the console when ShowType(2.WriteLine(“{0} – {1}”.aspx 22) Which set of parameters do you need to specify in order to successfully load CLR into a process a) Class identifier.microsoft.microsoft. https://msdn.IsPrimitive).

and DELETE verbs? a) SOAP b) XAML c) OData d) XML e) XMPP https://msdn.110). BidList .com/en-us/library/dd264808(v=vs.microsoft. C.microsoft. } IEnumerator IEnumerable.Diagnostics. ConcurrentQueue b.contracts https://msdn.W(result.aspx 30) You are programming an application which manages online auctions.GetType(). You need to create a thread-safe collection which will store the auction bids in a FIFO sequential order. PUT. 27) Byte op1=1. What is written to the console? OUTPUT: INT32 28) Which is the protocol format used by Data Services to change data using GET. Sbyte op2=-1.microsoft. and executing your application's try/finally blocks and finalizers will corrupt program resources.aspx 29) Which namespace to import to gain access to code contract precondition and postcondition methods? ANS::System.Enviroment::FailFast instead of an exception in what case? https://msdn.Answer : Single-True ------------------------------------------------abhishek group----------------------------------------------------- 25) class DataList:IEnumerable<TData> { Public IEnumerator<TData> GetEnumerator(). Which collection do you instantiate? a.GetEnumerator(){ Return null.Name). then discard the bids after usage.110). Return null. Var result=op1&op2. } } What changes do you make for it to compile? 26) We use System.com/en-us/library/ms131100.aspx Ans: Use the FailFast method instead of the Exit method to terminate your application if the state of your application is damaged beyond repair. POST.com/en-us/library/cc668792(v=vs.

aspx https://msdn.110).aspx 35) You are testing the code of instant chat application which uses CompositionContainer objects and needs to catch Composition Exception for debugging.110). SortedList d.microsoft. User e.loadxml(v=vs. https://msdn. Which flag in the CompositionContainer constructor do you define in order to expose Composition Exception for handling Ans: CompositionsOptions.com/en- us/library/system. ControlBase https://msdn. Your app will be able to modify the docs using LINQ to XML.com/en-us/library/ff647791.aspx 32) Contract.aspx . Controls e.aspx 33) Which security object contains a user’s identity and his/her security roles? a. Post-condition https://msdn.controls.microsoft.00) is which form of code contact? a. Principal c.microsoft.microsoft.com/en-us/library/bb613551(v=vs.aspx 34) You are modifying config information for gaming application.windows. Role b. a. Which method do you call to load XML doc from a “userlist.xml.aspx 37) You are developing a .microsoft. Precondition b.NET application.110).DisableSilentRejection 36) Which WPF class do you use as a base class for programming User-developed controls.xmldocument. You require that this information must override all of the applications existing configurations.microsoft. WMI Viewer d.110).com/en-us/library/dd997305(v=vs.com/en-us/library/ftx85f8x(v=vs.control(v=vs.microsoft. Hashtable e.Ensures(temp<100. ObjectControl d. https://msdn. Which configuration file to modify in order to apply the changes? Ans: machine config file https://msdn. Client https://msdn. ConcurrentStack https://msdn.110).com/en-us/library/ms178685. Control b.xml” file on disk. Performance monitors b. SOS Debugging extension e.com/en-us/library/dd264808(v=vs. User c.com/en- us/library/system. c. Assembly binding log viewer.110).microsoft.aspx 31) Which tool do you use to profile application member usage analysis counters? a. Identity d. Task Manager c.

You want to impose limit on number of threads to concurrently access specific resources. Which class do you use to limit number of accessible threads? a. Semaphore d. Compile them individually and then merge them using Visual Studio IDE https://msdn.com/en-us/library/dd264808(v=vs. Explicitly call dispose method b. FileWriterStream c. It converts CIL to native code while application is running. ThreadPool https://msdn.com/en-us/library/ms973824.microsoft. How do you combine modules written in 2 different languages into a single module and create an output file containing assembly manifest multifile assemblies. You observe data flow is erratic and number of character received in a given time frame is unpredictable.110).threading.microsoft. Compile all modules using CSC or VBC compiler tools and lib library manager b.Net object is used to populate the combo box? Ans: DataAdapter https://msdn. Explicitly call garbage collector c.aspx 39) Contract. You need to reliably collect all data before writing to file. Which class do you use to collect data until completion? a.com/en-us/library/system.aspx 42) How does JIT compiler affect CIL? a.aspx 40) You have to create a sports tracking app using 2 different . Create both modules in a single solution in Visual Studio IDE c.threadpool %28v=vs. What does this represent in Code Contracts? a.microsoft.com/en-us/library/168k2ah5(v=vs.110%29.NET to automatically release the reference types? a. Mutex c. BufferedStream b.110).110).microsoft. PostCondition (Answer) https://msdn.aspx 43) There is a multi threaded disk burning application.aspx 45) Which method will be used to remove all entries from existing event logs? a) Delete b) Clear .microsoft. Explicitly call finalize method https://msdn.38) What triggers . a. Monitor e.com/en-us/library/k3352a4t(v=vs. Thread b.microsoft.NET languages. MemoryStream d.aspx 41) You have to create a remote file backup app.microsoft. BinaryStream https://msdn.aspx 44) Which ADO. (SURE) https://msdn.com/en-us/library/ms973852.110).com/en-us/library/f144e03t(v=vs.Ensures(temp<100) .

web.110).aspx 52) Suppress XSS of untrusted user browser input echoed to the page? a) Default session ID generation with custom generator .com/en-us/library/gg602811(v=vs.(Not remember whole Scenario) Which message queue do you use to manage message maximum number of delivery attempts? a) Dead Letter b) Poison c) Undeliverable d) Error e) Isolation https://msdn.microsoft.Net framework store datatypes? Value type on Stack and reference type on Heap http://stackoverflow.transactions. https://msdn.110).110).webcontrols.aspx 46) Where does .diagnostics.microsoft.com/en-us/library/6tc79sx1(v=vs.aspx 48) Which Data Service Class you use to maintain Stateful Information On Client regarding addition and Subtraction/deletion of entity Object? a)DataService Response b) EntityChangedParameter c) DataService Request d) DataService Collection e)ChangedOperation requirement(register or requirement ) https://msdn.eventlog. https://msdn.aspx 50) In Online auction choose a thread safe collection which will store the auction bids in First in first out (FIFO) sequence order then discard the bids after use.com/questions/861926/where-are-the-net-data-types-stored 47) Which method from the given classes will be used to route data bound controls in a web applications? DataBoundControl class.ui.com/en- us/library/system. a) Concurrent Queue b) Hashtable c) BidList d) Concurrent Stack e) StoredList https://msdn.microsoft.transactionscope(v=vs.110%29.microsoft.110).microsoft.com/en- us/library/system.com/en-us/library/ms789028(v=vs.clear %28v=vs.databoundcontrol(v=vs.110). Which class do you use to implicitly manage transactions? a) TransactionManager b) CommitableTransaction c) Enlistment d) TransactionScope e) Transaction https://msdn.com/en-us/library/system.aspx 51) Program includes ability to commit or roll back database activities across multiple database.aspx 49) Scenario of Streaming application.microsoft. override thePerformDataBinding method to binds data from the data source to the control.

aspx 54) Manage and enforce thread-safe access to collection which namespace is used? a) System.aspx 53) Contract.concurrent(v=vs.com/en- us/library/system.110).aspx .Collection.collections.Concurrent https://msdn.com/en-us/library/ff649310.com/en-us/library/dd264808(v=vs.ThreadSafeCollection d) System.microsoft.Synchronization e) System.microsoft. b) Set EnableSessionState false in @Page directive c) Call serialize() on the output d) Set Validate Request attribute @Page true e) Composite Mode attribute on @Page as always https://msdn.Collection c) System.Threading b) System.microsoft.00) a) Trace Switch b) Invariant c) PostCondition d) Trace List e) Precondition https://msdn.Collections.Ensures(temperature <100.110).