Add office photos
Employer?
Claim Account for FREE

MediaTek India Technology

3.9
based on 94 Reviews
Filter interviews by

Sri Srinivasa Multispeciality Hospital Interview Questions and Answers

Updated 26 May 2024

Q1. Write code to insert a node to the middle of linked list

Ans.

Insert a node to the middle of a linked list

  • Find the middle node using slow and fast pointers

  • Create a new node with the data to be inserted

  • Adjust the pointers to insert the new node in the middle

Add your answer

Q2. What is volatile and extern keywords in C ? What are local and external linkages ? What are SW and HW interrupts ? What are the different scheduling algorithms ?

Ans.

Volatile and extern are keywords in C for memory management. Local and external linkages determine scope. SW and HW interrupts handle events. Different scheduling algorithms manage task priorities.

  • Volatile keyword is used to indicate that a variable may be changed unexpectedly, typically by hardware. Example: volatile int x;

  • Extern keyword is used to declare a variable that is defined in another file. Example: extern int y;

  • Local linkage restricts the scope of a variable to the...read more

Add your answer

Q3. C Coding Question addition deletion of link list

Ans.

Addition and deletion operations in a linked list using C coding

  • Use a struct to define the linked list node

  • For addition, allocate memory for new node, update pointers accordingly

  • For deletion, update pointers to skip the node to be deleted

Add your answer

Q4. Delete duplicate elements in a sorted singly linked list

Ans.

Use two pointers to iterate through the list and remove duplicates by updating next pointers

  • Initialize two pointers, current and next, to iterate through the list

  • Compare current and next node values, if equal, update next pointer to skip duplicate node

  • Repeat until end of list is reached

Add your answer
Discover Sri Srinivasa Multispeciality Hospital interview dos and don'ts from real experiences

Q5. Diff between malloc and calloc

Ans.

malloc is used to allocate memory without initializing it, while calloc is used to allocate memory and initialize it to zero.

  • malloc allocates a block of memory of specified size, while calloc allocates a block of memory for an array of elements and initializes them to zero

  • malloc does not initialize the allocated memory, while calloc initializes the allocated memory to zero

  • malloc returns a pointer to the allocated memory block, while calloc returns a pointer to the allocated a...read more

Add your answer

Q6. Delete a node in a single linked list

Ans.

To delete a node in a single linked list, update the previous node's next pointer to skip over the node to be deleted.

  • Traverse the linked list to find the node to be deleted

  • Update the previous node's next pointer to skip over the node to be deleted

  • Free the memory allocated to the node to be deleted

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Sri Srinivasa Multispeciality Hospital

based on 12 interviews in the last 1 year
Interview experience
4.2
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.8
 • 3k Interview Questions
4.2
 • 237 Interview Questions
3.9
 • 209 Interview Questions
3.6
 • 144 Interview Questions
4.2
 • 143 Interview Questions
View all
Top MediaTek India Technology Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter