(SEM V) THEORY EXAMINATION 2019-20 WEB TECHNOLOGIES
WEB TECHNOLOGIES (RCS-052)
B.Tech (SEM-V) – AKTU
SECTION A
(Attempt all questions in brief – 2 × 7 = 14 marks)
Q1 (a) Define Path in JDK. How is path different from class path?
Path in JDK is an environment variable that tells the operating system where to find executable Java tools like javac and java.
Classpath is used by JVM to locate class files and libraries required during program execution. Path is for command execution, while classpath is for program compilation and execution.
Q1 (b) Define webpage with its types. Discuss responsive webpage with example.
A webpage is a document written in HTML and accessed through a web browser.
Types of webpages include static and dynamic webpages.
A responsive webpage adjusts its layout automatically according to screen size using CSS media queries, ensuring proper display on mobile, tablet, and desktop devices.
Q1 (c) Define box model in CSS with block diagram.
CSS box model consists of content, padding, border, and margin. It defines spacing and layout of HTML elements. Content is the actual data, padding creates space inside the border, border surrounds padding, and margin creates space outside the element.
Q1 (d) Describe garbage collection and explain how it functions.
Garbage collection is an automatic memory management process in Java. It removes unused objects from memory to free space. JVM periodically identifies unreachable objects and reclaims memory without programmer intervention.
Q1 (e) Define DHTML with suitable example.
DHTML (Dynamic HTML) is a combination of HTML, CSS, JavaScript, and DOM that allows dynamic changes in web pages without reloading.
Example: Changing text color dynamically using JavaScript.
Q1 (f) Compare JDBC and ODBC. List different types of JDBC drivers.
JDBC is Java-specific API for database connectivity, while ODBC is language-independent. JDBC is platform independent and faster.
Types of JDBC drivers are:
Type-1: JDBC-ODBC bridge
Type-2: Native API driver
Type-3: Network protocol driver
Type-4: Thin driver
Q1 (g) Discuss Tomcat server. How to set classpath for servlet in Tomcat?
Apache Tomcat is a web server and servlet container used to run Java Servlets and JSP pages.
Classpath for servlet is set by placing class files in the WEB-INF/classes directory and JAR files in WEB-INF/lib folder of the web application.
SECTION B
(Attempt any three – 7 × 3 = 21 marks)
Q2 (a) Compare object-oriented programming and object-based programming with example. Also write features of OOP and demonstrate use of this keyword in Java.
Object-oriented programming supports classes, objects, inheritance, polymorphism, encapsulation, and abstraction.
Object-based programming supports objects and encapsulation but not inheritance or polymorphism.
Features of OOP include data hiding, code reusability, modularity, and flexibility.
The this keyword in Java refers to the current object and is used to differentiate instance variables from local variables.
Q2 (b) Define thread. How to create a thread in Java? Write a program that executes two threads.
A thread is a lightweight process that executes independently within a program.
Threads are created by extending Thread class or implementing Runnable interface.
One thread prints even numbers and another prints odd numbers from 1 to 5 using multithreading.
Q2 (c) Define XML. Which technologies are used? Explain the structure of XML document.
XML (Extensible Markup Language) is used to store and transport data.
Technologies include DTD, XML Schema, XPath, XSLT, and DOM.
XML structure includes declaration, root element, child elements, attributes, and content in a hierarchical format.
SECTION C
Q5 (a) Discuss AJAX. Explain applications of AJAX with suitable examples.
(7 marks)
AJAX (Asynchronous JavaScript and XML) allows web pages to update data asynchronously without reloading.
Applications include live search, auto-suggest, form validation, and real-time content updates such as Google search suggestions.
Q6 (a) Explain JDBC application architecture. List JDBC drivers. Write steps to connect database with web application using JDBC.
(7 marks)
JDBC architecture consists of Java application, JDBC API, JDBC driver, and database.
Steps include loading driver, establishing connection, creating statement, executing query, processing result, and closing connection.
Q7 (a) Explain Servlets with its life cycle. How is servlet life cycle different from JSP life cycle? Explain with example.
(7 marks)
Servlet is a Java program that handles client requests and generates dynamic responses.
Servlet life cycle includes loading, initialization, request handling, and destruction.
JSP life cycle differs as JSP pages are first translated into servlets and then compiled. JSP focuses 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