0% found this document useful (0 votes)
127 views18 pages

C#

C# can be used to write server side scripting in ASP.NET. The minimum requirement to run ASP.NET is the Common Language Runtime. When an .aspx page is requested, the output will be rendered to the browser in HTML format. The best way to delimit ASP.NET code from HTML is using <script> tags.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views18 pages

C#

C# can be used to write server side scripting in ASP.NET. The minimum requirement to run ASP.NET is the Common Language Runtime. When an .aspx page is requested, the output will be rendered to the browser in HTML format. The best way to delimit ASP.NET code from HTML is using <script> tags.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 18

^^ .

Which of the following languages can be used to write server side scripting in
ASP.NET?
A) C#
B) C
C) Visual Basic
D) Both A and C | D

^^ .The Following are the minimum requirement to run Asp.net


A) Java Virtual Machine
B) Common Language Runtime
C) Windows explorer | B

^^ When a .aspx page is requested from the web server, the out put will be rendered
to browser in following format.
A) HTML
B) XML
C) WML | A

^^ What executable unit gets created when we build an ASP.Net application?


Skill/Topic: Beginner
A) . EXE
B) . DLL
C) . COM | B

^^ The best way to delimit ASP.Net code from HTML code in your pages is by using
--------------- tags.Skill/Topic: Beginner
A) < Body >
B) < Head >
C) < Script > | C

^^ The code will be processed on web server when the runat attribute of the <
Script > tag has the following value.Skill/Topic: Beginner
A) Desktop
B) Client
C) Server | C

^^ The Asp.net server control, which provides an alternative way of displaying text
on web page, isSkill/Topic: Beginner
A) < asp:label >
B) < asp:listitem >
C) < asp:button > | A

^^ asp:dropdownlist> tag replaces which of the HTML tagsSkill/Topic: Beginner


A) < Option >
B) < Select >
C) < List > | B

The first event to be triggered in an aspx page isSkill/Topic: Beginner


A) Page_Load()
B) Page_Init()
C) Page_click() | B

^^ Postback occurs in which of the following formsSkill/Topic: Beginner


A) Winforms
B) HTMLForms
C) Webforms | C

^^ what namespace does the Web page belong in the .NET Framework class hierarchy?
Skill/Topic: Beginner
A) System.web.UI.Page
B) System.Windows.Page
C) System.Web.page | A

^^ Which method do you invoke on the Data Adapter control to load your generated
datasetSkill/Topic: Beginner
A) Fill ( )
B) ExecuteQuery ( )
C) Read ( ) | A

^^ How many configuration files can an ASP.NET projects have?Skill/Topic: Beginner


A) One
B) More Than One
C) None | A

^^ How do you register a user control?Skill/Topic: Beginner


A) Add Tag prefix, Tag name
B) Add Source, Tag prefix
C) Add Src, Tagprefix, Tagname | C

@@ How do you post the current page to a different aspx page ?Skill/Topic: Beginner
A) FORM ACTION="actiopage.aspx" RUNAT="server" method="post"
B) FORM ACTION="actiopage.aspx" method="post"
C) FORM id="Form1" method="post" runat="server" | A

@@ Which of these namespaces used for FileAccessSkill/Topic: Beginner


A) System.IO
B) System.IO.IsolatedStorage
C) System.DirectoryServices
D) All of these | A

^^ Which of the following is true ?Skill/Topic: Beginner


A) User controls are displayed correctly in the Visual Studio .NET Designer
B) Custom controls are displayed correctly in VS.Net Designer
C) User and Custom controls are displayed correctly in the Visual Studio .NET
Designer. | B

^^ Can a dll run as stand alone application ?Skill/Topic: Beginner


A) No
B) Yes
C) Sometimes we can make it by introducing some code | A

^^ To add a custom control to a Web form we have to register with Skill/Topic:


Beginner
A) TagPrefix
B) Name space of the dll that is referenced
C) Assemblyname
D) All of the above | D

^^ Custom Controls are derived from which of the classesSkill/Topic: Beginner


A) System.Web.UI.Webcontrol
B) System.Web.UI.Customcontrol
C) System.Web.UI.Customcontrols.Webcontrol | C

^^ A web application running on multiple servers is called as Skill/Topic: Beginner


A) WebForm
B) Webfarm
C) Website | B
^^ What is the transport protocol used to call a webserviceSkill/Topic: Beginner
A) HTTP
B) SOAP
C) TCP
D) SMTP | B

^^ How ASP.Net Different from ASPSkill/Topic: Beginner


A) Scripting is separated from the HTML, Code is interpreted seperately
B) Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be
executed on server
C) Code is separated from the HTML and interpreted Code is interpreted separately
| B

^^ What's the difference between Response.Write() andResponse.Output.Write()?


Skill/Topic: Beginner
A) Response.Output.Write() allows you to flush output
B) Response.Output.Write() allows you to buffer output
C) Response.Output.Write() allows you to write formatted output
D) Response.Output.Write() allows you to stream output | C

^^ Why is Global.asax is used Skill/Topic: Beginner


A) Implement application and session level events
B) Declare Global variables
C) No use | A

^^ There can be more than 1 machine.config file in a systemSkill/Topic: Beginner


A) True
B) False | A

^^ What is the extension of a web user control file ?Skill/Topic: Beginner


A) .Asmx
B) . Ascx
C) .Aspx | B

^^ What is the default session out time Skill/Topic: Beginner


A) 20 Sec
B) 20 Min
C) 1 hr | B

^^ Which of the following is true ?Skill/Topic: Beginner


A) IsPostBack is a method of System.UI.Web.Page class
B) IsPostBack is a method of System.Web.UI.Page class
C) IsPostBack is a readonly property of System.Web.UI.Page class |
C

^^ It is possible to set Maximum length for a text box through codeSkill/Topic:


Intermediate
A) True
B) False | A

^^ The number of forms that can be added to a aspx page isSkill/Topic: Intermediate
A) 2
B) 3
C) 1
D) More than 3 | C

^^ How do you manage states in asp.net applicationSkill/Topic: Intermediate


A) Session Objects
B) application Objects
C) Viewstate
D) Cookies
E) All of the above | E

@@ what is the difference between user control and custom controlSkill/Topic:


Intermediate
A) Both can use as drag and drop tool
B) Both are same
C) Both can use different application
D) One Custom Control can be use in different project but not the same with User
control | D

^^ The interface used by ASP.Net to create Unique Id's?Skill/Topic: Intermediate


A) AppDomainsetup
B) System.UI.Naming.Container
C) IAsyncResult
D) customFormatter | B

^^ Which property of the session object is used to set the local identifier ?
Skill/Topic: Intermediate
A) SessionId
B) LCID
C) Item
D) Key | B

^^ Select the caching type supported by ASP.NetSkill/Topic: Intermediate


A) Output Caching
B) DataCaching
C) Both a & b
D) None of the above | C

^^ Where is the default Session data is stored in ASP.NetSkill/Topic: Intermediate


A) InProcess
B) StateServer
C) SQL Server
D) All of the above | A

^^ How do you disable client side validation ?Skill/Topic: Intermediate


A) Set the language property to C#
B) Set the Runat property to server
C) Set the ClientTarget property to Downlevel
D) Set the inherits property to codeb | D

^^ Select the validation control used for "PatternMatching"Skill/Topic:


Intermediate
A) FieldValidator
B) RegularExpressionValidator
C) RangeValidator
D) PatternValidator | B

^^ How do you trace the application_End event on runtime?Skill/Topic: Intermediate


A) By Debugging
B) By Tracing
C) Can not be done | C

@@ How do you turn off the Session state for a webform ?Skill/Topic: Intermediate
A) In Web.config file set the tag to True
B) In Web.config file set the tag to false
C) Set the Session state to false in webform properties window |
B

^^ Who can access Session state variables Skill/Topic: Intermediate


A) All Users of an application
B) A Single session
C) All users within a single tunnel | B

^^ Select the type Processing model that asp.net simulate Skill/Topic: Intermediate
A) Event-driven
B) Static
C) Linear
D) TopDown | A

^^ Does the "EnableViewState" allows the page to save the users input on a
formSkill/Topic: Intermediate
A) Yes
B) No | A

^^ Web Controls Supports CSS .Skill/Topic: Intermediate


A) True
B) False | A

^^ Session Object classes are defined in which of the following namespace?


Skill/Topic: Intermediate
A) System.Web.UI
B) System.Web.SessionState
C) System.Web | B

^^ Which DLL translate XML to SQL in IIS Skill/Topic: Intermediate


A) SQLISAPI.dll
B) SQLXML.dll
C) LISXML.dll
D) SQLIIS.dll | A

^^ What is the default authentication mode for IIS Skill/Topic: Intermediate


A) Windows
B) Anonymous
C) Basic Authentication
D) None | B

^^ Which of the following is not a valid state management tool? Skill/Topic:


Intermediate
A) Application State
B) Hidden Form Field
C) Querystate
D) Cookies | C

^^ What is the maximum number of cookies that can be allowed to a web site.
Skill/Topic: Intermediate
A) 1
B) 10
C) 20
D) 30
E) More than 30 | C

^^ Select the control which does not have any visible interface. Skill/Topic:
Intermediate
A) Datalist
B) DropdownList
C) Repeater
D) Datagrid | C

^^ How do you explicitly kill a user's session ?Skill/Topic: Intermediate


A) Session.Close ( )
B) Session.Discard ( )
C) Session.Abandon
D) Session.End | C

^^ Why do we use XMLSerializer classSkill/Topic: Intermediate


A) Remoting
B) WebServices
C) Xml documentary Files | B

^^ What does Response.End will do? Skill/Topic: Intermediate


A) It will stop the server process
B) It will stop the client process
C) None of the above | A

^^ Which control supports paging. Skill/Topic: Intermediate


A) Repeater
B) Datagrid
C) Both
D) None | B

^^ Where do you store the information about the user locale. Skill/Topic:
Intermediate
A) System.user
B) System.web
C) System.Drawing
D) System.Web.UI.Page.Culture | D

^^ What is the purpose of code behind ? Skill/Topic: Intermediate


A) To separate different sections of a page in to different files
B) To merge HTML layout and code in to One file
C) To separate HTML Layout and code to different file
D) To ignore HTML usage | C

^^ What is a satallite assembly ?Skill/Topic: Intermediate


A) Any DLL file used by an EXE file.
B) An Assembly containing localized resources for another assembly
C) None of the above | B

^^ Which of the following is not a member of Response Object? Skill/Topic: Advanced


A) Clear
B) Write
C) Execute
D) Flush | C

@@ The object used by SQL connection to make Security Demands Skill/Topic: Advanced
A) SQLLCientAttribute
B) SQLPermission
C) SQLPermissionClient
D) SQLClientPermission | B

^^ Which of the following is not a member of ADODBCommand objectSkill/Topic:


Advanced
A) ExecuteReader
B) ExecuteScalar
C) ExecuteStream
D) Open
E) CommandText | D

^^ Which method do you invoke on the DataAdapter control to load your generated
dataset with data?Skill/Topic: Advanced
A) Load
B) Fill
C) GetAll
D) None | B

^^ How to open more than one datareader at a timeSkill/Topic: Advanced


A) Use different datareader variable
B) Use different datareader and connection variable
C) Can not be done | B

^^ What is the advantage of Disconnected mode of ADO.Net in ASP.Net Skill/Topic:


Advanced
A) Automatically dump data at client PC
B) Not necessary to connect with server
C) user data can update and retrieve in dataset and when connection connected,
update values with server
D) All of the above | C

^^ Which objects is used to create foreign key between tables? Skill/Topic:


Advanced
A) DataRelation
B) DataRelationship
C) DataConstraint
D) Datakey | A

^^ Which one of the following namespaces contains the definition for IdbConnection
Skill/Topic: Advanced
A) System.Data.Interfaces
B) System.Data.Common
C) System.Data
D) System.Data.Connection | C

^^ Select the Interface which provides Fast, connected forward-only access to data
Skill/Topic: Advanced
A) IdataRecord
B) Idatabase
C) IdataReader
D) Irecorder | C

^^ How do we Delete, Update, Select data in a Dataset Skill/Topic: Advanced


A) Using SQLDataAdapter
B) Using SQLDataReader
C) Using SQLCommand
D) None | A

^^ Which of the following is not a member of ConnectionObject Skill/Topic: Advanced


A) BeginTransaction
B) EndTransaction
C) Execute
D) Open | C

^^ Is it Possible to Serialize HashTable with XMLSerializer Skill/Topic: Advanced


A) Yes
B) No | A

^^ What is the Full Form of WSDL Skill/Topic: Advanced


A) Web System Description Language
B) Web Services Detail Language
C) Web Service Description Language
D) None | C

^^ What is the difference between Server.Transfer & Response.RedirectSkill/Topic:


Advanced
A) No Difference
B) Server.Transfer needs a roundtrip, Response.Redirect does not
C) Response.Redirect needs roundtrip, Server.Transfer does not
D) Server.Transfer can transfer user between 2 applicaions | C

^^ Which Language can Support SOAP Skill/Topic: Advanced


A) VB
B) JAVA
C) COBOL
D) All of the above | D

^^ What is the size of the session ID .Skill/Topic: Advanced


A) 32 bit long string
B) 32 bit long double
C) 32 bit long character
D) 32 bit long integer | A

^^ Which of the following extension does a webservice file will have. Skill/Topic:
Advanced
A) .Asmx
B) .Aspx
C) .Ascx
D) .Resx | A

^^ What is a strong name? Skill/Topic: Advanced


A) Public Key
B) Private Key
C) Combination Of both Public,Private key and digital signature |
C

^^ What is the purpose of Reflection? Skill/Topic: Advanced


A) For Reading metadata at runtime
B) For knowing version of assembly
C) For finding path of an assembly | A

^^ Is it possible edit data in a repeater control . Skill/Topic: Advanced


A) No
B) Yes | A

^^ Why is Global.asax is used for ? Skill/Topic: Advanced


A) To implement application & Session level events
B) To store configuration information
C) To store styling information
D) None of the above | A

^^ What is a diffgram ? Skill/Topic: Advanced


A) The one which renders the dataset object contents to XML
B) Finds the difference in two objects
C) Finds the difference in two files
D) None of the above | A

^^ What is the lifespan for items stored in viewstate Skill/Topic: Advanced


A) Exists for the Life of the current page
B) 20 mins
C) 2 mins
D) 2 sec | A

^^. What data types do a Rangevalidator supports Skill/Topic: Advanced


A) Integer
B) String
C) Date
D) All of the above | D

^^ Select the output of the statement < form method=post action="test.aspx" >
Skill/Topic: Advanced
A) Transfers all the form data to test.aspx with HTTP headers
B) Transfers all the form data to test.aspx with out HTTP headers
C) Calls post method on test.aspx
D) None of the above | A

^^ What is the out put of the following codebyte a=200;byte b=100;byte


c=a+b;Response.Write ( C ); Skill/Topic: Advanced
A) 300
B) Compile Time error
C) Run time Error
D) Just prints "C" | B

^^ What is the out put of Following codeString a="Hello"; String b="World"String c=


a+bResponse.Write ( "C "); Skill/Topic: Advanced
A) Hello world
B) C
C) A+b
D) None of the above | B

^^ Whats the significance of Request.MapPath( )Skill/Topic: Advanced


A) Maps the specified virtual path to a physical path
B) Maps the specified absolute path to virtual path
C) None | A

^^ Which of the following are not a member of Server Object. Skill/Topic: Advanced
A) Execute
B) Transfer
C) Open
D) HTMLDecode | C

^^ What is the significance of Server .MapPath Skill/Topic: Advanced


A) Returns the physical file path that corresponds to virtual specified path
B) Returns the Virtual Path of the web folder
C) Maps the specified virtual path to Physical path
D) None | A

^^ What is the Server.MachineName does Skill/Topic: Advanced


A) Gets the Server's Machine Name
B) Gets the Referred Web site name on the server
C) Gets the Client Machine Name
D) None | A

^^ What is the significance of Response.ClearHeaders( ) Skill/Topic: Advanced


A) Clears all Headers from the buffer stream
B) Clears all the section value from rendered HTML File
C) Clears the content of the Rendered page
D) None of the above | A

^^ What is the significance of Response.AddHeaders( ) Skill/Topic: Advanced


A) Adds HTTP Headers to output stream
B) Adds Tag to rendered Page
C) Add Headers to the web site | A

^^ What is the difference between HTTP handlers & HTTP modules Skill/Topic:
Advanced
A) Httphandler is an class and Httpmodule is an assembly
B) Httphandler is an event handler and httpmodule is module to do some task
C) Both of the above
D) None of the above | A

^^ Which namespace allows us to formauthentication ? Skill/Topic: Advanced


A) System.Web.Ui.Forms.Security
B) System.Web.Security
C) System.Web.Configuration
D) System.Web.Services | B

^^ Which method displays the custom control Skill/Topic: Advanced


A) The Prerender
B) Render
C) Page_Load
D) Display | B

^^ When is the user controls code is executed Skill/Topic: Advanced


A) After the webform loads
B) After the page_init event of webform
C) Before Page_init event of web form | A

@@ Client Sertificate is a collection of ? Skill/Topic: Advanced


A) Server
B) Response
C) Collection
D) Request | D

@@ What section of the config.Web file is used for storing a list of authorized
users? Skill/Topic: Advanced
A) 1
B) 3
C) 4
D) None | C

@@ What version of the javascript should be used for client side script ?
Skill/Topic: Advanced
A) 1.0
B) 1.1
C) 2.0
D) 3 | C

@@ How do you add ASP.Net 3rd party component Skill/Topic: Advanced


A) By add/Remove items in the project menu
B) Add reference of dll file and place the code where ever required
C) Cannot add 3rd party component to asp.net | B
What is the base keyword ? | is used to access members of a base class from within
a derived class.
Which of the following can be defined as generic?|Structures, Delegates, Methods.
Classes. Interfaces.
What kind of memory where an object is allocated?|Stack area.
Where can you change 'Default Namespace" of Visual Studio?|The Application tab of
the project's Properties window.
The library provides shelter from the complexities of raw API calls and offers a
consistent object model used by all .NET-aware languages.|Base class.
We CANNOT use methods that have some arguments for a delegate?|No.
Which sentence about enumerations is correct?|Enumerations are a handy programming
construct that allow you to group name/value pairs.
C# language offers the following features (choose a correct answer)|No pointers
required: Automatic memory management through garbage collection!.
When will the garbage collector run?|When the application is low on memory.
Which class is at the top of.NET class hierarchy?|System.Object.
What does the keyword "virtual" declare for a method?|The method can be overridden.
Which keyword is used when you wish to explicitly reference the fields and members
of the current object?|this.
Which sentence is correct?|An abstract class cannot be instantiated.
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?|public delegate boolMethodl(string si).
What can be signature of an application's entry point?|public static void Main()
{ }.
An engine that shared by all .NET-aware languages is called|A common runtime
engine.
Which of the following statements is true?|An object is the instantiation of a
class.
What is default accessibility for the structures in C# ?|Internal
When is the garbage collector invoked?|It's invoked when the stack does not have
sufficient memory to allocate a requested object.
Which type of the System. Threading namespace can be used to resolve the issue of
concurrency?|Monitor.
The DataTable structure is defined by its _ and _. |Columns. Constraints.
Which delegate of System.Threading namespace points to any methods that take no
argument and returns int?|System.Threading namespace does not contain this
delegate.
Suppose we have multi-file assembly as follows: lib.dll. parti.netmodule.|In
lib.dll.
To get values of the columns of the i-th row in a DataTable object named datatable.
what of the followings is correct?|Object Q array = datatable.Rows[i].ltemArray.
Can we connect to SQL Server Database without using SqIConnection?|Yes. we can
connect to SQL Server Database using OleDbConnection.
Assume you wish show data of Customers table in a DataGridView control. What is the
most suitable object to set to the DataSource property?|DataRow.
What is return value of ExecuteNonQueryO method of a Command object?|An integer is
number of affected rows.
Which sentence about Connection object is correct?|Connection object is used to
establish a session with the data source.
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?| SqIDataAdapter.
Which of the statements on Serializable is true?|An instance of a type that is
Serializable can be easily transmitted over the network, or stored in a file on the
file system.
DataSet object is one of the components of the data provider.|FALSE.
which sentence about background threads is correct?|Background threads are viewed
by the CLR as expendable paths of execution that can be ignored at any point in
time.
An assembly consists of Assembly Metadata. Type Metadata. _ and|IL Code and
Resources.
Does NET Framework support to monitor the modification of a given external file?|
Yes.
What is state of a thread after creating a Thread object?|Unstarted.
What is the TrackBar control?|allows user to select a value from a range (of
values), using scroll bar-like input mechanism.
You are required to build an application that can serialize an object to a file.
Then, this file can be transferred to another program written in Java and running
in Linux operating system to be de serialized
Which of the following classes is the best choice for the above task?|
SoapFormatter.
Which member of System.Threading namespace is an enumeration?|ThreadPriority.
Assume you wish show data of Customers table in a DataGridView control. What is the
best manner to do it?|Use the Disconnected Layer.
By default can we delete a folder that contains subdirectories and files?|No.
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?|CheckBox.
The...method of the ...object is used to redirect the user to another page.|
Redirect, Response.
Which sentence about WSDL is correct?|WSDL is used to describe information about
the web service.
What is NOT a client-site technology?|VB.NET.
How many Page directives an ASP.NET page can include?|1.
In ASP.NET application, and ________ variables can be accessed by all the pages in
the application.|Session, Application.
Assume you wish to check validation of E-mail data. Which validation control is the
most suitable to do it?|RegularExpressionValidator.
What is advantage of code-behind page model?|It is possible to have designers
working on the markup while programmers author the C# code.
Which variables can use by all users and in all pages?|Application.
Item stored in ViewState exist for the life of the current page?|True.
What is the lifespan for items stored in ViewState?|Exists for the Life of the
current page.
he first event to be triggered in an aspx page is ...|Page_Init.
Which of following extension does a Web service file will have?|asmx.
What does the "EnableViewState" property do?|It allows the page to save the users
input on a form across postbacks.
How many web.config files an ASP.NET application can have?| Only 1.
What are required services in an ASP.NET Web server?|IIS Admin and World Wide Web
Publishing.
Which method is fired lastly during the page load?|UnLoad().
We can use ... and ... methods to ensure that application-level variables are not
updated by more than one user simultaneously.|Block and Unblock.
Server side code is excuted at the server side on IIS in ASP.NET framework, and
client side code is executed on the browser.|Yes.
NET Framework has two main components, are| NET Framework &Common Language Runtime.
Presents a logical view of our work using an Explorer-like view of the classes,
methods and properties.| Class View.
What is managed code?|It is the code targeting the .NET runtime.
Which thing is not included in a .NET PE file?|Source code.
_are the collection of reusable classes or types|Class libraries.
What is the name of entity that compiles CIL code into meaningful CPU
instructions?|Just-in-time (JIT) compiler.
What is the output format of the file the C# compiler produces?|IL.
How many times the .NET programs are compiled?| 2.
A namespace is a logical compile-time mechanism.| True.
Under which of the following environments does your programs execution code run?|
CLR.
A C# class can be inherited from multi other classes?|No.
A delegate must define name of the method on which it makes calls.| True.
Which is internal access modifier?|Marks a member as accessible limited to the
current assembly, but not outside the assembly.
Which sentence is correct?|Stack is a first-in, first-out queue.
Which parameter modifier marks a parameter as passed by value?|None.
Does destructor of a class impact to garbage collection?|Yes.
Which sentence is correct?|An interface is name collection of semantically related
abstract member.
How do we implement encapsulation?|accessor and mulator methods. & a named
property.
Override method and overridden base method must have the same return type.|True.
Elements of a List<T> variable cannot have different type.|True.
what is boxing?| an object to a value type.
Value types can be null.|True.
Shared assemblies are libraries intended to be consumed by numerous application on
a single machine.|True.
Which sentence about background threads is correct?|Background threads are viewed
by the CLR as expendable paths of execution that .
Which sentence about strong name is correct?|is used to uniquely identify the
publisher of a .NET library.
can multiple versions of the name .NET assembly be installed on a single machine?|
Yes.
a class library that is written by C# can be used in any other .NET programming
language|True.
What is described in "Win32 process " term? (choose 2)|the primary thread &
allocations used by a running application.
a given application domain can have only thread executing with it at any given
time|false.
a single process may contain multiple application domains|true.
Why do we use Thread pool?|threading infrastructure. & started and stopped.
which sentence about default context is correct?|is used to group together .NET
objects that have no specific or unique contextual needs.
can we draw a hexagonal with GDI+?|Yes, by using DrawPolygon method of Graphics
object.
StreamWritersw = new StreamWriter("Text.txt")|this code will create a new file.
Object graph is a set of related object of serialized object|True.
can we cancel closing a form?|Yes, by using FormClosing event.
What is the first event is raised when the form has been allocated on the managed
heap?|Load.
hich event of form handles pressing a key?|KeyDown.
how do we create a control to enter password?|Use TextBox control with PasswordChar
property is set a value.
What are states that a CheckBox can have?|Checked only.
Panel controls are used to group related controls in a logical unit.|True.
What is spin control?(choose 2)|DomainUpDown & NumericUpDown.
What is SoapFormatter?| is a serialization formatter that represents graph as a
SOAP message.
an we add a control at runtime?|Yes.
ADO.NET provides a single set of types that communicate with multiple database
management systems (DBMSs).|Incorrect.
ADO.NET supports multiple data providers, each of which is optimized to interact
with a specific DBMS.|Correct.
A command builder is only able to autogenerate SQL commands for use by a data
adapter, if|for in your SQL statement.
Does Microsoft supply data provider for Oracle database?|Yes.
Does DataTable class support a method that allows obtaining the data reader-like
navigation scheme?|Yes.
What is a third-party data provider?|MySQL.
Which class is used to insert, remove, evaluate and manipulate the values in a
table of one DataSet?|DataTable.
Data reader represents a read-only, forward-only cursor.|True.
Which information is included in a connection string?|data provider-specific
information.
Which sentence about Connection object is correct?|Connection object is used to
establish a session with the data source.
Which is return value of ExecuteNonQuery() method of a Command object?|An integer
is number of affected rows.
A persistent cookie is not destroyed after the user logs off your site.|Correct.
In below events of page, which one is raised first?|Prelnit.
What is method of form to transmit the form data back to web server for processing?
(Choose 2)|Get & Post.
What are properties of [WebService] attribute?|Description. Name and Namespace.
What are client-side script languages?|VBScript and JavaScript.
A web server is a software product in charge of hosting your web applications.|
True.
ASP.NET supports single-file model only.|True.
Can the errors be displayed in a pop-up message box?|Yes.
The runtime will automatically assign a new session ID for user when he/she logs on
to an ASP.NET web application.|True.
Which sentence about ViewState is correct?|Values of each GUI widget on the page
are stored in a hidden form field.
What are building blocks of an XML Web service?|A discovery service, a description
service and a transport protocol.
For testing and development does website have to be hosted under IIS?|Yes.
_is any action directed at the application.|Event.
_property is used to get or set the object that contains data about the control.|
Value.
Which of the following statement with respect to Data Grid control are True?
(Choose all correct answers)|on the DataSource & supports data editing.
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|True.
What of the followings is correct for creating a command object with the connection
con?|("Select * From Student", con);.
The method can be used to draw a rectangle or a square depending on the coordinates
passed as its argument.|DrawRetangle.
_it the normal ouput type for a WinForm project|Windows Application.
he ____control groups a set of controls within a non-labeled an scrollable frame|
Panel.
The ____feature of Windows Installer provider a standard method for distributing
components and ensures that the installed component is of the correct version.|
Merge Modules.
To create an instance of the Font class using existing Font and FontStyle, the
constructor is:|public Font(string fontname, float size).
Which control is used to display a short, customized help message for individual
controls on a form?|ToolTip.
For using SQL.NET Data Provider what using statement of the following is correct?|
using System.Data.SqlClient;
Which namespace is VS.NET contains classes that help in constructing and sending
emails?|System.Web.Mail.
To perform a change to a table using the Command object named Cmd, what statement
of the following correct?|Cmd.ExecuteUpdate().
When a Data Form is created using the Data Form Wizard, which of the following
classes are used by default?(Choose all correct answers)|DataReader & Connection &
OleDbCommand.
_property of a connection object is used to get or set the string used to open a
database|ConnectionString.
_property is used to get or set the edges of the control are anchored to the edges
of its container.|Anchor.
_property is used to get or set the shortcut menu associated with the control.|
PopUpMenu.
System.Windows.Forms is an important____of the class libraries in .NET framework?|
Namespace.
To get values of the columns of the i-th row in a DataTable object named datatable,
what of the follwings is correct? |DataRow array = datatable.Rows[i].ItemArray;
What mode is VS.NET allow you to step through each line of code and trace the
execution of your application?|Debug Mode.
Brushes can be created using one of the following classe(Choose all correct
answers)|TextureBrush&SolidBrush&LinearGradientBrush.
What mode is VS.NET allow you create a portable exe(EXE) file?|Both Debug Mode and
Release Mode.
The instance properties and methods are those, which are common to all the
instances of the class.|Correct.
The shared properties and methods are those, which are specific to a particular
instance.|Correct.
ADO.NET provides features for accessing traditional databases like SQL Server as
well as databases, which are accessed using ____.(choose all correct answers)|ODBC.
Name the .NET data providers which are available is VS.NET?(Choose all correct
answers)|ODBC.NET&OLEDB.NET&Oracle.NET.
The____ event of the PrintDocument class is triggered immediately before each
PrintPage event ocurs.|QueryPageSettings.
Which namespace does the class ListView belong to?|System.Windows.Forms.
The____property of a DataGrid control, allow filling various kinds of data in a
DataGrid including data from a DataSet, DataViewManager, Arrays, Lists etc.|
DataSource.
The Pen class belongs to the ____namespace and cannot be inherited|System.Drawing.
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?|ContextMenu.The value of
the HelpButton property is ignored if the maximize of minimize boxes are shown.|
False.
List the key elements of COM (choose all correct answers)|exposing the
classes&programming protocol.
_ are the Print support controls provided by WinForms.(Choose all correct answers)|
PrintPreviewControl&PrintDocument.
What of the followings are data validation mode in WinForms?(Choose all correct
answers)|Form-Level&Control-Level&Field-Level Validation.
hat of the folllowings is correct if we want to set the Achild form as a child form
of the parent form named TheParent?|AChild.MdiParent = TheParent;
The ____control groups a set of controls within a non-labeled and scrollable frame|
Panel.
Arrange the sequence in which the key events are triggered|KeyDown, KeyUp,
KeyPress.
The types of list box supported in Winforms are(Choose all correct answers)|
ListBox.
What are thee steps involved involved in calling one from another form?(choose all
answers)|Invoke Show.
Which of the following objects can we use to read data from a Micorosoft SQL Server
2000 database? (choose all correct answers)|
SQLDataAdapter&OleDbDataAdapter&ADORecordSet.
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?|DataAdapter.
The ____property of the Form control is used to determine whether there are any MDI
child forms open in your MDI application.|IsMdiChild.
_are the collection of reusable classes or types|Class libraries.
_control combines the features of the TextBox and the ListBox controls|ComboBox.
A custom control should you use to verify an authorized aplication user called as
_|Complex Control.
Which of the following statements with respect to ADO.Net are True? (Choose all
correct answers)|highly scaleable&disconnected data access.
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?|ListView.
The____ control is used to display text when the mouse points to a particular
control|ToolTip.
which class is the base class for all the controls that can be used in Windows
Forms?|Control.
GDI + resides in _____ assembly.|System.Drawing.
The ____ property of the LinkLabel control is used to specity the text, which has
to be displayed as a link.|LinkArea.
What of the following are correct for creating a connection object to database
named MyDB? (Choose all correct answers)|_Integrated Sercurity=SSPI; Initial
Catalog=MyDB");
The view types supported in Winforms are (choose all correct answers)|Report view.
If maximize and minimize buttons are displayed then the HelpButton property is
ignored.|False.
The ____ event of the Form control is used to perform tasks such as allocating
resources used by the form|Load.
To get values of the colums of the i-th row in a DataTable object named datatable,
what of the followings is correct?|DataRow array = datatable. Rows[i].ItemArray;.
.NET is said to accelerate the next generation of the Internet|True.
The unique feature of .NET is the ___________support that it provides|Multi-
language.
.NET is a whole new platform centered around the Intranet|False.
A program in .NET is first compiled by the language specific compiler into __|
Intermediate Language.
What is the role of the CLR (Select all that apply)|Manages memory.
Microsoft .NET is primarily made up of the following three components.|Visual
Studio .NET.
Microsoft .NET allows developers to develop applications using different languages,
which run on the Unix platform|True.
The .NET platform is built on Internet Protocols such as _______ and _| TCP /IP &
HTTP.
The .NET platform is built on the following features of the Windows 2000 server
family.(Select all that apply)|Reliability&Security&Manageability.
Select the core .NET Enterprise Servers|Commerce Server 2000&Exchange 2000 Server.
Core Microsoft .NET building block services|Calendar&Notification&Dynamicdelivery.
__ service allows users to handle their own rules for handling|Personalization.
Select the service, which allows users to maintain their schedules thus
facilitating timely and manageable interactions with other users.|Calendar.
_ allows developers and business analysts work together to define and modify
business processes shared between applications.|Orchestration.
Microsoft .Net was formerly known as _|NGWS (Next Generation Windows Services).
What is the correct syntax for comment entries in C#|/*� */.
The public keyword can be ignored for the Main function in C#.|True.
A C# program can have only one using directive|False.
The WriteLine method is a part of the ______ class|Console.
C# is considered as a modern replacement for the language/s like (Choose all that
apply)|C & C++.
C# is a ____________language.|purely Object-Oriented.
Manual memory management needs to be done in C#|False.
Access Modifiers for variables in C# can be the following (Select all that apply)|
public&private&protected.
In C#, an underscore is allowed as an initial character of a variable.|True.
The prefix ______ enables the use of keywords as identifiers, which is useful when
interfacing with other programming languages.|@.
In C# array elements are automatically assigned default values|True.
What statement is used to completely abort the execution of a loop?|break.
Console.ReadLine() returns the input as a __|String.
In C# datatypes are divided into two fundamental categories.|Value types and
reference types.
__________in simple terms is nothing but conversion of a value type into a
reference type.|Boxing.
__________is all about converting a reference type into a value type.|Unboxing.
Unboxing requires an ___________cast.|explicit.
The _______class is the ultimate base class for all data types.|Object.
System namespace is used in the C# programs to:|interact with the system
environment.
Which of the following is a correct statement to declare the class �MyClass�?|class
MyClass.
Which of the following is a valid variable in C#?|Class& _Class& @class.
Basic input and output operations are performed in C# using the methods of the
______ class in the _________namespace.|Console,System.
C# provides an Unified Type System, which means that all data types are derived
from __________ class.|Object.
Which of the following are value types?|Struct&Union.
Which of the following are valid identifiers?| _void.
How can you initialize an array of three Boolean values?|bool[] b=new bool[3]
&bool[] b={true,true,true};.
A constructor is a special type of a _______ in a class.|method.
The constructor without parameters is called _________.|default constructor.
Static constructor has _______ parameter/s.| No.
The object invokes the default constructor when no parameters were passed to it.|
True.
If a class has a static constructor then it is automatically called when the class
is loaded. Static constructors cannot be invoked explicitly.|True.
_______ enables the possibility for a function to be polymorphic when it is
overridden in one or more inherited classes.|virtual.
Which of the following sentences are true about Constructors?|The constructor must
have the same name as that of the name of its class.
Which of the following methods can act as a constructor for the class �Object� that
is used to create an object?|Object(){}.
Which of the following methods can act as a constructor for the class �Employee�
that is used to create an object?|Employee (){}&Employee(int empno){}.
Methods can be overloaded in C# by:|number of parameters&types of parameters.
Which of the following is a legal constructor for the class Test.|Test() { }
&Test(int a, int b){}&public Test(int a, int b){}.
A static constructor is a member that implements the actions required to initialize
a class.|True.
A static constructor cannot have accessibility modifiers.|True.
Which of the following statements are true with respect to Static constructors.|
take parameters.&called explicitly.
Which of the following methods can be used as a destructor for a class �myClass�.|
~myClass() { }.
The method that overrides a method in the base class must be prefixed with the ____
keyword.|New.
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|the
overriding method must return void.
At least one _______ constructor must be declared to suppress the automatic
generation of a default constructor|Parameterized.
Which of the following statements are true with respect to Static constructors?|not
inherited & declared in the class.
Which of the following statements are true with respect to destructors?|to least
derived. & declared in the class.
Statement I: The sealed modifiers are not permitted in an enum
declaration.Statement II: Delegate types are implicitly sealed|Both the statements
are true.
Which of the following statements are true with respect to overloading?|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.
Which of the following is a valid method declaration?|public virtual void Display()
{}.
The ______ declares a reference type that has abstract member only.|Interface.
Abstract class cannot be directly instantiated but it can be used to create object
references.|True.
An interface is a pure abstract class.|True.
The ______ method is used to assign some value to a data member in a class.|set.
public class A:B,C,D{ }The above code represents ______|multiple interface.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy