0% found this document useful (0 votes)
100 views

Assessment Programs Python Model

The document contains 25 coding challenges covering HTML, Python, JavaScript, and various programming concepts like data structures, algorithms, functions, strings, dates, dictionaries, lists, and more. The challenges include tasks like form validation, sorting lists, checking for palindromes, calculating ages from dates of birth, summing dictionary values, removing duplicates, and more. Solutions would require using programming language syntax and features like functions, loops, conditionals, data types, and built-in methods.

Uploaded by

Sengottu Velu
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views

Assessment Programs Python Model

The document contains 25 coding challenges covering HTML, Python, JavaScript, and various programming concepts like data structures, algorithms, functions, strings, dates, dictionaries, lists, and more. The challenges include tasks like form validation, sorting lists, checking for palindromes, calculating ages from dates of birth, summing dictionary values, removing duplicates, and more. Solutions would require using programming language syntax and features like functions, loops, conditionals, data types, and built-in methods.

Uploaded by

Sengottu Velu
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Write a HTML page with the following fields and get input

SNO Name Address City Pincode DOB Phone Email

WHen the submit button is clicked the fields should be validated using Javascript
and error messages shown

If everything is right then display the contents using a dialog box.

2. Write a Python program to get input of 5 student details like ROllNO, Name, Age,
Marks City and then store the same as a list.

3. Sort the above list into descending order of Marks and display the same.

4. Input the date of birth of a person and display his age

5. Write a Python function that inputs a sequence of numbers and determines whether
all the numbers are different from each other.

6. Write a Python program to check whether the number is Prime or Not. Use a
function

7. Write a Python function to multiply all the numbers in a list

8. Write a Python program to reverse a string

9. Write a Python function that accepts a string and calculate the number of upper
case letters and lower case letters

10. Write a Python function that checks whether a passed string is palindrome or
not

11. Write a Python script to sort (ascending and descending) a dictionary by value

12. Write a Python program to sum all the items in a dictionary.

13. Write a Python program to remove duplicates from Dictionary.

14. Write a Python function to create and print a list where the values are square
of numbers between 1 and 30

15. Print the following pyramid

1
121
12321
1234321
123454321

16. Write a JavaScript program to print the contents of the current window

17. Write a JavaScript program to get the current date

18. Write a JavaScript program to change the capitalization of all letters in a


given string

19. Write a JavaScript function to check whether an `input` is a string or not


20. Write a JavaScript function to insert a string within a string at a particular
position

21. Write a JavaScript program to sort a list of elements minimum of 10

22. Write a JavaScript program which iterates the integers from 1 to 100.
But for multiples of three print "Three" instead of the number and for the
multiples of five print "Five".
For numbers which are multiples of both three and five print "ThreeFive"

23. Write a JavaScript program to construct the following pattern, using a nested
for loop.
*
* *
* * *
* * * *
* * * * *

24. Write a JavaScript function to input and compare dates


25. Write a JavaScript function to get the minimum date from an array of dates

You might also like