Open In App

Oracle Interview Experience | 1.5 Years Experienced

Last Updated : 07 Mar, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

I was contacted by HR from oracle for SDET Role through LinkedIn.

Round 1:

  1. Output of printf(“%d %d %d %d”, i++, ++i, i++, ++i) if i=2
  2. What is BST and BT
  3. https://www.geeksforgeeks.org/stack-set-2-infix-to-postfix/
  4. https://www.geeksforgeeks.org/convert-given-binary-tree-doubly-linked-list-set-3/
  5. Python string slicing
  6. Check data type of variable in python

Round 2:

  1. Detailed Project Discussion.
  2. Given string “oracle release 12.2c”, return 12.2 in python
  3. Linux command to list all .py files
  4. Total Count size of all python files in directory.(Was doing first saving output in .txt file, ls -lh | grep ‘.py’, then iterating  over line by line , splitting each line, the getting sizes, adding it), but he wants a regex solution, I was not aware of regex that much.
  5. Explain inheritance by using two classes, base and derived. Explain class and object variables, how they are initialized in python classes.
  6. Make Graph Node. I used a class node with integer to store data and adjacency list with linkedlist. I write classes for both nodes.
  7. What are BST and BT
  8. Initially, he asked logic for alternate swaps(nodes to be swapped, not data) like 1->2->3->4->5->6 will become 2->1->3->4->6->5, but code was getting longer so he switched to swap every adjacent node.

Round 3:

  1. https://www.geeksforgeeks.org/pairwise-swap-elements-of-a-given-linked-list-by-changing-links/
  2. https://leetcode.com/problems/reverse-nodes-in-k-group/
  3. Given a directory write code to replace all files having a word1 with word2.

Round 4(Managerial):

  1. Detailed Project Discussion.
  2. https://www.geeksforgeeks.org/sort-an-array-of-0s-1s-and-2s/
  3. https://www.geeksforgeeks.org/delete-a-node-from-linked-list-without-head-pointer/

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads