(SEM V) THEORY EXAMINATION 2019-20 WEB TECHNOLOGIES

B.Tech General 0 downloads
₹29.00

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.

File Size
51.62 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

Singing / Vocal Training Near DLF Phase 2 Gurugram – Professional Voice Training for Kids, Beginners & Aspiring Singers DLF Phase 2, Gurugram
Dance Classes (Bollywood, Hip-Hop, Classical) Near Sohna Road – Learn, Perform & Shine Sohna Road, Gurugram
SEO Training Near Noida Sector 95 – Learn Search Engine Optimization and Build a Digital Career Noida
🇫🇷 French Language Classes Near Sector 112 Noida – Learn French with Expert Trainers Noida
Geography Classes Near Sector 92 Gurugram – Build Strong Concepts, Map Skills & Exam Confidence Gurugram
Spoken English Classes Near By Defence Colony Improve Communication Skills, Confidence & Career Opportunities in 2026 Defence Colony, Delhi
Web Development Course Near Sector 59 Gurugram – Learn Coding & Build a Successful Tech Career Sector 59, Gurugram
Music Theory & Composition Classes Near By Najafgarh – Build Your Musical Foundation Najafgarh, Delhi
Graphic Designing Classes Near Noida Sector 99 – Learn Creative Design and Build a Successful Career Noida
Yoga Classes Near Sector 137 Greater Noida – Improve Health, Fitness and Mental Well-Being Through Professional Yoga Training Sector 137, Noida
French Classes Near Sector 42 Gurugram – Learn French with Confidence Sector 42, Gurugram
Spoken English Classes Near By Moti Nagar Improve Fluency, Build Confidence & Unlock Better Career Opportunities in 2026 Motinagar, Delhi
Harmonium Classes Near Sushant Lok Phase 1 – Learn Classical Music with Confidence Sushant Lok Phase 1, Gurugram
Spoken English Classes Near By Paschim Vihar Improve Fluency, Build Confidence & Unlock Better Career Opportunities in 2026 Paschim Vihar, Delhi
Diet & Nutrition Consultation Near Sector 125 Noida – Your Complete Guide to Healthy Living Sector 125, Noida
Guitar Classes Near New Friends Colony – Learn Guitar from Expert Trainers in South Delhi New Friends Colony, Delhi
Music Production (Laptop-Based) Classes Near Sector 143 Noida – Learn Professional Music Creation Sector 143, Noida
Spoken English Classes Near Rajouri Garden Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Rajouri Garden, Delhi
Candle Making Classes In Dwarka Mor – Learn the Art of Handmade Candle Crafting Dwarka Mor, Delhi
Spoken English Classes Near By Janakpuri Improve Fluency, Build Confidence & Achieve Career Success in 2026 Janakpuri, Delhi
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020