School of Information Technology and Engineering
Fall Semester 24-25
ITA3007 – Open Source Programming Lab
CYCLE SHEET - III
1) Write a Ruby program to print even numbers from 1 to 10
2) Write a PERL code to calculate the area of circle using subroutine.
3) Write a PERL code to find the sum of the elements of an array.
4) Write a Python program to replace the last element in a list with
another list.
Sample data : [1, 3, 5, 7, 9, 10], [2, 4, 6, 8]
Expected Output: [1, 3, 5, 7, 9, 2, 4, 6, 8]
5) Write a Python Program to Find the Largest Among Three Numbers
6) Write a Python Program to Check whether the given number is
Armstrong or not using function.
7) Write a Python program to get the Fibonacci series between 0 and 50.
8) Write a Ruby program to compute the sum of the two integers, if the two
values are equal return double their sum otherwise return their sum.
9) Write a Ruby program to check two temperatures and return true if one is
less than 0 and the other is greater than 100.
10) Write a Ruby program to create a new string which is n copies of a
given string where n is a non-negative integer.