# NPTEL The Joy of Computing using Python Assignment 3 Answers 2022 NPTEL The Joy of Computing using Python Assignment 3 Answers:- Hello students in this article we are going to share NPTEL The Joy of Computing using Python assignment week 3 answers. All the Answers provided below to help the students as a reference, You must submit your assignment at your own knowledge.

Below you can find NPTEL The Joy of Computing using Python Assignment 3 Answers

### NPTEL The Joy of Computing using Python Assignment 3 Answers 2022:-

1. Which of the following statements describes the challenge ‘Fizz Buzz’?

a. Multiples of 3 should print buzz, multiples of 5 should print fizz, and multiples of 3 and 5 should print fizz buzz.
b. Multiples of 3 should print fizz, multiples of 5 should print buzz, and multiples of 3 or 5 should print fizz buzz.
c. Multiples of 3 should print fizz, multiples of 5 should print buzz, and multiples of 3 and 5 should print fizz buzz.
d. Multiples of 3 should print buzz, multiples of 5 should print fizz, and multiples of 3 and 5 should print fizz buzz.

`Answer:- c`

2. random.randint(1,100) will generate a number _________.(assume random is imported)

a. Between 1,100 both inclusive.
b. Between 1,100 both exclusive.
c. Between 1,100 only 100 inclusive.
d. Between 1,100 only 1 inclusive.

`Answer:- a`

3. Consider a string of 20 digits initialized with all zeros as a DNA sequence, in the context of lectures, updating a random ‘zero’ as ‘one’ implies ___.

a. Updating a random number
b. Evolution
d. Increase

`Answer:- b`

4. Which of the following method is correct to add an element at a specific position?

a. insert()
c. append()
d. index()

`Answer:- a`

5. What will be the output of the following program?

a. Python, C++, Java, Kotlin
b. 0, 1, 2, 3
c. 0, 1, 2, 3, 4
d. Python, C++, Java

`Answer:- b`

6. Which of the following methods is correct to count the number of instances on an element in a list?

a. total()
b. sum()
c. count()
d. numberof()

`Answer:- c`

7. In the Fizz Buzz game, What will be the output if the number is 285?

a. Fizz
b. Buzz
c. Fizz Buzz
d. No output

`Answer:- c`

8. Which of the following keywords is used to define a function in python?

a. func
b. function
c. define function
d. def

`Answer:- d`

9. Which of the following statements are true about crowd-sourcing?

`Answer:- b,c`

10. Which of the following commands is not correct in order to generate a graph?

`Answer:- d`

For Internship and job updates:- Visit

Disclaimer: We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

if you have any suggestions then comment below or contact us at [email protected]