# NPTEL The Joy of Computing using Python Assignment 4 Answers 2022 NPTEL The Joy of Computing using Python Assignment 4 Answers:- Hello students in this article we are going to share NPTEL The Joy of Computing using Python assignment week 4 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 4 Answers

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

1. Which of the following statements are true regarding the Magic Squares? (N = Number of rows or columns)

a. A Magic Square is always a square matrix.
b. A Magic Square can or cannot be a square matrix.
c. The Sum of each row and each column is N(N+1)/2
d. The Sum of each row and each column is N(N2 +1)/2.

`Answer:- a, d`

2. What will be the output of the following code?

a. This is a sentence.
b. Error
c. No output
d. The program will not run

`Answer:- c`

3. A perfect number is a number in which the sum of its proper divisors is equal to that number. For example, 6 is a perfect number as the sum of its divisors 1,2,3 is equal to 6. Which function returns True if the number is perfect?

`Answer:- a`

4. Suppose there is a movie with 3 letters, how many combinations of names are possible?

a. 26
b. 676
c. 17576
d. 456976

`Answer:- c`

5. What are the possible outputs of the following program?

a. Any number in the range between 0,4 (Both inclusive).
b. Any number in the range between 1,4 (Both inclusive).
c. Any number in the range between 0,5 (Both inclusive).
d. Any number in the range between 1,5 (Both inclusive).

`Answer:- a`

6. Birthday Paradox can be simulated with approximately __________ people.

a. 365
b. 100
c. 40
d. 20

`Answer:- d`

7. What is the command to print the last result of the ipython console?

a. ‘’
b. –
c. _
d. \\

`Answer:-  c`

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

a. Passenger, Starwars
b. spiderman, jumanji
c. spiderman, jumanji, Passenger, Starwars?
d. spiderman, Starwars

`Answer:- b`

9. In the ‘Dobble Game’, if there are 8 objects on 1 card and 10 objects on another, how many comparisons are possible?

a. 8
b. 10
c. 18
d. 80

`Answer:- d`

10. What will be the output of the following code?

a. Display the number of consonants and name of the movie.
b. Display the number of letters and name of the movie.
c. Display the number of vowels and name of the movie.
d. Display the number of special characters and name of the movie.

`Answer:- c`

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]