Cts Interview Questions
Cts Interview Questions
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”);
}
}
34 {
“customerType”: “A”,
“store”: “1234”,
“item_info”: [
{
"id”: “A1B2C3”
}
]
}
Appium Must answer 60% from here (Only for Appium req.)
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