AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
"Write a 5 question multiple choice quiz about any topic. It should track the user's score and tell them how they did on the quiz." (PYTHON)
`Hey,
Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries
Q 1 - What is output for −
raining'. find('z') ?
A - Type error
B - ' '
C - -1
D - Not found
Q 2 - What is output for following code −
y = [4, 5,1j] y.sort()
A - [1j,4,5]
B - [5,4,1j]
C - [4,5,1j]
D - Type Error
Q 3 - What is output of following code −
print('hijk'.partition('ab'))
A - ('hijk', 'cd', ' ')
B - ('hijk')
C - ('hijk', ' ', ' ')
D - Name error
Q 4 - What is output of following code −
def func(x, ans):
if(x==0):
return 0
else:
return func(x-1, x+ans)
print(func(2,0))
A - 0
B - 1
C - 2
D - 3
Q 5 - What command is used to shuffle a list ‘L’?
A - L.shuffle()
B - random.shufflelist(L)
C - shuffle(L)
D - random.Shuffle(L)
Kindly revert for any queries
Thanks.
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Think about a research topic you are interested in, and the topic should focus on the relationship between at least two variables, normally say, the effects (or impacts) of variable X (or X change) on variable Y. So first tell me what topic you will do, and write it specifically. Then imagine that you start to do the research, tell me what is the population, and how you will select a sample? Further, during the whole process, do you think...
python program
sample output
Problem 3 (Taking User Input) Write a function called userGuess(n) that takes an integer n as an argument. This function should display n to the user and prompt them to enter the number num that is the largest power of 2 less than or equal to n. Have your function return the user's input num (it will be used in the next problem) Problem 4 (Making a Game) Finally, create a main() function for your program....
In this assignment you are asked to write a python program to maintain the Student enrollment in to a class and points scored by him in a class. You need to do it by using a List of Tuples What you need to do? 1. You need to repeatedly display this menu to the user 1. Enroll into Class 2. Drop from Class 3. Calculate average of grades for a course 4. View all Students 5. Exit 2. Ask the...
Programming Assignment Objective Write a Java program that utilizes multiple classes. Write a Java program that utilizes inheritance in a practical manner. Problem: Quiz Bowl Your high school quiz bowl team has been losing its edge and needs to find a method to improve. Knowing that you are a savvy programmer, your coach asks you to write a program that the team members can use to hone their skills. Quiz Bowl questions come in three varieties: True/False Multiple Choice (variable...
QUESTION 4 In an effort to persuade customers to reduce their electricity consumption, special discounts have been offered for low consumption customers. In Florida, the EPA estimates that 70% of the residences have qualified for these discounts. If we randomly select four residences in Florida, what is the probability exactly two of the four will have qualified for the discounts? QUESTION 5 A quiz consists of 15 multiple choice questions. Each question has 5 choices, with exactly one correct choice....
4 In an effort to persuade customers to reduce their electricity consumption, special discounts have been offered for low consumption customers. In Florida, the EPA estimates that 70% of the residences have qualified for these discounts. If, instead, a sample of 20 residences is selected, what is the probability 12 or more will have qualified for the discounts? QUESTION 5 4 points Save A quiz consists of 15 multiple choice questions. Each question has 5 choices, with exactly one correct...
Your non-programmer friends have challenged your Java programming skills, and you are going to prove them wrong. Write a program that will play rock, paper, scissors against them, but since we are annoyed at this challenge, write it in such a way that it can never lose. However, it must be able to tie so that they dont get TOO suspicious. In your main, ask the user to enter their choice - rock, paper or scissors. Write a method that...
Part A: Quiz ApplicationIn this part, you are required to implement Quiz Application. Add 10 questions in your program of any domain with their answers. You many use strcmpi function to compare user answer with the saved answer. If the answer is correct/matched with the saved answer user score 1 point. Functionalities that need to be implemented in Quiz application are: -1. The user will be asked to enter the name and then asked questions one by one. 2. The...
Piggy back on the programming project one you completed in module 3. You will use some of those concepts here again. We will be building this project inside out, start individual quiz and use a for loop to repeat it three times for three students. In this program you will be required to write a python program that generates math quizzes for students in second grade. Your program should do the following Ask the student for their name Provide 3...
how to write a matlab program for the following question? Q: 1.Topic:"Automatic Quiz Grading" 2.The concept is to calculate the student's score in the way of computer scoring. 3.Student's answer (file name: a2.dat) 4.Standard answer (file name: a1.dat) 5. The number of questions are 20 6. all pairs Get +1 point, deduct one option for 1 point 7.calculate the student's grade