0% found this document useful (0 votes)
29 views4 pages

Overview of Scripting Languages

The document contains a model question paper for an Introduction to Scripting Languages course. It consists of 5 sections with 10 questions in total, with each question worth 14 marks. Students must answer 5 questions by selecting one from each section.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views4 pages

Overview of Scripting Languages

The document contains a model question paper for an Introduction to Scripting Languages course. It consists of 5 sections with 10 questions in total, with each question worth 14 marks. Students must answer 5 questions by selecting one from each section.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

R17

Code No: R17A01251


MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III [Link] I Semester Model Question Paper
Introduction to Scripting Languages
(IT)
Roll No

Time: 3 hours Max.


Marks: 70
Note: This question paper Consists of 5 Sections. Answer FIVE Questions, Choosing ONE
Question from each SECTION and each Question carries 14 marks.
*****
SECTION-I
1(a) Explain various built-in operators and pattern matching modifiers in Perl. [10M]
(b) What are the characteristics of Scripting Languages [4M]

OR
2(a) Define regular expression. Explain about Regular Expressions in Perl? [7M]
(b) List out the data types that Perl can handle? [7M]
SECTION-II
3(a) Explain any four Text Formatting Tags in HTML. [10M]
(b) Discuss about the advantages of java script [4M]
OR
4(a) What are Style Sheets? List down the ways of including style information in a [7M]
document.
(b) How scripting language is differentiated from HTML [7M]
SECTION-III
5(a) Explain the process of event handling in java script [7M]
(b) Give commands to execute a Python script [7M]
OR
6(a) Explain the importance of indentation in python with an example. [7M]
(b) Demonstrate the usage of frames with an example in java script [7M]
SECTION-IV
7(a) Explain Tuple Assignment with example. [7M]
(b) Can tuple be a return type. Justify your answer. [7M]
OR
8(a) How to merge two dictionaries? Give an example. [7M]
(b) When dictionary is used instead of a list? [7M]
SECTION-V
9 Explain in detail about Control flow structures [14M]
OR
10(a) Define fruitful functions in python. [7M]
(b) Define range () function and its syntax. [7M]
**********

Page 1 of 4
R17
Code No: R17A01251
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III [Link] I Semester Model Question Paper
Introduction to Scripting Languages
(IT)
Roll No

Time: 3 hours Max.


Marks: 70
Note: This question paper Consists of 5 Sections. Answer FIVE Questions, Choosing ONE
Question from each SECTION and each Question carries 14 marks.
*****
SECTION-I
1(a) Discuss the uses of Scripting Languages [10M]
(b) Explain the different types control statements available in Perl. Discuss about [4M]
them with examples.
OR
2(a) Explain about how to access, create and process an array with an example in Perl. [7M]
(b) What is “scalar” context, “list” context, “void” context? Would you be able to [7M]
write an example to demonstrate how they differ?
SECTION-II
3(a) Explain how to include an image in an HTML page with the help of the tags. [7M]
(b) List out the uses of style sheets and font characteristics permitted in CSS [7M]
OR
4(a) Discuss about java script control structures [14M]

(b) Write an example program to print Fibonacci series with the help of functions in
javascript
SECTION-III
5(a) List The Various Dialog Boxes In Java Script [7M]
(b) How Validation Is Done In Javascript. Give An Example. [7M]
OR
6(a) How to take user defined input in python with an example program. [7M]
(b) List and explain the data types in python [7M]
SECTION-IV
7 Write code snippets in Python to perform the following a. Accessing Elements of [14M]
a Tuple b. Modifying Elements of a Tuple c. Deleting Elements of a Tuple
OR
8 Explain the following: a. List Slicing b. List Accessing Methods c. List Cloning [14M]
SECTION-V
9(a) Discuss the usage of break, continue, pass statements in python [14M]
(b) How many ways are there in python to pass arguments to a function
OR
10(a) Explain the concept of scope of variables: Global and Local in python [7M]
(b) Explain how python handles variable length arguments [7M]
**********

Page 2 of 4
R17
Code No: R17A01251
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III [Link] I Semester Model Question Paper
Introduction to Scripting Languages
(IT)
Roll No

Time: 3 hours Max.


Marks: 70
Note: This question paper Consists of 5 Sections. Answer FIVE Questions, Choosing ONE
Question from each SECTION and each Question carries 14 marks.
*****
SECTION-I
1(a) What is a Subroutine in PERL? What is its purpose? Give an example. [8M]
(b) How can create hashes, manipulate hashes and invert a hash in Perl. [6M]

OR
2(a) Differentiate between Programs and Scripts [7M]
(b) Is scripting is useful in terms of Web. If so, how it is useful. [7M]
SECTION-II
3(a) Develop the web page for employee management system and validate all the [14M]
fields using java script.
OR
4(a) Write a JavaScript function to find the average of the individual numbers in a [7M]
given digit.
(b) Explain about cascading style sheets in detail. i. Style sheet rules ii. Styling a [7M]
page iii. Linking style sheets iv. Inline style sheets.
SECTION-III
5(a) Design a web page with a text box (username) where the user can enter a name [14M]
and another text box (ID) where the user enter an only four digit [Link] and a
button “validate”. Validate the entered username and ID field for the following
using java script. i. Both the fields should not be empty ii. Name field should
have alphabets iii. ID field should have numeric.
OR
6(a) In python, single & and double quoted strings are the same? What is the purpose [7M]
of triple quotes in multiline python program?
(b) What is the need of Python programming? Discuss the python’s history & [7M]
applications of python.
SECTION-IV
7(a) Explain the order of evaluations of expressions in python. [7M]
(b) Explain about operators in Python [7M]
OR
8(a) Write about sets & dictionaries with examples. [7M]
(b) Why tuples are used. Explain tuples comparing with lists [7M]
SECTION-V
9(a) Write about the functions that return a result in python [7M]
(b) Write a python function to check whether the given string is palindrome or not. [7M]
OR
10 Discuss Function arguments in Python [14M]
**********

Page 3 of 4
R17
Code No: R17A01251
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III [Link] I Semester Model Question Paper
Introduction to Scripting Languages
(IT)
Roll No

Time: 3 hours Max.


Marks: 70
Note: This question paper Consists of 5 Sections. Answer FIVE Questions, Choosing ONE
Question from each SECTION and each Question carries 14 marks.
*****
SECTION-I
1(a) Discuss the concept of Web Scripting [5M]
(b) Explain how regular expressions are evaluated in PERL. [13M]

OR
2(a) In how many ways, scripting is useful now. [7M]
(b) How to evaluate scalar expressions in PERL. [7M]
SECTION-II
3(a) Explain any 5 advanced HTML tags. [10M]
(b) Discuss about objects in JavaScript [4M]
OR
4(a) Explain importance of Frame tag in HTML. [7M]

(b) Explain JavaScript Object: Window, Document. [7M]


SECTION-III
5 Explain in detail about built-in objects in JavaScript. [14M]
OR
6(a) What are the advantages of Python. How to run python scripts. [7M]
(b) Discuss about input-output functions in python. [7M]
SECTION-IV
7 Explain about operators in python [14M]
OR
8(a) Differentiate between dictionaries and sequences [7M]
(b) What is a set in python. Discuss its methods. [7M]
SECTION-V
9(a) How to call functions in python. [7M]
(b) Explain the concept of argument passing in python. [7M]

10(a) Write a python script to find the reverse of a given number [7M]
(b) Write a python script to split the array and add the first part at the end. [7M]
**********

Page 4 of 4

Common questions

Powered by AI

Style sheets in web development, specifically CSS, play a crucial role in defining the aesthetic presentation of web pages independently from their content. They allow developers to apply consistent styling rules across multiple pages, reducing redundancy and enforcing uniformity. Style sheets can be incorporated into HTML documents in several ways, including linked external files, embedded within the <style> tag, or applied inline via the ‘style’ attribute directly within HTML tags. This flexibility enables dynamic and responsive web design .

Control flow structures, such as loops (for, while), conditionals (if-else), and switches, enable scripting languages to introduce decision-making capabilities and repeated execution of code blocks, which simplifies tasks that would be cumbersome through straightforward sequential execution. These structures allow dynamic branching and conditional logic, making scripts versatile and adaptive to various scenarios. They facilitate automation and complex data handling, distinctly enhancing the efficiency and flexibility of scripts compared to sequential-only execution .

Variable scope in Python determines the accessibility of a variable within different parts of a program. Local scope refers to variables declared inside functions, accessible only within the function block. Global scope covers variables declared outside any function, accessible throughout the module. When a function declares a variable with the same name as a global variable, the local scope takes precedence within the function unless explicitly declared global using the 'global' keyword, allowing functions to modify global variables .

Python uses indentation to define blocks of code, such as loops and functions. This is significant because it replaces the use of braces ({}) that is common in other programming languages to define scope. Proper indentation is crucial in Python as it defines the logical structure of the program. Incorrect indentation can lead to syntax errors or unexpected behavior. An example of this is using a for loop where all iterated statements are indented to show they belong to the loop block .

Python sets are unordered collections of unique elements, distinguishing them from lists or tuples that allow duplicate values and have ordered indices. Typical methods for sets include add(), remove(), union(), intersection(), and difference(), which support mathematical set operations. Sets are used in scenarios where uniqueness and membership checks are crucial, such as filtering duplicates, performing mathematical operations, and efficiently handling large collections of items in computations .

Scripting languages are typically interpreted rather than compiled, which allows for rapid development and execution of programs. They are often used for automating tasks and manipulating data within a program. Unlike traditional programming languages that are used to build standalone applications, scripting languages work alongside other systems to automate processes, manage system configurations, or gluing together other applications. They are generally easier to learn and use, have simpler syntax, and support dynamic typing .

Tuples in Python are used to store fixed collections of items where immutability is desired, meaning they cannot be altered after creation. This makes tuples ideal for representing structured data like coordinates, RGB values, where consistency in data elements is important. Unlike lists, tuples are faster due to their immutability. Lists, on the other hand, are mutable, which means they can be altered in terms of size and contents, making them more suitable for data that might change over time .

Python primarily uses 'pass by object reference', meaning functions receive a reference to (and can modify) the same object in the memory. However, unlike traditional 'pass by reference' conventions, Python does not allow functions to rebind the original variables outside their scope. This is different from languages like C++ where both 'pass by value' and 'pass by reference' are used explicitly. Python’s method affects function execution by providing flexibility with mutable and immutable types and ensuring clarity in how data is manipulated within functions .

In Perl, context determines how an expression or operation is interpreted and executed. The 'void' context occurs when the result of an expression is not used or assigned. In 'scalar' context, expressions are expected to return a single value, such as a number or string. 'List' context requires a sequence of values, such as arrays or lists. This affects execution because Perl automatically adjusts how expressions are processed depending on expected results, which can lead to differing outputs when the same expressions are evaluated in different contexts .

Regular expressions in Perl provide a powerful tool for text processing by allowing patterns to be defined and matched within strings. They enable users to identify and manipulate text based on patterns, supporting tasks like validation, searching, and data extraction. Regular expressions make it easier to handle complex string processing requirements succinctly and efficiently by leveraging Perl’s robust pattern matching capabilities .

You might also like