# Tutor profile: Abhishek T.

## Questions

### Subject: Python Programming

How can we return multiple values from a function?

There are multiple ways to achieve this feat in Python, some of which are: 1. Using a tuple We can form a tuple with multiple variables like -- if a=5, b=9, c=10 a tuple if formed as (a,b,c) This tuple is then returned by the function. But the problem is with a large number of variables it's easy to forget which value is where. 2. Using a dictionary A sort of record notation is added to the tuples so that they can be remembered Formed as {"a":a, "b":b, "c":c}, it's then returned from the function. 3. Using a class We can return a specialized structure. We can define a class with multiple attributes, and return an object of that class. 4. Using a list We can form a list of multiple elements and return that list. For example :- a=5 a.append(6) a.append(67) return a

### Subject: Calculus

What is a Point of Inflexion? And how can we find that point given the equation of the curve?

A function which is continuous and differential has a point of inflexion (x , f(x)) at that point on the curve where the concavity of the curve changes from concave to convex or vice versa. Basically at that point the derivative of f(x), f'(x) reaches to its extremum. This point can be found out by getting out the values of x for which f'(x)=0 and f''(x)=0, the point common for both equations is a point of inflexion.

### Subject: C++ Programming

Explain how Standard Template Library (STL) can be used to implement shorter and powerful version of C++ codes.

There are 3 components in the Standard Template Library (STL) of C++. 1. Containers They represent a collection of objects of some type. Containers are inbuilt data storage elements, using which we do not need to implement different functionalities using node pointers just for the storage of data. Also there are different functions associated with them, which convert our code short. Besides the algorithms used in those functions is the best associated with that function. This makes our code powerful and fast. There are different containers like Stack, Queue, Map, Set etc. 2. Algorithms These are the functions that act on containers. They provide the means by which we perform initialization, sorting, searching, and transforming of the contents of containers. The algorithm associated with those functionalities are the best possible ones, hence the code becomes powerful. 3. Iterators These are used to traverse through the containers and use the corresponding data for different operations. Iterators in STL are so written, that they can work with containers of any datatype, hence they are very robust to use.

## Contact tutor

needs and Abhishek will reply soon.