IBM
Kendriya Vidyalaya Sangathan Interview Questions and Answers
Q1. what are waits in selenium you use in your project
Waits in Selenium are used to ensure that the automation script waits for a certain condition to be met before proceeding.
Implicit Wait: Waits for a certain amount of time before throwing a NoSuchElementException.
Explicit Wait: Waits for a certain condition to be met before proceeding.
Fluent Wait: Waits for a condition with a specified frequency of checking.
Thread.sleep(): Pauses the script execution for a specified amount of time.
Q2. What is cucumber framework?
Cucumber is a testing framework that supports Behavior Driven Development (BDD) by allowing tests to be written in plain text.
Cucumber uses Gherkin syntax to define test cases in a human-readable format
It allows collaboration between technical and non-technical team members
Cucumber tests are written in feature files with scenarios and steps
It integrates with various programming languages like Java, Ruby, etc.
Q3. find the lca of a given nodes
The lowest common ancestor (LCA) of two nodes in a tree is the shared ancestor that is located farthest from the root.
Traverse the tree from the root to find the paths from the root to each node.
Compare the paths to find the last common node between the two paths, which is the LCA.
If one node is an ancestor of the other, return that node as the LCA.
Q4. What is Selenium?
Selenium is a popular open-source tool used for automating web browsers.
Selenium supports multiple programming languages like Java, Python, and C#.
It can automate web browsers across different platforms like Windows, Mac, and Linux.
Selenium can be used for functional testing, regression testing, and browser compatibility testing.
It allows users to write test scripts in a variety of formats such as HTML, Java, C#, and Python.
Q5. Explain your framework structure
My framework structure is based on a modular approach with reusable components and clear separation of concerns.
Modular design with separate modules for different functionalities
Reusable components to avoid duplication of code
Clear separation of concerns for easy maintenance and scalability
Q6. implement min stack
Implement a stack that supports finding the minimum element in constant time.
Create a stack to store elements and another stack to store minimum values.
When pushing an element, check if it is smaller than the current minimum and push it to the min stack if so.
When popping an element, check if it is the current minimum and pop from the min stack if so.
To get the minimum element, simply return the top element of the min stack.
More about working at IBM
Interview Process at Kendriya Vidyalaya Sangathan
Top Softwaretest Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month