Sample Basic Interview - Questions
Sample Basic Interview - Questions
Abstract
Virtual
Override
All (Correct Answer)
Final
Sealed (Correct Answer)
Not Inheritable
Only Basic Information about the file system such as the amount of free space on disk.
No
7. For Xml Serialization using the .Net Framework which of the following is true of
object property
When a object is serialized only public read/write properties are serialized. (Correct
Answer)
When a object is serialized both public and private read/write properties are serialized.
8. A delegate field has what initial value
Zero
Null
Empty String.
Asp.Net Questions
1. Which one of the following is the correct code for inheriting from the ASP.NET
Page class?
Inherits System.ASP.NET.Page
Inherits Page
Inherits Page.Class
Inherits System.Web.Page
In cache
In URL strings
In a global variable
In a database
3. What is the purpose of code-behind?
To separate the layout HTML and the code into two different files
(Correct Answer)
RDBMS
What is RDBMS?
Relational Data Base Management Systems (RDBMS) are database management
systems that maintain data records and indices in tables. Relationships may be created
and maintained across and among the data and tables. In a relational database,
relationships between data items are expressed by means of tables. Interdependencies
among these tables are expressed by data values rather than by pointers. This allows a
high degree of data independence. An RDBMS has the capability to recombine the data
items from different files, providing powerful tools for data usage.
What is normalization?
Database normalization is a data design and organization process applied to data
structures based on rules that help build relational databases. In relational database
design, the process of organizing data to minimize redundancy. Normalization usually
involves dividing a database into two or more tables and defining relationships between
the tables. The objective is to isolate data so that additions, deletions, and modifications
of a field can be made in just one table and then propagated through the rest of the
database via the defined relationships.
What is a NOLOCK?
Using the NOLOCK query optimiser hint is generally considered good practice in order
to improve concurrency on a busy system. When the NOLOCK hint is included in a
SELECT statement, no locks are taken when data is read. The result is a Dirty Read,
which means that another process could be updating the data at the exact time you are
reading it. There are no guarantees that your query will retrieve the most recent data.
The advantage to performance is that your reading of data will not block updates from
taking place, and updates will not block your reading of data. SELECT statements take
Shared (Read) locks. This means that multiple SELECT statements are allowed
simultaneous access, but other processes are blocked from modifying the data. The
updates will queue until all the reads have completed, and reads requested after the
update will wait for the updates to complete. The result to your system is
delay(blocking).
What is difference between DELETE & TRUNCATE commands?
Delete command removes the rows from a table based on the condition that we provide
with a WHERE clause. Truncate will actually remove all the rows from a table and there
will be no data in the table after we run the truncate command.
ASP.Net
2. Which of the following state management will not work in a WebFarm environment
a) Session b) Cache c) ViewState
3. Which of the following type of control which can be dynamically added by end user to a web page.
a) Custom control b) User Control c) WebPart
5. The server control used to update the Cached page and respond
a) Label b) Substitution c) HiddenTextBox
6. The new data binding technique which facilitates no coding sometimes is possible through
a) DataSet b) DataBind c) DataSource
Answers:
1 a)
2 a)
3 c)
4 a)
5 b)
6 c)