0 of 6 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Your time:
Time has elapsed
Good work attempting the practice problems!
Please leave a comment below if you require any clarifications or send an email to [email protected] if you have any comments about this quiz.
You have completed this lesson!
Write a function that take the first name and last name as arguments and prints them on the screen. The last name has a default value of “Smith”?
This response will be reviewed and graded after submission.
Write a summation function that finds the sum of numbers passed as arguments. This should take 4 arguments but should not fail if only 2 arguments are provided. In other words, if the third and fourth arguments are empty then the function should still work.
This response will be reviewed and graded after submission.
Write a python program that finds the greatest among three numbers taking one number as default argument? Have the default argument value as 0 (zero).
This response will be reviewed and graded after submission.
Write a python program that finds the LCM of two numbers taking one number as default argument?
Hint: LCM = lowest common multiple.
It is a number that greater than both the numbers and exactly divisible by both numbers.
Hint2: Use a for-loop / while loop to keep incrementing a value until it is exactly divisible by two numbers.
Hint3: Once you find the correct number you can use “break” statement to exit the for loop.
This response will be reviewed and graded after submission.
Write a python program that implements a function to find the area of a circle taking radius as arguments and the value of pi will be taken as default argument?
Area of circle = pi * r * r, where r = radius, default value of pi = 3.14.
This response will be reviewed and graded after submission.
Write a python program that takes the name of a person and his title (Mr. / Mrs.) as argument and then displays them on the screen. In case the title is not provided, the function must print “Mr./Mrs.” before the name?
This response will be reviewed and graded after submission.