Coforge Automation Testing | SDET | Interview Experience 2022 | Noida

In this article we will cover Coforge Automation Testing Interview Questions from 2022 which could help you prepare in advance.

Coforge Automation Testing | SDET | Interview Experience 2022

Company - Coforge
Job role - Automation Engineer | SDET
Job location- Noida
Interviewer - Sumit Aggarwal

Date - October 29 2022 

  • What are your day to day work?
  • Write a program to print prime numbers until 100?
  • Write a program for factorial?
  • Write a program for below pattern?
    • *
    • * *
    • * * *
    • * * * *
    • * * * * *
  • He gave me 1 SQL query and asked me the output of it?
  • He gave me 1 table and asked me to write a query - To print total number of streams by date where streams > 740;
The interviewer asked random questions and I din't expect these questions for the role of Automation tester. He didn't ask any questions about Selenium, API or Manual testing.



// Java program to display Prime numbers till N
class GFG
{
//function to check if a given number is prime
static boolean isPrime(int n){
//since 0 and 1 is not prime return false.
if(n==1||n==0)return false;
//Run a loop from 2 to n-1
for(int i=2; i<n; i++){
// if the number is divisible by i, then n is not a prime number.
if(n%i==0)return false;
}
//otherwise, n is prime number.
return true;
}

// Driver code
public static void main (String[] args)
{
int N = 100;
//check for every number from 1 to N
for(int i=1; i<=N; i++){
//check if current number is prime
if(isPrime(i)) {
System.out.print(i + " ");
}
}

}
}

Program to print factorial number -
  1. class FactorialExample{  
  2.  public static void main(String args[]){  
  3.   int i,fact=1;  
  4.   int number=5;//It is the number to calculate factorial    
  5.   for(i=1;i<=number;i++){    
  6.       fact=fact*i;    
  7.   }    
  8.   System.out.println("Factorial of "+number+" is: "+fact);    
  9.  }  
  10. }  

Program to print below pattern -
*
* *
* * *
* * * *
* * * * *

  1. for(int i=0; i<5; i++)   
  2. {   
  3. for(int j=0; j<=i; j++)   
  4. {   
  5. System.out.print("* ");   
  6. }   
  7. System.out.println();   

Comments

Popular posts from this blog

Azure Tutorials Series - Azure Networking

Coforge Interview Questions | Automation Testing profile

Azure Tutorials Series - IaaS vs PaaS vs SaaS