Você está na página 1de 74

1.       A catch clause may catch exception of which type?

a.       public private protected
b.      the abstract member cannot be private
c.       The Exception Type.
d.      Value types and reference types
3

2.       Core Microsoft .NET building block services
a.       It uses more than one loop index.
b.      Calendar Dynamic delivery Notification
c.       Modeless dialog boxes,Modal dialog boxes
d.      the abstract member cannot be private
2
3.       Manual memory management needs to be done in C#
a.       True
b.      False
c.       Form
d.      F
2

4.       Implement the methods getNumber(),getHeight(), getWidth() in the class ClassB
a.       @
b.      True
c.       T
d.      F
3

5.       Panel controls cannot support scroll bars
a.       t
b.      Compile error
c.       F
d.      default constructor
3

6.       Item stored in ViewState exist for the life of the current page?
a.       True
b.      Yes
c.       An integer is number of affected rows.
d.      Invoke Show
1

7.       The manifest contains data that ___
a.       specifying different number of parameters specifying different types of parameters
b.      nothing
c.       describes how the elements in assembly are related to each other. describes the 
other assemblies on which the elements of the assembly are dependent.
d.      csc /out:<assembly name>/target:library <filename1 filename2..>
3

8.       Within the namespace we can declare following:
a.       Callable entity //MSDN
b.      All the options mentioned
c.       The method can be overridden.
d.      Class libraries
2
9.       int i=Array.IndexOf(Array1,3);
a.       F
b.      2008
c.       5 8
d.      0
4

10.   Assume that a method named DataLoad is defined to makes a list of suppliers 
available by returning an ICollection interface. A Web page has a ListBox control named 
IbCustomers
a.       We cannot have a try block without a catch or/and finally block
b.      No constructor matching SuperClass() found in class SuperClass
c.       Yes, by using DrawPolygon method of Graphics object
d.      Miss calling the DataBind() method of the page.
4

11.   try{int p=10;Console.WriteLine("enter a number");int 
r=Int32.Parse(Console.ReadLine());p/=r;}
a.       SqlCommand Cmd = new SqlCommand("Select * From Student",con);
b.      Which of the following statements are true with respect to destructors?
c.       The try block throws an exception hence the control goes to catch block but line 
number 11 and 12 does not produce the same output.
d.      True
3

12.   Methods can be overloaded in C# by:
a.       When the application is low on memory
b.      specifying different number of parameters specifying different types of parameters
c.       When an instance is destructed, the destructors in an inheritance chain are called in 
order, from most derived to least derived.
d.      csc /out:< executable name >/target:exe<filename1 filename2..>
2
13.   What does the keyword "virtual" declare for a method?
a.       The Application tab of the project's Properties window
b.      SqlCommand Cmd = new SqlCommand("Select * From Student",con);
c.       ThreadPriority
d.      The method can be overridden.
4
14.   _____ keyword is used to import the classes of the namespace
a.       True
b.      Unboxing
c.       using
d.      Anchor
3

15.   Which of the following sentences are true about Constructors?
a.       private delegate int MyDelegate() ; public delegate void MyDelegate() ;
b.      We cannot have a try block without a catch or/and finally block
c.       The constructor must have the same name as that of the name of its class.
d.      The Application tab of the project's Properties window
3
16.   Type of a List<T> variable is value type only
a.       F
b.      T
c.       Form
d.      System.Array.Sort(Arraytosort)
1

17.   what is boxing
a.       Description. Name and Namespace.
b.      Boxing is conversion form an object to a value type
c.       to a single column based on the DataSource-optionally supports data editing.
d.      Use TextBox control with PasswordChar property is set a value
2
18.   For using SQL.NET Data Provider what using statement of the following is correct?
a.       It must be assignable to the Exception type.
b.      exception 2 finally
c.       using System.Data.SqlClient;
d.      ("Data Source=myserver;
3
19.   Unboxing requires an ___________cast.
a.       Complieerror
b.      PopUpMenu
c.       explicit
d.      Console
3

20.   What kind of memory where an object is allocated?
a.       ("Data Source=myserver;
b.      true
c.       Stack area
d.      ContextMenu
3

21.   Assume you wish show data of Customers table in a DataGridView control. What is 
the most suitable object to set to the DataSource property?
a.       virtual
b.      Class View
c.       DataTable
d.      True
3
22.   What is the base keyword?
a.       A class has no other constructors than those that are actually declared in the class 
Constructors are not inherited
b.      An instance of a type that is Serializable can be easily transmitted over the network, 
or stored in a file on the file system
c.       Define a pair of accessor and mulator methods.Define a named property
d.      The base keyword is used to access members of a base class from within a derived 
class.
4

23.   The abstract modifier can be used on indexers but not the modifier override.
a.       Yes
b.      Base class
c.       True
d.      False
4
24.   The _______class is the ultimate base class for all data types.
a.       False
b.      True
c.       Object
d.      DataSource
3

25.   To declare a web service the class must inherit from __________
a.       System.Web.Service
b.      System.Thread
c.       A common runtime engine
d.      System.Object
1
26.   You cannot determine total elements of an ArrayList variable
a.       none
b.      F
c.       False
d.      T
2
27.   The output of the code will be: 1000 1000
a.       VB.NET
b.      T
c.       Two
d.      F
2
28.   Which of the following statements are true with respect to overloading?
a.       Overloading of methods permits a struct, or interface to declare multiple methods 
with the same name, provided the signatures of the methods are all unique.
b.      Background threads are viewed by the CLR as expendable paths of execution that 
can be ignored at any point in time
c.       Manages memory Compile once and run on any CPU & OS that supports the 
runtime.
d.      SQLDataAdapter,OleDbDataAdapter,ADORecordSet
1

29.   SessionID values are stored in a cookie
a.       Interface
b.      False
c.       true
d.      aspx
3

30.   The unique feature of .NET is the ___________support that it provides
a.       Abstract
b.      System.Thread
c.       Multi-language
d.      ThreadPriority
3

31.   To perform a change to a table using the Command object named Cmd, what 
statement of the following is correct
a.       DrawRetangle
b.      ConnectionString
c.       Redirect, Response
d.      Cmd.ExecuteNonQuery()
4
32.   Return type of indexers is
a.       Boxing is conversion form an object to a value type
b.      The constructor must have the same name as that of the name of its class.
c.       same as return type of get method of a property.
d.      Marks a member as accessible limited to the current assembly, but not outside the 
3 assembly

33.   ___is the easiest way to allow the user to interact with the application
a.       Form
b.      Anchor
c.       Control
d.      / /
1
34.   ____property is used to get or set the object that contains data about the control
a.       True
b.      Class libraries
c.       Value
d.      Hashtable
3
35.   The types of list box supported in Winforms are
a.       Output of this code is "Nguyen Van A".
b.      IL Code and Resources
c.       ListBox
d.      OleDbDataReader,OleDbConnection,OleDbCommand
3

36.   An indexer that includes the override modifier may also include the sealed modifier
a.       True
b.      False
c.       Anchor
d.      F
2

37.   When the array is initialized at the same time they are created, the c# compiler 
determines the size of array using
a.       Hashtable
b.      Alpha.Method and Beta.Method can call each other only if Alpha and Beta are 
located in the same assembly.
c.       Manages memory Compile once and run on any CPU & OS that supports the 
runtime.
d.      the number of items in the initialization list,The number present in the square 
bracket next to the data type at the right hand side.
4

38.   The instance properties and methods are those, which are common to all the 
instances of the class
a.       ExecuteScalar()
b.      T
c.       F
d.      True
2
39.   What is the first event is raised when the form has been allocated on the managed 
heap
a.       True
b.      T
c.       Visual Studio .NET 3rd party .NET services .NET platform itself
4 d.      Load
40.   The extension of an assembly is _________
a.       .dll
b.      An Assembly
c.       It is the code targeting the .NET runtime.
d.      System
1

41.   Does NET Framework support to monitor the modification of a given external file?
a.       False
b.      Yes
c.       True
d.      class A:B
2
42.   The .NET platform is built on Internet Protocols such as _______ and _______
a.       Load
b.      Page_Init
c.       TCP /IP HTTP
d.      Yes, by using FormClosing event
3
43.   Which statements on the <<< call >>> line are valid expressions?
a.       System.Windows.Forms
b.      Test() { } public Test(int a, int b){} Test(int a, int b){}
c.       b.m2(); i=b.x; i=b.y;
d.      ("Data Source=myserver;
3

44.   Which parameter modifier marks a parameter as passed by value
a.       this
b.      The constructor must have the same name as that of the name of its class.
c.       True
d.      none
4

45.   C# language offers the following features
a.       Compile error
b.      soapFormatter is a serialization formatter that represents graph as a SOAP message
c.       No pointers required: Automatic memory management through garbage collection!
d.      It allows the page to save the users input on a form across postbacks.

46.   The type of event declaration must be of _________ type.
a.       The code will compile successfully and the output of above code will be: Test.F
b.      System.Drawing
c.       Event
d.      The code will compile and run and the letter "A" will be written to the standard 
output.

47.   Shared assemblies are libraries intended to be consumed by numerous application 
on a single machine
a.       False
b.      True
c.       DataTable
d.      Yes
2
48.   Which delegate of System.Threading namespace points to any methods that take no 
argument and returns int?
a.       int j=0; for(int k=0;j+k!=10;j++,k++){Console.WriteLine("j= {0} k={1}",j,k);} |
b.      System.Threading namespace does not contain this delegate.
c.       this
d.      System.Object

49.   an explicit interface member implementations can be abstract
a.       True
b.      set
c.       f
d.      T

50.   To get values of the colums of the i-th row in a DataTable object named datatable, 
what of the followings is correct?
a.       Nothing is wrong with the above code.
b.      namespace Namespacename{ ----- ----}
c.       DataRow array = datatable. Rows[i].ItemArray;
d.      ("Data Source=myserver;

51.   Version number of an assembly are stored in the following format:
a.       Console,System
b.      True
c.       <Major version>.< Minor version >.<Revision>.<Build Number>
d.      System.Drawing

52.   What is method of form to transmit the form data back to web server for processing
a.       Properties
b.      Get,post
c.       False
d.      Object(){}

53.   The runtime will automatically assign a new session ID for user when he/she logs on 
to an ASP.NET web application
a.       False
b.      Console
c.       True
d.      Yes

54.   Because the Thread pool are always background threads
a.       F
b.      An instance of a type that is Serializable can be easily transmitted over the network, 
or stored in a file on the file system
c.       t
d.      Windows Application

55.   Which of the following statements is correct for a method, which is overriding the 
following method: public void add(int a) {...}Select the most appropriate answer
a.       Just-in-time (JIT) compiler
b.      the overriding method must return void
c.       Enumerations are a handy programming construct that allow you to group 
name/value pairs
d.      Employee (){}
56.   static void Main(string[] args) {IntIndexer myInd = new IntIndexer(5);myInd[1] = 
"Some Value";myInd[4] = "Any Value";myInd[2] = "Another 
Value";Console.WriteLine("\nIndexer Output\n");[2.5]for (int i=0; i < 5; i++) 
{Console.WriteLine("myInd[{0}]: {1}", i, myInd[i]);
a.       Miss calling the DataBind() method of the page.
b.      IIS Admin and World Wide Web Publishing
c.       The dataset has not been populated.
d.      Empty Some Value Another Value Empty Any Value

57.   Which of the following methods can be called as an 
"operation"? //'ClassA.methodA()' : virtual or abstract members cannot be private
a.       _void @void _var
b.      Test() { } public Test(int a, int b){} Test(int a, int b){}
c.       public void methodA();
d.      <%@ Page <attribute>="<value>" %>

58.   Which sentence about Connection object is correct?
a.       Connection object is used to establish a session with the data source.
b.      Structures,Delegates,Methods.Classes.Interfaces
c.       A DataSet is an in-memory representation of external data
d.      Name of machine, name of the database on that machine, required security settings 
and other data provider-specific information

59.   1.Subscribe object 2.Notify subscriber 3.Define an event
a.       3, 1, 2
b.      String
c.       IsCLass
d.      False

60.   What control support us to display the list items in different types as text only, text 
with small icons, text with large icons and report views?
a.       UnLoad()
b.      True
c.       ListView
d.      PopUpMenu

61.   Stack is a first-in, first-out queue
a.       True
b.      T
c.       Mammal
d.      Console

62.   The _____ component is used to fetch the values from the data source to the 
DataSet and also to update the data source with the DataSet data
a.       Session
b.      class MyClass
c.       DataAdapter
d.      SqIDataAdapter
63.   C# is a ____________language.
a.       purely Object-Oriented
b.      Modeless dialog boxes,Modal dialog boxes
c.       DomainUpDown,numericUpDown
d.      default constructor

64.   In a virtual method invocation, the compile-time type of the instance for which the 
invocation takes place determines the actual method implementation to invoke
a.       f
b.      T
c.       False
d.      True

65.   For decimal, the default value is
a.       yes
b.      False
c.       Session
d.      0.0m.

66.   Which control is used to display a short, customized help message for individual 
controls on a form?
a.       ToolTip
b.      True
c.       Class View
d.      to a single column based on the DataSource-optionally supports data editing.

67.   How many web.config files an ASP.NET application can have?
a.       In lib.dll
b.      class A:B
c.       / /
d.      Only 1.

68.   C# provides an Unified Type System, which means that all data types are derived 
from __________ class
a.       DrawRetangle
b.      Object
c.       True
d.      Cmd.ExecuteNonQuery()

69.   Indexers can have user-defined names.
a.       break
b.      True
c.       VBScript and JavaScript
d.      False

70.   [D] A temporary cookie is not destroyed after the user logs off your site
a.       true
b.      T
c.       F
d.      Yes
71.   The library provides shelter from the complexities of raw API calls and offers a 
consistent object model used by all .NET-aware languages
a.       ExecuteScalar()
b.      Base class
c.       Parameterized
d.      aspx

72.   public int i=20;public char ch='a';public float f1=10;public void GetFloat()
{Console.WriteLine(f1);
a.       The output of above code will be: No of members : 11 No of fields: 3
b.      The constructor must have the same name as that of the name of its class.
c.       The code will compile and run and the letter "A" will be written to the standard 
output.
d.      Yes
73.   Two types of delegates are:
a.       Single Cast delegate
b.      abstract class
c.       IsMdiContainer
d.      public static void Main() { }

74.   Which of the following statements correctly differentiates between delegate and an 
interface?
a.       to a single column based on the DataSource-optionally supports data editing.
b.      namespace Namespacename{ ----- ----}
c.       Interface cannot be instantiated but delegates can be instantiated. In an interface 
the method name is fixed, whereas with a delegate only the signature is fixed.
d.      The constructor must have the same name as that of the name of its class.

75.   Private assemblies are deployed to GAC
a.       T
b.      True
c.       F
d.      Columns. Constraints

76.   Elements of an ArrayList variable can have different types
a.       T
b.      True
c.       F
d.      Using

77.   How many times the .NET programs are compiled
a.       Using
b.      F
c.       2
d.      T

78.   Delegate types are implicitly sealed
a.       yes
b.      system.dll
c.       T
d.      True
79.   An overriding event declaration must specify the exact same accessibility modifiers, 
type, and name as the inherited event
a.       Object
b.      T
c.       An Assembly
d.      Debug Mode

80.   The _______ namespace provides the classes and methods for manipulating arrays
a.       ExecuteScalar()
b.      System.Array
c.       virtual
d.      Interface

81.   System.Console.WriteLine("Number 1 is 1");
a.       PopUpMenu
b.      a nested namespaces
c.       Compile error
d.      The Exception Type.

82.   Object graph have to map to classic OO relationships
a.       F
b.      False
c.       Yes
d.      T

83.   Does DataTable class support a method that allows obtaining the data reader-like 
navigation scheme
a.       True
b.      none
c.       Using
d.      Yes

84.   System.Console.WriteLine("Number 1 is 2");
a.       NET Framework class library , Common Language Runtime
b.      XML Internet Protocols
c.       Compile error
d.      Namespaces

85.   The value of the HelpButton property is ignored if the maximize of minimize boxes 
are shown.
a.       True
b.      False
c.       T
d.      F

86.   If Parent is a base class and Child is its derived class then which of the following 
statements is not valid?
a.       Class View
b.      Child c1=new Parent();
c.       Use the Disconnected Layer
d.      Session, Application
87.   Select the core .NET Enterprise Servers
a.       Commerce Server 2000 Exchange 2000 Server
b.      Checked only
c.       Connection object is used to establish a session with the data source.
d.      NET Framework class library , Common Language Runtime

88.   When an MDI parent form is closed, the Closing event of all MDI child forms are 
raised before the MDI parent form's Closing event is raised
a.       Hashtable
b.      Panel
c.       False
d.      True

89.   The ___ is also referred to as a transient coockie
a.       set
b.      Session
c.       System.Array
d.      System.Web.Service

90.   For testing and development does website have to be hosted under IIS
a.       Yes
b.      using System.Data.SqlClient;
c.       true
d.      False

91.   Presents a logical view of our work using an Explorer-like view of the classes, 
methods and properties
a.       Orchestration
b.      class A:B
c.       ToolTip
d.      Class View

92.   namespace College.Library{
a.       College.Library.Shelf. Book()
b.      All the options mentioned
c.       Class libraries
d.      public virtual void Display(){}

93.   .NET is said to accelerate the next generation of the Internet
a.       using
b.      none
c.       True
d.      Panel

94.   MyDelegate mdg = new MyDelegate(MyFunction);TestDelegateClass tdc = new 
TestDelegateClass();System.Console.WriteLine(mdg(new
a.       The code will compile successfully and output of the code will False
b.      It is the code targeting the .NET runtime.
c.       The output would be only the text "Two".
d.      Yes
95.   void show() {System.Console.WriteLine("non-static method in Test"); static override 
void show() {
a.       Connection object is used to establish a session with the data source.
b.      Compilation error at line 7.
c.       Allocate
d.      XML Internet Protocols

96.   List<int>arrayl = new List<int>0; breach (int n in arrayl ) 
System.Console.WriteLine(arrayl.ToStririgO):
a.       True
b.      nothing
c.       Namespaces
d.      Nothing is wrong with the above code.

97.   An abstract class is a class that cannot be inherited from
a.       F
b.      False
c.       T
d.      True

98.   Set of resource, such as external code libraries and the primary thread
a.       Console
b.      False
c.       True
d.      yes

99.   [B] * A persistent cookie is not destroyed after the user logs off your site
a.       True
b.      T
c.       DataTable
d.      F

100.                        12. Which is return value of ExecuteNonQuery() method of a Command 
object
a.       System.Threading namespace does not contain this delegate.
b.      public virtual void Display(){}
c.       An implicit reference conversion exists from any array type to System.Array
d.      D. An integer is number of affected rows

101.              Does Microsoft supply data provider for Oracle database
a.       Yes
b.    True
c.    new
d.    set

102.                      Override base method can be defined by virtual keyword only
a.       F
b.    using
c.    IL
d.    T
103.                      What is result of the following SQL command
a.       Get,post
b.    Description. Name and Namespace.
c.    Return records that have StudentNo, LastName, FirstName from Students 
table and ClassName from Classes table
d.    return types of each method parameters used by each method

104.                      At run-time, a value of an array type is null or a reference to an 
instance of that array type
a.       F
b.    aspx
c.    T
d.    True

105.                      The ____property of the Form control is used to determine 
whether there are any MDI child forms open in your MDI application.
a.       CheckBox
b.    IsMdiChild
c.    Abstract
d.    Parameterized

106.                      Dataset store its data inXML
a.       T
b.    Description. Name and Namespace.
c.    same as return type of get method of a property.
d.    F

107.                      A delegate is a class derived from _________
a.       a nested namespaces
b.    System.Delegate
c.    DataType[] arrayname;
2 d.    Init A A.F Init B B.F

108.                      An abstract class is a class that can be sealed
a.       T
b.    F
c.    True
d.    IL

109.                      Panel controls cannot contain other controls
a.       A DataSet is an in-memory representation of external data
b.    t
c.    True
d.    F

110.                      Object graph is a set of related object of serialized object
a.       F
b.    Test() { } public Test(int a, int b){} Test(int a, int b){}
c.    True
d.    T
111.                      An indexer element can be classified as variable.
a.       system.dll
b.    True
c.    F
d.    False
112.                      The Pen class belongs to the ____namespace and cannot be 
inherited
a.       IsMdiChild
b.    ~myClass() { }
c.    Base class
d.    System.Drawing
113.                      An instance of a delegate type encapsulates one or more callable 
entities.
a.       Value
b.    break
c.    True
d.    False
114.                      'Class.getNumber()' must declare a body because it is not marked 
abstract
a.       Object
b.    F
c.    T
d.    True
115.                      Identify the correct syntax for creating an executable file 
referencing an assembly.
a.       Background threads are viewed by the CLR as expendable paths of 
execution that can be ignored at any point
b.    <%@ Page <attribute>="<value>" %>
c.    csc /out:< executable name > /target:exe /r:<assembly 
name1;assemblyname2...;> <filename1 filename2..>
d.    default context is used to group together .NET objects that have no specific or 
unique contextual needs
116.                      case 'a': Console.WriteLine("A");break;default: 
Console.WriteLine("Default");
a.       return types of each method parameters used by each method
b.    It is possible to have designers working on the markup while programmers 
author the C# code.
c.    the number of items in the initialization list,The number present in the square 
bracket next to the data type at the right hand side.
d.    The code will compile and run and the letter "A" will be written to the 
117.                      System.Console.WriteLine("In Try");return;
standard output.
a.       It allows the page to save the users input on a form across postbacks.
b.    F
c.    The code will compile successfully and output the following text: In Try In 
Finally
d.    The code will compile and run and the letter "A" will be written to the 
standard output.
118.                      What mode is VS.NET allow you create a portable exe(EXE) 
file?
a.       Both Debug Mode and Release Mode
b.    VBScript and JavaScript
c.    NGWS (Next Generation Windows Services)
d.    KeyDown, KeyUp, KeyPress
119.                      Indexing Index1 = new Indexing();[2.5]Index1["CA"] = 
"CALIFORNIA";Index1["AM"] = 
"AMERICA";System.Console.WriteLine(Index1["AMERICA"]);
a.       The code will compile successfully and output of the code will be: America 
Hello
b.    catch statement are examined in order in which they appear .
c.    the overriding method must return void
d.    The code will compile successfully but does not display any output.
120.                      public static Employee getEmpId(int EmpId){
a.       The code will compile successfully and output of the code will be: America 
Hello
b.    The code will compile successfully and outputs will be: 1 2
c.    The code will compile successfully and display following lines on the standard 
output: Hello Hello Hello
d.    Yes
121.                      Which of the following statements are true with respect to an 
Array type
a.       csc /out:myAssembly.dll /target:library file1.cs file2.cs
b.    An implicit reference conversion exists from any array type to System.Array
c.    It allows the page to save the users input on a form across postbacks.
d.    public void methodA();
122.                      In C# datatypes are divided into two fundamental categories
a.       Value types and reference types
b.    It must be assignable to the Exception type.
c.    The constructor must have the same name as that of the name of its class.
d.    <%@ Page <attribute>="<value>" %>

123.                      ____property of a connection object is used to get or set the 
string used to open a database
a.       Unqualified name
b.    Block and Unblock
c.    Invoke Show
d.    ConnectionString
124.                      A program in .NET is first compiled by the language specific 
compiler into __
a.       ("Data Source=myserver;
b.    Intermediate Language
c.    exception 2 finally
2 d.    System.Drawing
125.                      A constructor is a special type of a _______ in a class.
a.       Session
b.    method
c.    Prelnit
d.    Console
126.                      Shared assemblies are libraries reside in the same directory of 
application making use of them
a.       True
b.    F
c.    T
d.    new

127.                      __________in simple terms is nothing but conversion of a value 
type into a reference type.
a.       String
b.    Monitor
c.    Boxing
d.    Session

128.                      [WebService(Namespace = "http://tempuri.org/", Name-'My 
Webservice")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
a.       System.Web.Service
b.    System.Drawing
c.    My Webservice
d.    ODBC,OLEDB

129.                      A static constructor is a member that implements the actions 
required to initialize a class.
a.       using
b.    True
c.    ListView
d.    False

130.                      Console.ReadLine() returns the input as a ________
a.       Unboxing
b.    True
c.    method
d.    String
131.                      Which sentence is correct
a.       NGWS (Next Generation Windows Services)
b.    Connection object is used to establish a session with the data source.
c.    Marks a member as accessible limited to the current assembly, but not outside 
the assembly
d.    A web server is a software product in charge of hosting your web applications
132.                      What are building blocks of an XML Web service
a.       No pointers required: Automatic memory management through garbage 
collection!
b.    Background threads are viewed by the CLR as expendable paths of execution 
that can be ignored at any point in time
c.    csc /out:< executable name >/target:exe<filename1 filename2..>
d.    A discovery service, a description service and a transport protocol.
133.                      Which of the following is a valid variable in C#?
a.       _Class @class Class
b.    It must be assignable to the Exception type.
c.    Windows Application
d.    IsCLass
134.                      StreamWritersw = new StreamWriter("Text.txt")
a.       if file "Text.txt" does not exist, this code will create a new file
b.    Calendar Dynamic delivery Notification
c.    Yes. we can connect to SQL Server Database using OleDbConnection.
d.    int j=0; for(int k=0;j+k!=10;j++,k++){Console.WriteLine("j= {0} 
k={1}",j,k);} |
135.                      Which of the following is a correct statement to declare the class 
"MyClass"?
a.       Intermediate Language
b.    UnLoad()
c.    class MyClass
d.    system.dll
136.                      object[] objArray=new object[3];
a.       System.Thread
b.    abstract class
c.    Struct Union
d.    successfully
137.                      public static void Main(){int 
num3=3;Console.WriteLine(num1+num2+num3r);
a.       No constructor matching SuperClass() found in class SuperClass
b.    There should be comma between i=0 and j=0. There should be a semicolon 
between j=0 and I<10.
c.    The code does not compile because static method cannot access nonstatic 
variables Var1 and var2.
d.    We cannot have a try block without a catch or/and finally block
138.                      We CANNOT use methods that have some arguments for a 
delegate?
a.       F
b.    No
c.    True
2 d.    IL
139.                      Indexers should have both a getter and setter, as arrays are 
read/write objects.
a.       Invoke Show
b.    csc /out:< executable name > /target:exe /r:<assembly 
name1;assemblyname2...;> <filename1 filename2..>
c.    True
d.    Console
140.                      Basic input and output operations are performed in C# using the 
methods of the ______ class in the _________namespace.
a.       catch statement are examined in order in which they appear .
b.    Console,System
c.    The code does not compile because static method cannot access nonstatic 
variables Var1 and var2.
d.    The code will compile successfully but does not display any output.

141.                      What can be signature of an application's entry point?
a.       Application
b.    ("Data Source=myserver;
c.    AChild.MdiChild = TheParent
d.    public static void Main() { }

142.                      C# is considered as a modern replacement for the language/s like 
(Choose all that apply)
a.       break
b.    C C++
c.    True
d.    DataTable

143.                      Value types can be null
a.       / /
b.    True
c.    False
2 d.    System.Thread
144.                      What is the name of entity that compiles CIL code into 
meaningful CPU instructions
a.       Just-in-time (JIT) compiler
b.    csc /out:myAssembly.dll /target:library file1.cs file2.cs
c.    a nested namespaces
d.    DomainUpDown,numericUpDown
145.                      What are client-side script languages
a.       A common runtime engine
b.    Space1.Space2.MyCl ass()
c.    VBScript and JavaScript
d.    Callable entity //MSDN
146.                      Which of the following is the correct syntax for declaring an 
indexer.
a.       WsiProfiles.BasicProfile1_1, EmitConformanceClaims = false)]
b.    A DataSet is an in-memory representation of external data
c.    System.Object
d.    protected int this[int var1]
147.                      In C# array elements are automatically assigned default values
a.       Interface
b.    False
c.    T
d.    True
148.                      Which of the following are true about the finally clause of try-
catch-finally statements?
a.       It is always executed unless its thread terminates
b.    Miss calling the DataBind() method of the page.
c.    Structures,Delegates,Methods.Classes.Interfaces
d.    to a single column based on the DataSource-optionally supports data editing.

149.                      What is the correct syntax for comment entries in C#
a.       class MyClass
b.    In lib.dll
c.    Mysql
d.    / /

150.                      The prefix ______ enables the use of keywords as identifiers, 
which is useful when interfacing with other programming languages.
a.       T
b.    True
c.    @
d.    F

151.                      intx = 2009: inty = 2010; System.Console.WriteLine ("The value 
of x & y is : {0}". (x & y));
a.       False
b.    TRUE
c.    0
d.    2008

152.                      Properties provide the opportunity to protect a field in a class by 
reading and writing to it using accessors
a.       False
b.    Cmd.ExecuteNonQuery()
c.    True
d.    Control
153.                      Which of the following are correct statements for implementing 
an abstract class
a.       class Object{static void Main(){}}
b.    A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited
c.    public abstract class ClassA
d.    _Class @class Class
154.                      Can the errors be displayed in a pop-up message box
a.       Internal
b.    No
c.    Yes
d.    True
155.                      Which of the following is a valid statement to implement class B 
in the class A
a.       IsMdiContainer
b.    Invoke Show
c.    class A:B
d.    SQLDataAdapter,OleDbDataAdapter,ADORecordSet
156.                      A set of theorems which must be proven for checking the 
correctness of the object model
a.       TRUE
b.    F
c.    T
d.    csc /out:< executable name > /target:exe /r:<assembly 
name1;assemblyname2...;> <filename1 filename2..>
2
157.                      Delegate can be removed from another type using the delete 
operator.
a.       True
b.    method
c.    Panel
d.    False
158.                      11. Which sentence about Connection object is correct
a.       A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited
b.    It can at times even be used to emit Intermediate Language code on the fly so 
that the generated code can be executed directly.
A.   Connection object is used to establish a session with the data source
c.    Structures,Delegates,Methods.Classes.Interfaces
159.                      Subscribing an object to an event depends on whether the event 
exists or not.
a.       Load
b.    The code will compile successfully and output the following text: In Try In 
Finally
c.    True
d.    Managed code Unmanaged code
160.                      Which of the following are true with respect to delegates? 
//MSDN
a.       For static methods, a callable entity consists of just a method. Delegate types 
are implicitly sealed It is not permissible to derive any type from a delegate type.
b.    It is always executed unless its thread terminates
c.    SQLDataAdapter,OleDbDataAdapter,ADORecordSet
d.    Modeless dialog boxes,Modal dialog boxes
161.                      Which of the following statements are true with respect to 
destructors?
a.       DataSet is an in-memory cache of records that can be visited/modified in any 
direction.
b.    An implicit reference conversion exists from any array type to System.Array
c.    public virtual void Display(){}
d.    When an instance is destructed, the destructors in an inheritance chain are 
called in order, from most derived to least derived.
162.                      What statement is used to completely abort the execution of a 
loop?
a.       break
b.    True
c.    Personalization
d.    In lib.dll
163.                      case 1:System.Console.Write ("{0}",1);goto default;case 
0:System.Console.Write ("{0}",0);goto case 1;
a.       010
b.    yes
c.    CLR
d.    Panel

164.                      a single process may contain multiple application domains
a.       true
b.    / /
c.    t
d.    False

165.                      If a class has a static constructor then it is automatically called 
when the class is loaded. Static constructors cannot be invoked explicitly.
a.       DataAdapter
b.    True
c.    t
d.    Block and Unblock

166.                      When a Data Form is created using the Data Form Wizard, 
which of the following classes are used by default
a.       OleDbDataReader,OleDbConnection,OleDbCommand
b.    True
c.    TextureBrush,SolidBrush,LinearGradientBrush
d.    namespace Namespacename{ ----- ----}

167.                      which class is the base class for all the controls that can be used 
in Windows Forms?
a.       Object(){}
b.    Control
c.    True
d.    C C++

168.                      Which is the most suitable statement to fill the missing code 
(line 12), if you want to build an in-house XML Web service?
a.       Just-in-time (JIT) compiler
b.    Use TextBox control with PasswordChar property is set a value
c.    Background threads are viewed by the CLR as expendable paths of execution 
that can be ignored at any point
d.    WsiProfiles.BasicProfile1_1, EmitConformanceClaims = false)]
169.                      Abstract methods holds only
a.       VBScript and JavaScript
b.    return type,name of method ,Parameters
c.    PrintPreviewControl,PrintDocument
d.    the abstract member cannot be private

170.                      int var1,var2;for(var1=0,var2=0;var1+var2<20;++var1,var2+=1)
a.       3, 1, 2
b.    F
c.    8
3 d.    T

171.                      Assume that Sub1 and Sub2 are both subclasses of class Super.
a.       delegate int Met42(inti);
b.    Description. Name and Namespace.
c.    All the options mentioned
d.    Compiles and definitely legal at runtime

172.                      Clients can attach executable code for events by supplying
a.       event subscribers
b.    The code generates a compile time error the code will compile successfully as 
the using-namespace-directive does not bring the name Inner itself into scope.
c.    True
d.    TextureBrush,SolidBrush,LinearGradientBrush

173.                      private abstract void getNumber();
a.       College.Library.Shelf. Book()
b.    SQLDataAdapter,OleDbDataAdapter,ADORecordSet
c.    the abstract member cannot be private
d.    PrintPreviewControl,PrintDocument

174.                      Which keyword is used when you wish to explicitly reference 
the fields and members of the current object?
a.       False
b.    Get,post
c.    this
d.    True

175.                      A delegate instance encapsulates one or more methods, each of 
which is referred to as a _________
a.       try finally
b.    ThreadPriority
c.    Callable entity //MSDN
d.    DataAdapter

176.                      Panel controls are used to group related controls in a logical unit
a.       T
b.    interact with the system environment
c.    F
d.    The code will compile successfully but does not display any output.
177.                      studentAdapter = new SqIDataAdapter (studentCommand): 
studentSet = new DataSetO; this.txtFirstName.DataBindings.Add ("Text". 
studentSet "FirstName");
a.       DataAdapter
b.    public Font(string fontname, float size);
c.    The dataset has not been populated.
d.    Object Q array = datatable.Rows[i].ltemArray;
178.                      The code will compile successfully and outputs will be: 1 2
a.       In lib.dll
b.    T
c.    F
d.    The method can be overridden.
179.                      static void Main() {SimpleDelegate d = new 
SimpleDelegate(F);d();
a.       Return records that have StudentNo, LastName, FirstName from Students 
table and ClassName from Classes table
b.    The code will compile successfully and the output of above code will be: 
Test.F
c.    Modeless dialog boxes,Modal dialog boxes
d.    It allows the page to save the users input on a form across postbacks.
180.                      The public keyword can be ignored for the Main function in C#.
a.       False
b.    Interface
c.    Console
d.    True

181.                      For a non-multicast delegate instance, the invocation list consists 
of the delegate instance itself
a.       String
b.    Control
c.    C C++
d.    True

182.                      When the property _____ is set to True for a Windows form, it 
becomes a MDI form
a.       IsMdiContainer
b.    class A:B
c.    IsMdiChild
d.    Get,post

183.                      public class Q21 {int maxElements;void Q21() {maxElements = 
100;System.out.println(maxElements);}
a.       Compilation error at line 3.
b.    RegularExpressionValidator
c.    Control
d.    Callable entity //MSDN
184.                      can we cancel closing a form
a.       T
b.    Managed code Unmanaged code
c.    Yes, by using FormClosing event
d.    event subscribers

185.                      Necessary memory allocations used by a running application
a.       False
b.    True
c.    set
d.    Object

186.                      Which type of the System. Threading namespace can be used to 
resolve the issue of concurrency?
a.       IsCLass
b.    Anchor
c.    class A:B
d.    Monitor
187.                      Console.WriteLine(m1.Var1+m1.Var2+LocalVar);
a.       F
b.    using
c.    4
d.    Enumerations are a handy programming construct that allow you to group 
name/value pairs
188.                      What is spin control
a.       the abstract member cannot be private
b.    DomainUpDown,numericUpDown
c.    using System.Data.SqlClient;
d.    Get,post

189.                      case 2: Console.WriteLine("Two");break;case 1+a: 
Console.WriteLine("Two Two"); break;default: Console.WriteLine(j);
a.       return types of each method parameters used by each method
b.    using System.Data.SqlClient;
c.    Dir ["S"]="SMITH"; Dir ["M"]="MARTIN";
d.    The output would be only the text "Two".

190.                      /•Line 47 class DerivedClass: IFace2. IFacel. BaseClass 
{ },/"Line 1*/ class ImplDerivedClass: IFace2. BaseClass. IFacel { }
a.       X=1, Y=2
b.    Base class
c.    Stack area
d.    line 1, 47
191.                      Which of the following is a correct statement that defines a 
delegate?
a.       DataSet is an in-memory cache of records that can be visited/modified in any 
direction.
b.    protected int this[int var1]
c.    to a single column based on the DataSource-optionally supports data editing.
d.    private delegate int MyDelegate() ; public delegate void MyDelegate() ;
192.                      for(int i=0;i<2;i++){for(int j=0;j<3;j++){ if(i==j) 
continue;}Console.WriteLine("i={0} j={1}",i,j);}
a.       Columns. Constraints
b.    i=1 j=0 i=0 j=1 i=0 j=2
c.    Class View
d.    Compilation error at line 3.
193.                      Which of the following statements are true with respect to 
abstract functions?
a.       Abstract event declarations are only permitted in abstract classes
b.    An Assembly
c.    Visual Inheritance,Control Anchoring,Cotrol Docking,Transparent Forms
d.    The code will compile successfully and output of the code will be: America 
Hello
194.                      Delegate d = new Delegate(Foo); Question t=new Question(); 
t.MultiCall(d,3);
a.       The code will compile successfully and output of the code will False
b.    the number of items in the initialization list,The number present in the square 
bracket next to the data type at the right hand side.
c.    The code will compile successfully and output the following text: In Try In 
Finally
d.    The code will compile successfully and display following lines on the standard 
output: Hello Hello Hello
195.                      Animal a = new Mammal(); a.DisplayO:
a.       Mammal
b.    False
c.    Session
d.    Checked only

196.                      You need to get access to a database that is stored on a server 
running Microsoft SQL Server 2000. Which data adapter would you use?
a.       ("Data Source=myserver;
b.    virtual
c.    SqIDataAdapter
d.    LinkArea
197.                      The beta.cs file contains a class called Beta that also contains an 
internal method called Method. Can Alpha.Method be called from Beta.Method 
and vice versa?
a.       Alpha.Method and Beta.Method can call each other only if Alpha and Beta 
are located in the same assembly.
b.    True
c.    Connection object is used to establish a session with the data source.
d.    soapFormatter is a serialization formatter that represents graph as a SOAP 
message
198.                      using Outer.Inner; class SpecialWibble: Inner.Wibble { }
a.       interact with the system environment
b.    Output of this code is "Nguyen Van A".
c.    The code will compile successfully but does not display any output.
d.    The code generates a compile time error the code will compile successfully as 
the using-namespace-directive does not bring the name Inner itself into scope.
199.                      are the collection of reusable classes or types
a.       Complex Control
b.    System.Array
c.    Class libraries
d.    class A:B

200.                      What is component is used to fetch the values from the data 
source to DataSet and also update the data source with data in the DataSet?
a.       DataTable
b.    SQLDataAdapter,OleDbDataAdapter,ADORecordSet
c.    DataAdapter
d.    AChild.MdiChild = TheParent

201.              namespace contains classes useful for synchronization
a.       System.Thread
b.    Interface
c.    True
d.    a nested namespaces
202.                      System namespace is used in the C# programs to:
a.       F
b.    interact with the system environment
c.    Load
d.    The code will compile successfully and output of the code will be: America 
Hello
203.                      Assemblies can be shared by installing it in the global Assembly 
Cache.
a.       No
b.    aspx
c.    True
d.    False
204.                      Any class that contain one or more abstract methods must be 
declared as
a.       System.Drawing
b.    Properties
c.    Abstract
d.    IsCLass
205.                      ADO.NET provides features for accessing traditional databases 
like SQL Server as well as databases, which are accessed using
a.       IsMdiChild
b.    ODBC,OLEDB
c.    Namespaces
d.    ConnectionString
206.                      The...method of the ...object is used to redirect the user to 
another page.
a.       multiple interface
b.    Complex Control
c.    Redirect, Response
d.    RegularExpressionValidator
207.                      ADO.Net.Provider features for accessing traditional database 
like SQL Server as well as databases , which are accessed using
a.       OLEDB + XML
b.    Test(1) Test(3) Test(2)
c.    Control
d.    Get,post

208.                      What is a third-party data provider
a.       Struct Union
b.    False
c.    method
d.    Mysql

209.                      Delegates help to call a method at runtime?
a.       method
b.    True
c.    yes
d.    False

210.                      What is NOT a client-site technology?
a.       VB.NET
b.    Prelnit
c.    False
d.    break

211.                      When we need to retrieve only a single value from the 
Database,which Method is efficient
a.       Namespace
b.    ExecuteScalar()
c.    Internal
d.    DataAdapter

212.                      Like a non-abstract class, an abstract class must provide 
implementations of all members of the interfaces that are listed in the base class lis
a.       new
b.    F
c.    True
d.    T

213.                      Abstract class cannot be directly instantiated but it can be used to 
create object references
a.       Yes
b.    True
c.    Compilation error at line 3.
d.    False
214.                      .NET is a whole new platform centered around the Intranet
a.       Stack area
b.    Form
c.    False
d.    Only 1.
215.                      The method on which a delegate makes calls cannot have return 
type
a.       CLR
b.    F
c.    False
d.    T
216.                      if(i%3==0) throw new Exception("Exception1"); 
Console.WriteLine(i);
a.       Form
b.    Yes
c.    C C++
d.    4 5
217.                      Panel controls are not visible at runtime
a.       if file "Text.txt" does not exist, this code will create a new file
b.    Class libraries
c.    Compile error
d.    F
218.                      Value types differ from reference types as___
a.       No pointers required: Automatic memory management through garbage 
collection!
b.    data can be stored using value types but not in the reference type. Variables of 
the value types directly contain their data, whereas variables of the reference types 
store references to objects.
c.    By using the System.Activator .CreateInstance() method to create an instance 
of object in the following manner. Type myObjectType 
=Type.GetTypeFromProgID("MyDll.MyOName") object myObject = 
System.Activator.CreatInstance(myObjectType)
d.    A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited
219.                      interface intA: one, two,three
a.       The method can be overridden.
b.    Description. Name and Namespace.
c.    one, two, three must be interfaces.
d.    delegate int Met42(inti);

220.                      Namespace is a physical run-time mechanism
a.       F
b.    Values of each GUI widget on the page are stored in a hidden form field.
c.    t
d.    True
221.                      Reflection APIs does not allow creating of assembly in memory 
dynamically.
a.       The output of code will be: The type of objA is : Space1.A
b.    True
c.    Console,System
d.    The code will display
222.                      Because the Thread pool are always thread with default priority
a.       F
b.    A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited
c.    False
d.    T

223.                      An engine that shared by all .NET-aware languages is called:
a.       Only 1.
b.    Cmd.ExecuteNonQuery()
c.    A common runtime engine
d.    Redirect, Response
224.                      public static void Main()
{try{System.Console.WriteLine("hello");
a.       if file "Text.txt" does not exist, this code will create a new file
b.    csc /out:< executable name >/target:exe<filename1 filename2..>
c.    Use TextBox control with PasswordChar property is set a value
d.    We cannot have a try block without a catch or/and finally block
225.                      What is component is used to fetch the values from the data 
source to DataSet and also update the data source with data in the DataSet
a.       DataAdapter
b.    Properties
c.    True
d.    Application

226.                      A set of specifications defining the programming protocol
a.       F
b.    True
c.    T
d.    @

227.                      the code will generate a compilation error, as parent class does 
not have a display method with one argument
a.       True
b.    Object(){}
c.    T
d.    F
228.                      It is possible to access members of the System.Delegate type via 
the usual member access syntax.
a.       Yes
b.    False
c.    Class View
d.    Namespaces
2
229.                      The Thread pool manages thread efficiently by minimizing the 
number of threads that must be created, started and stopped
a.       this
b.    new
c.    False
d.    True
SqIConnection?
a.       DataSet is an in-memory cache of records that can be visited/modified in any 
direction.
b.    Yes. we can connect to SQL Server Database using OleDbConnection.
c.    System.Drawing
d.    It is possible to have designers working on the markup while programmers 
231.                      Which is internal access modifier
a.       default context is used to group together .NET objects that have no specific 
or unique contextual needs.
b.    Enumerations are a handy programming construct that allow you to group 
name/value pairs
c.    The base keyword is used to access members of a base class from within a 
derived class.
d.    Marks a member as accessible limited to the current assembly, but not outside 
the assembly
232.                      the lock keyword marks a statement block as a critical section
a.       F
b.    Object
c.    T
d.    True
233.                      For using SQL .NET Data Provider what using statement of the 
following is correct
a.       using System.Data.SqlClient;
b.    Intermediate Language
c.    AChild.MdiChild = TheParent
d.    a nested namespaces
234.                      Assuming that I have several clients who would like to receive 
notification when a particular event occurs. Putting all of them in a ______ type of 
delegate can help call all the clients when a particular event occurs.
a.       public abstract class ClassA
b.    DataAdapter
c.    Multi Cast delegate.
d.    public virtual void Display(){}
235.                      A command builder is only able to autogenerate SQL commands 
for use by a data adapter, if
a.       Yes. we can connect to SQL Server Database using OleDbConnection.
b.    the single table has been attributed with a primary key, and the column(s) 
representing the primary key is accounted for in your SQL statement
c.    Static constructors cannot take parameters. Static constructors cannot be called 
explicitly.
d.    DataSet is an in-memory cache of records that can be visited/modified in any 
direction.
236.                      [C] A temporary cookie is saved to the user's hard drive
a.       T
b.    F
c.    Internal
d.    True

237.                      To get values of the columns of the i-th row in a DataTable 
object named datatable, what of the follwings is correct?
a.       DataType[] arrayname;
b.    DataRow array = datatable.Rows[i].ItemArray;
c.    csc /out:myAssembly.dll /target:library file1.cs file2.cs
d.    System.Array

238.                      Classes in the Base Class Library are categorized into ______ 
based on their functionality
a.       Namespace
b.    Namespaces
c.    System.Array
d.    try finally

239.                      Which information is included in a connection string
a.       Name of machine, name of the database on that machine, required security 
settings and other data provider-specific information
b.    Structures,Delegates,Methods.Classes.Interfaces
c.    UnLoad()
d.    The constructor must have the same name as that of the name of its class.

240.                      Namespace are runtime entities
a.       T
b.    @
c.    F
d.    none

241.                      To create an instance of the Font class using existing Font and 
FontStyle, the constructor is:
a.       Compilation error at line 3.
b.    It must be assignable to the Exception type.
c.    public Font(string fontname, float size);
d.    DataRow array = datatable. Rows[i].ItemArray;
242.                      ____control combines the features of the TextBox and the 
ListBox controls
a.       ODBC,OLEDB
b.    ComboBox
c.    NO
d.    Namespaces
243.                      What is the role of the CLR (Select all that apply)
a.       Windows Application
b.    same as return type of get method of a property.
c.    Manages memory Compile once and run on any CPU & OS that supports the 
runtime.
d.    Enumerations are a handy programming construct that allow you to group 
name/value pairs
244.                      The ______ declares a reference type that has abstract member 
only.
a.       False
b.    Interface
c.    Panel
d.    An integer is number of affected rows.
245.                      What is the lifespan for items stored in ViewState?
a.       public virtual void Display(){}
b.    Exists for the Life of the current page
c.    Page_Init
d.    System.Web.Mail

246.                      Which of the following objects can we use to read data from a 
Micorosoft SQL Server 2000 database?
a.       It is always executed unless its thread terminates
b.    A delegate can be thought of as a type-safe object-oriented function pointer It 
cannot be used for event handling. It can handle only one method at a time.
c.    SQLDataAdapter,OleDbDataAdapter,ADORecordSet
d.    An integer is number of affected rows.

247.                      Brushes can be created using one of the following classe
a.       Value types and reference types
b.    Console,System
c.    TextureBrush,SolidBrush,LinearGradientBrush
d.    System.Web.Mail

248.                      The new modifier applied on delegate overrides the method for 
which the delegate is being used.
a.       public private protected
b.    Yes
c.    True
d.    False
249.                      public static int Y = A.X + 1;static void Main() 
{ Console.WriteLine("X = {0}, Y = {1}", A.X, B.Y);
a.       line 1, 47
b.    Abstract
c.    C C++
d.    X=1, Y=2

250.                      When compiler compiles the statement above, it internally 
generates DelegateName class.
a.       ExecuteScalar()
b.    Interface
c.    True
d.    False

251.                      ASP.NET supports single-file model only
a.       f
b.    true
c.    abstract class
d.    T

252.                      class Test {static void Main() {Question Dir = new Question();// 
Add code here. . . . . . . .}}
a.       Dir ["S"]="SMITH"; Dir ["M"]="MARTIN";
b.    It must be assignable to the Exception type.
c.    DrawRetangle
d.    the overriding method must return void
253.                      A DataSet constitutes a "disconnected" view of the data present 
in the database.
a.       Intermediate Language
b.    True
c.    using
d.    Boxing
254.                      int[] Array1= {3,2,1};
a.       0
b.    @
c.    T
d.    F
255.                      A delegate must define name of the method on which it makes 
calls
a.       False
b.    new
c.    break
d.    True
256.                      Private assemblies are stored in the same folder as that of an 
application.
a.       True
b.    Value
c.    T
d.    False
257.                      Private assemblies have no versioning policy.
a.       True
b.    F
c.    False
d.    System.Thread

258.                      Console.WriteLine(i);
a.       0
b.    f
c.    t
d.    yes

259.                      What is the output format of the file the C# compiler produces
a.       no
b.    True
c.    T
d.    IL

260.                      When we want to associate a key with values which of the 
following classes are preferred?
a.       Namespaces
b.    Class View
c.    IsMdiContainer
d.    Hashtable
261.                      For defining the delegate which of the following entities must be 
specified?
a.       DataRow array = datatable.Rows[i].ItemArray;
b.    The Application tab of the project's Properties window
c.    Intermediate Language
d.    return types of each method parameters used by each method
262.                      SQL.NET Framework Data Provider
a.       Mysql
b.    explicit
c.    F
d.    t

263.                      How many Page directives an ASP.NET page can include?
a.       F
b.    True
c.    1
d.    public static void Main() { }
264.                      public class SubClass : SuperClass {SubClass(string s) { }public 
static void Main(){SuperClass s = new SubClass( "The" );
a.       No constructor matching SuperClass() found in class SuperClass
b.    Manages memory Compile once and run on any CPU & OS that supports the 
runtime.
c.    ContextMenu
d.    if file "Text.txt" does not exist, this code will create a new file
265.                      What is SoapFormatter
a.       Background threads are viewed by the CLR as expendable paths of 
execution that can be ignored at any point
b.    soapFormatter is a serialization formatter that represents graph as a SOAP 
message
c.    The constructor must have the same name as that of the name of its class.
d.    Return records that have StudentNo, LastName, FirstName from Students 
table and ClassName from Classes table
266.                      False, True
a.       return type,name of method ,Parameters
b.    T
c.    It allows the page to save the users input on a form across postbacks.
d.    True
267.                      The object invokes the default constructor when no parameters 
were passed to it.
a.       True
b.    ToolTip
c.    System.Array
d.    ("Data Source=myserver;
268.                      A class is the implementation of an objec t
a.       F
b.    System.Delegate
c.    False
d.    abstract class
269.                      The____property of a DataGrid control, allow filling various 
kinds of data in a DataGrid including data from a DataSet, DataViewManager, 
Arrays, Lists etc
a.       DataSource
b.    Interface
c.    ContextMenu
d.    ConnectionString
270.                      Which class is at the top of.NET class hierarchy?
a.       Console
b.    Connection object is used to establish a session with the data source.
c.    System.Object
d.    default context is used to group together .NET objects that have no specific or 
unique contextual needs

271.                      IndexerTest IndexMe = new IndexerTest();IndexMe[1] = 
100;IndexMe[2] = 1000;
a.       Session, Application
b.    100 1000 1000
c.    A common runtime engine
d.    010
272.                      Which sentence about background threads is correct
a.       Background threads are viewed by the CLR as expendable paths of 
execution that can be ignored at any point in time
b.    The Application tab of the project's Properties window
c.    Struct Union
d.    csc /out:< executable name > /target:exe /r:<assembly 
name1;assemblyname2...;> <filename1 filename2..>
273.                      Which sentence about ViewState is correct
a.       Values of each GUI widget on the page are stored in a hidden form field.
b.    No pointers required: Automatic memory management through garbage 
collection!
c.    private delegate int MyDelegate() ; public delegate void MyDelegate() ;
d.    An instance of a type that is Serializable can be easily transmitted over the 
network, or stored in a file on the file system
274.                      if(x[var]>100) break; if(x[var]<0) continue; x[var+1]=x[var]
+y[var];
a.       Hints + Properties
b.    Dir ["S"]="SMITH"; Dir ["M"]="MARTIN";
c.    There is nothing wrong with the statement.
d.    The method can be overridden.
275.                      An explicit interface member implementations are permitted to 
call abstract methods
a.       T
b.    False
c.    F
d.    TRUE
276.                      An assembly is a logical compile-time mechanism
a.       F
b.    The code does not compile because static method cannot access nonstatic 
variables Var1 and var2.
c.    catch statement are examined in order in which they appear .
d.    An Assembly

277.                      a class library that is written by C# can be used in any other 
.NET programming languag
a.       True
b.    Yes
c.    False
d.    method
278.                      Which thing is not included in a .NET PE file
a.       The code will compile successfully and display following lines on the 
standard output: Hello Hello Hello
b.    The code will compile successfully and output the following text: In Try In 
Finally
c.    The code will compile successfully and outputs will be: 1 2
d.    Source code
279.                      The constructor without parameters is called _________.
a.       Checked only
b.    False
c.    default constructor
d.    b.m2(); i=b.x; i=b.y;

280.                      Superclass a = new Superclass();Subclass1 b = new Subclass1();
a.       Illegal at compile time
b.    Windows Application
c.    Interface
d.    We cannot have a try block without a catch or/and finally block

281.                      Because methods are allowed to hide inherited methods, it is 
possible for a class to contain only one virtual method with the same signature
a.       F
b.    aspx
c.    True
d.    PopUpMenu

282.                      A class is the instantiation of an objec t
a.       True
b.    False
c.    T
d.    f

283.                      The default value of AutoEventWireUp is FALSE
a.       False
b.    VB.NET
c.    True
d.    System.Delegate

284.                      For multiple levels of organizations ___ can be used
a.       a nested namespaces
b.    abstract class
c.    Invoke Show
d.    DataType[] arrayname;

285.                      _____property is used to get or set the edges of the control are 
anchored to the edges of its container
a.       aspx
b.    line 1, 47
c.    Anchor
d.    True

286.                      ________ allows developers and business analysts work together 
to define and modify business processes shared between applications.
a.       public void methodA();
b.    Control
c.    Merge Modules
d.    Orchestration
287.                      When we use the DataSet object, ADO.NET is based on 
disconnected data access.
a.       True
b.    F
c.    ("Data Source=myserver;
d.    t

288.                      A serialized object always has an Object graph
a.       T
b.    Console
c.    F
d.    Using
289.                      The object that notifies the other objects, about events is known 
as the publisher.
a.       True
b.    T
c.    Monitor
d.    Hashtable
290.                      If maximize and minimize buttons are displayed then the 
HelpButton property is ignored
a.       T
b.    F
c.    No
d.    Which of the following statements are true with respect to destructors?
291.                      The new modifier applied on delegates hides inherited member 
by the same name.
a.       ODBC,OLEDB
b.    True
c.    False
d.    Stack area
292.                      The code will compile successfully and output will be 
Programming In c#
a.       True
b.    nothing
c.    F
d.    T
293.                      Which of the following statements are true about delegates
a.       csc /out:< executable name >/target:exe<filename1 filename2..>
b.    A delegate can be thought of as a type-safe object-oriented function pointer It 
cannot be used for event handling. It can handle only one method at a time.
c.    protected int this[int var1]
d.    ThreadPriority
294.                      Microsoft .NET is primarily made up of the following three 
components.
a.       Visual Studio .NET 3rd party .NET services .NET platform itself
b.    The code does not compile because static method cannot access nonstatic 
variables Var1 and var2.
c.    Unstarted
d.    t
295.                      The information about a class can be found out using ________
a.       Invoke Show
b.    Reflection
c.    Object
d.    System.Drawing

296.                      A C# program can have only one using directive
a.       try finally
b.    False
c.    Console
d.    Using

297.                      Fully Language Independent
a.       t
b.    True
c.    F
d.    same as return type of get method of a property.

298.                      public unsafe struct Node { public int Value; public Node Left; 
public Node Right; }
a.       It uses more than one loop index.
b.    AChild.MdiChild = TheParent
c.    Nothing is wrong with the above code.
d.    return types of each method parameters used by each method

299.                      namespace Space1{
a.       Space1.Space2.MyCl ass()
b.    same as return type of get method of a property.
c.    delegate int Met42(inti);
d.    Calendar Dynamic delivery Notification
300.                      Which of the following is a correct event that is based on the 
delegate named " MyDelegate"
a.       public event MyDelegate MyEvent;
b.    The code will compile successfully and display following lines on the standard 
output: Hello Hello Hello
c.    An Assembly
d.    The code will compile successfully and output of the code will be: America 
1 Hello
301.              What will appear in the standard output if tryThis() throws 
a 000000000FormatException?
a.       Session, Application
b.    exception 2 finally
c.    Description. Name and Namespace.
d.    Columns. Constraints
302.                      Identify the correct syntax for creating an executable file.
a.       Manages memory Compile once and run on any CPU & OS that supports the 
runtime.
b.    csc /out:< executable name >/target:exe<filename1 filename2..>
c.    Background threads are viewed by the CLR as expendable paths of execution 
that can be ignored at any point in time
d.    Static constructors cannot take parameters. Static constructors cannot be called 
explicitly.
303.                      Which namespace does the class ListView belong to
a.       System.Windows.Forms
b.    Init A A.F Init B B.F
c.    System.Web.Service
d.    The Exception Type.

304.                      All interface members are implicitly private
a.       default context is used to group together .NET objects that have no specific 
or unique contextual needs.
b.    F
c.    t
d.    False
305.                      The new modifier is only permitted on delegates declared within 
another type
a.       False
b.    Yes
c.    set
d.    True
306.                      Which of the following statements correctly declares a 
namespace?
a.       A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited
b.    DataSet is an in-memory cache of records that can be visited/modified in any 
direction.
c.    <%@ Page <attribute>="<value>" %>
d.    namespace Namespacename{ ----- ----}
307.                      An abstract class is a class that cannot be instantiated.
a.       f
b.    True
c.    t
d.    yes
308.                      Console.WriteLine("<3");else if 
(myVar>2)Console.WriteLine(">2");else Console.WriteLine("Other");
a.       True
b.    @
c.    >2
d.    no
3
309.                      To preserve screen space on the monitor , VS.NET provides us 
with
a.       Compiles and definitely legal at runtime
b.    SolutionExplorer Window + Tabbed Windows + Class View Window + 
Command Windows + Properties Window
c.    No pointers required: Automatic memory management through garbage 
collection!
d.    nothing
310.                      public abstract void SayHello(string yourName) 
{ System.Console.WriteLine("Hello {0}". yourName):
a.       class A:B
b.    Complieerror
c.    DrawRetangle
d.    Unqualified name
311.                      What is return value of ExecuteNonQueryO method of a 
Command object?
a.       Value types and reference types
b.    public Font(string fontname, float size);
c.    An integer is number of affected rows.
d.    Dir ["S"]="SMITH"; Dir ["M"]="MARTIN";
312.                      What is default accessibility for the structures in C£?
a.       An integer is number of affected rows.
b.    break
c.    Internal
d.    IsCLass

313.                      An interface is a pure abstract class.
a.       True
b.    / /
c.    t
d.    F

314.                      An object is the instantiation of a class.
a.       t
b.    NGWS (Next Generation Windows Services)
c.    f
d.    True
315.                      Interfaces can be used to define state data
a.       The code will display
b.    T
c.    F
d.    The code generates a compile time error the code will compile successfully as 
the using-namespace-directive does not bring the name Inner itself into scope.

316.                      IntelliSence pops up a list of _____that can be called on an objec
a.       Namespace
b.    ExecuteScalar()
c.    Properties
d.    Hints + Properties

317.                      By default the compiler opens _____assembly
a.       _Class @class Class
b.    Mammal
c.    system.dll
d.    String

318.                      An object is the implementation of a class.
a.       No
b.    @
c.    f
d.    T
319.                      The programmer has an assembly named pri.dll which other 
programmer also wants used the same assembly
a.       Yes
b.    nothing
c.    T
d.    sn -k key1.snk csc /out:pri.dll /target:library file2.cs /a .keyfile:key.snk gautil 
-I pri.dll
320.                      Which variables can use by all users and in all pages?
a.       Application
b.    Compile error
c.    Struct Union
d.    Properties

321.                      Arrange the sequence in which the key events are triggered
a.       KeyDown, KeyUp, KeyPress
b.    Just-in-time (JIT) compiler
c.    Init A A.F Init B B.F
d.    a nested namespaces
322.                      The members of an array are the members inherited from class 
System.Array
a.       Two
b.    True
c.    T
d.    F
323.                      public static int Method42(inti)
a.       delegate int Met42(inti);
b.    Columns. Constraints
c.    Struct Union
d.    Yes, by using DrawPolygon method of Graphics object

324.                      Which of following extension does a Web service file will have?
a.       ComboBox
b.    False
c.    asmx
d.    True

325.                      Namespaces are defined using _____ statements.
a.       Unboxing
b.    Using
c.    true
d.    False
326.                      which sentence about background threads is correct?
a.       Background threads are viewed by the CLR as expendable paths of 
execution that can be ignored at any point
b.    It can be used to effectively find all the types in an assembly and/or 
dynamically invoke methods in an assembly.
c.    Overloading of methods permits a struct, or interface to declare multiple 
methods with the same name, provided the signatures of the methods are all 
unique.
d.    A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited

327.                      class Program { static void MainO{ try 
Console.WriteLine("try"); catch Console.WriteLine("catch");
a.       DrawRetangle
b.    Hashtable
c.    try finally
d.    Monitor
328.                      DataTable represents one table from DataSet that exists in the 
memory
a.       break
b.    this
c.    True
d.    ToolTip
329.                      In C#, an underscore is allowed as an initial character of a 
variable.
a.       protected int this[int var1]
b.    False
c.    True
d.    Get,post
330.                      What mode is VS.NET allow you to step through each line of 
code and trace the execution of your application
a.       T
b.    Debug Mode
c.    exception 2 finally
d.    csc /out:<assembly name>/target:library <filename1 filename2..>

331.                      For every virtual method inherited by or declared in a class, 
there exists a most derived mplementation of the method with respect to that class
a.       DataAdapter
b.    True
c.    t
d.    F

332.                      The dimension lengths are not part of the type of the array, but 
rather are established when an instance of the array type is created at run-time.
a.       ToolTip
b.    F
c.    Allocate
d.    t

333.                      Field-Level Validation
a.       f
b.    True
c.    t
3 d.    No

334.                      What are properties of [WebService] attribute
a.       The Exception Type.
b.    Description. Name and Namespace.
c.    namespace Namespacename{ ----- ----}
d.    delegate int Met42(inti);

335.                      The ____ event of the Form control is used to perform tasks such 
as allocating resources used by the form
a.       Form
b.    Debug Mode
c.    Load
d.    break
3
336.                      Which of the following statements are true about the Reflection 
API?
a.       It can be used to effectively find all the types in an assembly and/or 
dynamically invoke methods in an assembly.
b.    default context is used to group together .NET objects that have no specific or 
unique contextual needs
c.    It allows the page to save the users input on a form across postbacks.
d.    SQLDataAdapter,OleDbDataAdapter,ADORecordSet
337.                      Select the service, which allows users to maintain their schedules 
thus facilitating timely and manageable interactions with other users.
a.       Calendar
b.    Employee (){}
c.    class MyClass
d.    False
338.                      _______ service allows users to handle their own rules for 
handling
a.       Prelnit
b.    LinkArea
c.    Personalization
d.    Complex Control
339.                      Which of the following can be defined as generic?
a.       It can be used to effectively find all the types in an assembly and/or 
dynamically invoke methods in an assembly.
b.    It must be assignable to the Exception type.
c.    It can at times even be used to emit Intermediate Language code on the fly so 
that the generated code can be executed directly.
d.    Structures,Delegates,Methods.Classes.Interfaces
4
340.                      The DataTable structure is defined by its _ and _.
a.       A common runtime engine
b.    Object
c.    abstract class
d.    Columns. Constraints

341.                      The method that overrides a method in the base class must be 
prefixed with the ____ keyword.
a.       F
b.    CLR
c.    Yes
d.    new

342.                      Link Label is a commands control
a.       F
b.    True
c.    T
d.    no

343.                      A C# class can be inherited from multi other classes
a.       No
b.    UnLoad()
c.    F
d.    t
344.                      Which sentence about strong name is correct
a.       default context is used to group together .NET objects that have no specific 
or unique contextual needs
b.    Values of each GUI widget on the page are stored in a hidden form field.
c.    Struct Union
d.    Strong name is used to uniquely identify the publisher of a .NET library
345.                      The____ event of the PrintDocument class is triggered 
immediately before each PrintPage event ocurs
a.       The code will compile successfully and output of the code will be: America 
Hello
b.    IL Code and Resources
c.    QueryPageSettings
d.    keydown
346.                      Which member of System.Threading namespace is an 
enumeration?
a.       Parameterized
b.    Columns. Constraints
c.    ThreadPriority
d.    class MyClass
347.                      FF()
a.       F
b.    asmx
c.    True
d.    T
348.                      Which of the following statements are true with respect to Static 
constructors.
a.       Which of the following statements are true with respect to destructors?
b.    Static constructors cannot take parameters. Static constructors cannot be called 
explicitly.
c.    We cannot have a try block without a catch or/and finally block
d.    the overriding method must return void
349.                      __________is all about converting a reference type into a value 
type.
a.       Only 1.
b.    Get,post
c.    set
d.    Unboxing
350.                      A static constructor cannot have accessibility modifiers.
a.       True
b.    False
c.    System.Thread
d.    Internal
351.                      An assembly consists of Assembly Metadata. Type Metadata. _ 
and
a.       IL Code and Resources
b.    Obtains Class and Type Information from an Assembly Obtains Member 
Information from a Class Dynamically Invokes Methods from Classes in an 
Assembly
c.    True
d.    QueryPageSettings
352.                      The _____ package forms the basic unit of versioning.
a.       System.Drawing
b.    T
c.    An Assembly
d.    Page_Init

353.                      To get values of the columns of the i-th row in a DataTable 
object named datatable. what of the followings is correct?
a.       System.Threading namespace does not contain this delegate.
b.    Callable entity //MSDN
c.    Object Q array = datatable.Rows[i].ltemArray;
d.    public virtual void Display(){}
354.                      Which of the following statements are True with respect to 
DataSet in ADO.Net? (Choose 2)
a.       Manages memory Compile once and run on any CPU & OS that supports the 
runtime.
b.    the overriding method must return void
c.    to a single column based on the DataSource-optionally supports data editing.
d.    DataSet is an in-memory cache of records that can be visited/modified in any 
direction.
355.                      The method can be used to draw a rectangle or a square 
depending on the coordinates passed as its argument
a.       Interface
b.    DrawRetangle
c.    Object(){}
d.    Merge Modules

356.                      Form-Level Validation
a.       Two
b.    f
c.    T
d.    set
357.                      A set of graphical symbol for modeling the objects
a.       F
b.    t
c.    _Class @class Class
d.    int j=0; for(int k=0;j+k!=10;j++,k++){Console.WriteLine("j= {0} 
k={1}",j,k);} |
358.                      Performance of single-file model is less than of multi-file model
a.       F
b.    T
c.    False
d.    Yes
359.                      Which of the following is a legal loop construction?
a.       Test() { } public Test(int a, int b){} Test(int a, int b){}
b.    int j=0; for(int k=0;j+k!=10;j++,k++){Console.WriteLine("j= {0} 
k={1}",j,k);} |
c.    A delegate can be thought of as a type-safe object-oriented function pointer It 
cannot be used for event handling. It can handle only one method at a time.
d.    It is always executed unless its thread terminates
360.                      get {if(i >= 0 && i < Message.Length)return 
Message.Substring(i,1);else return "";
a.       WsiProfiles.BasicProfile1_1, EmitConformanceClaims = false)]
b.    A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited
c.    The code will compile successfully and output will be: WELCOME
d.    It is possible to have designers working on the markup while programmers 
author the C# code.
361.                      A get accessor of an indexer corresponds to a method with no 
parameters.
a.       True
b.    break
c.    False
d.    Using
362.                      Static constructor has _______ parameter/s.
a.       no
b.    f
c.    Mysql
d.    False

363.                      The sealed modifiers are not permitted in an enum declaration.
a.       DrawRetangle
b.    True
c.    Class View
d.    t

364.                      Supports version compatibility
a.       Single Cast delegate
b.    t
c.    F
d.    one, two, three must be interfaces.

365.                      What are required services in an ASP.NET Web server?
a.       Commerce Server 2000 Exchange 2000 Server
b.    IIS Admin and World Wide Web Publishing
c.    PrintPreviewControl,PrintDocument
d.    NET Framework class library , Common Language Runtime
366.                      Which sentence about WSDL is correct?
a.       WSDL is used to describe information about the web service
b.    By using the System.Activator .CreateInstance() method to create an instance 
of object in the following manner. Type myObjectType 
=Type.GetTypeFromProgID("MyDll.MyOName") object myObject = 
System.Activator.CreatInstance(myObjectType)
c.    Structures,Delegates,Methods.Classes.Interfaces
1 d.    UnLoad()
367.                      Which sentence about DataSet is correct
a.       An instance of a type that is Serializable can be easily transmitted over the 
network, or stored in a file on the file system
b.    No pointers required: Automatic memory management through garbage 
collection!
c.    It can be used to effectively find all the types in an assembly and/or 
dynamically invoke methods in an assembly.
d.    A DataSet is an in-memory representation of external data
368.                      ____are the visual effects supported in WinForms (Choose all 
correct answers)
a.       T
b.    Visual Inheritance,Control Anchoring,Cotrol Docking,Transparent Forms
c.    Values of each GUI widget on the page are stored in a hidden form field.
d.    to a single column based on the DataSource-optionally supports data editing.
369.                      What is advantage of code-behind page model?
a.       / /
b.    When an instance is destructed, the destructors in an inheritance chain are 
called in order, from most derived to least derived.
c.    It is possible to have designers working on the markup while programmers 
author the C# code.
d.    No pointers required: Automatic memory management through garbage 
collection!
370.                      Assume you wish to check validation of E-mail data. Which 
validation control is the most suitable to do it?
a.       Block and Unblock
b.    RegularExpressionValidator
c.    Callable entity //MSDN
d.    Session, Application
371.                      An abstract class is not permitted to map interface onto abstract 
methods
a.       f
b.    T
c.    True
d.    yes
372.                      can we draw a hexagonal with GDI+
a.       the abstract member cannot be private
b.    return type,name of method ,Parameters
c.    The TrackBar control allows user to select a value from a range (of values), 
using scroll bar-like input mechanism.
d.    Yes, by using DrawPolygon method of Graphics object
373.                      CAmerican chuck = new CAmerican();CBrit edward = new 
CBrit();Stereotype[] stereotypes = new Stereotype[2];stereotypes[0] = new 
Stereotype( chuck.BePatriotic );stereotypes[1] = new 
Stereotype( edward.BeXenophobic );
a.       No constructor matching SuperClass() found in class SuperClass
b.    We cannot have a try block without a catch or/and finally block
c.    The code does not compile because static method cannot access nonstatic 
variables Var1 and var2.
d.    The code will compile successfully and output of the code will be: America 
Hello
374.                      To perform a change to a table using the Command object named 
Cmd, what statement of the following correct?
a.       Cmd.ExecuteNonQuery()
b.    ContextMenu
c.    Test(1) Test(3) Test(2)
d.    Parameterized

375.                      The output of the code will be: 321123
a.       T
b.    True
c.    F
d.    method
376.                      The ________namespace contains all code required to interact 
with the including the console output
a.       Exists for the Life of the current page
b.    System
c.    keydown
d.    sn -k key1.snk csc /out:pri.dll /target:library file2.cs /a .keyfile:key.snk gautil 
-I pri.dll
377.                      Under which of the following environments does your programs 
execution code run
a.       XML Internet Protocols
b.    False
c.    CLR
d.    Properties
378.                      1.Place the assembly in the global assembly cache.2.Sign the 
assembly with the key pair.3.Create a key pair.
a.       3,2,1
b.    sn.exe
c.    Monitor
d.    0.0m.

379.                      What is the output of the following code? Test t2 = new 
Test(2);static Test t3 = new Test(3);public static void Main(){Q12 Q = new Q12();
a.       using System.Data.SqlClient;
b.    ContextMenu
c.    Test(1) Test(3) Test(2)
d.    the overriding method must return void
380.                      Interfaces can provide an implementation of the methods
a.       T
b.    True
c.    False
d.    F
381.                      An assembly cannot be used in more than one application at a 
time
a.       Source code
b.    describes how the elements in assembly are related to each other. describes the 
other assemblies on which the elements of the assembly are dependent.
c.    csc /out:<assembly name>/target:library <filename1 filename2..>
d.    False
382.                      What are states that a CheckBox can have
a.       abstract class
b.    Application
c.    Checked only
3 d.    A discovery service, a description service and a transport protocol.
383.                      Assume that you wish to build a delegate that can point to any 
method that returns a bool value and takes a string as input parameter. What is 
correct syntax to declare this delegate?
a.       return type,name of method ,Parameters
b.    RegularExpressionValidator
c.    public delegate boolMethodl(string si) ;
d.    public private protected
384.                      Override method does not include override keyword
a.       T
b.    True
c.    Background threads are viewed by the CLR as expendable paths of execution 
that can be ignored at any point
d.    F

385.                      The syntax for declaring array is
a.       delegate int Met42(inti);
b.    VBScript and JavaScript
c.    DataType[] arrayname;
d.    b.m2(); i=b.x; i=b.y;

386.                      A persistent cookie exists only within the HTTP header
a.       T
b.    F
c.    True
d.    False
387.                      By default can we delete a folder that contains subdirectories and 
files?
a.       NO
b.    Control
c.    >2
1 d.    T
388.                      At least one _______ constructor must be declared to suppress 
the automatic generation of a default constructor.
a.       Employee (){}
b.    Parameterized
c.    ExecuteScalar()
d.    class MyClass

389.                      A __ can be thought as a mould of a class
a.       abstract class
b.    Compile error
c.    Orchestration
d.    ConnectionString

390.                      int @Main;int[] Static= new int[3];@Main =100*Static[1]; 
Console.WriteLine(@Main);
a.       System.Drawing
b.    System.Array
c.    The code will display
d.    a nested namespaces

391.                      _____is any action directed at the application
a.       Event
b.    Page_Init
c.    catch statement are examined in order in which they appear .
d.    False

392.                      Control-Level Validation
a.       DomainUpDown,numericUpDown
b.    True
c.    t
d.    F

393.                      You cannot determine total elements of a List<T> variable
a.       F
b.    bool[] b=new bool[3]; bool[] b={true,true,true};
c.    False
d.    Two

394.                      What of the following are correct for creating a connection 
object to database named MyDB?
a.       public private protected
b.    An implicit reference conversion exists from any array type to System.Array
c.    XML Internet Protocols
d.    ("Data Source=myserver;
395.                      Microsoft Windows Installer is shipped alog with Windows 
2000, windows ME and Windows XP as an installtion and configuration sevice
a.       T
b.    F
c.    TRUE
d.    @

396.                      Data reader represents a read-only, forward-only cursor
a.       Yes
b.    true
c.    none
d.    False

397.                      Without explicitly reimplementing, a derived class can alter the 
interface mappings it inherits from its base
a.       F
b.    True
c.    T
d.    aspx

398.                      An array is a data structure that contains a number of variables, 
which are accessed through computed indices
a.       T
b.    @
c.    True
d.    F

399.                      The "using" alias directives can be used to pull out and bring into 
scope one component from a namespace.
a.       T
b.    Interface
c.    F
d.    set
400.                      Which of the following statement with respect to Data Grid 
control are True? (Choose all correct answers)
a.       to a single column based on the DataSource-optionally supports data editing.
b.    Values of each GUI widget on the page are stored in a hidden form field.
c.    Marks a member as accessible limited to the current assembly, but not outside 
the assembly
d.    DataSet is an in-memory cache of records that can be visited/modified in any 
direction.
401.              In below events of page, which one is raised first
a.       False
b.    Monitor
c.    Prelnit
d.    The Exception Type.
402.                      Which of the following statements are true with respect to try-
catch block?
a.       catch statement are examined in order in which they appear .
b.    public event MyDelegate MyEvent;
c.    IsCLass
d.    ~myClass() { }
403.                      try{if(i%3==0) throw new Exception("E0");try{if(i%3==1) 
throw new Exception("E1");Console.WriteLine(i);
a.       yes
b.    False
c.    5 8
d.    True
404.                      If there is a change in the major number or minor number of the 
version number it indicates that
a.       the assembly is incompatible with previous versions of that assembly.
b.    The base keyword is used to access members of a base class from within a 
derived class.
c.    The output would be only the text "Two".
d.    A discovery service, a description service and a transport protocol.
405.                      The overridden indexer must differ from the signatures of all 
other indexers declared in the same class
a.       DataTable
b.    Object
c.    True
d.    set
406.                      DataTabledt = new DataTableO; 
Console.WriteLine(dtColumns.Count);
a.       T
b.    True
c.    2
d.    0
407.                      When a class is used inside its namespace, the _______ of that 
class is used
a.       Child c1=new Parent();
b.    ContextMenu
c.    Unqualified name
d.    System.Array
408.                      Which method is fired lastly during the page load?
a.       UnLoad()
b.    String
c.    DataAdapter
d.    explicit

409.                      The first event to be triggered in an aspx page is
a.       Abstract event declarations are only permitted in abstract classes
b.    Yes, by using FormClosing event
c.    Page_Init
d.    The code will compile successfully and outputs will be: 1 2
410.                      Microsoft .Net was formerly known as __________
a.       Calendar Dynamic delivery Notification
b.    Test() { } public Test(int a, int b){} Test(int a, int b){}
c.    NGWS (Next Generation Windows Services)
d.    All the options mentioned

411.                      public class A:B,C,D{ }The above code represents ______
a.       multiple interface
b.    Redirect, Response
c.    Callable entity //MSDN
d.    Compilation error at line 3.

412.                      A objA=new A();Type t1 = 
objA.GetType();Console.WriteLine("The type of objA is : {0} ", t1);
a.       System
b.    Which of the following statements are true with respect to destructors?
c.    True
d.    The output of code will be: The type of objA is : Space1.A

413.                      System.Windows.Forms is an important____of the class libraries 
in .NET framework?
a.       Parameterized
b.    Properties
c.    Calendar
d.    Namespace

414.                      Server side code is excuted at the server side on IIS in ASP.NET 
framework, and client side code is executed on the browser.
a.       True
b.    False
c.    Yes
d.    Session

415.                      Which of the following commands can be used to create 
assembly named "myAssembly" from the files "file1.cs and file2.cs"?
a.       csc /out:myAssembly.dll /target:library file1.cs file2.cs
b.    Modeless dialog boxes,Modal dialog boxes
c.    ~myClass() { }
d.    A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited

416.                      DataSet is a logical representation of data that supplies 
information without taking into consideration the data source
a.       virtual
b.    False
c.    DataAdapter
d.    TRUE
417.                      Which sentence about enumerations is correct?
a.       Background threads are viewed by the CLR as expendable paths of 
execution that can be ignored at any point
b.    It can at times even be used to emit Intermediate Language code on the fly so 
that the generated code can be executed directly.
c.    Struct Union
d.    Enumerations are a handy programming construct that allow you to group 
name/value pairs
418.                      DataView represents one table from DataSet that exists in the 
memory
a.       Mysql
b.    DataTable
c.    False
d.    / /
419.                      Whe n is the garbage collector invoked?
a.       _void @void _var
b.    A discovery service, a description service and a transport protocol.
c.    Description. Name and Namespace.
d.    It s invoked when the stack does not have sufficient memory to allocate a 
requested object
420.                      a given application domain can have only thread executing with 
it at any given time
a.       F
b.    False
c.    Yes
d.    T
421.                      Which event of form handles pressing a key
a.       T
b.    keydown
c.    The code will compile successfully and outputs will be: 1 2
d.    Exists for the Life of the current page

422.                      which sentence about default context is correct
a.       public static void Main() { }
b.    default context is used to group together .NET objects that have no specific or 
unique contextual needs.
c.    Columns. Constraints
d.    to a single column based on the DataSource-optionally supports data editing.

423.                      in ADO.NET, the RecordSet is bound to the data source
a.       Using
b.    True
c.    T
d.    f
424.                      What does the "EnableViewState" property do?
a.       default context is used to group together .NET objects that have no specific 
or unique contextual needs.
b.    Static constructors cannot take parameters. Static constructors cannot be called 
explicitly.
c.    It allows the page to save the users input on a form across postbacks.
d.    Manages memory Compile once and run on any CPU & OS that supports the 
runtime.
425.                      The____ control is used to display text when the mouse points to 
a particular control
a.       Application
b.    True
c.    ToolTip
d.    False
426.                      How do we implement encapsulation
a.       A web server is a software product in charge of hosting your web 
applications
b.    Define a pair of accessor and mulator methods.Define a named property
c.    A discovery service, a description service and a transport protocol.
d.    if file "Text.txt" does not exist, this code will create a new file
427.                      Using directives are provided to facilitate the use of namespace
a.       True
b.    T
c.    F
d.    CLR
428.                      The ____control groups a set of controls within a non-labeled an 
scrollable frame
a.       False
b.    Panel
c.    Yes
d.    Control
429.                      Which of the following are attributes of the @Page directive that 
is used to implement Code-behind files
a.       Struct Union
b.    Nothing is wrong with the above code.
c.    It must be assignable to the Exception type.
d.    <%@ Page <attribute>="<value>" %>
4
430.                      What are the types of Dialog boxes?(choose all correct answers)
a.       Reflection
b.    Modeless dialog boxes,Modal dialog boxes
c.    the overriding method must return void
d.    namespace Namespacename{ ----- ----}
431.                      Performance of single-file model is the same as of multi-file 
model
a.       T
b.    F
c.    False
d.    True
432.                      return i*42;
a.       Callable entity //MSDN
b.    Modeless dialog boxes,Modal dialog boxes
c.    delegate int Met42(inti);
d.    The method can be overridden.

433.                      IntelliSence pops up a list of ___ that can be called on an onject
a.       System.Web.Service
b.    Class libraries
c.    Hints + Properties
d.    Interface
434.                      Human h = new Human(); h.Name = "Nguyen Van A"; 
Console.WriteLine(h.Name);
a.       Output of this code is "Nguyen Van A".
b.    The code will compile successfully and output of the code will False
c.    The output of code will be: The type of objA is : Space1.A
d.    The code will compile and run and the letter "A" will be written to the 
standard output.
435.                      for(i=0;j=0, i<10; ++i,j+=i){k+=ij+jj;}
a.       There should be comma between i=0 and j=0. There should be a semicolon 
between j=0 and I<10.
b.    It allows the page to save the users input on a form across postbacks.
c.    Yes, by using DrawPolygon method of Graphics object
d.    the abstract member cannot be private

436.                      _____it the normal ouput type for a WinForm project
a.       Windows Application
b.    DataType[] arrayname;
c.    IIS Admin and World Wide Web Publishing
d.    XML Internet Protocols
437.                      You must specify total elements of an ArrayList variable before 
declaring it
a.       T
b.    True
c.    F
d.    Value
438.                      You must specify total elements of a List<T> variable before 
declaring it
a.       set
b.    protected int this[int var1]
c.    exception 2 finally
d.    F
439.                      The method on which a delegate makes calls cannot have any 
arguments
a.       System.Drawing
b.    T
c.    True
d.    F
440.                      GDI + resides in _____ assembly
a.       It is the code targeting the .NET runtime.
b.    System.Drawing
c.    TCP /IP HTTP
d.    The code will compile successfully and display following lines on the standard 
output: Hello Hello Hello

441.                      Which of the following methods can act as a constructor for the 
class "Object" that is used to create an object?
a.       In lib.dll
b.    _void @void _var
c.    Object(){}
d.    Struct Union
442.                      The code compiles and "5, Sub" is printed on the standard 
output.
a.       TRUE
b.    Both Debug Mode and Release Mode
c.    Abstract
d.    T
443.                      The expression of a lock statement must denote a value of a 
reference-type
a.       False
b.    T
c.    F
d.    DrawRetangle
444.                      A set of services for creating and exposing the classes
a.       True
b.    T
c.    The Exception Type.
d.    f
445.                      A key pair is created using the _______utility.
a.       sn.exe
b.    It s invoked when the stack does not have sufficient memory to allocate a 
requested object
c.    T
d.    Command Window,SEW,AHW,Properties Window
446.                      ____are the collection of reusable classes or types
a.       A common runtime engine
b.    public virtual void Display(){}
c.    System.Web.Service
d.    Class libraries

447.                      When the compiler compiles the statement above, it internally 
generates a new class type.
a.       / /
b.    True
c.    ExecuteScalar()
d.    False
448.                      .NET Framework has two main components, are
a.       It allows the page to save the users input on a form across postbacks.
b.    An instance of a type that is Serializable can be easily transmitted over the 
network, or stored in a file on the file system
c.    There is nothing wrong with the statement.
d.    NET Framework class library , Common Language Runtime

449.                      ADO.NET supports multiple data providers, each of which is 
optimized to interact with a specific DBMS
a.       Yes
b.    T
c.    F
d.    True
450.                      The syntax to create an assembly file is:
a.       Values of each GUI widget on the page are stored in a hidden form field.
b.    default context is used to group together .NET objects that have no specific or 
unique contextual needs.
c.    csc /out:<assembly name>/target:library <filename1 filename2..>
d.    Enumerations are a handy programming construct that allow you to group 
name/value pairs
451.              can we add a control at runtime
a.       CLR
b.    Yes, by using DrawPolygon method of Graphics object
c.    yes
d.    True

452.                      Basic input and output operations are performed in C# using the 
methods of the ______ class in the _________namespace
a.       line 1, 47
b.    Console,System
c.    Namespaces
d.    Managed code Unmanaged code
2
453.                      The markup file is saved with the extension ____ and it stores 
the markup code used to design Web pages
a.       aspx
b.    True
c.    False
d.    using

454.                      Which of the following methods can act as a constructor for the 
class "Employee" that is used to create an object?
a.       IsMdiContainer
b.    SqlCommand Cmd = new SqlCommand("Select * From Student",con);
c.    Employee (){}
d.    SoapFormatter
455.                      System.Delegate is an interface type that all delegate types 
derives.
a.       True
b.    PopUpMenu
c.    False
d.    Panel
456.                      ________ is a unit of class deployment.
a.       Console
b.    Abstract
c.    System.Delegate
d.    An Assembly
457.                      For a multi-cast delegate, the invocation list is formed by 
concatenating the invocation lists of the two operands of the addition operation that 
formed the multi-cast delegate.
a.       False
b.    ContextMenu
c.    True
d.    Orchestration
458.                      Which of the following will execute without errors at compile 
time.
a.       A delegate can be thought of as a type-safe object-oriented function pointer It 
cannot be used for event handling. It can handle only one method at a time.
b.    public virtual void Display(){}
c.    class Object{static void Main(){}}
d.    It can be used to effectively find all the types in an assembly and/or 
dynamically invoke methods in an assembly.
459.                      You want to add a control to your form that allows you to set a 
particular option on or off. Which control would you choose?
a.       CheckBox
b.    SoapFormatter
c.    ODBC,OLEDB
d.    IsMdiChild
460.                      It is not permissible to derive a non-delegate class type from 
System.Delegate.
a.       False
b.    NO
c.    True
d.    T
461.                      int x=0,y=4,z=5;if(x<2)if(y<4){Console.WriteLine("One");
a.       T
b.    Two
c.    yes
d.    True
462.                      You are required to build an application that can serialize an 
object to a file. Then, this file can be transferre
a.       DrawRetangle
b.    Cmd.ExecuteNonQuery()
c.    Compile error
d.    SoapFormatter

463.                      Elements of a List<T> variable cannot have different type
a.       Prelnit
b.    T
c.    True
d.    False

464.                      Object graph isgraph of serialized object
a.       No
b.    T
c.    F
d.    CLR

465.                      Which of the following are value types?
a.       System.Object
b.    Struct Union
c.    public virtual void Display(){}
d.    A delegate can be thought of as a type-safe object-oriented function pointer It 
cannot be used for event handling. It can handle only one method at a time.

466.                      The view types supported in Winforms are
a.       Unstarted
b.    An Assembly
c.    System.Drawing
d.    Report view

467.                      Does destructor of a class impact to garbage collection
a.       Only 1.
b.    yes
c.    No
d.    Internal
468.                      Performance of single-file model is better than of multi-file 
model
a.       False
b.    No
c.    F
d.    True
469.                      The System.Array type is the abstract base type of all array types
a.       T
b.    F
c.    True
d.    Yes
470.                      A class has no other destructors than those that are actually 
declared in the class.
a.       Control
b.    It can be used to effectively find all the types in an assembly and/or 
dynamically invoke methods in an assembly.
c.    Which of the following statements are true with respect to destructors?
d.    Just-in-time (JIT) compiler
471.                      can multiple versions of the name .NET assembly be installed on 
a single machine
a.       An Assembly
b.    Yes
c.    The code generates a compile time error the code will compile successfully as 
the using-namespace-directive does not bring the name Inner itself into scope.
d.    Output of this code is "Nguyen Van A".
472.                      Which of the following properties does the Type class have?
a.       _Class @class Class
b.    Overloading of methods permits a struct, or interface to declare multiple 
methods with the same name, provided the signatures of the methods are all 
unique.
c.    IsCLass
d.    The constructor must have the same name as that of the name of its class.
473.                      Which of the following are valid identifiers?
a.       protected int this[int var1]
b.    abstract class
c.    _void @void _var
d.    class Object{static void Main(){}}
474.                      An interface is name collection of semantically related abstract 
member
a.       False
b.    F
c.    Yes
d.    True
475.                      When using Thread pool, we can focus on our business problem 
rather than the application's threading infrastructure
a.       False
b.    Yes
c.    ContextMenu
d.    True

476.                      When will the garbage collector run?
a.       VBScript and JavaScript
b.    When the application is low on memory
c.    WSDL is used to describe information about the web service
d.    delegate int Met42(inti);
477.                      The Syntax of a predefined Sort method is:
a.       System.Delegate
b.    VBScript and JavaScript
c.    System.Array.Sort(Arraytosort)
d.    System.Drawing

478.                      Microsoft .NET allows developers to develop applications using 
different languages, which run on the Unix platform
a.       Allocate
b.    Panel
c.    False
d.    True

479.                      The term packaging imliesbunding up all the files in the 
application into a single file called a Distribution Until
a.       T
b.    True
c.    DataRow array = datatable. Rows[i].ItemArray;
d.    F
480.                      To preserve screen space on the monitor, VS.NET provides us 
with
a.       T
b.    There is nothing wrong with the statement.
c.    ConnectionString
d.    Command Window,SEW,AHW,Properties Window
481.                      _______ is a member that enables an object or class to provide 
notifications.
a.       Yes
b.    The code will compile successfully and the output of above code will be: 
Test.F
c.    public event MyDelegate MyEvent;
d.    An Event
482.                      _______ enables the possibility for a function to be polymorphic 
when it is overridden in one or more inherited classes.
a.       False
b.    Object(){}
c.    virtual
d.    VB.NET

483.                      Delegates can be combined using the concatenation operators
a.       True
b.    False
c.    Abstract
d.    Hashtable
484.                      The ____feature of Windows Installer provider a standard 
method for distributing components and ensures that the installed component is of 
the correct version
a.       Merge Modules
b.    System.Array
c.    Block and Unblock
d.    Parameterized
485.                      Executable assemblies (*.exe) can be installed into the GAC
a.       F
b.    multiple interface
c.    T
d.    Session
486.                      OLEDB.NET Framework Data Provider
a.       F
b.    T
c.    True
d.    specifying different number of parameters specifying different types of 
parameters
487.                      Oracle.NET Framework Data Provider
a.       the abstract member cannot be private
b.    Commerce Server 2000 Exchange 2000 Server
c.    F
d.    False

488.                      Which class represents shortcut menus that can be displayed 
when the user clicks the right mouse button over a control or area of the form?
a.       Control
b.    Base class
c.    ContextMenu
d.    DataTable

489.                      Which namespace is VS.NET contains classes that help in 
constructing and sending emails?
a.       System.Web.Mail
b.    nothing
c.    ~myClass() { }
d.    TRUE

490.                      The ____ property of the LinkLabel control is used to specity the 
text, which has to be displayed as a link.
a.       LinkArea
b.    class A:B
c.    DataAdapter
d.    ContextMenu
491.                      class Test{ static void Main() { A.F(); B.F(); } }
a.       Init A A.F Init B B.F
b.    An instance of a type that is Serializable can be easily transmitted over the 
network, or stored in a file on the file system
c.    abstract class
d.    System.Delegate
1
492.                      Indexers should be used only in situations where the abstraction 
makes sense.
a.       Using
b.    False
c.    True
d.    class A:B
493.                      Which file is the manifest information located in?
a.       In lib.dll
b.    IsCLass
c.    DataTable
d.    System.Delegate
494.                      Select the two core technologies on which the .NET platform is 
based.
a.       Nothing is wrong with the above code.
b.    ToolTip
c.    XML Internet Protocols
d.    DataType[] arrayname;
495.                      ODBC.NET Framework Data Provider
a.       Description. Name and Namespace.
b.    T
c.    True
d.    f

496.                      ADO.NET objects are all strongly typed.
a.       T
b.    Compile error
c.    f
d.    yes

497.                      In ASP.NET application, and ________ variables can be 
accessed by all the pages in the application.
a.       line 1, 47
b.    Cmd.ExecuteNonQuery()
c.    Session, Application
d.    Abstract

498.                      The shared properties and methods are those, which are specific 
to a particular instance
a.       F
b.    True
c.    ToolTip
d.    T
499.                      The global assemblies are saved in the _________
a.       Commerce Server 2000 Exchange 2000 Server
b.    NGWS (Next Generation Windows Services)
c.    Use TextBox control with PasswordChar property is set a value
d.    in the <drive>:\WINNT\Assembly folder.

500.                      The .NET platform is built on the following features of the 
Windows 2000 server family.(Select all that apply)
a.       3,2,1
b.    keydown
c.    Reliability Security Manageability
d.    event subscribers

501.              ____property is used to get or set the shortcut menu 
associated with the control
a.       line 1, 47
b.    Stack area
c.    DataTable
d.    PopUpMenu
502.                      A class inherits all interface implementations provided by its 
base classes
a.       F
b.    Form
c.    True
d.    t
503.                      What is managed code
a.       Console,System
b.    Output of this code is "Nguyen Van A".
c.    Source code
d.    It is the code targeting the .NET runtime.

504.                      A custom control should you use to verify an authorized 
aplication user called as _____
a.       multiple interface
b.    Complex Control
c.    Orchestration
d.    Hashtable

505.                      for(i=0,,j=0; ++i,j+=i; i<10,++i;)k+=ij+jj;
a.       It uses more than one loop index.
b.    protected int this[int var1]
c.    Compiles and definitely legal at runtime
d.    Compile error

506.                      Platform independent
a.       f
b.    Define a pair of accessor and mulator methods.Define a named property
c.    False
d.    t
507.                      Override method can change accessibility of overridden base 
method
a.       F
b.    False
c.    Yes
d.    none
508.                      Provides Location Transparency(Distributed Architecture)
a.       F
b.    t
c.    The method can be overridden.
d.    NGWS (Next Generation Windows Services)

509.                      A namespace is a logical compile-time mechanism
a.       True
b.    False
c.    t
d.    String

510.                      public void SayHello(string yourName);
a.       system.dll
b.    default constructor
c.    Compile error
d.    Internal

511.                      Which of the statements on Serializable is true?
a.       A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited
b.    class Object{static void Main(){}}
c.    namespace Namespacename{ ----- ----}
d.    An instance of a type that is Serializable can be easily transmitted over the 
network, or stored in a file on the file system
4
512.                      The___event of the Form control is used to perform tasks such 
as allocating resources used by the form
a.       True
b.    OLEDB + XML
c.    Control
d.    Allocate

513.                      Once instantiated, delegate instances always refers to the same 
target object and method
a.       False
b.    Yes
c.    PopUpMenu
d.    True
514.                      Override method and overridden base method must have the 
same return type
a.       Hints + Properties
b.    F
c.    t
d.    True
515.                      class Parent { } class DerivedOne :Parent { } class 
DerivedTwo :Parent { }
a.       public Font(string fontname, float size);
b.    Legal at compile and runtime
c.    The output would be only the text "Two".
d.    Application
516.                      Which of the following must be true for the object thrown by a 
throw statement
a.       It must be assignable to the Exception type.
b.    protected int this[int var1]
c.    to a single column based on the DataSource-optionally supports data editing.
d.    Employee (){}
517.                      How can we create the object dynamically in C#?
a.       data can be stored using value types but not in the reference type. Variables 
of the value types directly contain their data, whereas variables of the reference 
types store references to objects.
b.    By using the System.Activator .CreateInstance() method to create an instance 
of object in the following manner. Type myObjectType 
=Type.GetTypeFromProgID("MyDll.MyOName") object myObject = 
System.Activator.CreatInstance(myObjectType)
c.    Background threads are viewed by the CLR as expendable paths of execution 
that can be ignored at any point in time
d.    public static void Main() { }
518.                      Which of the following statements are true with respect to Static 
constructors?
a.       the overriding method must return void
b.    private delegate int MyDelegate() ; public delegate void MyDelegate() ;
c.    class A:B
d.    A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited
519.                      C# code can be classified into types:
a.       Event
b.    TCP /IP HTTP
c.    Source code
d.    Managed code Unmanaged code

520.                      What of the followings is correct for creating a command object 
with the connection con
a.       the overriding method must return void
b.    AChild.MdiChild = TheParent
c.    SqlCommand Cmd = new SqlCommand("Select * From Student",con);
d.    WsiProfiles.BasicProfile1_1, EmitConformanceClaims = false)]
521.                      A class can inherit from many abstract classes.
a.       t
b.    multiple interface
c.    f
d.    True
522.                      The ______ method is used to assign some value to a data 
member in a class.
a.       set
b.    T
c.    False
d.    True
523.                      Where can you change 'Default Namespace" of Visual Studio?
a.       The Application tab of the project's Properties window
b.    Connection object is used to establish a session with the data source.
c.    We cannot have a try block without a catch or/and finally block
d.    A discovery service, a description service and a transport protocol.

524.                      What is the TrackBar control?
a.       A class has no other constructors than those that are actually declared in the 
class Constructors are not inherited
b.    Name of machine, name of the database on that machine, required security 
settings and other data provider-specific information
c.    When an instance is destructed, the destructors in an inheritance chain are 
called in order, from most derived to least derived.
d.    The TrackBar control allows user to select a value from a range (of values), 
using scroll bar-like input mechanism.

525.                      A DataSet object is one of the components of the data provider.
a.       False
b.    True
c.    asmx
d.    Yes

526.                      There is no Data validation mode in Winforms
a.       f
b.    No
c.    IL
d.    T

527.                      The WriteLine method is a part of the ______ class
a.       Background threads are viewed by the CLR as expendable paths of 
execution that can be ignored at any point in time
b.    Console
c.    True
d.    False
528.                      What are thee steps involved involved in calling one from 
another form
a.       Application
b.    Invoke Show
c.    ~myClass() { }
d.    IsMdiContainer
529.                      Which of the following is a legal constructor for the class Test.
a.       Just-in-time (JIT) compiler
b.    A delegate can be thought of as a type-safe object-oriented function pointer It 
cannot be used for event handling. It can handle only one method at a time.
c.    csc /out:< executable name >/target:exe<filename1 filename2..>
d.    Test() { } public Test(int a, int b){} Test(int a, int b){}

530.                      A property can be a static member, whereas an indexer is always 
an instance member.
a.       Intermediate Language
b.    using System.Data.SqlClient;
c.    True
d.    False
531.                      Which of the following methods can be used as a destructor for a 
class "myClass".
a.       DataSet is an in-memory cache of records that can be visited/modified in any 
direction.
b.    Struct Union
c.    Test() { } public Test(int a, int b){} Test(int a, int b){}
d.    ~myClass() { }
532.                      What of the folllowings is correct if we want to set the AChild 
form as a child form of the parent form named TheParent
a.       AChild.MdiChild = TheParent
b.    <%@ Page <attribute>="<value>" %>
c.    Static constructors cannot take parameters. Static constructors cannot be called 
explicitly.
d.    _void @void _var
533.                      We can use ... and ... methods to ensure that application-level 
variables are not updated by more than one user simultaneously.
a.       SoapFormatter
b.    DataAdapter
c.    Block and Unblock
d.    OLEDB + XML

534.                      ADO.NET provides a single set of types that communicate with 
multiple database management systems (DBMSs)
a.       T
b.    False
c.    F
d.    True
535.                      Assume you wish show data of Customers table in a 
DataGridView control. What is the best manner to do it?
a.       The output would be only the text "Two".
b.    Use the Disconnected Layer
c.    public private protected
d.    <%@ Page <attribute>="<value>" %>
536.                      Which of the following statements best illustrates the use of the 
Reflection API.
a.       Modeless dialog boxes,Modal dialog boxes
b.    class A:B
c.    It can be used to effectively find all the types in an assembly and/or 
dynamically invoke methods in an assembly.
d.    Obtains Class and Type Information from an Assembly Obtains Member 
Information from a Class Dynamically Invokes Methods from Classes in an 
Assembly
537.                      Which of the following is a valid method declaration?
a.       public virtual void Display(){}
b.    public delegate boolMethodl(string si) ;
c.    A discovery service, a description service and a transport protocol.
d.    ("Data Source=myserver;

538.                      Which class is used to insert, remove, evaluate and manipulate 
the values in a table of one DataSet
a.       Interface
b.    DataTable
c.    Namespaces
d.    SqIDataAdapter

539.                      How can you initialize an array of three Boolean values?
a.       Child c1=new Parent();
b.    Compiles and definitely legal at runtime
c.    bool[] b=new bool[3]; bool[] b={true,true,true};
d.    The Application tab of the project's Properties window
540.                      Access Modifiers for variables in C# can be the following 
(Select all that apply)
a.       public abstract class ClassA
b.    public private protected
c.    public virtual void Display(){}
d.    _void @void _var
541.                      The Reflection API allows creating types on the fly and invoking 
methods on them.
a.       Abstract
b.    aspx
c.    T
d.    True
542.                      For versioning the private assemblies, the CLR simply loads the 
newest assemblies found in the application directory.
a.       Interface
b.    True
c.    Yes
d.    False

543.                      System built on ADO.NET are intrinsically highly scaleable
a.       F
b.    Yes
c.    True
d.    t

544.                      how do we create a control to enter password
a.       Strong name is used to uniquely identify the publisher of a .NET library
b.    csc /out:myAssembly.dll /target:library file1.cs file2.cs
c.    Use TextBox control with PasswordChar property is set a value
d.    A delegate can be thought of as a type-safe object-oriented function pointer It 
cannot be used for event handling. It can handle only one method at a time.

545.                      Access.NET Framework Data Provider
a.       F
b.    True
c.    t
d.    set

546.                      What is state of a thread after creating a Thread object?
a.       the assembly is incompatible with previous versions of that assembly.
b.    False
c.    Visual Inheritance,Control Anchoring,Cotrol Docking,Transparent Forms
d.    Unstarted
547.                      ____ are the Print support controls provided by WinForms
a.       int j=0; for(int k=0;j+k!=10;j++,k++){Console.WriteLine("j= {0} 
k={1}",j,k);} |
b.    Redirect, Response
c.    namespace Namespacename{ ----- ----}
d.    PrintPreviewControl,PrintDocument

Você também pode gostar