C#

Comprehensive quiz covering C# language fundamentals, .NET framework concepts, ADO.NET, and Visual Studio development for C# programmers.

17 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

The JIT compiled code can be converted to pre-compiled format by a process called

  1. code marshalling
  2. pooling
  3. remoting
  4. code pitching
Question 2 Multiple Choice (Single Answer)

Do Form Post and Post Back differ from each other?

  1. Yes
  2. No
  3. Sometimes
  4. Can't be determined
Question 3 Multiple Choice (Single Answer)

What attribute must mark the methods exposed by a Web Service?

  1. Web Service Method ()
  2. Web Method ()
  3. Web Services ()
  4. Services Method ()
Question 4 Multiple Choice (Single Answer)

A structure in C# can be derived from one or more

  1. classes
  2. interfaces
  3. both (1) and (2)
  4. none of these
Question 5 Multiple Choice (Single Answer)

How do you examine the content of the variables and objects in scope in each line of a code without actually seeing their content within the functions where they exist?

  1. Immediate Window
  2. Local Window
  3. Auto Window
  4. Quick Watch Window
Question 6 Multiple Choice (Single Answer)

Which namespace provides the event log support?

  1. using System.log
  2. using System.Diagnostics
  3. using System.Event
  4. None of these
Question 7 Multiple Choice (Single Answer)

Which of the following is true?

  1. An object is the instantiation of a class.
  2. A class is the implementation of an object.
  3. An object is the implementation of a class.
  4. A class is the instantiation of an object.
Question 8 Multiple Choice (Single Answer)

Does an XML play any role in the ADO.NET architecture?

  1. No
  2. Yes
  3. Sometimes
  4. Can't be determined
Question 9 Multiple Choice (Single Answer)

Which of the following enable(s) you to change multiple values in a method?

  1. Reference Parameters
  2. Output Parameters
  3. Aliases
  4. Both (1) and (2)
Question 10 Multiple Choice (Single Answer)

Can you store multiple data types in Systems.Array?

  1. Yes
  2. No
  3. May be
  4. Sometimes
Question 11 Multiple Choice (Single Answer)

Are private class level variables inherited?

  1. Yes
  2. No
  3. Can't tell
  4. May be
Question 12 Multiple Choice (Single Answer)

How many dimensions can an array take?

  1. Up to 50
  2. Up to 60
  3. Up to 100
  4. Up to 90
Question 13 Multiple Choice (Single Answer)

Which one of the following is not a C# reserved keyword?

  1. Is
  2. Of
  3. As
  4. In
Question 14 Multiple Choice (Single Answer)

Which one of the following must be initialised before it/they can be used in the method call?

  1. Reference Parameters
  2. Output Parameters
  3. Aliases
  4. Both (1) and (2)
Question 15 Multiple Choice (Single Answer)

A finally block can have

  1. break
  2. continue
  3. return
  4. none of these
Question 16 Multiple Choice (Single Answer)

In C#, a namespace can be imported by using

  1. namespace directive
  2. import keyword
  3. import construct
  4. the keyword ''Using�
Question 17 Multiple Choice (Single Answer)

Which of the following is not a property of dictionary object?

  1. Item()
  2. Key()
  3. CompareMode()
  4. Exists()