1. What will be the value printed to the console for the given C code snippet? #include void function(int arr[], int size) { for (int i = 0; i < size; i++) { arr[i] = 2; } } int main() { int arr[] = {1, 2, 3, 4, 5}; function(arr, 5); for (int i = 0; i < 5; i++) { printf("%d", arr[i]); } return 0; }
2. What is POM and why is it used?
3. Which data structure would you use to find the topper of a college?
4. What do you know about serialization?