Вы находитесь на странице: 1из 6

Which of the following are correct controls in ASP.NET Source View?

()
Which is used to add event code(on C# Code) for TextBox control in Source view ( ASP.NET)
Which is used for code-in-line model?
Which is code allows the modification of the head tag at runtime?
You execute a query that return a single value from a table. To execute this query from your ADO.NET code
You have created a Web Control Library project using Visual Studio .NET and compiled it into the assembly m
ASP makes a website more interactive and dynamic.
How do you comment a line in ASP using VBScript?
Which is better in managing your code when writing with ASP or any other scripting code?
My ASP page won't work is a common complaint for those new to ASP. Which of these can be the c
You want to add ASP capability to your company's website. What is the first thing you would check
What does XML stand for?
The DOM specification describes how strings are to be manipulated by the DOM by defining the da
Which of the following is an XML-based service IDL that defines the service interface and its implem
Which statement about XML is true?
What is the correct declaration syntax for the version of XML document?
To add a custom control to a Web form we have to register with.
Custom Controls are derived from which of the classes
How do you manage states in asp.net application
Which property of the session object is used to set the local identifier?
Select the caching type supported by ASP.Net
Where is the default Session data is stored in ASP.Net?
What is the maximum number of cookies that can be allowed to a web site?
Select the control which does not have any visible interface.
Which is not a correct name for an XML element?
Unlike most other markup languages, including HTML, XML allows you to do what?
When an .aspx page is requested from the web server, the out put will be rendered to browser in f
The Asp.net server control, which provides an alternative way of displaying text on web page, is
The first event to be triggered in an aspx page is.
How many type of Session?
How many global.asa files can an Application have?
Is there any limit for query string? if means what is the maximum size?.
which is dot net supported language?
Which line of code would instantiate the Browser Capabilities component?
Is xml plays any role in ado.net architecture?
which namespace is used for event log support?
Can you override virtual private method?
ASP code can be written to show the current time. Is it possible to show a live, ticking clock using ASP?
ASP code can be written in any text editor such as Notepad
It is imperative when writing ASP code is to begin every file with which statement?
ASP code is....
It is okay to have connections open to multiple Access databases?
A Local Variable
An instance variable
Private Button print = new button();
You develop a Windows-based application that contains a form named dotnet. You need to write code to init
What attribute must mark methods exposed by a Web Service?
What is the command to display characters to the HTML page?
Which is the default Scripting Language on the client side?
Is there any difference between Form Post and PostBack.
IsClientConnected is a property of
How to debug VbScript (clientside code) in ASP.NET Web application
How do you examine the contents of the variables and objects in scope on each line of code. However, you w
What is the proper header for a class that intends to use an interface.
A method_____an exception when that method detects that a problem has occured.
Exception objects are derived from the class.
A____block enclose the code that could throw an exception.
A Thread is:
Synchronization is:
In C# Thread.Sleep(time) measures time in:
When a thread returns from a WaitSleepJoin or Suspended state it returns to the:
In order to lock/unlock an object use the.
How is an empty element field defined?
Every XML document must be well formed
What is a correct way of referring to a stylesheet called "style.xsl"?
If two StringBuilder objects contain the same string then
The proper way to convert a string to all lowercase is:
In ASP, a request object retrieves info from a user by ________.
Which of the following are ASP standard objects?
Abandon is an ASP ________ object method.
In ASP, the Response Object is used to send output to the user from the server.
MapPath is an ASP ________ object method. a) session b) request c) server d) re
ASP is an acronym for what?
Class String and the Char structure found in the:
A String literal is a:
Concatenating with strings are done with:
Postback occurs in which of the following forms.
What namespace does the Web page belong in the .NET Framework class hierarchy?
Which method do you invoke on the Data Adapter control to load your generated dataset?
How do you register a user control?
How do you explicitly kill a user session?
What does DTD stand for?
Which two cause a compiler error?
Database connectivity with ADO has which main objects?
What is the sequential procedure in working with database?
ActiveX Data Objects (ADO) comes installed with ASP and allows your pages to easily connect to databases. Which two
What is a connection object?
A variable declared inside a method is called a________variable
Defining two methods with the same name but with different parameters is called.
Find any errors in the following BankAccount constructor: Public int BankAccount() { balance = 0; }
In the body of a method, C# uses the variable named_____to refer to the current object whose met
String mystring; Creates a(n)
What organization presented the first version of Starndardized Generalized Markup Language (SGML) in 1980?
What is a connection string?
What information can a connection string contain about the database you are trying to connect to?
An Event is
A delegate definesmethod
Is it possible to pass methods as arguments for other methods without modification.
All interfaces must contain Idrivable.
An instance method
<asp:textbox runat="server"
<asp:button
id="Msg"runat="server"
text="Hello,None R4R"
id="Send"
/> text="Send"
Both onclick="Send_Click" /
MsgSent.Text = Msg.Text;MsgSent.Text = Msg.Text Both None
< script runat="server">< script javascript="server"> Both None
< head runat="server"> < script javascript="server"> Both None
ExecuteNonQuery ExecuteScalar ExecuteReader ExecuteQuery
1 2 3 4
Yes No
<!-- Comment a line in ASP< Comment
--> a line in ASP >'Comment a line<% in ASP
Comment a line in ASP %>
Break it up into smaller easier-to-manage
Keep it nice and simple
files that
in can
one serve
file and
asuse
subroutines
subroutines
andand
function
function
calls.
calls.
Syntax error such as missing
Comments
parentheses,
in yourcomma
code areor
Makenot
quotation
sure
tagged
function
mark.
properly
All names
as comments.
have both opening a
That all pages are saved in
Check
.asp that
extensions.
the web serverMake has Microsoft
sure the web
FrontPage
Check
server
theextensions
is
coding
capable
and
installed.
ofbe
hosting
sure t
eXtensible Markup LanguageX-Markup Language Example MarkupeXtra Language
Modern Link
DOMString, UTF-8 DOMString, Unicode UNICODEString, String,
UnicodeUnicode
UDDI WSDL SOAP PATH
Elements may nest but not Quoting
overlapattributes is optionalElements may have multiple attributes with the
<?xml version="1.0" /> <?xml version="1.0"?> <xml version="1.0" />
TagPrefix Name space of the dll thatAssemblyname
is referenced All
System.Web.UI.Webcontrol System.Web.UI.Customcontrol System.Web.UI.Customcontrols.Webcontrol
System.Web.Ui.Usercontrol
Session Objects Application Objects Viewstate All of the above
SessionId LCID Item Key
Output Caching DataCaching a and b none of the above
InProcess StateServer Session Object All of the above
1 10 20 >30
Datalist DropdownList Repeater Datagrid
<first name> <age> <NAME>
Create new tags Exchange information overPut theyour
Web tags in any order, with closing tags opt
HTML XML WML JSP
< asp:label > < asp:listitem > < asp:button > <asp:TextBox>
Pge_Load() Page_Init() Page_Click Page_Start()
1 2 3 4
1 2 3 4
255 256 156 28
Vb.Net C# Perl All
objBrowser = var objBrowser = var
Server.CreateObject("BrowserTyp
Set objBrowser = Server.CreateObject("MSWC.BrowserType")
objBrowser = CreateObject("M
No
Server.CreateObject("MSW Yes SomeTime
C.BrowserType")
using System.Event using System.Diagnostics using System.webusing System.log
Yes No
Yes No
Yes No
<% Language=VBScript %> <% ASPLanguage = VBScript %> <% @ Language=VBScript
<%# Language %>= VBScript %>
a client-side executable code a server-side executable code a world-wide-web executable
All code
Yes No
Can be used anywhere inIsthedeclared
program within a method
Must accept a class
Represent a class object
is an object of a class represents an attribute of isanaobject
method of a aclass
and c
creates a button control initializes a button controlinstantiates button
a and
control
c
Load New Constructor Create
web method web service web control web user control
Response.write Response.end Response.close Response.writeline
VB Script Java Script Asp Script Net Script
Yes No SomeTime Can Not Determine
Server Request Session Response
Debug Debugger Stop Cannot Debug
Use the Locals window Use the QuickWatch window Use the Autos window
Use Immediate Window
class MyClass Iface class MyClass ; Iface class MyClass : Iface
class MyCalss {IFace}
Try Catch Throw a and b
Try Catch Exception Events
Try Catch Error Exception
an object that allows computer
an object
multitasking
that wraps itselfawith
deprecated
other threads
object that is no longer used
the delaying of a thread until
making
there
every
is sufficient
thread start
memory
make
and end
and
eachat
work
thread
theto
same
keep
dountil
wait the
time
itthe
up
same thing
required resources, that
seconds miliseconds nanoseconds All
Unstarted state Stopped state Started state (now Resume
considering
State a part of the run
Lock and Unlock methodsEnter and Exit methods Close and Open methods Close and Allow methods
<name></name <name /> <name/> All above
Yes No
<stylesheet type="text/xsl"<link
href="style.xsl"
type="text/xsl" />href="style.xsl"
<?xml-stylesheet
/> type="text/xsl" href="style.x
they represent the same themeoryarelocation
two different objects
if one changes, so None
will of
thetheother
above
String = string.ToLower(string);
ToLower(string); string.ToLower();string.ToLower(string);
a collection of values senta as
collection
cookies ofin data
a HTTP
sent
header
with
froma client
submitted
variables
form
a anddescribed
b from within an o
Server Session Response.close All
Server Session Response.close Request
Yes No
Server Session Response.close Request
Active Server Protocol ActiveX Server Pages Active Setup Pages Active Server Pages
System.Strings namespace System.Text namespace System.Chars namespace System namespace
only contains one charactercontains numbers rather than sequence
lettersof characters
containsinexactly
double its
quotation
variablema na
reserved words method calls operator overloading
operator overloading and meth
Winforms HTMLForms Webforms UserForms
System.web.UI.Page System.Windows.Page System.Web.page System.Web.Ui
Fill( ) ExecuteQuery( ) Read() Execute()
Add Tag prefix, Tag nameAdd Source, Tag prefix Add Src, Tagprefix, Tagname
Session.Close( ) Session.Discard( ) Session.AbandonSession.End
Data Type Defination Dynamic Type Definition Direct Type Definition
flot[]=new float(3) float[] f1=new float[3] float f1[]=new float[3]
float f1[3]={1.2F,2.5F,3.5F}
ADODB.Connection All ADODB.Recordset ADODB.Command
Open the database, interact with
Opentheadb,
connection,
close the interact
databasewithOpen
the db,
a command,
close the connection
interact
Open a with
Dataset,
the db,
interact
close with
the connect
the db,
atabases. Which two ADO objects are usedConnection
to open a connection
object, Recordset
and interact
object
Connect
with object,
the
c) database?
RecordingSet
Connect object,
objectRecordset
d) object
Specifies whether to use a DSNSpecifies
or DSN-less
whichconnection
type of databaseSpecifies
is being the
used
type ofFirst
driver
opens
to use,
the database
initial connection
format and
to af
Static Private Local Serial
Loading Overloading Multiplexing Duplexing
Name Formal parameters Return type No errors
Call this do that
Class Constructor Object a and b
Internet Engineering Task Force
IEEE
(IETF) American National Standards
OASIS Institute (ANSI)
Specifies whether to use a DSNSpecifies
or DSN-less
which
connection
type of database
Specifies
is being the
used
type ofOpens
ODBCthe
driver
initial
to use,
connection
database
to aforma
data
Types of Database Types of Drivers Use Location Of Database All
The result of a users action
result of a party code to force users
Codeaction
of user control
Wahsington representative Class that encapsulates methods
Means of passingSubstitue
arrays into
formethods
an inherited
Yes No
Yes No
Represents the behavior ofRepresents
an object the attribute of
Represents
an object another
a and
class
b
2
4
4
4
2
2
1
3
1
4
3
1
2
2
1
2
4
3
4
1
3
1
3
3
1
1
1
1
2
2
2
1
2
2
2
2
1
2
1
3
2
1
2
2
4
2
1
1
2
1
1
4
4
3
3
3
1
1
4
2
3
2
4
1
3
2
3
4
4
2
1
1
4
4
3
4
3
1
1
3
3
1
2
2
2
2
4
3
2
3
2
3
3
3
4
2
2
2
1
1

Вам также может понравиться