Tracelink
TicketsOair Interview Questions and Answers
Q1. What will be the value printed to the console? #include void function(int arr[], int size) { for (int 10; 1 size; 1++) { arr[1] = 2; } int main() { int arr[] {1, 2, 3, 4, 5); function(arr, 5); for (int 10; 15;...
read moreThe value printed to the console will be 246810.
The function modifies the array elements to be 2.
The main function calls the function to modify the array.
The loop in main function prints the modified array elements.
Q2. Explain Automation Frameworks which you have worked on
I have worked on various automation frameworks including keyword-driven, data-driven, and hybrid frameworks.
Keyword-driven framework: Utilizes keywords to define test steps and actions.
Data-driven framework: Separates test data from test scripts to allow for easy data manipulation.
Hybrid framework: Combines the features of both keyword-driven and data-driven frameworks for flexibility and reusability.
Q3. What does the following C++ code snippet do? int x = 5; while (x > 0) { cout << x << " "; x--; } Results in a compilation error Prints "54321" Prints "545454" Prints "12345"
Prints numbers from 5 to 1 separated by a space
The code initializes x to 5, then enters a while loop that prints the value of x and decrements it until x is no longer greater than 0
The output will be '54321'
Q4. What is POM and why it is used
POM stands for Page Object Model, a design pattern used in test automation to create reusable and maintainable code.
POM separates the test automation code from the actual web pages being tested
Each web page is represented as a separate class, containing locators and methods to interact with the elements on that page
Improves code reusability, readability, and maintenance in test automation projects
Reduces code duplication and makes test scripts easier to maintain and update
Exa...read more
Q5. Coding in live anlong project explanation
Coding in live project involves writing and implementing code in a real-world software development project.
Understand the project requirements and scope before writing any code.
Collaborate with team members to ensure code integration and compatibility.
Test and debug code to ensure it meets project specifications.
Document code changes and updates for future reference.
Follow coding best practices and guidelines to maintain code quality.
Example: Implementing a new feature in an ...read more
Q6. What you know about serialization
Serialization is the process of converting an object into a format that can be easily stored or transmitted.
Serialization is used in programming to save the state of an object so that it can be recreated later.
It is commonly used in data storage, network communication, and in the implementation of remote procedure calls.
Examples of serialization formats include JSON, XML, and Protocol Buffers.
Q7. Which data structure would you use to find the topper of a college
Use a max heap data structure to find the topper of a college.
Max heap is a complete binary tree where the value of each node is greater than or equal to the values of its children.
Insert all students' scores into a max heap and then extract the top element to find the topper.
Example: If student A scored 90, student B scored 85, and student C scored 95, the max heap would have [95, 85, 90].
Top HR Questions asked in TicketsOair
Interview Process at TicketsOair
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month