JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III WEB PROGRAMMING Previous Question Paper (January/February - 2023 - R18)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory (25 marks). iii) In Part B, Answer any one question from each unit (10 marks each).
PART A
Define a function. List their advantages and disadvantages.
Answer
Advantages:
- Reusability: Eliminates redundant code by allowing the same logic to be executed from different parts of an application.
- Maintainability: Changes made to the function logic are automatically reflected wherever the function is called, simplifying debugging and updates.
- Modularity: Breaks down complex problems into smaller, manageable sub-tasks, improving code readability and organization.
- Abstraction: Hides complex implementation details from the user, exposing only the necessary interface.
- Overhead: Frequent function calls can introduce minor performance latency due to stack frame allocation and context switching.
- Complexity in Debugging: Excessive nesting or deeply recursive functions can make the execution flow difficult to trace.
- Memory Usage: In some languages, improper use of recursion or large local scopes within functions can lead to increased memory consumption on the call stack.
Why we need scripting languages? Explain in brief.
Answer
Scripting languages are essential in modern web development because they provide the bridge between static content and dynamic, interactive user experiences. Their primary necessity arises from the following capabilities:
- Dynamic Content Generation: Unlike static HTML, which displays fixed information, scripting languages allow web pages to change their content in real-time based on user input, time, or database queries.
- Client-Side Interactivity: Languages like JavaScript enable the browser to respond to user actions (such as clicking buttons, form validation, or animations) without requiring a round-trip to the server, significantly reducing latency and improving User Experience (UX).
- Server-Side Logic: Scripting languages (e.g., PHP, Node.js, Python) facilitate communication with databases, handle authentication, manage sessions, and process complex business logic that cannot be performed by the client browser alone.
- Automation and Glue Code: They are often used as glue languages to integrate disparate software components, automate repetitive tasks, and manage system configurations, offering a higher level of abstraction than compiled languages like C or C++.
- Rapid Development: Because they are typically interpreted rather than compiled, scripting languages allow for faster prototyping and iterative development, as developers can execute code immediately without waiting for long compilation cycles.
What is a string? In what way it differs from character.
Answer
Sign in to view the complete answer paper.
What is a variable? List the rules to define it.
Answer
Sign in to view the complete answer paper.
What is the role of Connection class in JDBC?
Answer
Sign in to view the complete answer paper.
What criteria should be followed to for implicit statement caching?
Answer
Sign in to view the complete answer paper.
Write short notes on the role of events in web programming.
Answer
Sign in to view the complete answer paper.
Distinguish between applet and application programming.
Answer
Sign in to view the complete answer paper.
What is document prolog? Why we need them?
Answer
Sign in to view the complete answer paper.
Give brief description on the role of XSL in web programming.
Answer
Sign in to view the complete answer paper.
PART B
What are literals? Why we need them? Explain its role in programming.
Answer
Sign in to view the complete answer paper.
Explain the role of forms in web programming.
Answer
Sign in to view the complete answer paper.
What is a frame? With the help of example explain the <frameset> Tag Attributes and the <frame> Tag Attributes.
Answer
Sign in to view the complete answer paper.
What is an array? List their advantages. How can we initialize one dimensional arrays? Explain with example.
Answer
Sign in to view the complete answer paper.
Write a java program to multiply two matrices.
Answer
Sign in to view the complete answer paper.
With the help of syntax, flow chart and example explain any two iterative statements supported by java language.
Answer
Sign in to view the complete answer paper.
Write and explain the importance of UDP sockets.
Answer
Sign in to view the complete answer paper.
Explain the role on RMI in programming.
Answer
Sign in to view the complete answer paper.
How can we establish the connection to a database? Explain.
Answer
Sign in to view the complete answer paper.
Give brief description on handling the database queries.
Answer
Sign in to view the complete answer paper.
With the help of a neat sketch, explain the life cycle of an applet.
Answer
Sign in to view the complete answer paper.
How can we pass the parameters to an applet? Explain.
Answer
Sign in to view the complete answer paper.
Write and explain the different types of layout managers supported by java.
Answer
Sign in to view the complete answer paper.
Write the structure of XML document and explain briefly about it.
Answer
Sign in to view the complete answer paper.
Explain the creation of a java web service Client in detail with examples.
Answer
Sign in to view the complete answer paper.