With SQL Server With Key
With SQL Server With Key
com
Question No. 1
om
D: All of the above are true
Question No. 2
.c
You create an ASP.NET application for an online insurance site PremiumInsurance. A page
ck
named PersonalDetails.aspx has the following Page directive:
<%@ Page Language="VB" CodeBehind="PersonalDetails.aspx.vb" AutoEventWireup="false"
inherits="InsApp.PersonalDet"%> PersonalDetails.aspx had a TextBox control named
MemberID in which the user can enter a Personal MemberID. The HTML code for this control
za
obtained from the XML Web service. You are implementing the TextChanged event handler.
Which two courses of action should you take? (Each correct answer presents part of the
solution. Choose two)
Q
Page 1 of 14
Quizack.com
Web service
Question No. 3
You create an ASP.NET application for ABC Corporation. The project manager requires a
standard appearance for all Web applications. Standards are expected to change periodically.
You need to enforce these standards and reduce maintenance time. What would you do?
om
B: Create a sample HTML page
Question No. 5
You are creating an ASP.NET application for AutoMart Internet Web site. A toolbar is required
that will be displayed at the top of each page in the Web site. The toolbar will contain only
static HTML code. The toolbar will be used in only AutoMart website. You plan to create the
toolbar as a reusable component for your application. You need to create the toolbar in a
minimum possible time. Which method will you adopt?
Page 2 of 14
Quizack.com
A: Add a new component class to your ASP.NET project. Use HTML server
controls to design the toolbar within the designer of the component class.
B: Create a new Web Control Library project. Create the toolbar within a Web
custom control.
C: Add a new Web user control to your ASP.NET project. Create the toolbar
within the Web user control.
D: Add a new Web Form to your ASP.NET project. Use HTML server controls to
design the toolbar within the Web Form and save the Web Form with an ascx
extension
om
Question No. 6
.c
You are creating an ASP.NET application that will run on your company's intranet. You want to
control the browser window and respond immediately to non-post-back events. Which should
you use?
ck
A: Server-side code
za
D: Client-side scripts
Q
Question No. 7
You are developing an application to take orders over the Internet. When the user posts back
the order form, you first check to see whether he is a registered customer of your company.
If not, you must transfer control to the Register html page. Which method should you use to
effect this transfer?
A: Response.Redirect()
B: Server.Transfer()
Page 3 of 14
Quizack.com
C: Server.Execute()
D: Page.ProcessRequest()
Question No. 8
Consider the following two statements relating to ASP.NET and choose the most appropriate
option?
Statement 1: Value types are allocated on a stack
om
Statement 2: Reference types are allocated on a managed CLR Heap
Question No. 9
How can you pop-up a window to display text that identifies the author of the book?
ui
A: For each image, set the AlternateText property to specify the text you want
to display, and set the ToolTip property to True.
Q
B: In the onmouseover event handler for each image, add code that calls the
RaiseBubbleEvent() method of the System.Web.UI.WebControls.Image class.
C: In the onmouseover event handler for each image, add code that calls the
ToString() method of the System.Web.UI.WebControls.Image class.
D: For each image, set the ToolTip property to specify the text you want to
display.
Question No. 10
Page 4 of 14
Quizack.com
In ASP.NET, the control's value set during the postback can be accessed in?
A: Page_Init
B: Page_Load
om
Question No. 11
Which of the following is not a service provided by Common Language Runtime (CLR)?
A: Garbage collection .c
ck
B: Multiple platform support
C: Code verification
za
Question No. 12
Page 5 of 14
Quizack.com
Question No. 13
What will happen if the Server configuration file and the Application configuration file have
different values for session state?
om
C: The Server configuration will override the Application configuration if
allowOverride is set to "false" in the settings in the Server configuration file
.c
ck
Question No. 14
Question No. 15
Which of following is correct if you want to import a C# class called myClass that is
implemented in the myClass.cs file into a .aspx page?
Page 6 of 14
Quizack.com
Question No. 16
Which DLL is responsible for processing the page requests running on the server?
om
A: Internet Server Application Programming Interface
C: Webserver interface
.c
ck
D: IIS Application
za
Question No. 17
A: System.Assembly
Q
B: System.Reflection
C: System.Collections
D: System.Object
Question No. 18
Which of the following are the valid methods of the SqlTransaction class?
Page 7 of 14
Quizack.com
A: Commit
B: Terminate
C: Save
D: Close
E: Rollback
om
Question No. 19
A: Init
.c
ck
B: Load
C: Error
za
D: Abort
ui
Question No. 20
A: @Page
B: @Implements
C: @Insert
D: @Register
E: @Reference
Page 8 of 14
Quizack.com
Question No. 21
Which of the following is the way to handle Unmanaged Code Exceptions in ASP.NET?
A: Server.GetLastError()
B: Exception ex
om
C: Exception ex
D: None of above
Question No. 22 .c
ck
How can you view the results of Trace.Write() statements?
Question No. 23
Consider the following two statements and choose the most appropriate option:
1. For configuration, ASP.NET uses IIS Metabase
2. For configuration, ASP.NET uses an XML based configuration system
A: 1 only
B: 2 only
Page 9 of 14
Quizack.com
C: Both 1 and 2
D: Neither 1 nor 2
Question No. 24
When you make some changes to the configuration file, do you need to stop and start IIS to
apply the new settings?
om
A: Yes
B: No
Question No. 25
.c
ck
Which of the following directives can be used to include libraries in an ASP.NET page?
A: Include
za
B: Import
ui
C: Insert
D: Both a and b
Q
Question No. 26
Page 10 of 14
Quizack.com
Question No. 27
A: Document-centric workflows
om
B: Human workflows
.c
ck
Question No. 28
The names of those departments where there are more than 100 employees have to be
za
displayed. Given two relations, employees and departments, what query should be used?
Employee
---------
Empno
Employeename
ui
Salary
Deptno
Department
Q
---------
Deptno
Departname
Page 11 of 14
Quizack.com
Question No. 29
A: Between..and..
om
B: Like
C: In
D: Is null
E: Having
.c
ck
F: Not in
Question No. 30
ui
FROM Student
WHERE name LIKE '_a%';
Which names will be displayed?
Page 12 of 14
Quizack.com
om
.c
ck
za
ui
Q
Page 13 of 14
Quizack.com
Answers:
Q:1 D Q:2 A Q:3 D Q:4 B
Q:29 G Q:30 B
om
.c
ck
za
ui
Q
Page 14 of 14