Skip to content
Sumita Arora Solutions
Join Our Community
Class 12 Projects
Solutions to Sumita Arora Assignment in Chapter 3.
[Type A] Chapter – 3 Class 12 CS – Sumita Arora Assignment | Q/A
[Type B] Chapter– 3 Class 12 CS – Sumita Arora Assignment | Q/A
[Type C]Q1. Write a function that takes the amount in dollars and converts it to rupees. Create a function in the void as well as a non-void form.
[Type C]Q2. Write a function to calculate the volume of a box with appropriate default values for its parameters. Your function should have the following input parameters: 1] Length of box 2] Width of box 3] Height of box
[Type C]Q3. Write a program to have the following functions: 1) A function that takes a number as argument and calculates cube for it. The function does not return a value. If there is no function in the function call, the function should calculate the cube of 2. 2) A function takes two char arguments and returns True if both arguments are equal otherwise False
[Type C]Q4. Write a function that receives two numbers and generates a random number from that range. Using this function, the main program should be able to print three numbers randomly.
[Type C]Q5. Write a function that receives two string arguments and checks if they are of the same length.
[Type C]Q6. Write a function named zzfhRoot() that receives two parameters x and n and returns nth root. e.g] x**(1/n) The default value of n is 2
[Type C]Q7. Write a function that takes a number n and then returns a randomly generated number having exactly n digits(not starting with zero) e.g] If n is 2 then the function can randomly return 10-99 but 07,02 are not valid two-digit numbers.
[Type C]Q8. Write a function that takes two numbers and returns the number that has a minimum of 1 digit. For example: If the number passed is 491 and 278, then the function will return 491 because it has got a minimum one’s digit out of two given numbers.
[Type C]Q9. Write a program that generates a series using a function that takes the first and last value of the series and then generates four terms that are equidistant. e.g] If two numbers passed are 1 and 7 then the function returns 1357
You cannot copy content of this page