NPTEL Programming Data Structures And Algorithms Using Python Assignment 1 Answers 2022

NPTEL Programming Data Structures And Algorithms Using Python Assignment 1

NPTEL Programming Data Structures And Algorithms Using Python ASSIGNMENT 1 Answers:- Hello students in this article we are going to share NPTEL Programming Data Structures And Algorithms Using Python assignment week 1 answers. All the Answers provided below to help the students as a reference, You must submit your assignment at your own knowledge.

About Programming Data Structures And Algorithms Using Python Course:-

This course is an introduction to programming and problem solving in Python.  It does not assume any prior knowledge of programming.  Using some motivating examples, the course quickly builds up basic concepts such as conditionals, loops, functions, lists, strings and tuples.  It goes on to cover searching and sorting algorithms, dynamic programming and backtracking, as well as topics such as exception handling and using files.  As far as data structures are concerned, the course covers Python dictionaries as well as classes and objects for defining user defined datatypes such as linked lists and binary search trees.

Criteria to get Certificate:-

This course is a week 12 course the best of 8 out 12 assignments marks will be calculated for final result.

Below are mentioned criteria for final result

Average assignment score = 25% of average of best 6 assignments out of the total 8 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

Below you can find NPTEL Programming Data Structures And Algorithms Using Python Assignment 1 Answers

Assignment No.Answers
Programming Data Structures And Algorithms Using Python Assignment 1 Click Here
Programming Data Structures And Algorithms Using Python Assignment 2 Click Here
Programming Data Structures And Algorithms Using Python Assignment 3 Click Here
Programming Data Structures And Algorithms Using Python Assignment 4 Click Here
Programming Data Structures And Algorithms Using Python Assignment 5 Click Here
Programming Data Structures And Algorithms Using Python Assignment 6 Click Here
Programming Data Structures And Algorithms Using Python Assignment 7 Click Here
Programming Data Structures And Algorithms Using Python Assignment 8 Click Here

NPTEL Programming Data Structures And Algorithms Using Python Assignment 1 Answers 2022:-

Q1. What does h(27993) return for the following function definition?

def h(x):
    (d,n) = (1,0)
    while d <= x:
        (d,n) = (d*3,n+1)
    return(n)

Answers:- 10

Q2. What is g(60) – g(48), given the definition of g below?

def g(n): 
    s=0
    for i in range(2,n):
        if n%i == 0:
           s = s+1
    return(s)

Answers:- 2

Q3. Consider the following function f.

The function f(n) given above returns True for a positive number n if and only if:

def f(n): 
    s=0
    for i in range(1,n+1):
        if n//i == i and n%i == 0:
           s = 1
    return(s%2 == 1)

Answers:- c

Next Week Assignment Answers

quizxp telegram

Q4. Consider the following function foo.

def foo(m):
    if m == 0:
      return(0)
    else:
      return(m+foo(m-1))

Answers:- 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]

If you found this article Interesting and helpful, don’t forget to share it with your friends to get this information.