0% found this document useful (0 votes)
56 views4 pages

System - Object System - Type System - Base System - Parent System - Root

This document contains multiple choice questions related to .NET framework and ASP.NET concepts. It covers topics like .NET type hierarchy, ASP.NET server controls, session state maintenance, ADO.NET features, and more. There are 42 questions in total testing knowledge of core .NET and web development concepts.

Uploaded by

kalpana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views4 pages

System - Object System - Type System - Base System - Parent System - Root

This document contains multiple choice questions related to .NET framework and ASP.NET concepts. It covers topics like .NET type hierarchy, ASP.NET server controls, session state maintenance, ADO.NET features, and more. There are 42 questions in total testing knowledge of core .NET and web development concepts.

Uploaded by

kalpana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

NAME:-

DOT NET FRAMEWORK


3. InProcess
0 1.Which attribute is necessary for 4. all of the above
1. HTML control to work as a HTML 10. Which of the following is not the
server control? way to maintain state?
a. runat=”server” 1. View state
b. runat=”web-server” 2. Cookies
c. ID=”server” 3. Hidden fields
d. ID=”web-server” 4. Request object
11. Which of the following is faster
02.Code that targets the Common and consume lesser memory?
Language Runtime is known as 1. SQLDataReader
1. Unmanaged 2. Data Set
2. Distributed 3. Both
3. Legacy 4. None
4. Managed Code 12. Where do we include the user lists
5. Native Code for Form authentication?
03.Which of the following is the root 1. Credential
of the .NET type hierarchy? 2. Authorization
A. System.Object 3. Identity
B. System.Type 4. authentication
C. System.Base 13. A class can be? K
D. System.Parent 1. Public
E. System.Root 2. Private
04. Which of the following control 3. Protected
provides a link for unauthenticated 4. All of the above
users to log on? 14. Which language is used to create
a. Login an ASP.NET code file?
b. LoginView 1. Visual Basic
c. LoginStatus 2. C#
d. LoginName 3. C++
05.Mode of storing ASP.NET session? 4. All of the above
a. InProc 15.It is best to use a web instead of a
b. StateServer windows application when the
c. SQL Server application?
d. All of above 1. has a thin front end (client)
06.Which object can help you 2. needs to be available to the
maintain data across users? public
1. Application object 3. must be platform-independent
2. Session object 4. All of the above
3. Response object 16. Which property is used to name a
4. Server object web control?
07. How do you get information from 1. ControlName
a form that is submitted using the ? 2. Designation
1. Request.QueryString 3. ID
2. Request.Form 4. Name
3. Response.write 17.HTTP messages are typically sent
4. Response.writeln between the Web server and Web
08. Default scripting language in browser using which Port number?
ASP? a. 70
1. EcmaScript b. 80
2. VBScript c. 400
3. PERL d. 410
4. JavaScript 18.When an ASP.NET file is placed
09. Default Session data is stored in on an IIS server and viewed through
ASP.Net? a browser, the resulting HTML page
1. StateServer contains?
2. Session Object 1. all ASP.NET code

KALPANA SONI, NIDHI SINGH


2. as much ASP.NET code as is in 2. ToString() output as per format
the ASP.NET file supplied
3. a mix of ASP.NET and HTML 3. Convert.ToString() only handle
code null values
4. all HTML code 4. Convert.ToString() only handle
19.What is the extension for a Visual null values
Basic web form interface file? 27.Which of the following is incorrect
1. .asp about System.Text.StringBuilder and
2. .aspx System.String?
3. .asp.vb 1. StringBuilder is more efficient
4. .aspx.vb when there is a large amount of
20. What is the extension for a Visual string manipulation
Basic web form code file? 2. Strings are immutable, so each
1. .asp time a string is changed, a new
2. .aspx instance in memory is created
3. .asp.vb 3. StringBuilder is mutable; when
4. .aspx.vb you modify an instance of the
21. Which set of symbols are used to StringBuilder class, you modify
signify the presence of ASP.NET the actual string, not a copy
code? 4. Strings are mutable in .Net
1. <@ 28. ___________ refers to formatting
2. <# data based on locale?
3. <% 1. Globalization
4. <& 2. Localization
22.Which of the following is not a .net 3. Both
compatible language? 4. None
a. C# 29. Which of the following can`t be
b. DB.NET used in our .NET application?
c. COBOL.NET 1. Net assemblies
d. JAVA 2. ActiveX control
23. Feature of a local variable? 3. COM type libraries
1. It can be used anywhere in the 4. All of the above can be used
program 30. Choose the form in which
2. It must accept a class Postback occurs?
3. It must be declared within a 1. HTMLForms
method 2. Webforms
4. It represent a class object 3. Winforms
24. Is there any errors in this -> 4. All of above
EmployeeMgmt constructor: Public 31. Web.config file is used?
int EmployeeMgmt { emp_id = 100; }? 1. Configures the time that the
1. Return type server-side codebehind module
2. No errors is called
3. Formal parameters 2. To store the global information
4. Name and variable definitions for the
25. What is the output of the code application
public class B : A { }? 3. To configure the web server
1. Errors 4. To configure the web browser
2. It defines a class that inherits the 32. The first event triggers in an aspx
public methods of A only page is?
3. It defines a class that inherits all 1. Page_Init()
the methods of A but the private 2. Page_Load()
members cannot be accessed 3. Page_click()
4. both b and c 4. all of the above
26. Difference between 33. What is true about Managed
Convert.ToString() and ToString()? Code(MC)?
1. Convert.ToString() handle null
values but ToString() don`t
1. Managed code(MC) is compiled 39.Which of the following is not true
by the JIT(Just In Time) about ADO.NET?
compilers. 1. ADO.NET enables to create
2. Managed code(MC) where distributed data sharing
resources are Garbage applications
Collected(GC) 2. ADO.NET uses XML to
3. Managed code(MC) runs on top transfer data across applications
of Windows OS. and data source
4. Managed code(MC) written to 3. ADO.NET doesn't support
target the services of the disconnected architecture
Common Language Runtime. 4. The classes of ADO.NET are
34. Choose the correct one. defined in the System.Data
int[] numbers = { 5, 4, 11, 3, 9, 8, 6, 7, namespace
2, 0 }; 40.Which of the following is the object
var nums = numbers.Skip(4); of .NET data provider?
foreach (var n in nums) 1. Connection
{ 2. Command
Console.Write(n+” “); 3. Data Reader
} 4. All of above
a. 9867 2 0 41. Which DLL translate XML to
b. 5411398 SQL in IIS?
c. 54113 1. SQLISAPI.dll
d. None of the above 2. SQLXML.dll
35.Which of the following components 3. LISXML.dll
used for .NET compliant 4. SQLIIS.dll
programming language? 42. How do I explicitly turn on
1. Microsoft Dot NET class connection pooling for an OLE DB
libraries data source?
2. Common Language Runtime a. By setting the OLE DB Services
(CLR) connection string keyword to 0
3. Common Language b. By setting the OLE DB Services
Specifications (CLS) connection string keyword to -4
4. Component Object Model c. By setting the OLE DB Services
(COM) connection string keyword to -1
5. Common Type System (CTS) d. By setting the OLE DB Services
36.Which method do you invoke on connection string keyword to -7
the SQLDataAdapter object to load 43. Which interface defines the basic
your dataset with data? extension methods for LINQ?
1.Update a. IComparable<T>
2.Fill b. IList
3.Gather c. IEnumerable
4.Load d. IQueryable<T>
37.Which attribute is used to hide a 6) Which one of the following has a
public .Net class from COM? parameter called as “preserveForm”?
1. DLLImport Attributes a. Server.transfer
2. ComVisible attributes b. Response.redirect
3. COM Interop 46. What are the three primary kinds of parameters?
4. All a. Input, Integer, String
38.What is the default b. Integer, String, DateTime
MaxReceivedMessageSize for WCF c. int, varchar, nvarchar
Service? d. Input, Output, InputOutput
1. 8192 bytes 47. Which of the following template
2. 65536 bytes supports by Repeater control?
3. 2147483647 byte (int max a. <ItemTemplate>
value) b. <AlternatingItemTemplate>
4. None of the above c. <SeperatorTemplate>
d. All of the above
48. To implement a specified .NET var nums = A.Union(B);
Framework interface which directive is used? foreach (var n in nums)
a. @Register {
b. @Control Console.Write(n+” “);
c. @Reference }
a. 0 24568 13578
d. @Implements
b. 0 2 4 5 6 8 1 3 7
49. Which of the following is true ? c. 0 1 2 3 4 5 6 7 8
1. AJAX is a platform-independent technology d. None of these
2. AJAX can work with web application 57. Choose the correct one.
3. AJAX can only work with ASP.NET Int[] numbers = { 9, 10, 0, 11 };
4. AJAX is a platform-dependent technologyvar nums =
a. 1, 2 from n in numbers
b. 1,2,3 select n + 1;
c. 1,3,4 foreach (var i in nums)
d. None of the above {
50. Which method is used to dynamically Console. Write (i+”,”);
register client script from code? }
a. 10, 11, 1, 12
a. Page.ClientScript.RegisterClientScriptBlock
b. 10, 11, 12, 13
b. RegisterScript c. 9, 10, 0, 11
c. Page.ClientScript d. None of these
d. None of the above 58.An indexer is
51. Which data provider gives the maximum a. A class
performance from a connection to SQL Server?b. A structure
a. The OLE DB data provider. c. An enumeration
b. The JDBC data provider. d. A special type of property
c. The SqlClient data provider. 59. Properties in .NET can be declare
d. The Oracle data provider as
52. A web page has lots of input data, and 1. Static, Protected internal, Virtual
you want the data input to be spread across2. Public, internal, Protected internal
3. Only public
multiple screens. What is the best control 4. None
to implement this solution on a single Web a.page?
1, 2
a. ImageMap b. 3
b. Panel c. 1, 2, 3
c. Wizard d. 4
d. None of the above. 60. class Myclass
53. In which file you should write the {
connection string, so you can access public int count = 0;
it in all the web page for same application? public Myclass()
a. In App_Data folder. {
b. In Web.config file. count++;
c. In MasterPage file. }
}
d. None of the above. class Program
54. In Asp.net Client-Side validation is {
possible with static void Main(string[] args)
a) HTML {
b) DHTML Myclass obj1 = new Myclass();
c) XHYML Console.WriteLine(obj1.count);
d) HTML5 Myclass obj2 = new Myclass();
55. Validation control displays error messagesConsole.WriteLine(obj2.count);
using which of the following methods? Myclass obj3 = new Myclass();
Console.WriteLine(obj3.count);
a) Inline }
b) Summary }
c) In place and summary a. 1, 1, 1
d) All of these above. b. 1, 2, 3
56. Choose the correct one. c. 0, 1, 2
int[] A = { 0, 2, 4, 5, 6, 8 }; d. All of the above
int[] B = { 1, 3, 5, 7, 8 };

You might also like