JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA IV SCRIPTING LANGUAGES Previous Question Paper (August - 2017 - R13)
Note: This question paper contains two parts A and B. Part A is compulsory which carries 20 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 8 marks and may have a, b, c as sub questions.
Part A
Differentiate between Scripting and Programming language with example.
Answer
Programming languages are typically compiled into machine code before execution, offering high performance and direct hardware control (e.g., C++, Java). Scripting languages are usually interpreted line-by-line at runtime, prioritizing ease of development and flexibility over raw execution speed (e.g., Python, JavaScript).
Explain the control structures in PHP.
Answer
PHP control structures manage the flow of execution based on conditions or loops. Key structures include:
- Conditional Statements: if, else, elseif, and switch allow code to execute based on specific boolean conditions.
- Looping Statements: while, do-while, for, and foreach allow blocks of code to repeat until a condition is met or for every element in an array.
- Jump Statements: break, continue, and return modify the flow within loops or functions.
Mention the various server side programming languages.
Answer
Sign in to view the complete answer paper.
Why visual tool kits are used? Give an example.
Answer
Sign in to view the complete answer paper.
Define a function in python with its syntax.
Answer
Sign in to view the complete answer paper.
Part B
Explain the basic concepts of scripting languages.
Answer
Sign in to view the complete answer paper.
Discuss the Scalar expressions in PERL with examples.
Answer
Sign in to view the complete answer paper.
Explain how PERL is interfaced with operating system.
Answer
Sign in to view the complete answer paper.
Illustrate how PHP code is embedded in web pages with an example.
Answer
Sign in to view the complete answer paper.
Briefly explain how PHP is used for authentication with an example.
Answer
Sign in to view the complete answer paper.
Write a snippet of code for sending email using PHP. Explain its working.
Answer
Sign in to view the complete answer paper.
Explain the basic concepts of TCL. Why TCL is used?
Answer
Sign in to view the complete answer paper.
Why tk is used? Explain tk with an example.
Answer
Sign in to view the complete answer paper.
Distinguish between Modules and Built-in functions in python. Explain with examples.
Answer
Sign in to view the complete answer paper.
Discuss web application framework in python in detail.
Answer
Sign in to view the complete answer paper.