Unit-01 Introduction To Web Technologies
Unit-01 Introduction To Web Technologies
web development
Ans:- Web Technology refers to the various tools and techniques that are utilized in the process of
communication between different types of devices over the internet. Web technologies refers to the way
computers/devices communicate with each other using mark up languages and multimedia packages.
computers require codes, or directions. These binary codes and commands allow computers to process
needed information. Every second, billions upon billions of ones and zeros are processed in order to
provide information .
o Web Pages:- A web pages is digital document that is linked to the World Wide web and viewable
by anyone connected to the internet has a web browser.
o Web Browser:- The web browser is an application software to explore www(world wide web). It
provides an interface between the server and the client and requests to the server for web
documents and services.
o Web server:-Web server is a program which processes the network requests of the users and
serves them with files that create web pages. This exchange takes place using Hypertext Transfer
Protocol (HTTP).
o WWW:- The World Wide Web is based on several different technologies : Web browsers, Hypertext
Markup Language (HTML) and Hypertext Transfer Protocol (HTTP).
o Web Development:- Web development refers to the building, creating, and maintaining of websites.
It includes aspects such as web design, web publishing, web programming, and database
management. It is the creation of an application that works over the internet i.e. websites.
Web Development can be classified into two ways:
Frontend Development: The part of a website that the user interacts directly is termed as front end. It is
also referred to as the ‘client side’ of the application.
Backend Development: Backend is the server side of a website. It is the part of the website that users
cannot see and interact. It is the portion of software that does not come in direct contact with the users. It
is used to store and arrange data.
02.What is Scripting Language? Explain client side and server side script.
A scripting language is a programming language that employs a high-level construct to interpret and
execute one command at a time. It is translated into machine code when the code is run, rather than
beforehand. Scripting languages are often used for short scripts over full computer programs. JavaScript,
Python, and Ruby are all examples of scripting languages.
On a dynamic website there are client-side and server-side scripts. Client-side and server-side are some
times referred to as front-end and back-end.
The client-side of a web site refers to the web browser and the server-side is where the data and source
code is stored.
o Allow for more interactivity by immediately responding to users’ actions. o Execute quickly
because they do not require a trip to the server. o May improve the usability of Websites for users
whose browsers support scripts. o Can give developers more control over the look and behaviour
of their Web widgets.
o Can be substituted with alternatives (for example, HTML) if users’ browsers do not support scripts
o Are reusable and obtainable from many free resources.
o Not all browser support scripts, therefore, users might experience errors if no alternatives have
been provided. o Different browsers and browser versions support scripts differently , thus more
quality assurance testing is required.
o More development time and effort might be required (if the scripts are not already available
through other resources).
o Developers have more control over the look and behaviour of their Web widgets;
however ,usability problems can arise if a Web widget looks like a standard control but behaves
differently or vice-versa.
o User can create one template for the entire website o The site can use a content management
system which makes editing simpler.
o Generally quicker to load than client-side scripting o User is able to include external files to save
coding. o Scripts are hidden from view so it is more secure. Users only see the HTML output.
o Many scripts and content management systems tools require data bases in order to store dynamic
data.
o It requires the scripting software to be installed on the server.
o The nature of dynamic scripts creates new security concerns, in some cases making it easier for
hackers to gain access to servers exploiting code flaws.
03.What is dot net Frame work ? Explain the main components of dot net frame work.
o Dot net is a frame work to develop software applications .It is designed and developed by Microsoft and the
first beta version released in 2000.
o It is used to develop applications for web, Windows, phone. Moreover ,it provides abroad range of
functionalities and support. o This frame work provides various services like memory management,
networking, security, memory management, and type-safety.
o It is a program execution engine that loads and executes the program. It converts the program into native
code.
o It acts as an interface between the frame work and operating system. It does exception handling, memory
management, and garbage collection. Moreover, it provides security, type-safety, interoperability, and
portability.
o It is a standard library that is a collection of thousands of classes and used to build an application. o The BCL
(Base Class Library) is the core of the FCL and provides basic functionalities.
o WinForms: Windows Forms is a smart client technology for the . NET Framework, a set of managed libraries
that simplify common application tasks such as reading and writing to the file system.
o ASP.NET: ASP.NET is a web frame work designed and developed by Microsoft. It is used to develop websites,
web applications, and web services. It provides a fantastic integration of HTML, CSS, and JavaScript. It was
first released in January 2002.
o ADO.NET: ADO.NET is a module of .Net Frame work, which is used to establish a connection between
application and data sources. Data sources can be such as SQL Server and XML. ADO.NET consists of classes
that can be used to connect, retrieve, insert, and delete data.
Ans:- C# Object: Object is a runtime entity, it is created at runtime. Object is an entity that has state and behavior.
Here, state means data and behavior means functionality.
C# Class : In C#, class is a group of similar objects. It is a template from which objects are created. It can have fields,
methods, constructors etc.
)_____________________________________
02. what is Type casting? Explain Explicit and Implicit type casting ?
Ans:- C# Type Casting: Type casting is when you assign a value of one data type to another type.
❖ Example: int myInt = 9; double myDouble = myInt; // Automatic casting: int to double.
➢ It must be done manually by placing the type in parentheses in front of the value:
❖ Example: double myDouble = 9.78; int myInt = (int) myDouble; // Manual casting: double to int.
_______________________________________
03.What is a namespace ?
Ans:- The Namespace keyword is used to declare a scope that contains a set of related objects. You can use a
namespace to organise a code elements and to create globally unique types.
_________________________________
Ans:- Conversion Methods: It is also possible to convert data types explicitly by using builtin methods,
➢ In C#, there are various built-in methods for types conversion: Example:
________________________________
05.What is a C# Method ?
Ans:- A method is a block of code which only runs when it is called.You can pass data, known as parameters, into a
method.
➢ A method is defined with the name of the method, followed by parentheses ().
❖ Create a method inside the Program class:
class Program
{ // code to be executed }
}__________________________________
Ans:- Function overloading: Also called Method overloading, having two or more methods with same name but
different in parameters, is known as method overloading in C#.
➢ Example:
Console.WriteLine(Cal.add(15, 20));
______________________________
Ans:- C# Data Types: A data type specifies the size and type of variable values. It is important to use the correct data
type for the corresponding variable to save time and memory.
float 4 bytes Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits
double 8 bytes Stores fractional numbers. Sufficient for storing 15 decimal digits
string 2 bytes per character Stores a sequence of characters, surrounded by double quotes.
____________________________________
Ans:- Break:The break statement, terminates the closest enclosing iteration statement or switch statement.
Continue:
The continue statement starts a new iteration of the closest enclosing iteration statement.