JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III WEB PROGRAMMING Previous Question Paper (February - 2022 - R18)

B.Tech | III | I | R18 | February - 2022

Answer PaperPaper Code: 155DMMaximum Marks: 75Time: 3 hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

How parameters are passed to functions in java script? Explain with example.

7 marks

Answer

In JavaScript, parameters are passed to functions by value. However, the behavior depends on the data type being passed: primitive types (numbers, strings, booleans, null, undefined) are passed by value, meaning a copy of the actual data is created within the function scope. Objects, arrays, and functions are passed by reference, meaning the function receives a reference to the memory location of the object, allowing the function to modify the original object's properties.

Example:

function modify(val, obj) { val = 10; obj.name = 'Updated'; } let x = 5; let y = {name: 'Original'}; modify(x, y); console.log(x); // Outputs 5 (primitive unchanged) console.log(y.name); // Outputs 'Updated' (object modified)
b

Write a java script to find the factorial of given number.

8 marks

Answer

The following JavaScript code calculates the factorial of a given number using a recursive approach.

function factorial(n) { if (n === 0 || n === 1) { return 1; } return n * factorial(n - 1); } let num = 5; console.log('Factorial of ' + num + ' is ' + factorial(num));

Alternatively, using an iterative approach:

function factorialIterative(n) { let result = 1; for (let i = 2; i <= n; i++) { result *= i; } return result; }
215 marks
a

What are the tools used in web site creation? Explain.

7 marks

Answer

Sign in to view the complete answer paper.

b

Discuss in detail about various built in objects of Java Script.

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Describe the structure of a typical Java program with an example.

7 marks

Answer

Sign in to view the complete answer paper.

b

What is a package? What do you understand from CLASSPATH environment variables?

8 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

How do you design and implement an interface? Explain.

7 marks

Answer

Sign in to view the complete answer paper.

b

How do we set priorities for threads? Describe the complete life cycle of a thread.

8 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Explain different types of JDBC drivers.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write the steps needed to connect to the database in java.

8 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Discuss about the highlighting features of java bean.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain about InetAddress class and URL class.

8 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

What is Servlet? Explain life cycle of a Servlet with a neat sketch.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write briefly about applet display methods.

8 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

What are the various features of XML? Discuss.

7 marks

Answer

Sign in to view the complete answer paper.

b

What are the standard protocols used in web service? Explain.

8 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of WEB PROGRAMMING from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech IT III I, February - 2022, R18.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in WEB PROGRAMMING

Loading Question Papers

Fetching data from database...