0 of 4 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!
For the sake of simplicity, assume that a hen produces 3 chicks every year that turn into full grown hens by the end of the year. So if you’re starting with 1 hen you end up with 4 hens by the end of the year.
Formula: If you start with the number hens_start then after number_years of years the total number of hens = hens_start * (4 ** number_years)
Write a program that considers the starting number of hens as 4, calculates the total number of hens that one would have after 5 years and displays this output on the screen.
This response will be reviewed and graded after submission.
Write a program in python that accepts the marks scored in 4 exams (Math, Chemistry, English, Physics) and prints the average.
This response will be reviewed and graded after submission.
If you distribute 10 bottles of wine among 3 people equally, then how many would you have remaining? Write a python program that performs floor division on 10 and 3 and displays the result on the screen.
This response will be reviewed and graded after submission.
Write a program that divides 100 coins among 10 pirates. Store the result in a variable. Can you guess what will be the type of this variable? Print the result and the variable type on the screen.
This response will be reviewed and graded after submission.