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

TNPSC Exammms Bank 2

.NET Framework is a software framework for creating and running applications across various operating systems. Key concepts include the Common Language Specification (CLS), the use of ReDim for dynamic arrays, and the role of Trace in debugging. ADO.NET provides objects like DataSet and DataReader for data manipulation, while web services enable method access across applications.

Uploaded by

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

TNPSC Exammms Bank 2

.NET Framework is a software framework for creating and running applications across various operating systems. Key concepts include the Common Language Specification (CLS), the use of ReDim for dynamic arrays, and the role of Trace in debugging. ADO.NET provides objects like DataSet and DataReader for data manipulation, while web services enable method access across applications.

Uploaded by

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

1.What is .Net Framework?

.NET Framework is used to create and run software applications. . NET apps can run on
many operating systems, using different implementations of . NET. . NET Framework is used
for running .

2.comment on cls

Common Language Specification


The Common Language Specification (CLS) is a fundamental set of language features
supported by the Common Language Runtime (CLR) of the . NET Framework. CLS is a part
of the specifications of the . NET Framework.

3.What is the use of ReDim keyword?

The ReDim statement is used to size or resize a dynamic array that has already been
formally declared by using a Private, Public, or Dim statement with empty parentheses
(without dimension subscripts). Use the ReDim statement repeatedly to change the number
of elements and dimensions in an array.

4.What is Option Explicit?

When Option Explicit On or Option Explicit appears in a file, you must explicitly declare all
variables by using the Dim or ReDim statements. If you try to use an undeclared variable
name, an error occurs at compile time. The Option Explicit Off statement allows implicit
declaration of variables.

5.What is the role of TRACE in VB.net?

Trace produces messages about program conditions even after application is compiled and
released without interrupting application execution.

It's Working

1. Steps to add Trace in the code.


2. Create an instance of TextWriterTraceListener and add it to the Listeners collection.
3. Configure the TextWriterTraceListener to write output to a text file.
4. Create Trace switches that control when Trace statements are executed.
5. Compile and deploy the application with Trace defined.
6. Enable the Trace switches in the application .config file.

6.Comment on Destructor in vb.net?

In visual basic, Destructor is a special method of a class and it is useful in class to destroy
the object or instances of classes. The destructor in visual basic will invoke automatically
whenever the class instances become unreachable.

7.What are the fundamental objects in ADO.Net?


DataSet and DataReader are two fundamental objects in ADO.NET.

Dataset:
1. Dataset is a in-memory representation of database
2. DataSet is a disconnected orient architecture that means there is no need of active
connections during work with datasets and it is a collection of DataTables and relations
between tables
3. Dataset is readable and writable
4. Its possible to write and read XML data

Datareader:
1. Datareader is connected mode, and read and forward-only Data
2. DataReader will fetch the data very fast when compared with Dataset
3. Datareader is readonly

7.What is the use of SqlCommandBuilder object?

The SqlCommandBuilder object acts as a listener for RowUpdating events, whenever the
DataAdapter property is set. You can create a SqlCommandBuilder object to automatically
generate SQL statements for single table updates if you set the SelectCommand property of
the SqlDataAdapte

8.Comment on Global.asax file

Global. asax is an optional file which is used to handling higher level application events such
as Application_Start, Application_End, Session_Start, Session_End etc. It is also popularly
known as ASP.NET Application File. This file resides in the root directory of an ASP.

9.Define Web Services?

A web service is a web application which is basically a class consisting of methods that
could be used by other applications. It also follows a code-behind architecture such as the
ASP.NET web pages, although it does not have a user interface.

10.How many languages are supported by dot netframework presently?

The Main Programming Languages of . Net. Dot Net is a huge software framework, which
contains 32 programming languages. Some of the prominent languages are C#, F#, and
Visual Basic.

11.Comment on CTS?

NET Framework, the Common Type System (CTS) is a standard that specifies how type
definitions and specific values of types are represented in computer memory. It is intended
to allow programs written in different programming languages to easily share information.

12.Comment on MOD operator.


The result of a Mod operation retains the sign of the dividend, number1, and so it may be
positive or negative. The result is always in the range (-number2, number2), exclusive.

13.What is Array?

An array stores a fixed-size sequential collection of elements of the same type. An array is
used to store a collection of data, but it is often more useful to think of an array as a
collection of variables of the same type. All arrays consist of contiguous memory locations.

14.How do you create a form in VB.Net?

● Create a project.
● Create a Visual Basic application project. ...
● Add a button to the form. After you select your Visual Basic project template and
name your file, Visual Studio opens a form for you. ...
● Add a label and code. ...
● Run the application. …

15.What is WithEvent in VB.Net?

The WithEvents keyword informs VB that the object being referenced exposes events for
which you intend to provide event handlers.

16.Define ADO.Net Object.

The goal of ADO.NET is to provide a bridge between your objects in ASP.NET and your
back-end database. ADO.NET provides an object-oriented view into the database,
encapsulating many of the database properties and relationships within ADO.NET objects

17.How to add Crystal report in a form?

● Create ASP.NET Web Forms Project.


● Create the Dataset.
● Add Crystal Report to the Project.
● Bind Dataset to the Crystal Report and Add Fields.
● Add a Web Form to the project.
● Add CrystalReportViewer control & Bind it to the Report.
● Run and Test the Report.

18.Define ASP.Net Server control?State the uses of Web Services?

Controls are small building blocks of the graphical user interface, which include text boxes,
buttons, check boxes, list boxes, labels, and numerous other tools. Using these tools, the
users can enter data, make selections and indicate their preferences.
Controls are also used for structural jobs, like validation, data access, security, creating
master pages, and data manipulation.

You might also like