The document lists various programming tasks that involve JavaScript, PHP, HTML, and ReactJS. Tasks include array manipulation, string reversal, prime number generation, form handling, and database operations such as insertion, display, and deletion. Each task specifies the expected functionality and the technologies to be used for implementation.
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 ratings0% found this document useful (0 votes)
5 views
List of Programs-For-Internal-Lab-Exam
The document lists various programming tasks that involve JavaScript, PHP, HTML, and ReactJS. Tasks include array manipulation, string reversal, prime number generation, form handling, and database operations such as insertion, display, and deletion. Each task specifies the expected functionality and the technologies to be used for implementation.
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
You are on page 1/ 2
List of Programs
1. Find the sum of all elements/numbers of a given array using
javscript. Read the number of elements from the user and find the sum. 2. Reverse a given string using javascript (don’t use predefined string functions) 3. Generate the first N prime numbers using javscript. 4. Create an html page to change the background color for every click of a button using Java script. 5. Read the age of a person through a textbox and display his age group (Child/Teenage/Young/Senior citizen) using javscript 6. Create simple calculator with HTML and JavaScript with functions. Read the inputs through text boxes and keep four different buttons to perform the operations such as add, div, sub, mul, etc. 7. Develop a webpage with HTML and Java Script to read name and marks of five subjects obtained for that particular student using forms. Further, it should compute the Grade and output the user. 8. Write a PHP function that checks whether a string is all lowercase or not. 9. Write a PHP script that checks whether a given string S1 present another string S2. 10. Write a PHP script to remove nonnumeric characters from the given string (Retain digits, comma and dot) 11. Write a PHP script to remove all characters from a string except a-z A-Z 0-9 or " "(space character). 12. Create Calculator class in PHP with required data and functions such a way that it will accept two values as arguments, then add them, subtract them, multiply them together, or divide them on request. (use forms to send data to the PHP. You can use either Get or Post) 13. Consider a database table having table name as “user” (Database name: mydb) with columns id,fname,lname and age. Columns id, age are integers where as fname and lname are varchar. Write a program to insert the data using using PHP. The data should be read using the page “index.html” which has form. Upon clicking submit button the data should be sent to page “process.php” where the data should be read and inserted into mysql database. 14. Consider a database table having table name as “user” (Database name: mydb) with columns id,fname,lname and age. Columns id, age are integers where as fname and lname are varchar. Write a program to display the data of a user based on the id entered. The id of the user should be read using a textbox in “index.html” . Upon clicking submit button the data should be sent to page “process.php”. process.php should read the id entered and have to display the data of the user.
15. Consider a database table having table name as “user” (Database
name: mydb) with columns id,fname,lname and age. Columns id, age are integers where as fname and lname are varchar. Write a program to delete the data from “user” table based on the id entered. The user id should be read using a textbox in “index.html” which has form. Upon clicking submit button the id entered by the user should be sent to page “process.php” where it should delete the data of the corresponding id from the table “user”. 16. Design the User interface shown below using Reactjs