Posted on Leave a comment

Python fundamentals and data handling test

Related image
  1. How are string,integer and float data are represented in python?Give examples to support your answer.
  2. Which argument of print() would you set for changing the default separator and printing the following line in current line.
  3. What is dynamic typing in python? Give an example to dynamic typing?
  4. What is undefined variable in python ? Give an example?
  5. What are opeartors? What is their function? Give example of some unary and binary operators?
  6. Write a program to compute simple interest and compound interest?
  7. Differentiate between (333/222)**2 and (333.0/222)**2?
  8. write an expression that uses 3 arithmetic operators with integer literals and produces result as 99?
  9. Write a program to take a 3 digit number and then print the reversed number?i.e. if input is 876 it should print 678
  10. Write a program to take two inputs for day, month and calculate which day of the year, the given date is. For simplicity take 30 days for all months.for example if you give input as Day3, Month2 then it should print “Day of the year :33”

ALL THE BEST !!!!

Leave a Reply