16 solutions available
Question 1(a) What will be the output produced by following code fragments ?(i)a, b = 2, 3 c, b = a, c + 1 print a, b, c(ii)x, y = 2, 6 x, y = y, x...
Question 2A bank account contains ₹10,000 and earns interest at the rate of 5 percent per year. The interest is added to the account. After one year...
Question 3(i)What will be the output produced by following code fragment ?X = 10 X = X + 10 X = X - 5 print X X, Y = X - 2, 22 print X, Y
Question 3(ii)What will be the output produced by following code fragment ?first = 2 second = 3 third = first * second print first, second, third...
Question 3(iii)What will be the output produced by following code fragment ?side = int(raw_input('side')) #side given as 7 area = side * side print...
Question 4What are data types ? How are they important ?
Question 5Write instructions to get the following result :Math is Fun so don't be resistant Just learn the rules, the rules are consistent And most...
Question 6How many integer types are supported by Python ? Name them.
Question 7Differentiate between plain integer and long integer.
Question 8Write instructions in interactive mode for the following :(i) to display sum of 8, 9.0, 2 * 3(ii) to print sum of 8, 9.0, 2 * 3
Question 9Write a program that generates the following output :5 10 9 Assign value 5 to a variable using assignment operator (=). Multiply it with 2...
Question 10Write a Python program that accepts radius of a circle and prints its area.
Question 11Write Python program that accepts marks in 5 subjects and outputs average marks.
Question 12Write a program to read a number n and print n2, n3 and n4.
Question 13Write a program to compute simple interest and compound interest.
Question 14Write a program to read details like name, class, age of a student and then print the details firstly in same line and then in separate...