JNTU
JNTU B.Tech III WEB TECHNOLOGIES Previous Question Paper (March - 2024 - R16)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
Write the syntax of do-while loop in PHP and state its functionality.
Answer
The syntax of the do-while loop in PHP is:
// code to be executed
} while (condition);
Functionality: The do-while loop is similar to the while loop, but it always executes the block of code at least once before checking the condition. The code inside the loop is executed, and then the condition is evaluated. If the condition is true, the loop continues to execute. If the condition is false, the loop terminates.
It is useful when you want to perform an action and then repeat it based on a condition, ensuring the action happens at least one time.
Differentiate between text files and binary files.
Answer
The differentiation between text files and binary files is as follows:
| Feature | Text Files | Binary Files |
|---|---|---|
| Content | Store data as a sequence of characters, typically human-readable. Examples include .txt, .html, .css, .js files. | Store data in its raw, unprocessed binary format. This data is not directly human-readable and can represent images, audio, executables, etc. Examples include .jpg, .mp3, .exe files. |
| Encoding | Characters are encoded using standards like ASCII or UTF-8. Special characters like newline ( ) and carriage return ( ) have specific meanings. | No specific character encoding is applied. Data is stored as raw bytes. |
| Processing | Can be opened and edited with simple text editors. Reading and writing involve character-by-character or line-by-line operations. Conversions between character representations and binary data may occur implicitly. | Require specific applications or libraries to interpret and process the data correctly. Reading and writing involve byte-by-byte operations. |
| File Size | Generally larger than binary files for the same amount of raw data due to character encoding overhead. | More compact as data is stored in its native binary form. |
| Portability | Can sometimes have issues with line ending conventions ( vs ) across different operating systems. | Generally more portable across different systems as byte sequences are preserved. |
What is DTD?
Answer
Sign in to view the complete answer paper.
What is the role of DOM?
Answer
Sign in to view the complete answer paper.
What are cookies?
Answer
Sign in to view the complete answer paper.
What is a servlet? What is the need of a servlet?
Answer
Sign in to view the complete answer paper.
Write the advantages of JSP over Servlet.
Answer
Sign in to view the complete answer paper.
Write about JSP Include Directive and its advantage.
Answer
Sign in to view the complete answer paper.
Write down the scope of the local variables and global variables in Java script.
Answer
Sign in to view the complete answer paper.
Write about javaScript functions.
Answer
Sign in to view the complete answer paper.
Part B
Explain PHP Array operations with suitable examples.
Answer
Sign in to view the complete answer paper.
Write about PHP readfile() and feof().
Answer
Sign in to view the complete answer paper.
How do you achieve passing arguments by reference in PHP? Explain.
Answer
Sign in to view the complete answer paper.
What is a PHP Session? How to start and print all session variable in PHP?
Answer
Sign in to view the complete answer paper.
Explain XML Schemas in detail.
Answer
Sign in to view the complete answer paper.
Explain the basic tags and their purpose in XHTML.
Answer
Sign in to view the complete answer paper.
Explain about SAX parsers in Java.
Answer
Sign in to view the complete answer paper.
Write about XML elements and attributes.
Answer
Sign in to view the complete answer paper.
Explain how Servlet works?
Answer
Sign in to view the complete answer paper.
Explain the concept of handling Http Request and Responses.
Answer
Sign in to view the complete answer paper.
Write a java code to connect to database using JDBC.
Answer
Sign in to view the complete answer paper.
What is CGI? Draw its architecture diagram. Write the disadvantages of CGI.
Answer
Sign in to view the complete answer paper.
Write about JSP Scripting elements.
Answer
Sign in to view the complete answer paper.
Explain JSP pagecontext and page implicit objects.
Answer
Sign in to view the complete answer paper.
Explain the steps in connecting to database using JSP.
Answer
Sign in to view the complete answer paper.
What is the use of beans in JSP?
Answer
Sign in to view the complete answer paper.
Write a java script code to validate a simple login form.
Answer
Sign in to view the complete answer paper.
How to define a function and call it in JavaScript.
Answer
Sign in to view the complete answer paper.
What is AJAX? How does it work? Write the steps to create Ajax example.
Answer
Sign in to view the complete answer paper.