Add office photos
PubMatic logo
Premium Employer

PubMatic

Verified
3.9
based on 118 Reviews
Video summary
Filter interviews by
Fresher
Experienced
Clear (1)

PubMatic Interview Questions and Answers for Freshers

Updated 25 Apr 2024

Q1. Which coding language do you prefer and why?

Ans.

I prefer Python because of its simplicity, readability, and extensive libraries.

  • Python is known for its simplicity and readability, making it easier to write and understand code.

  • Python has a large number of libraries and frameworks that can be used to quickly develop applications.

  • Python's syntax is clean and concise, allowing for faster development and easier maintenance.

  • Python is widely used in various domains such as web development, data analysis, and machine learning.

  • Pyth...read more

Add your answer
right arrow

Q2. Data structure with code writing

Ans.

Implement a stack data structure using an array of strings.

  • Use an array to store the strings in the stack.

  • Implement push() and pop() functions to add and remove elements from the stack.

  • Keep track of the top of the stack using a variable.

Add your answer
right arrow

Q3. Loop in kinked list

Ans.

Detecting a loop in a linked list

  • Use two pointers, one moving at double the speed of the other

  • If there is a loop, the two pointers will eventually meet

  • Use Floyd's Cycle Detection Algorithm for efficient solution

Add your answer
right arrow

Q4. What if person mistakenly put F for male and M for female in sql how do you solve this

Ans.

To solve the issue of mistakenly assigned gender values in SQL, you can update the incorrect values using SQL queries.

  • Identify the incorrect gender values in the SQL table

  • Use UPDATE statement with appropriate conditions to correct the values

  • For example, if 'F' is mistakenly assigned for male, update it to 'M' using UPDATE statement

View 1 answer
right arrow
Discover PubMatic interview dos and don'ts from real experiences

Q5. Count the occurances a purticualar word from a file.

Ans.

Count the occurrences of a particular word from a file.

  • Read the file and store its contents in a string variable.

  • Split the string into an array of words using a delimiter.

  • Loop through the array and count the occurrences of the particular word.

  • Return the count.

Add your answer
right arrow

Q6. Write a code in c c++ or any other language to validate all use cases for an ip address given as input string. Output will be yes or no.

Ans.

Code to validate all use cases for an IP address input string and output yes or no.

  • Use regular expressions to match the input string against the valid IP address pattern.

  • Check for valid ranges of each octet (0-255) and proper formatting (4 octets separated by periods).

  • Handle edge cases like leading zeros, extra spaces, and invalid characters.

  • Return 'yes' if the input string is a valid IP address, otherwise return 'no'.

Add your answer
right arrow

Q7. Given 2 sorted integer array print the common value between them. 2 to 3 optimized ways.

Ans.

Find common values in two sorted integer arrays efficiently.

  • Use two pointers approach to iterate through both arrays simultaneously.

  • If the current values are equal, add it to the result and move both pointers forward.

  • If the current values are not equal, move the pointer of the array with the smaller value forward.

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

Interview Process at PubMatic for Freshers

based on 4 interviews
Interview experience
3.3
Average
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

Wipro Logo
3.7
 • 2.9k Interview Questions
Microsoft Corporation Logo
4.0
 • 735 Interview Questions
Johnson Controls Logo
3.6
 • 192 Interview Questions
JLL Logo
4.1
 • 168 Interview Questions
Xoriant Logo
4.1
 • 160 Interview Questions
ArcelorMittal Nippon Steel Logo
4.1
 • 152 Interview Questions
View all
Recently Viewed
INTERVIEWS
Directi
Fresher
10 top interview questions
JOBS
Actionedge Research Services Llp
No Jobs
INTERVIEWS
Impetus Technologies
No Interviews
INTERVIEWS
Nielsen
Fresher
5.6k top interview questions
INTERVIEWS
Intuit
Fresher
20 top interview questions
JOBS
SoftAge Information Technology
No Jobs
INTERVIEWS
Impetus Technologies
No Interviews
SALARIES
Impetus Technologies
JOBS
AbbVie Inc.
No Jobs
INTERVIEWS
Impetus Technologies
No Interviews
Top PubMatic Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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