OpenText Interview Questions

OpenText Overview

  • www.opentext.com
  • Waterloo, ON (Canada)
  • 10000+ employees
  • 1992
  • Public (OTEX)
  • Computer Hardware & Software
  • ₹100 to ₹500 billion (INR) per year
  • Unknown

OpenText Java Selenium Automation Interview Questions: In The Various companies testing interview questions series of posts, we added the latest interview questions and answers for SDET, Software Tester, and Manual & Automation Testing Questions and Answers For Freshers and experienced Testers.

OpenText Exstream Hacker Rank Interview Questions

Updated on: 07-07-2022

Program: Write a Java program for a given input array A consisting of N integers, and return the biggest value X, which occurs in A exactly X times. If there is no such value, the function should return 0.

Input/Expected Output:

int[] intArray = { 3, 8, 2, 3, 3, 2 }; // Output : 3
int[] intArray1 = { 7, 1, 2, 8, 2 }; // Output : 2
int[] intArray2 = { 3, 1, 4, 1, 5 }; // Output : 0
int[] intArray3 = { 5, 5, 5, 5, 5, 5 }; // Output : 0
int[] intArray4 = { 5, 5, 5, 5, 5 }; // Output : 5

package com.SoftwareTestingo.InterviewPrograms;
public class OpentextInterviewPrograms 
{
	public static void main(String[] args) 
	{
		int[] ar = {3,8,2,3,3,2};
		int[] ar1 = {7,1,2,8,2};
		int[] ar2 = {3,1,4,1,5};
		int[] ar3 = {5,5,5,5,5,5};
		int[] ar4 = {5,5,5,5,5};
		System.out.println(validate(ar));
		System.out.println(validate(ar1));
		System.out.println(validate(ar2));
		System.out.println(validate(ar3));
		System.out.println(validate(ar4));
	}
	public static int validate(int ar[]) 
	{
		int bigNumb=0;
		int count=0;
		for(int i=0; i<ar.length; i++)
		{
			for(int j=0;j<ar.length;j++)
			{
				if(ar[i]==ar[j]) 
				{
					count++;
				}
			}
			if(count==ar[i]&&bigNumb<ar[i])
			{
				bigNumb=ar[i];
			}
			count=0;
		}
		return bigNumb;						
	}
}

Program: Write a Java program for a given array A of N integers and return the smallest positive integer (greater than 0) that does not occur in A.

Examples:

  1. Given A = [1, 3, 6, 4, 1, 2], the function should return 5.
  2. Given A = [1, 2, 3], the function should return 4.
  3. Given A = [−1, −3], the function should return 1.

Assumption:

  1. N is an integer within the range [1..100,000].
  2. Each element of array A is an integer within the range [−1,000,000..1,000,000].
package com.SoftwareTestingo.InterviewPrograms;
import java.util.Arrays;
public class SmallestPositiveIntegerNotInArray 
{
	public static int solution(int[] inputArray)
	{
		int smallestInt = 1;
		if (inputArray.length == 0)
			return smallestInt;
		Arrays.sort(inputArray);
		if (inputArray[0] > 1)
			return smallestInt;
		if (inputArray[inputArray.length - 1] <= 0)
			return smallestInt;
		for (int i = 0; i < inputArray.length; i++) 
		{
			if (inputArray[i] == smallestInt) 
			{
				smallestInt++;
			}
		}
		return smallestInt;
	}
	public static void main(String[] args) 
	{
		int[] inputArray = { 10, 2, 25, 43, 0, 67, 1, 7 }; // Output: 3
		int[] inputArray1 = { 1, 3, 6, 4, 1, 2 }; // Output: 5
		int[] inputArray2 = { 1, 2, 3 }; // Output: 4
		int[] inputArray3 = { -1, -3 }; // Output: 1
		System.out.println(solution(inputArray));
		System.out.println(solution(inputArray1));
		System.out.println(solution(inputArray2));
		System.out.println(solution(inputArray3));
	}
}

Program: Write a Java program that, given integer N, returns the smallest non-negative whose individual digits sum to N.

Example:

  • N = 16; the function should return 79. Many numbers, such as 79, 97, 808, 5551, 22822, etc., have digits that sum to 16, but the lowest such number is 79.
  • N = 19; the function should return 199. The sum of digits 1+9+9=19.
  • If N = 7; the function should return 7;
  • Assume N = 0 to 50.
package com.SoftwareTestingo.InterviewPrograms;
import java.util.Arrays;
public class Smallest 
{
	public static boolean sumNo(int n, int N)
	{
		int sum=0;
		while (n!=0)
		{
			sum=sum+n%10;
			n=n/10;
		}
		if(sum==N)
		{
			return true;
		}
		return false;
	}
	public static void main(String[] args) 
	{
		// TODO Auto-generated method stub
		int[] arr = { 97, 898, 5506, 79, 22822 };
		Arrays.sort(arr);
		for (int i= 0; i < arr.length; i++) 
		{ 
			if (sumNo(arr[i], 16)) 
			{
				System.out.println("smallest no" + arr[i]);
				break;
			}
		}
	}
}

OpenText Automation Interview Questions

Updated on: 18.05.2019

  • Program: Write a Java program to select a particular character from a string using a regular expression.
  • Program: Write a program to reverse a string.
  • Which part of the selenium overloading and overriding method concept implemented
    Ans: Overloaded Methods of Selenium are:-
    .frame(string), frame(int), frame(WebElement).
    .findElement(“<All type of locator e.g. id , XPath , cssClass>”).
    wait(), wait(timeout), wait(timeout,Nanos)
    and WebDriverWait methods
  • How to handle exceptions in Java
  • What is finally finalize and final in Java?
  • What is the difference between HashMap and HashTabel?
  • What is the return type of window handles?
  • What is the return type of getattribute() and gettext()
  • How to handle multiple browser windows.
  • What is the glue in cucumber?
  • What is background, datatable in cucumber?
  • When to use AutoIT?
  • Which test cases should not be automated and why?
  • How much percent automation is covered in your project
  • Program: Write a program for the Fibonacci series.
  • Write a program to write data into the c3 column by dividing c1/c2. C3=c1/c2
  • They want candidates who know ETL testing.

About OpenText Company

OpenText offers an attractive and unique opportunity to be part of an exceptional team. We’re one of the fastest-growing success stories in the digital world.

OpenText began in 1991 as a project from the University of Waterloo in Canada. Over the next 25 years, it evolved with the shifting digital landscape, acquiring companies and products along the way. Today, OpenText has 12,000 employees in more than 130 locations.

OpenText has a clear vision of enabling the digital world. Our employees help us define and enable the digital future with market-leading enterprise solutions for digital transformation.

We’re also committed to fostering the best possible work environment for our people in each location worldwide. Team socials, volunteer events, excellent technology, and supportive co-workers come together at OpenText to create a winning team.

The diversity and strength of our workforce are fundamental to our success. People are our greatest strength. We strive to attract and retain the very best talent the industry has to offer. Learning Services can accelerate your knowledge and skills with OpenText best practices to maximize the value of your deployment and ongoing operations.

Our comprehensive education programs are designed to meet the needs of all users. Our goal is to help you develop the technical know-how and creative vision to meet your most demanding business challenges.

The new Learning On Demand Subscription pricing for a single named user provides access to training materials and learning paths for over 400 courses across OpenText product suites. Whether you are an end user, power user, business analyst, system administrator, or developer, there are learning solutions for you, all for approximately the price of one regular training course.

Avatar for Softwaretestingo Editorial Board

I love open-source technologies and am very passionate about software development. I like to share my knowledge with others, especially on technology that's why I have given all the examples as simple as possible to understand for beginners. All the code posted on my blog is developed, compiled, and tested in my development environment. If you find any mistakes or bugs, Please drop an email to softwaretestingo.com@gmail.com, or You can join me on Linkedin.

Leave a Comment