Add office photos
Engaged Employer

Oracle

3.7
based on 5.2k Reviews
Video summary
Filter interviews by

Pay1 Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. How to solve the question 1 with O(n),O(logn) time complexity

Ans.

To solve question 1 with O(n) time complexity, iterate through the array once. To solve with O(logn) time complexity, use binary search.

  • For O(n) time complexity, iterate through the array once and perform the required operations.

  • For O(logn) time complexity, use binary search to find the desired element or perform the required operations.

  • O(n) time complexity is generally faster than O(logn) time complexity for smaller input sizes, while O(logn) is faster for larger input sizes...read more

Add your answer

Q2. Design the data structure for the efficient implementation of cache level memory

Ans.

The data structure for efficient implementation of cache level memory is a multi-level cache hierarchy.

  • Use a multi-level cache hierarchy with different levels of cache (L1, L2, L3, etc.)

  • Each cache level should have a smaller size and faster access time compared to the previous level

  • Implement a cache coherence protocol to ensure consistency between different cache levels

  • Use a replacement policy (e.g., LRU - Least Recently Used) to determine which data to evict from the cache

  • Co...read more

Add your answer

Q3. How to find the nth node in a linked list

Ans.

To find the nth node in a linked list, iterate through the list until reaching the nth node.

  • Start at the head of the linked list

  • Iterate through the list, moving to the next node each time

  • Stop when reaching the nth node

Add your answer

Q4. Differentiate between mutex and semaphores

Ans.

Mutex and semaphores are synchronization mechanisms used in multi-threaded environments.

  • Mutex is used to provide mutual exclusion, allowing only one thread to access a shared resource at a time.

  • Semaphore is used to control access to a shared resource by multiple threads, allowing a specified number of threads to access it simultaneously.

  • Mutex is binary, meaning it has only two states: locked or unlocked.

  • Semaphore can have a count greater than one, indicating the number of thr...read more

Add your answer
Discover Pay1 interview dos and don'ts from real experiences

Q5. Memory Management Scheme in UNIX OS

Ans.

UNIX OS uses a dynamic memory management scheme to allocate and deallocate memory efficiently.

  • UNIX OS uses virtual memory to provide each process with its own address space.

  • The memory management scheme includes techniques like paging and segmentation.

  • Paging divides memory into fixed-size pages and maps them to physical memory.

  • Segmentation divides memory into logical segments of varying sizes.

  • UNIX OS uses demand paging to bring pages into memory only when needed.

  • It also employ...read more

Add your answer

Q6. Pre-order traversal of a BST iteratively

Ans.

Pre-order traversal of a BST iteratively

  • Create an empty stack and push the root node onto it

  • While the stack is not empty, pop the top node and print its value

  • Push the right child onto the stack if it exists

  • Push the left child onto the stack if it exists

Add your answer

Q7. ACID properties

Ans.

ACID properties are a set of characteristics that ensure reliability and consistency in database transactions.

  • ACID stands for Atomicity, Consistency, Isolation, and Durability.

  • Atomicity ensures that a transaction is treated as a single, indivisible unit of work.

  • Consistency ensures that a transaction brings the database from one valid state to another.

  • Isolation ensures that concurrent transactions do not interfere with each other.

  • Durability ensures that once a transaction is c...read more

Add your answer

More about working at Oracle

#22 Best Mega Company - 2022
#3 Best Internet/Product Company - 2022
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
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

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