Posts

Programming assignment - Week 5

Programming assignment - Week 5  Solutions Note: There could be optimised ways to solve the problem, but the goal here is to solve it effectively. The most intuitive solution has been provided for clarity.

The Joy of Computing using Python Week-5

Quiz Week 5: Assignment 5 Solution 1.  Which of the following is the correct way to add data with key as CS101  and value as "Web Programming"  to a dictionary named courseData? ? Answer:   [Option 4]  courseData["CS101"] = "Web Programming" 2.  What is the probability of Monty opening the door with goat, given the hypothesis that you initially chose the door which has car ? Answer :   [Option 4] 1 3. Does transposing the magic square give us a new magic square ? Answer :   [Option 1] True         [Option 2]  (2**90) % 2 == 0         [Option 3]  3*((3**89) + 3 ) % 3 == 0         [Option 4]  (2**90 ) % len(doors) == 1 4.  Given that you have a sorted list of 1024 elemets, what is the maximum number of comparisons required to find the target element using binar...

Programming assignment - Week 4

Programming assignment - Week 4  Solutions Note: There could be optimised ways to solve the problem, but the goal here is to solve it effectively. The most intuitive solution has been provided for clarity.

The Joy of Computing using Python Week-4

Image
Quiz Week 4: Assignment 4 Solution

Programming assignment - Week 3

Programming assignment - Week 3  Solutions Note: There could be optimised ways to solve the problem, but the goal here is to solve it effectively. The most intuitive solution has been provided for clarity.

The Joy of Computing using Python - Week 3

Image
Quiz Week 3: Assignment 3 Solution

Programming assignment - Week 2

Programming assignment - Week 2  Solutions