(SEM V) THEORY EXAMINATION 2020-21 WEB TECHNOLOGY
WEB TECHNOLOGY (KIT501)
B.Tech (SEM-V) – AKTU
SECTION A
(Attempt all questions – 2 × 10 = 20 marks)
Q1 (a) How is an object created in Java?
In Java, an object is created using the new keyword. The new keyword allocates memory for the object and calls the constructor of the class to initialize it.
Example:
ClassName obj = new ClassName();
Q1 (b) Compare between JDK, JRE and JVM.
JDK (Java Development Kit) is used for developing Java applications and includes JRE and development tools.
JRE (Java Runtime Environment) provides libraries and environment to run Java programs.
JVM (Java Virtual Machine) executes Java bytecode and makes Java platform independent.
Q1 (c) Differentiate between HTML and XML.
HTML is used to design and display web pages, while XML is used to store and transport data.
HTML has predefined tags, whereas XML allows user-defined tags.
HTML focuses on presentation, XML focuses on data structure.
Q1 (d) Write a program with external style sheet using CSS.
An external CSS file is linked to an HTML document using the <link> tag.
The CSS file contains styling rules that can be applied to multiple web pages.
Q1 (e) Compare between Internet and WWW.
The Internet is a global network of connected computers.
The World Wide Web is a service running on the Internet that allows access to web pages using browsers.
Q1 (f) How HTTPS is different from HTTP?
HTTP transfers data in plain text and is not secure.
HTTPS uses SSL/TLS encryption to secure data, making it safe for sensitive information.
Q1 (g) Difference between JDBC and ODBC.
JDBC is a Java-based API used to connect Java applications with databases.
ODBC is language independent and can be used by various programming languages.
Q1 (h) What are JAR and Manifest files?
A JAR file is a package file format used to bundle Java classes and resources.
A Manifest file contains metadata about the JAR file such as main class and version information.
Q1 (i) Compare doGet() and doPost() method.
doGet() sends data through URL and is less secure.
doPost() sends data in request body and is more secure for sensitive data.
Q1 (j) Write difference between JSP and Servlet.
Servlets are Java programs that generate dynamic content using Java code.
JSP is easier to use for presentation and is converted internally into a Servlet.
SECTION B
(Attempt any three – 3 × 10 = 30 marks)
Q2 (a) How is exception handled in Java? Differentiate throw and throws.
Exception handling in Java is done using try, catch, finally, throw, and throws.
The try block contains risky code, catch handles exceptions, and finally executes compulsory code.
The throw keyword is used to explicitly throw an exception.
The throws keyword declares exceptions that a method may pass to the calling method.
Q2 (b) Explain HTML tags for Tables, Frames, and Forms with examples.
HTML tables are created using <table>, <tr>, <td>, and <th> tags to display data in rows and columns.
Frames divide the browser window into multiple sections using <frameset> and <frame>.
Forms are created using <form> tag and include input elements like text fields, radio buttons, and submit buttons.
Q2 (d) Write steps to connect database with web application using JDBC.
First, load the JDBC driver.
Then establish a connection using DriverManager.
Create a statement object to execute SQL queries.
Execute the query and process the result set.
Finally, close the connection.
SECTION C
(Attempt any two – one from each unit, 2 × 10 = 20 marks)
Q3 (a) What do you understand by web technology? Explain web protocols and working of HTTP.
Web technology refers to tools and technologies used to develop websites and web applications.
Protocols such as HTTP, HTTPS, FTP, and SMTP help communication over the web.
HTTP works on a request-response model where the client sends a request and the server responds with data such as HTML pages.
Q7 (a) Explain Servlets with its Life Cycle. How is it different from JSP life cycle?
A Servlet is a Java program that runs on a web server to handle client requests.
The Servlet life cycle includes loading, initialization, request handling, and destruction.
JSP life cycle is different as JSP pages are first translated into Servlets and then executed. JSP focuses more on presentation while Servlets focus on business logic.
Related Notes
BASIC ELECTRICAL ENGINEERING
ENGINEERING PHYSICS THEORY EXAMINATION 2024-25
(SEM I) ENGINEERING CHEMISTRY THEORY EXAMINATION...
THEORY EXAMINATION 2024-25 ENGINEERING MATHEMATICS...
(SEM I) THEORY EXAMINATION 2024-25 ENGINEERING CHE...
(SEM I) THEORY EXAMINATION 2024-25 ENVIRONMENT AND...
Need more notes?
Return to the notes store to keep exploring curated study material.
Back to Notes StoreLatest Blog Posts
Best Home Tutors for Class 12 Science in Dwarka, Delhi
Top Universities in Chennai for Postgraduate Courses with Complete Guide
Best Home Tuition for Competitive Exams in Dwarka, Delhi
Best Online Tutors for Maths in Noida 2026
Best Coaching Centers for UPSC in Rajender Place, Delhi 2026
How to Apply for NEET in Gurugram, Haryana for 2026
Admission Process for BTech at NIT Warangal 2026
Best Home Tutors for JEE in Maharashtra 2026
Meet Our Exceptional Teachers
Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication
Explore Tutors In Your Location
Discover expert tutors in popular areas across India
Discover Elite Educational Institutes
Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies