oDesk Programming With C# Test Answers 2015

Here is the Test Answers of oDesk Programming With C#. We hope this test answers will help you to give the correct answers while you will be in the oDesk exam and pass with great score.


You need to keep track of how many objects of a given class exist by introducing a class member variable. Which one of the following solutions allows for this behavior?

  • Add an automatic member variable that gets incremented in the default constructor and decremented in the destructor
  • Add an automatic local variable that gets incremented in each constructor and decremented in the destructor
  • Add a static member variable that gets incremented in each constructor and decremented in the destructor
  • Add a register member variable that gets incremented in each constructor and decremented in each destructor
  • This cannot be accomplished since the creation of objects is done dynamically via ‘new.’

Which of the following statement regarding switch-case is false?

  • A switch statement can include any number of switch sections and each section can have one or more case labels
  • Each case must contain a break statement within the curly brackets of the case
  • A switch statement must have at least one case or default statement within it
  • The default case is not optional in switch statement

Which of the following is true for CLR?

  • It is an interoperation between managed code, COM objects, and pre-existing DLL’s (unmanaged code and data).
  • It is a software Output Unit of Deployment and a unit of versioning that contains MSIL code.
  • It is the primary building block of a .NET Framework application and a collection of functionality that is built, versioned, and deployed as a single implementation unit.
  • All of these.

Which of the following statements is correct with regard to a CommandBuilder object?

  • a.   It creates update/delete command based on the primary key column
  • b.   It creates update/delete command based on all the identity columns
  • c.   It creates update/delete command based on original values of all the selected columns
  • d.   It creates update/delete command according to its internal algorithm

In the .NET framework. what are the options available for packaging?

  • a.   CAB
  • b.   EXE
  • c.   MSI
  • d.   All of the above

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?
  • a.   There is a possibility of Lisa using the same connection object as created for Martin from the connection pool
  • b.   Lisa can not use someone else’s connection from the connection pool
  • c.   Lisa can pick any other ideal connection from the connection pool
  • d.   None ofthe above

Which object oriented term is related to protecting data from access by unauthorized functions?

  • a.   Inheritance
  • b.   Data hiding
  • c.   Polymorphism
  • d.   Operator overloading
  • e.   Abstraction

You created a stored procedure to retrieve the following details for the given customer: CustomerName, Address, PhoneNumber Which ofthe following is an ideal choice to get the best performance?

You created a stored procedure to retrieve the following details for the given customer:
CustomerName, Address, PhoneNumber
Which of the following is an ideal choice to get the best performance?
  • a.   Return the result as dataset using data adapter
  • b.   Return the result as dataset using command object
  • c.   Return the result as three out parameters and command object
  • d.   All of the above

Which of the following statements is correct with regard to .NET framework managed web pages?

Which of the following statements is correct with regard to .NET framework managed web pages?
  • a. They interact directly with the runtime
  • b. They do not execute in the native code language
  • c. They are interpreted and scripted
  • d. All of the above

Which ofthe following statements can be used for declaring a two dimensional array?

Which of the following statements can be used for declaring a two dimensional array?
  • a.   int arrNum[][];
  • b.   int arrNum[ , ];
  • c.   int[][] arrNum;
  • d.   int [ , ] arrNum;
Here you also find out more answers-