0% found this document useful (0 votes)
31 views4 pages

Cts Interview Questions

Interview question for CTS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views4 pages

Cts Interview Questions

Interview question for CTS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Java Mandatory - Must answer 80% questions correctly from here

1 write a program of an Array to find largest and the second largest number in that array
2 Duplicate string
3 Missing character
4 From Array find largest and second largest number (using hashmap)
5 Palindrome using loops/conditional statements
6 Concept of Method overriding
7 Concept of Hashmaps
8 Hashmap and HashSet
9 where you use static in your project?
10 string buffer and string builder
11 inheritance and types where you use inheritance in your project
12 types memory in java
13 In which memory we store string and why?
14 split used in java
15 difference btw list,set and map
16 how to iterate map in java?
17 Internal working of the MAP
18 program on iterating in map
19 where you use constructor and can we use protected
20 difference btw quit and close.
21 Given an array (1,2,1,2,2,1,1). Write a function that put all the 1's first and 2's after.
Output should be (1,1,1,1,2,2,2)
22 difference between abstract and interface
23 can we have a private constructor
24 Input = “Welcome to Walmart today Walmart”
Expected output: “Welcome to Walmart today”
25 Write Java code to reverse string that contains special character, condition: special
character position should not change.
26 Relevance of public.static.void.main
27 Is it necessary static in p.s.v.m?
28 if class has static block along with p.s.v.m which would be executed first and why?
29 Try and finally block, order of execution?
30 As no catch block is present in above example, if exception occurs, what would
happen?
31 try block has system.exit(), what would happen?
32 public class Animal {
public void function throws Runtime Exception(){
syso(“Animal”);
}
}

public class Dog extends Animal {


public void function throws Exception(){
syso(“Dog”);
}
}

What would be the output of this program?


33 public class String
{
public static void main (String args[])
{
System.out.println(100 + 100 +"Hundred");
System.out.println("Hundred" + 100 + 100);
}
}

What would be the o/p ?

34 {
“customerType”: “A”,
“store”: “1234”,
“item_info”: [
{
"id”: “A1B2C3”
}
]
}

Write code to retrieve data

35 Write code for below

Input - Programming is fun


Output - fun is Programming
36 Write code for below,

Input - This is what it is


Output - This - 1 is - 2 what - 1 it -1

Alternate qn : string s="Rhitwick"


how many unique character and what are those
How many repeated character, what are those and how many times repeated?

37 stringBuilder vs. stringBuffer


38 Webpage has link, hover on this and a textbox appears, how to automate this? What
utility you would develop?
39 Exception in webpage, how to handle?
40 Error in webpage, found out its due to API call failure. How to debug? CURL

GUI automation 2nd Priority - must answer 60% from here


1 launch Flipkart/Amazon and find a given webelement
2 How to take relative path
3 Find XPATH of an webelement in Amazon/Flipkart
4 Difference between get and navigate
5 Page object model and page factory
6 Xpath-one simple, one complex
7 Exceptions in selenium
8 what are all the locators
9 how to take xpath
10 how to take absolute xpath
11 findelement and findelements
12 waits in selenium
13 how you test things on selenium
14 go to walmart.com and search for toys. suggestions will come under it, click on any
one and then the page that appears, what all test cases you will consider to test it.
15 how you will approach to test the same page manually and through automation
Assertions

API 3rd Priority - must answer 50% question from here


1 explain about API
2 Where to see API calls for a site (take example of Flipkart and ask to show)
3 Where to check cookie details
4 What are the differences between PUT and POST in REST
5 Differentiate between SOAP and REST
6 What are the HTTP Methods and explain
7 What exactly needs to verify in API testing
8 How will you test your REST api's manually and by automation
9 If you see an error on web page after hiting an api, how you will test that whether it is
an error from your API or from UI
10 any other automation tool for testing REST Api's
11 How to automate API

Appium Must answer 60% from here (Only for Appium req.)

1 What are Appium Inspectors?


2 Mention some disadvantages of Appium?
3 What are implicit and Explicit Wait in Appium?
4 What is Selendroid?
5 What do you understand by desired capabilities?
6 Mention some of the standard exceptions in Appium?
7 Perform Swipe Action Using Appium?
8 What do you understand by XCUITest?
9 Mention Basic Steps to Write Appium Test?
10 What are the most common errors seen in Appium?

Maven Optional
1 why maven is used
2 what are all the maven commands

Git Optional
1 How to pull code to local system, command
experience in GIT - Commit,Push,Merge,Clone…

Agile Optional
1 Agile Methodology

Automation Optional
knowledge
1 Explain Framework you worked on
2 design patterns used in your project
3 some real time previous project testscripts
4 Tell me about yourself
5 How many years of experience in automation
6 Explain about your project
7 What are scenarios you have automated in your project
8 what are the challenges faced during automation
9 How will you generate report
10 Explain the framework
11 joined in existing project? is the framework was already build
12 will you able to work in CRM, based on Seleinum
13 how will you retrieve data
14 how you used BDD
15 how will you maintain your object repository
16 how will you call a test cases in BDD cucumber
17 Type of exceptions occur in Automation

You might also like