Infosys interview question

For python: I was asked what the slice() function does For C++: 3 abstractions For C: what's the difference between "=" and "=="