MVC
MVC
MVC
Answer: TempData is again a key, value pair as ViewData. This is derived from
“TempDataDictionary” class. TempData is used when the data is to be used in two
consecutive requests, this could be between the actions or between the controllers.
This requires typecasting in view. (Latest 50 MVC Interview Questions)
2. Why to use Html.Partial in MVC?
Answer: This method is used to render the specified partial view as an HTML
string. This method does not depend on any action methods. We can use this like
below
Controllers: These are the classes which will perform the action invoked by the
user. These classes contains methods known as “Actions” which responds to the
user action accordingly.
Views: These are simple pages which uses the model class data to populate the
HTML controls and renders it to the client browser.
Authorization filter
Action filter
Result filter
Exception filter
For example to apply authorize filter we apply the attribute as:
1. [Authorize]
2. public ActionResult Index()
The Model represents the application core (for instance a list of database records).
The View displays the data (the database records).
The Controller handles the input (to the database records).
The MVC model also provides full control over HTML, CSS, and JavaScript.
mvc
Often model objects retrieve data (and store data) from a database.
The View is the part of the application that handles the display of the data.
Most often the views are created from the model data.
The Controller is the part of the application that handles user interaction.
Typically controllers read data from a view, control user input, and send input data
to the model.
The MVC separation helps you manage complex applications, because you can
focus on one aspect a time. For example, you can focus on the view without
depending on the business logic. It also makes it easier to test an application.
The MVC separation also simplifies group development. Different developers can
work on the view, the controller logic, and the business logic in parallel.
Any
Client
Downstream
Server
None
ServerAndClient
You typically do not have to write code to add routes in an MVC application.
Visual Studio project templates for MVC include preconfigured URL routes. These
are defined in the Mvc Application class, which is defined in the Global.asax file.
AreaRegistration.RegisterAllAreas();
So in the above code snippet “TestAction” is the original action name and in
“ActionName” attribute, name – “TestActionNew” is given. So the caller of this
action method will use the name “TestActionNew” to call this action. (Latest 50
MVC Interview Questions)
<authenticationmode=”Forms”>
<formsloginUrl=”Login.aspx” protection=”All” timeout=”30″
name=”.ASPXAUTH” path=”/” requireSSL=”false” slidingExpiration=”true”
defaultUrl=”default.aspx” cookieless=”UseDeviceProfile”
enableCrossAppRedirects=”false” />
1. What is a Network?_text]
Answer: A network is a set of devices connected to each other using a physical
transmission medium. (Top 50 Technical Interview Questions And Answers Pdf)
Example: A Computer Network is a group of computers connected with each other
to communicate and share information and resources like hardware, data, and
software across each other.
System.Globalization
System.Resources
System.Text
proxy server
Proxy Server also maintains the list of blacklisted websites so that the internal user
is automatically prevented from getting easily infected by the viruses, worms etc.
(Top 50 Technical Interview Questions And Answers Pdf)
System Stack: Each process has one or more LIFO stacks associated with it. Used
to store parameters and calling addresses for procedure and system calls.
Once most important difference is when you are sending the form with GET
method. You can see the output which you are sending in the address bar. Whereas
if you send the form with POST” method then user can not see that information.
DHCP
23. What sort of criteria are you using to decide the organization you will
work for?_text]Answer: Most importantly, I am looking for a company that
values quality, ethics, and teamwork. I would like
to work for a company that hires overachievers.24. How would a professor who
knows you well describe you? One who does not know you
well?_text]
Answer: A professor who knows me well would likely describe my personal
qualities: sweet, down-to-earth,
smart, hard-working, and conscientious.
As specific examples of those who did not know me well, my soils professor and
soils teaching
assistant each considered me smart and respectful, and both thought that I must
have enjoyed the
25. What’s The Difference Between Htmlentities() And
Htmlspecialchars()?_text]Answer :
htmlspecialchars only takes care of <, >, single quote ‘, double quote ” and
ampersand.
htmlentities translates all occurrences of character sequences that have different
meaning in HTML.26. What is ASP.NET?_text]
Answer: ASP.NET was developed in direct response to the problems that
developers had with classic ASP. Since ASP is in such wide use, however,
Microsoft ensured that ASP scripts execute without modification on a machine
with the .NET Framework (the ASP engine, ASP.DLL, is not modified when
installing the .NET Framework). Thus, IIS can house both ASP and ASP.NET
scripts on the same machine. (Top 50 Technical Interview Questions And Answers
Pdf)
27. What is CMM?_text]
Answer: The Capability Maturity Model for Software (CMM or SW-CMM) is a
model for judging the maturity of the software processes of an organization and for
identifying the key practices that are required to increase the maturity of these
processes.
28.What is .Net framework?_text]Answer: It is a platform for building various
applications on windows. It has a list of inbuilt functionalities in the form of class,
library, and APIs which are used to build, deploy and run web services and
different applications. It supports different languages such as C#, VB .Net, Cobol,
Perl, etc. 29. In C program, how we can insert quote characters (‘ and ”) into
the output screen?_text]Answer: This is a common problem for
freshers/beginners because quotes are normally part of a “printf” statement in
program. If we want to insert the quote character as part of the output, use the
format specifiers , and ” (for double quote) , ’ (for single quote)30. What is
Firewalls?_text]
Answer: It is an electronic downbridge which is used to enhance the security of a
network. It’s configuration has two components.
i)Two routers
ii)Application gateway
the packets traveling through the LAN are inspected here and packets meeting
certain criteria are forwarded and others are dropped.
31. What is time-stamping?_text]
Answer: It is a technique proposed by Lamport, used to order events in a
distributed system without the use of clocks. This scheme is intended to order
events consisting of the transmission of messages. Each system ‘i’ in the network
maintains a counter Ci. Every time a system transmits a message, it increments its
counter by 1 and attaches the time-stamp Ti to the message. When a message is
received, the receiving system ‘j’ sets its counter Cj to 1 more than the maximum
of its current value and the incoming time-stamp Ti. At each site, the ordering of
messages is determined by the following rules: For messages x from site i and y
from site j, x precedes y if one of the following conditions holds….(a) if Ti<j.
32. What is busy waiting?_text]
Answer: The repeated execution of a loop of code while waiting for an event to
occur is called busy-waiting. The CPU is not engaged in any real productive
activity during this period, and the process does not progress toward completion.
Explain the popular multiprocessor thread-scheduling strategies.
Load Sharing: Processes are not assigned to a particular processor. A global queue
of threads is maintained. Each processor, when idle, selects a thread from this
queue. Note that load balancing refers to a scheme where work is allocated to
processors on a more permanent basis.
Gang Scheduling: A set of related threads is scheduled to run on a set of processors
at the same time, on a 1-to-1 basis. Closely related threads / processes may be
scheduled this way to reduce synchronization blocking, and minimize process
switching. Group scheduling predated this strategy.
Dedicated processor assignment: Provides implicit scheduling defined by
assignment of threads to processors. For the duration of program execution, each
program is allocated a set of processors equal in number to the number of threads
in the program. Processors are chosen from the available pool.
Dynamic scheduling: The number of thread in a program can be altered during the
course of execution.
33. What are the different types of multiplexing?_text]
Answer: Multiplexing is of three types. Frequency division multiplexing and wave
division multiplexing is for analog signals and time division multiplexing is for
digital signals. (Top 50 Technical Interview Questions And Answers Pdf)
34. What is World Wide Web ?_text]
Answer: World Wide Web is a repository of information spread all over the world
and linked together.It is a unique combination of flexibility,portability,and user-
friendly features .The World Wide Web today is a distributed client-server
service,in which a client using a browser can access a service using a server.The
service provided is distributed over many locations called web sites.
35. What is difference between baseband and broadband transmission?_text]
Answer: In a baseband transmission, the entire bandwidth of the cable is
consumed by a single signal. In broadband transmission, signals are sent on
multiple frequencies, allowing multiple signals to be sent simultaneously.
36. What is Hypertext Transfer Protocol(HTTP) ?_text]
Answer: It is the main protocol used to access data on the World Wide Web .the
protol transfers data in the form of plain text,hypertext,audio,video,and so on. It is
so called because its efficiency allows its use in a hypertext environment where
there are rapid jumps from one document to another.
37. Describe the layers of OSI model?_text]
Answer: OSI model stands for Open System Interconnection It is a framework
which guides the applications how they can communicate in a network.
OSI model has seven layers. They are listed below,
View – These are the components that display the view of the application in the
form of UI. The view gets the information from the model objects for their display.
They have components like buttons, drop boxes, combo box, etc.
Controllers – They handle the User Interactions. They are responsible for
responding to the user inputs, work with the model objects, and pick a view to be
rendered to the user.
The different components of CAS are Code group, Permissions, and Evidence.
Evidence– To decide what permissions to give, the CAS and CLR depend on the
specified evidence by the assembly. The examination of the assembly provides
details about the different pieces of evidence. Some common evidence include
Zone, URL, Site, Hash Value, Publisher and Application directory.
Code Group – Depending on the evidence, codes are put into different groups.
Each group has specific conditions attached to it. Any assembly that matches those
condition is put into that group.(Linux Admin Online Training)
Permissions – Each code group can perform only specific actions. They are called
Permissions. When CLR loads an assembly, it matches them to one of the code
groups and identifies what actions those assemblies can do. Some of the
Permissions include Full Trust, Everything, Nothing, Execution, Skip Verification,
and the Internet.
There is a “Central Registry” where all the domain names are stored and it gets
updated on a periodic basis. All the internet service providers and different host
companies usually interact with this central registry to get the updated DNS details.
For Example: When you type a website , then your internet service provider looks
for the DNS associated with this domain name and translates this website
command into a machine language – IP address – 151.144.210.59 (note that, this is
imaginary IP address and not the actual IP for the given website) so that you will
get redirected to the appropriate destination. (Office 365 Online Training)
This is shortly explained in the below diagram:
DNS
Prototypes are important in JavaScript because JavaScript does not have classical
inheritance based on classes; all inheritances happen through prototypes. If the
JavaScript runtime can’t find an object’s property, it looks to the object’s
prototype, and continues up the prototype chain until the property is found.
16. What are your favorite types of front end development projects to work
on? What do you like about them?_text]Answer:
This question gives you insight into the personal preferences of the front end
developer. Some applicants may prefer to only work on website projects, while
others enjoy being involved in web application teams more. What to look for in an
answer:
19. Explain The Difference Between Static, Fixed, Absolute And Relative
Positioning?_text]Answer :
static is the default.
fixed is positioned relative to the browser.
absolute is positioned relative to its parent or ancestor element.
relative is positioned relative to normal positioning/the item itself. Used alone it
accomplishes nothing.
21. What are your favourite features of HTML5 and CSS3 and what would
you change?_text]Answer:
But rather than keeping up with new technologies, it reveals whether the front-end
developer being interviewed is also up to date with new features within the core
technologies.
24. Have You Ever Used A Css Preprocessor/precompiler? What Are The
Benefits?_text]Answer :
CSS preprocessors, such as SASS, have numerous benefits, such as variables and
nesting.25. Tell Me Where Do You Place Your Javascript On The
Page?_text]Answer :
It may depend on what you are using it for. There is some debate on this but
generally a good question to ask to get an understanding of the JS
knowledge.(Core Java Training Videos)
26. What Is The Difference Between Call And Apply?_text]Answer :
apply lets you invoke the function with arguments as an array. call requires the
parameters to be listed explicitly. Also, check out this stackoverflow answer.
29. If you arrive to a new company that has 3 competing stylesheets, how
would you best integrate them into the site?_text]Answer:
A stylesheet is template file consisting of font and layout settings to give a
standardized look to a website or web application. To keep a consistent look and
feel to a project, there should only be one stylesheet. I like to ask this question to
judge problem-solving, communication and team skills. (Latest 50 Front End
Developer Interview Questions And Answers)
30. Have you ever used an MVC? Which one and what do you like and dislike
about it?_text]Answer:
MVC stands for model view controller. MVCs typically organize webapps into a
well-structured pattern, making code easier to maintain. The term is well-known by
developers and some famous examples of MVCs include backbone.js and
angular.js. What makes this question interesting is not whether the frontend
interviewee has used an MVC, but what his or her preferences and experience
reveal. Candidates who are able to articulate why they use one MVC over another
show that they are engaged in what they do, care about the technology and have
considered different options. You want to be able to trust your frontend developer
to keep up to date with which technologies are relevant and have a clear idea of
when and what should be used.(Top 43 Java Developer Interview Questions And
Answers Pdf)
31. Have you learned anything interesting this week?_text]Answer:
I recently got into Elm. I’ve been hearing about how great of a functional
programming language it is for a while now. It may not be replacing JavaScript
anytime soon but it is a very interesting alternative. I also got around to learning
Regex. I’ve dabbled with it in the past but I never dove in deep. It’s a nice tool to
add to my bag of tricks.
33. Can you explain what Three.js is and quote its key features?_text]Answer:
Three.js is an open-source JavaScript 3D library that allows you to create and
display animated 3D computer graphics in a web browser. This is an API which
uses WebGL to create impressive web demonstrations. And the best part of
Three.js is that you can display all these graphics without depending on exclusive
plug-ins.
35. How do you structure your source code to make it easy for leverage by
your colleagues?_text]Answer:
A front-end developer needs to discuss their use of code organization and
commenting. They need to explain how they use notes in their programming
process to explain the steps they have taken, ensuring an efficiency of
understanding amongst collaborators.
Just as every person has their own tastes, every front-end developer has their own
preferences and priorities regards the workflow. Answers to this question for
frontend developers will provide you with valuable insights into unique
organisational and technical specifics of each developer.
38. What Is The Difference Between Form Get And Form Post?_text]
Answer :
Get:
With GET the form data is encoded into a URL by the browser. The form data is
visible in the URL allowing it to be bookmarked and stored in web history. The
form data is restricted to ASCII codes. Because URL lengths are limited there can
be limitations on how much form data can be sent.
Post:
With POST all the name value pairs are submitted in the message body of the
HTTP request which has no restrictions on the length of the string. The name value
pairs cannot be seen in the web browser bar.
POST and GET correspond to different HTTP requests and they differ in how they
are submitted. Since the data is encoded in differently, different decoding may be
needed.
Conclusion:
Hence, these are the most important front-end developer interview questions and
answers. It will assist you with your just-in-time preparation for that job interview
in front-end development. If we have missed any other important front-end
developer questions, let me know in the comments.
Post navigation
20. What are two common ways in which you can reduce the load time
of a web application?_text]Answer:
There are quite a lot of ways you can reduce load time:
Enable browser caching
Optimize images
Minify resources
Minimize HTTP Requests
Reduce redirects
24. Who checks whether the authorized person only can access the
intranet?_text]Answer:
An intranet of an organization is accessible to employees of that
particular organization only. A software known as firewall is used to
ensure this. Firewall checks whether the authorized person only can
access.
34. Explain how you optimize and reduce web application load
time?_text]Answer:
Almost half of all users want a web page to load within two seconds.
Ask this question to learn if a candidate is aware of the impact that
page load time has on the user experience, and how a web developer
should analyze data and track improvements to optimize load time.
43: Describe the difference between cookies, session Storage, and local
Storage?_text]Answer:
Cookies are small text files that websites place in a browser for
tracking or login purposes, and hold a modest amount of data.
44. Tell me two common ways in which you can reduce the load time
of a web application that you have written?_text]Answer:
It will be a good idea to optimize images to no higher than screen
resolution and save it as a compression level which squeezes the size
considerably. Another thing that can be done is to eliminate all
JavaScript files to reduce the amount of transferable data
43. What is the difference between Web Server and Application Server ?
Answer:
Webserver:
A Web server handles the HTTP protocol. When the Web server receives an
HTTP request, it responds with an HTTP response, such as sending back an
HTML page. To process a request, a Web server may respond with a static
HTML page or image, send a redirect, or delegate the dynamic response
generation to some other program such as CGI scripts, JSPs (JavaServer
Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or
some other server-side technology. Whatever their purpose, such server-side
programs generate a response, most often in HTML, for viewing in a Web
browser.
Application Server:
As for the application server, according to our definition, an application
server exposes business logic to client applications through various
protocols, possibly including HTTP. While a Web server mainly deals with
sending HTML for display in a Web browser, an application server provides
access to business logic for use by client application programs. The
application program can use this logic just as it would call a method on an
object
Post
Best 38 C# Interview Questions And Answers Pdf
C# Interview Questions And Answers / By Admin
Principles are crucial but they are not the most important aspect of what OO
actually is. What is really important is to understand in what grounds OO is built
upon, or in other words, what are the foundations of OO programming.
The two most fundamental core concepts on which OO has been built upon in C#
are this pointer and Dynamic Dispatch.
3. What is Thread in C# ?
Answer:
Thread is an execution path of a program. Thread is used to define the different or
unique flow of control. If our application involves some time consuming processes
then it’s better to use Multithreading., which involves multiple threads.
5. How it works ?
Answer:
We are going to use Factory pattern for this purpose. We will have a factory
method, which will take care about the creation of objects. Whenever there is a
request for a new object, the factory method will look into the object pool (we use
Queue object). If there is any object available within the allowed limit, it will
return the object (value object), otherwise a new object will be created and give
you back.
7. What is ArrayList ?
Answer:
ArrayList is a dynamic array. You can add and remove the elements from an
ArrayList at runtime. In the ArrayList, elements are not automatically sorted.
9. What is a constructor ?
Answer:
A constructor is a class member executed when an instance of the class is created.
The constructor has the same name as the class, and it can be overloaded via
different signatures. Constructors are used for initialization chores.
using System;
namespace HelloWorldApplication
{
class HelloWorld
{
static void Main(string[] args)
{
Console.WriteLine(“Hello World”);
Console.ReadKey();
Polymorphism
Structures
Enumerations
Fundamentals of Inheritance
Inheritance Implementation
Method Overloading
Method Overriding Constructor Overloading
Abstract Class & Methods
Interfaces Introduction
Interfaces Implementation
Introduction of Overloaded Operators
Recursion
Unmanaged code is any code that is executed by application runtime of any other
framework apart from .Net. The application runtime will take care of memory,
security and other performance operations.
Introduction of Reflections
Collection Classes
Maths Class
Rounding Functions in C# Multi-threaded Programming – 1
Multi-threaded Programming – 2
Iterators
Arrays Overview
Elements are identified by indexes relative to the beginning of the arrays. An index
is also commonly called indices or subscripts and are placed inside the indexing
operator ([]). Access to array elements is by their index value that ranges from 0 to
(length-1).
Array Properties
For Example:
500 is an integer. So, Parse method converts the string 500 into its own base type,
i.e int.
Follow the same method to convert a DateTime string.
string dateTime = “Jan 1, 2018”;
DateTime parsedValue = DateTime.Parse(dateTime).
ArrayList
Stack
Queue
SortedList
HashTable
Bit Array
33. What are the differences between static, public and void in C# ?
Answer:
Static classes/methods/variables are accessible throughout the application without
creating instance. Compiler will store the method address as an entry point.
Public methods or variables are accessible throughout the application.
Void is used for the methods to indicate it will not return any value.
For Example:
Generic Class
So, from the above code, we see 2 compare methods initially, to compare string
and int.
Post navigation
2018 Latest Dot Net Interview Questions And Answers Pdf
Dot Net Interview Questions / By Admin
Is an HTTP service.
Is designed for reaching the broad range of clients.
Uses the HTTP application.
We use the ASP. NET Web API for creating the REST ful (Representational State
Transfer) services.
The following are some important points of the ASP. NET Web API:
The ASP. NET Web API supports the MVC application features that are
controller, media formatters, routing etcetera.
It is a platform for creating the REST services.
It is a framework for creating the HTTP services.
Responses can be formatted by the APIs MediaTypeFormatter into the Java Script
Object Notation (JSON) and Extencible Markup Language (XML) formats.
Inheritance: The main class or the root class is called as a Base Class. Any class
which is expected to have ALL properties of the base class along with its own is
called as a Derived class. The process of deriving such a class is Derived class.
Page Theme
A Page theme contains the control skins, style sheets, graphic files, and other
resources inside the subfolder of the App_Theme folder in the Solution Explorer
window. A page theme is applied to a single page of the web site.
Global Theme
A Global theme is a theme that is applied to all the web sites on a web server and
includes property settings, and graphics. This theme allows us to maintain all the
websites on the same web server and define the same style for all the web pages of
the web sites.
10. How can you identify that the page is post back ?
Answer:
There is a property, named as “IsPostBack” property. You can check it to know
that the page is post backed or not.
We can also define Ajax is a combination of client side technologies that provides
asynchronous communication between the user interface and the web server so that
partial page rendering occurs instead of complete page post back.
With AJAX, when a user clicks a button, you can use JavaScript and DHTML to
immediately update the UI, and spawn an asynchronous request to the server to
fetch results.
When the response is generated, you can then use JavaScript and CSS to update
your UI accordingly without refreshing the entire page. While this is happening,
the form on the users screen doesn’t flash, blink, disappear, or stall.
The power of AJAX lies in its ability to communicate with the server
asynchronously, using a XMLHttpRequest object without requiring a browser
refresh.
Ajax essentially puts JavaScript technology and the XMLHttpRequest object
between your Web form and the server.
ASP.NET also adds two additional hidden input fields that are used to pass
information back to the server. This information consists of ID of the Control that
raised the event and any additional information if needed. These fields will empty
initially as shown below,
The following actions will be taken place when a user changes a control that has
the AutoPostBack property set to true:
On the client side, the JavaScript _doPostBack function is invoked, and the page is
resubmitted to the server.
ASP.NET re-creates the Page object using the .aspx file.
ASP.NET retrieves state information from the hidden view state field and updates
the controls accordingly.
The Page.Load event is fired.
The appropriate change event is fired for the control. (If more than one control has
been changed, the order of change events is undetermined.)
The Page.PreRender event fires, and the page is rendered (transformed from a set
of objects to an HTML page).
Finally, the Page.Unload event is fired.
The new page is sent to the client.
AutoDetect: Session uses background cookie if cookies are enabled. If cookies are
disabled, then the URL is used to store session information.
Setting the theme at the page level: the Theme attribute is added to the page
directive of the page.
<%@ Page Language=”C#” AutoEventWireup=”true”
CodeFile=”Default.aspx.cs”Inherits=”Default” Theme=”Theme1″%>
Setting the theme at the site level: to set the theme for the entire website you can
set the theme in the web.config of the website. Open the web.config file and locate
the element and add the theme attribute to it:
….
….
Setting the theme programmatically at runtime: here the theme is set at runtime
through coding. It should be applied earlier in the page’s life cycle ie. Page_PreInit
event should be handled for setting the theme. The better option is to apply this to
the Base page class of the site as every page in the site inherits from this class.
Page.Theme = Theme1;
Uses of Themes
Since themes can contain CSS files, images and skins, you can change colors,
fonts, positioning and images simply by applying the desired themes.
You can have as many themes as you want and you can switch between them by
setting a single attribute in the web.config file or an individual aspx page. Also you
can switch between themes programmatically.
Setting the themes programmatically, you are offering your users a quick and easy
way to change the page to their likings.
Themes allow you to improve the usability of your site by giving users with vision
problems the option to select a high contrast theme with a large font size.
Response.Redirect
Server.Transfer
Server.Exceute
Cross page posting
Footer…
We can see the execution path of the page and application using the debug
statement.
We can access and manipulate trace messages programmatically.
We can see the most recent tracing of the data.
Tracing can be done with the following 2 types.
Page Level: When the trace output is displayed on the page and for the page-level
tracing we need to set the property of tracing at the page level.
Data Binding is binding controls to data from databases. With data binding we can
bind a control to a particular column in a table from the database or we can bind
the whole table to the data grid. (svr technologies)
Data binding provides simple, convenient, and powerful way to create a read/write
link between the controls on a form and the data in their application.
Data binding allows you to take the results of properties, collection, method calls,
and database queries and integrate them with your ASP.NET code. You can
combine data binding with Web control rendering to relieve much of the
programming burden surrounding Web control creation. You can also use data
binding with ADO.NET and Web controls to populate control contents from SQL
select statements or stored procedures.
The <%#, which instructs ASP.NET to evaluate the expression. The difference
between a data binding tags and a regular code insertion tags <% and %> becomes
apparent when the expression is evaluated. Expressions within the data binding
tags are evaluated only when the DataBind method in the Page objects or Web
control is called.
Data Bind Control can display data in connected and disconnected model.
Repeater Control
DataGrid Control
DataList Control
GridView Control
DetailsView
FormView
DropDownList
ListBox
RadioButtonList
CheckBoxList
BulletList etc.
We can compose web parts pages from “web parts”, which can be web controls,
user controls.
Web Part Zone can contain one or more Web Part controls.
This provides the layout for the Controls it contains. A single ASPX page can
contain one or more Web Part Zones.
A Web Part Control can be any of the controls in the toolbox or even the
customized user controls.
For example: If you want give new value to old value then it will discard the old
value and create new instance in memory to hold the new value.
26. What are the various objects in Data set ?
Answer:
The DataSet class exists in the System.Data namespace.
The Classes contained in the DataSet class are:
a) DataTable
b) DataColumn
c) DataRow
d) Constraint
e) DataRelation
A session stores user states and data to all over the application.
It is very easy to implement and we can store any kind of object.
It can store every user data separately.
Session is secure and transparent from user because session object is stored on the
server.
We can create data caching use Cache Keyword. It’s located in the
System.Web.Caching namespace. It’s just like assigning value to the variable.
We use the Enterprise Library when we want to build application blocks intended
for the use of developers who create complex enterprise level application.
Enterprise Library Application Blocks
The class which derives functionality from a base class is called a derived class. If
Class Y derives from Class X, then Class Y is a derived class.
Introduction to ASP.NET
Client-Side Validation
Server-Side Validation
Client-Side Validation:
Server-Side Validation:
RequiredFieldValidator Control
CompareValidator Control
RangeValidator Control
RegularExpressionValidator Control
CustomFieldValidator Control
ValidationSummary
There must be multiple processes to share the same connection describing the same
parameters and security settings.
The connection string must be identical.
RegularExpressionValidator Control
CustomFieldValidator Control
ValidationSummary
41. Which are the new features added in .NET framework 4.0 ?
Answer:
A list of new features of .NET Framework 4.0:
43. What is an IL ?
Answer:
IL stands for Intermediate Language. It is also known as MSIL (Microsoft
Intermediate Language) or CIL (Common Intermediate Language).
All .NET source codes are first compiled to IL. Then, IL is converted to machine
code at the point where the software is installed, or at run-time by a Just-In-Time
(JIT) compiler.
Easy to Implement.
No server resources are required: The View State is contained in a structure within
the page load.
Enhanced security features: It can be encoded and compressed or Unicode
implementation.
46. What are the different Session state management options available in
ASP.NET ?
Answer:
State Management in ASP.NET
A new instance of the Web page class is created each time the page is posted to the
server.
In traditional Web programming, all information that is associated with the page,
along with the controls on the page, would be lost with each roundtrip.
The Microsoft ASP.NET framework includes several options to help you preserve
data on both a per-page basis and an application-wide basis.
These options can be broadly divided into the following two categories:
Client-based options involve storing information either in the page or on the client
computer.
There are situations where you need to store the state information on the server
side.
ASP.NET provides the following options to manage state at the server side:
Application state
Session state
State Management
oth debug and release builds.
When a type (class or a struct) inherits only the signatures of the functions from
another type it is Interface Inheritance.
Source: Exforsys.
1. Default Constructor
2. Parameterized Constructor
3. Copy Constructor
4. Static Constructor
Post navigation
1. What is BCP ? When does it used ? (Top 50 Sql Server Dba Interview
Questions And Answers Pdf)
Answer :
BulkCopy is a tool used to copy huge amount of data from tables and
views. BCP does not copy the structures same as source to destination.
BULK INSERT command helps to import a data file into a database table or
view in a user-specified format.
Top 50 Sql Server Dba Interview Questions And Answers Pdf
11. What are the new features in SQL Server 2005 when compared to
SQL Server 2000 ?
Answer :
There are quite a lot of changes and enhancements in SQL Server 2005. Few
of them are listed here :
Database Partitioning
Dynamic Management Views
System Catalog Views
Resource Database
Database Snapshots
SQL Server Integration Services
Support for Analysis Services on a a Failover Cluster.
Profiler being able to trace the MDX queries of the Analysis Server.
Peer-to Peer Replication
Database Mirroring
17. Why to use Sub Query in Sql Server and List out types of Sub
Queries ?
Answer :
Sub Queries are queries within a query. The parent or outer query is being
called as main query and the inner query is called as inner query or sub
query. Different types of Sub Queries are
Correlated – It is not an independent subquery. It is an inner query which is
referred by outer query.
Non Correlated – It is an independent subquery. It can be executed even
without outer query.
19. List out difference between Union and Union All in Sql Server ?
Answer :
Union is used to combine all result sets and it removes the duplicate
records from the final result set obtained unlike Union All which returns all
the rows irrespective of whether rows are being duplicated or not.
Union checks the number of columns given in the SELECT statement should
be equal or not and the datatypes are also should be same and same
applied to UnionAll.
24. What are the differences between Union, Intersect and Minus
operators ?
Answer :
Union operator is used to combine all the results or records of the table
and it removes the duplicate values.
Interact operator is used to return the common list of records between two
result sets.
Minus operator is used to get the list of records from the first result set and
which is not there in second result set.
30. What are the significance of master, tempdb and model databases
?
Answer :
master – This database will have data and catalog of all the databases of
SQL Server instance.
tempdb – tempdb database will have temporary objects like local and
global temporary tables and stored procedures as well.
model – model database is mainly used for creating new user databases.
33. Explain Alternate key, Candidate Key and Composite Key in Sql
Server ?
Answer :
Alternate Key – To identity a row uniquely we can have multiple keys one of
them is called primary key and rest of them are called alternate keys.
Candidate Key – Set of fields or columns which are uniquely identified in a
row and they constitute candidate keys.
Composite Key – One key formed by combining at least two or more
columns or fields.
34. How to use “DROP” keyword in Sql Server and Give an example ?
Answer :
“DROP” keyword is used to drop either Index or database or table. Below
are list of Sql statements using Drop keyword.
Dropping Index
DROP INDEX my_index
Dropping Database
DROP DATABASE my_database
Dropping Table
DROP TABLE my_table
deleted when the connection that created it is closed.