0% found this document useful (0 votes)
17 views2 pages

SL Lab Programs

Uploaded by

pavanrocks997
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

SL Lab Programs

Uploaded by

pavanrocks997
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

R.V.R & J.C.

College of Engineering (Autonomous)

Department of CSE (Data Science)

B .Tech – IV Semester [Second Year]-Scripting Languages (Skill Oriented Course)- CDSL2

1. Explain The Following File Commands, Directory Commands, Terminal Commands,


Help Commands, Information Commands, Unix Filterers, And File Permissions
Commands.
2. Write a shell program to calculate the Factorial of a Number.
3. Write a shell program to find
a. Prime or not
b. Perfect or not
c. Strong or not
d. Armstrong or not
e. Palindrome or not
4. a) Write a Perl script to find the mean, variance and standard deviation.

b) Write a Perl script to find the maximum and minimum elements in an array using
Subroutines.

5. a)Create a Perl script that reads a password from user input and checks its strength based
on the following criteria:

 At least 8 characters long

 Contains at least one uppercase letter

 Contains at least one lowercase letter

 Contains at least one digit

Print "Strong password" if it meets all criteria, otherwise print "Weak


password".
b) Write a Perl script that reads a date in the format "YYYY-MM-DD" from user input
and validates if it matches the given pattern. Print "Valid date" if it matches, otherwise
print "Invalid date".

c) Write a Perl script that reads a mobile number in the format "XXX-XXX-XXXX"
from user input and validates if it matches the given pattern. Print "Valid number" if it
matches, otherwise print "Invalid number".

6. Write a Perl script to extract the following data using regular expressions for multiple
instances.
a. Phone number
b. Date of birth
c. Special characters
d. E-mail id
7. a) Write a java Script to calculate xy using recursion.
b) Write a java Script to display Fibonacci series using recursion.
8. Create JavaScript to check the following fields on the registration page.
a. First Name (Name should contains alphabets and the length should not be less
than 6 characters).
b. Password (Password should not be less than 6 characters length).
c. E-mail id (should not contain any invalid and must follow the standard pattern
hello@[Link])
d. Mobile Number (Phone number should contain 10 digits only).
9. Create and demonstrate JavaScript using pop-up boxes and functions for the problems
listed below:
Input: A number n obtained using prompt
Output: A multiplication table of numbers from 1 to 10 of n using alert
Input: A number n obtained using prompt and add another number using confirm
Output: Sum of the entire n numbers using alert
10. Write a PHP Script to find out the Sum of the Individual Digits.
11. Write a PHP Script to sort the elements of the array.
12. Write a PHP Script to remove duplicates of given array.

You might also like