1. A banking
application is online. As soon as Martin finished his session, Lisa logged on
and did some banking. The connection string created for each of them is as
follows:
String
ConnStr= «Server=BankServer;Database=BankDB;User=Martin;Password=gilbo123;»
String
ConnStr= «Server=BankServer;Database=BankDB;User=Lisa;Password=kari75;»
Which of the
following statements will be correct in case the connection pooling is also
switched on?
Answers: • Lisa can not use someone else’s connection from
the connection pool
2. Which of
the following statements are false regarding the 3 timer classes provided by
the .NET framework?+
a)
System.Windows.Forms.Timer
b)
System.Timers.Timer
c)
System.Threading.Timer
Answers: • The event handler of all of the three Timers call the timer
event handler on a worker thread obtained from the Common Language Runtime
(CLR) thread pool.
3. Which 1.
Which of the following define the rules for .NET Languages?
Answers: • CLS, or • CTS
4. Which of
the following functions are used to wait for a thread to terminate?
Answers: • Join
5.
_____________ helped overcome the DLL conflict faced by the C# language
versions prior to .NET.
Answers: • GAC
6. What is
the benefit of using a finally{} block with a try-catch statement in C#?
Answers: • The finally block is always executed before the thread is
aborted.
7. In which
of the following namespaces is the Assembly class defined?
Answers: • System.Reflection
8. Which of
the following statements is true regarding predicate delegates in C#?
Answers: • Predicate delegates are references to functions
that return true or false.
9. What is
the syntax required to load and use a normal unmanaged windows DLL (e.g. kernel32.DLL)
in a managed .NET C# code?
Answers: • [DllImport(”kernel32”, SetLastError=true)]
10. Which of
the following is the correct way to implement deep copying of an object in C#?
Answers: • By using the
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter class.