forked from sgalvezc/TheInterviewNinjaGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterviewQuestions
More file actions
240 lines (233 loc) · 38.3 KB
/
InterviewQuestions
File metadata and controls
240 lines (233 loc) · 38.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
Interview Questions
1. Tell me about yourself?
2. What skills and qualities are need to become a SDET?
3. Tell me what you expect to be doing on a daily basis as a SDET
4. What are your strengths and your weaknesses?
5. What is your biggest accomplishments?
6. Where do you see yourself in five years' time?
7. Why should we hire you?
8. Why do you want to work for our company as a SDET?
9. How would you deal with a member of your team who disagreed with the work you carried out as a SDET?
10. Tell me a time when you worked as part of a team to solve a complex task
11. Do you have any questions for me? Ask 3.
12. Describe your current role
13. Describe your daily activities
14. Tell me about a project
15. What do you like the most about testing?
16. Can you explain SDLC?
17. How would you test a ________?
18. Why do we test?
19. Explain the Agile - Scrum ceremonies/meetings and the different roles
20. What is the testing hierarchy?
21. What are the different type of testing and explain your favorite one.
22. What are the differences between a Constructor and a Method?
23. What are the differences between Arrays and ArrayList in Java?
24. Can you explain how to reverse a String? (technical question)
25. Can you explain how to Concat two arrays? (technical question)
25. Can you explain how to create a custom method that returns odd numbers? (technical quesition)
26. What is a repository?
27. What are some Git commands?
28. What is Remote & Local Repository?
29. How do you automate User Stories from Jira?
30. What is Boundary Value Analyze (BVA)
31. What did you talk about in your last retro meeting? Give an Example Please...
32. Name the 4 Access Modifiers..Describe 2 of them.
[Java] What is the difference between Default AccessMod and Protected AccessMod? [1 min.]
[SS] 4. What is your biggest accomplishments? (5 min.) - Solution:
[SS] 5. Where do you see yourself in five years' time? (3 min.) - Solution:
[SS] 6. Why should we hire you? (3 min.) - Solution:
[SS] 7. Why do you want to work for our company as a SDET? (3 min.) - Solution:
[SS] 8. How would you deal with a member of your team who disagreed with the work you carried out as a SDET? (3 min.) - Solution:
[SS] 9. Tell me a time when you worked as part of a team to solve a complex task (5 min.) - Solution:
[SS] 10. Do you have any questions for me? Ask 3. (2 min.) - Solution:
[SS] 11. Describe your current role (5 min.) - Solution:
[SS] 12. Describe your daily activities (5 min.) - Solution:
[SS] 13. Tell me about a project (5 min.) - Solution:
[SS] 14. What do you like the most about testing? (2 min.) - Solution:
[SS] 15. Can you explain SDLC? (5 min.) - Solution:
[SS] 16. How would you test a ________? (5 min.) - Solution:
[SS] 17. Why do we test? (2 min.) - Solution:
[SS] 18. Explain the Agile - Scrum ceremonies/meetings and the different roles (5 min.) - Solution:
[SS] 19. What is the testing hierarchy? (3 min.) - Solution:
[SS] 20. What are the different type of testing and explain your favorite one. (3 min.) - Solution:
[Java] 21. What are the differences between a Constructor and a Method? (2 min.) - Solution:
[Java] 22.What are the differences between Arrays and ArrayList in Java? (2 min.) - Solution:
[Java] 23. Can you explain how to reverse a String? (technical question) (2 min.) - Solution:
[Java] 24. Can you explain how to Concat two arrays? (technical question) (2 min.) - Solution:
[Java] 25. Can you explain how to create a custom method that returns odd numbers? (technical question) (2 min.) - Solution:
[GH] 26. What is GitHub? (2 min.) - Solution:
[GH] 27. What is a repository? (2 min.) - Solution:
[GH] 28. What are some Git commands? (2 min.) - Solution:
[GH] 29. What is Remote & Local Repository? (2 min.) - Solution:
[Jira] 30. How do you automate User Stories from Jira? (3 min.) - Solution:
[SS] 31. What is Boundary Value Analyze (BVA) (2 min.) - Solution:
[Jira] 32.What is a bug and How do you create a bug ticket? (3 min.) - Solution:
[SS] 33. What is a Test Case? (2 min.) - Solution:
[Java] 34. Can you explain the different types of Access Modifiers? (3 min.) - Solution:
[Java] 35. What does OOP stands for? (2 min.) - Solution:
[Java] 36. What are the 4 principles of OOP? (2 min.) - Solution:
[Java] 37. What is the concept of Encapsulation? (2 min.) - Solution:
[Java] 38. What is the concept of Inheritance? (2 min.) - Solution:
[Selenium] 39. What is Selenium and how does it works? (3 min.) - Solution:
[Selenium] 40. What pom.xml stands for? (2 min.) - Solution:
[Selenium] 41. What is build? (2 min.) - Solution:
[Selenium] 42. Can you mention the differences between maven & selenium? (3 min.) - Solution:
[Selenium] 43. What is a WebDriver? (2 min.) - Solution:
[Selenium] 44. What is the folder structure when creating a project in maven? (2 min.) - Solution:
[SS] 45. What did you talk about in your last retro meeting? Give an Example Please... (5 min.) - Solution:
[Java] 46. What is the difference between Default AccessMod and Protected AccessMod? (1 min.) - The solution is.....
[SS] 4. What is your biggest accomplishments? (5 min.) - Solution:
[SS] 5. Where do you see yourself in five years' time? (3 min.) - Solution:
[SS] 6. Why should we hire you? (3 min.) - Solution:
[SS] 7. Why do you want to work for our company as a SDET? (3 min.) - Solution:
[SS] 8. How would you deal with a member of your team who disagreed with the work you carried out as a SDET? (3 min.) - Solution:
[SS] 9. Tell me a time when you worked as part of a team to solve a complex task (5 min.) - Solution:
[SS] 10. Do you have any questions for me? Ask 3. (2 min.) - Solution:
[SS] 11. Describe your current role (5 min.) - Solution:
[SS] 12. Describe your daily activities (5 min.) - Solution:
[SS] 13. Tell me about a project (5 min.) - Solution:
[SS] 14. What do you like the most about testing? (2 min.) - Solution:
[SS] 15. Can you explain SDLC? (5 min.) - Solution:
[SS] 16. How would you test a ________? (5 min.) - Solution:
[SS] 17. Why do we test? (2 min.) - Solution:
[SS] 18. Explain the Agile - Scrum ceremonies/meetings and the different roles (5 min.) - Solution:
[SS] 19. What is the testing hierarchy? (3 min.) - Solution:
[SS] 20. What are the different type of testing and explain your favorite one. (3 min.) - Solution:
[Java] 21. What are the differences between a Constructor and a Method? (2 min.) - Solution:
[Java] 22.What are the differences between Arrays and ArrayList in Java? (2 min.) - Solution:
[Java] 23. Can you explain how to reverse a String? (technical question) (2 min.) - Solution:
[Java] 24. Can you explain how to Concat two arrays? (technical question) (2 min.) - Solution:
[Java] 25. Can you explain how to create a custom method that returns odd numbers? (technical question) (2 min.) - Solution:
[GH] 26. What is GitHub? (2 min.) - Solution:
[GH] 27. What is a repository? (2 min.) - Solution:
[GH] 28. What are some Git commands? (2 min.) - Solution:
[GH] 29. What is Remote & Local Repository? (2 min.) - Solution:
[Jira] 30. How do you automate User Stories from Jira? (3 min.) - Solution:
[SS] 31. What is Boundary Value Analyze (BVA) (2 min.) - Solution:
[Jira] 32.What is a bug and How do you create a bug ticket? (3 min.) - Solution:
[SS] 33. What is a Test Case? (2 min.) - Solution:
[Java] 34. Can you explain the different types of Access Modifiers? (3 min.) - Solution:
[Java] 35. What does OOP stands for? (2 min.) - Solution:
[Java] 36. What are the 4 principles of OOP? (2 min.) - Solution:
[Java] 37. What is the concept of Encapsulation? (2 min.) - Solution:
[Java] 38. What is the concept of Inheritance? (2 min.) - Solution:
[Selenium] 39. What is Selenium and how does it works? (3 min.) - Solution:
[Selenium] 40. What pom.xml stands for? (2 min.) - Solution:
[Selenium] 41. What is build? (2 min.) - Solution:
[Selenium] 42. Can you mention the differences between maven & selenium? (3 min.) - Solution:
[Selenium] 43. What is a WebDriver? (2 min.) - Solution:
[Selenium] 44. What is the folder structure when creating a project in maven? (2 min.) - Solution:
[SS] 45. What did you talk about in your last retro meeting? Give an Example Please... (5 min.) - Solution:
[Java] 46. What is the difference between Default AccessMod and Protected AccessMod? (1 min.) - The solution is.....
[SS] 3. What are your strengths and your weaknesses? (3 min.) - Solution: Varies from person to person. Try to have 3 good strengths with examples ready. Your weaknesses should be positive. Nothing that could put into question your capabilities and interaction with the team.
[SS] 4. What is your biggest accomplishments? (5 min.) - Solution: Varies from person to person. Try to map your achievements to the job description and build the answer around it. 1. Highlight if you have achievements in Process improvement. 2. If you have fixed any team members problems such as people issues. 3. Highlight If you have developed/implemented any automation frameworks or if you have provided contribution in bringing up the test coverage to maximum level. 4.Highlight if you have implemented any test design techniques especially to increase the test coverage. 5. Highlight if you have contributed anything out of your team. 6.Did you ever receive appreciations from Customer for providing quality products with zero or minimum bugs. 7.Are you part of a local testing groups, Test talks and contributing to a level people learn something from you. Do not hesitate to highlight it.
[SS] 5. Where do you see yourself in five years' time? (3 min.) - Solution: The interviewer wants to understand more about your career goals and how this position would fit into your grand plan. They care about your career goals because they want to hire someone who is motivated, proactive, and likely to stick around and work hard if hired.
[SS] 6. Why should we hire you? (3 min.) - Solution: This is your chance to wow them with your highlight reel. Your answer should summarize the top three or four best reasons to hire you. It’s better to have three or four strong reasons with memorable descriptions and/or examples than to rattle off a laundry list of twelve strengths without context. This is an opportunity to reiterate your most impressive strengths and/or describe your most memorable selling points, tailored to align with the top requirements in the job description.
[SS] 7. Why do you want to work for our company as a SDET? (3 min.) - Solution: Here’s what they want to see in your response: 1. Enthusiasm about the position and company. 2. Values that align with the organization’s culture. 3. Evidence that you’ve researched the company and understand their purpose. 4. Authenticity and substance—you want to avoid vague answers, like “I want to be challenged and grow professionally.” The ideal answer will address all these points and reinforce the idea that you’re uniquely qualified for the position. Although it might seem counterintuitive, interview questions are almost never about you as an individual—they’re about what you can do for the employer. So at every opportunity, try to frame your responses to highlight your capabilities.
[SS] 8. How would you deal with a member of your team who disagreed with the work you carried out as an SDET? (3 min.) - Solution: 1. Pick a relevant example 2. Emphasize communication 3. Discuss the steps you took 4. Be honest 5. Emphasize the results
[SS] 9. Tell me a time when you worked as part of a team to solve a complex task (5 min.) - Solution: Employers want to see you focus on the question at hand. They ask "Tell me about a time you worked on a team" to make sure you aren't selfish or hard to get along with. A good answer shows you can work with others towards a common goal, which is an essential skill no matter where you work. Prepare your answer before the interview using the STAR method. STAR stands for Situation, Task, Action and Result.
[SS] 10. Do you have any questions for me? Ask 3. (2 min.) - Solution: Your questions should make it clear that you were engaged during the interview and have quickly gained a sense of the company's goals and priorities. You can reflect back to earlier moments in the interview or build off of news within the company or its market. Questions categories: 1. About the Role 2. About the Company or Interviewer 3. About you
[SS] 11. Describe your current role (5 min.) - Solution: 1. Remember the responsibilities listed in your resume 2. Connect your responsibilities to the ones in the job posting 3. Use details when explaining your larger and important projects 4. Describe how you use your skills to benefit the company
[SS] 12. Describe your daily activities (5 min.) - Solution:
[SS] 13. Tell me about a project (5 min.) - Solution:
[SS] 14. What do you like the most about testing? (2 min.) - Solution: 1. I love solving logical puzzles 2. I love helping others 3. I love to take challenges 4. I love to be in a team where quality products will be delivered
[SS] 15. Can you explain SDLC? (5 min.) - Solution: The Software Development Life Cycle (SDLC) refers to a methodology with clearly defined processes for creating high-quality software. in detail, the SDLC methodology focuses on the following phases of software development: 1. Requirement analysis 2. Planning 3. Software design such as architectural design 4. Software development 5. Testing 6. Deployment 7. Maintenance
[SS] 16. How would you test a ________? (5 min.) - Solution:
[SS] 17. Why do we test? (2 min.) - Solution: The testing is important since it discovers defects/bugs before the delivery to the client, which guarantees the quality of the software. It makes the software more reliable and easy to use. Thoroughly tested software ensures reliable and high-performance software operation.
[SS] 18. Explain the Agile_Scrum ceremonies/meetings and the different roles (5 min.) - Solution:
[SS] 19. What is the testing hierarchy? (3 min.) - Solution: There are generally four recognized levels of testing: unit/component testing, integration testing, system testing, and acceptance testing. Tests are frequently grouped by where they are added in the software development process, or by the level of specificity of the test.
[SS] 20. What are the different type of testing and explain your favorite one. (3 min.) - Solution: 1. Unit/component testing 2. Integration testing 3. Regression testing 4. Smoke testing 5. Alpha Testing 6. Beta Testing 7. System Testing 8. Stress Testing 9. Performance Testing 10. Object-Oriented Testin
[Java] 21. What are the differences between a Constructor and a Method? (2 min.) - Solution: Constructor is used to initialize an object whereas method is used to exhibits functionality of an object. Constructors are invoked implicitly whereas methods are invoked explicitly. Constructor does not return any value where the method may/may not return a value. In case constructor is not present, a default constructor is provided by java compiler. In the case of a method, no default method is provided. Constructor should be of the same name as that of class. Method name should not be of the same name as that of class.
[Java] 22.What are the differences between Arrays and ArrayList in Java? (2 min.) - Solution: An array is basic functionality provided by Java. ArrayList is part of collection framework in Java. Therefore array members are accessed using [], while ArrayList has a set of methods to access elements and modify them. ArrayList size is dynamic, while Array size is fixed.
[TQ] 23. Can you explain how to reverse a String? (2 min.) - Solution: OH BOY. TECHNICAL ANSWER MAY VARY. Create a for loop that goes backwards(i--), find each character by using .charAt() then concat with String result from last to first within the loop.
[TQ] 24. Can you explain how to combine two arrays? (2 min.) - Solution: TECHNICAL ANSWER VARIES
[SS] 3. What are your strengths and your weaknesses? (3 min.) - Solution: Varies from person to person. Try to have 3 good strengths with examples ready. Your weaknesses should be positive. Nothing that could put into question your capabilities and interaction with the team.
[SS] 4. What is your biggest accomplishments? (5 min.) - Solution: Varies from person to person. Try to map your achievements to the job description and build the answer around it. 1. Highlight if you have achievements in Process improvement. 2. If you have fixed any team members problems such as people issues. 3. Highlight If you have developed/implemented any automation frameworks or if you have provided contribution in bringing up the test coverage to maximum level. 4.Highlight if you have implemented any test design techniques especially to increase the test coverage. 5. Highlight if you have contributed anything out of your team. 6.Did you ever receive appreciations from Customer for providing quality products with zero or minimum bugs. 7.Are you part of a local testing groups, Test talks and contributing to a level people learn something from you. Do not hesitate to highlight it.
[SS] 5. Where do you see yourself in five years' time? (3 min.) - Solution: The interviewer wants to understand more about your career goals and how this position would fit into your grand plan. They care about your career goals because they want to hire someone who is motivated, proactive, and likely to stick around and work hard if hired.
[SS] 6. Why should we hire you? (3 min.) - Solution: This is your chance to wow them with your highlight reel. Your answer should summarize the top three or four best reasons to hire you. It’s better to have three or four strong reasons with memorable descriptions and/or examples than to rattle off a laundry list of twelve strengths without context. This is an opportunity to reiterate your most impressive strengths and/or describe your most memorable selling points, tailored to align with the top requirements in the job description.
[SS] 7. Why do you want to work for our company as a SDET? (3 min.) - Solution: Here’s what they want to see in your response: 1. Enthusiasm about the position and company. 2. Values that align with the organization’s culture. 3. Evidence that you’ve researched the company and understand their purpose. 4. Authenticity and substance—you want to avoid vague answers, like “I want to be challenged and grow professionally.” The ideal answer will address all these points and reinforce the idea that you’re uniquely qualified for the position. Although it might seem counterintuitive, interview questions are almost never about you as an individual—they’re about what you can do for the employer. So at every opportunity, try to frame your responses to highlight your capabilities.
[SS] 8. How would you deal with a member of your team who disagreed with the work you carried out as an SDET? (3 min.) - Solution: 1. Pick a relevant example 2. Emphasize communication 3. Discuss the steps you took 4. Be honest 5. Emphasize the results
[SS] 9. Tell me a time when you worked as part of a team to solve a complex task (5 min.) - Solution: Employers want to see you focus on the question at hand. They ask "Tell me about a time you worked on a team" to make sure you aren't selfish or hard to get along with. A good answer shows you can work with others towards a common goal, which is an essential skill no matter where you work. Prepare your answer before the interview using the STAR method. STAR stands for Situation, Task, Action and Result.
[SS] 10. Do you have any questions for me? Ask 3. (2 min.) - Solution: Your questions should make it clear that you were engaged during the interview and have quickly gained a sense of the company's goals and priorities. You can reflect back to earlier moments in the interview or build off of news within the company or its market. Questions categories: 1. About the Role 2. About the Company or Interviewer 3. About you
[SS] 11. Describe your current role (5 min.) - Solution: 1. Remember the responsibilities listed in your resume 2. Connect your responsibilities to the ones in the job posting 3. Use details when explaining your larger and important projects 4. Describe how you use your skills to benefit the company
[SS] 12. Describe your daily activities (5 min.) - Solution:
[SS] 13. Tell me about a project (5 min.) - Solution:
[SS] 14. What do you like the most about testing? (2 min.) - Solution: 1. I love solving logical puzzles 2. I love helping others 3. I love to take challenges 4. I love to be in a team where quality products will be delivered
[SS] 15. Can you explain SDLC? (5 min.) - Solution: The Software Development Life Cycle (SDLC) refers to a methodology with clearly defined processes for creating high-quality software. in detail, the SDLC methodology focuses on the following phases of software development: 1. Requirement analysis 2. Planning 3. Software design such as architectural design 4. Software development 5. Testing 6. Deployment 7. Maintenance
[SS] 16. How would you test a ________? (5 min.) - Solution:
[SS] 17. Why do we test? (2 min.) - Solution: The testing is important since it discovers defects/bugs before the delivery to the client, which guarantees the quality of the software. It makes the software more reliable and easy to use. Thoroughly tested software ensures reliable and high-performance software operation.
[SS] 18. Explain the Agile_Scrum ceremonies/meetings and the different roles (5 min.) - Solution:
[SS] 19. What is the testing hierarchy? (3 min.) - Solution: There are generally four recognized levels of testing: unit/component testing, integration testing, system testing, and acceptance testing. Tests are frequently grouped by where they are added in the software development process, or by the level of specificity of the test.
[SS] 20. What are the different type of testing and explain your favorite one. (3 min.) - Solution: 1. Unit/component testing 2. Integration testing 3. Regression testing 4. Smoke testing 5. Alpha Testing 6. Beta Testing 7. System Testing 8. Stress Testing 9. Performance Testing 10. Object-Oriented Testin
[Java] 21. What are the differences between a Constructor and a Method? (2 min.) - Solution: Constructor is used to initialize an object whereas method is used to exhibits functionality of an object. Constructors are invoked implicitly whereas methods are invoked explicitly. Constructor does not return any value where the method may/may not return a value. In case constructor is not present, a default constructor is provided by java compiler. In the case of a method, no default method is provided. Constructor should be of the same name as that of class. Method name should not be of the same name as that of class.
[Java] 22.What are the differences between Arrays and ArrayList in Java? (2 min.) - Solution: An array is basic functionality provided by Java. ArrayList is part of collection framework in Java. Therefore array members are accessed using [], while ArrayList has a set of methods to access elements and modify them. ArrayList size is dynamic, while Array size is fixed.
[TQ] 23. Can you explain how to reverse a String? (2 min.) - Solution: OH BOY. TECHNICAL ANSWER MAY VARY. Create a for loop that goes backwards(i--), find each character by using .charAt() then concat with String result from last to first within the loop.
[TQ] 24. Can you explain how to combine two arrays? (2 min.) - Solution: TECHNICAL ANSWER VARIES
[TQ] 25. Can you explain how to create a custom method that returns odd numbers? (technical question) (2 min.) - Solution: Take a number(num) as a parameter. if(num%2!=0){ return true;}
[GH] 26. What is GitHub? (2 min.) - Solution: GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.
[GH] 27. What is a repository? (2 min.) - Solution: Its a "cloud" where the project can be stored and worked on. There is a local repository which is on the ground level, and then there is a remote repo(aka Origin) that is in the sky cloud on Github.com. We pull FROM the sky to the ground and push FROM the ground TO the sky.
[GH] 28. What are some Git commands? (2 min.) - Solution: Pull, Commit, Push
[GH] 29. What is Remote & Local Repository? (2 min.) - Solution: Local repo is the repo on your local hard drive. The remote repo is literally a cloud thats connected to a server that connected to GitHub.com. THIS IS NOT A GREAT ANSWER.
[Jira] 30. How do you automate a Test Case from Jira? (3 min.) - Solution: User Story -> AC -> Test Case(Manual and/or Automated) -> Test Execution
[SS] 31. What is Boundary Value Analyze (BVA) (2 min.) - Solution: NOOOOOOOOOOOOOOO. Im not answering this for the 100th time
[Jira] 32.What is a bug and How do you create a bug ticket? (3 min.) - Solution: A bug is a defect found while doing a test execution. It can be reported through the comments of the specific step in the test execution or a Bug issue can be created on Jira linked to that specific step of the test execution
[SS] 33. What is a Test Case? (2 min.) - Solution: It is a document that explains the steps needed to manually or automatically test the Acceptance Criteria.
[Java] 34. Can you explain the different types of Access Modifiers? (3 min.) - Solution: Public(Global/Project Visibility), Protected(Package and Subclass Visibility), Default(Package Visibility), Private(Class Visibility)
[Java] 35. What does OOP stands for? (2 min.) - Solution: Object oriented programming
[Java] 36. What are the 4 principles of OOP? (2 min.) - Solution: Encapsulation, Inheritance, Abstraction, Polymorphism
[Java] 37. What is the concept of Encapsulation? (2 min.) - Solution: This is one of the concepts of OOP and it allows us to hide the name of the variable. We set the variables we want hidden to have a private AccessMod and then create getter() and setter() methods to set and retrieve the values of those private variables....but it doesnt mean we reveal what the variables actually stand for.
[Java] 38. What is the concept of Inheritance? (2 min.) - Solution: Inheritance is one of the concepts of OOP and it is a "relationship" between classes. When a class inherits another class it is saying it has an "IS A" relationship with that class(Superclass to Subclass / Parent to Child). It is the fastest way to make a class rich. If you want to invoke the methods or variables of the SuperClass then you have to use the keyword |super.| or |super()| as opposed to |this.| or |this()|. Syntax: public class Honda extends Car{.
[Selenium] 39. What is Selenium and how does it works? (3 min.) - Solution: Selenium is a portable framework for testing web applications. Primarily it is for automating web applications for testing purposes, SELENIUM AUTOMATES BROWSERS...THAT'S IT! Helps us drive a browser they way we want to drive it.
[Selenium] 40. What does pom.xml stand for? (2 min.) - Solution: Project Object Model. It is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. It contains default values for most projects. Like the test directory which is: src->test->java. When executing a task or goal, Maven looks for the POM in the current directory. It reads the POM, gets the needed config. info, then executes the goal.
[Selenium] 41. What is build? (2 min.) - Solution: A build is numerous automated processes that are created and ran to execute repeated commands. There are 3 build lifecycles in Maven: default, clean and site. They all facilitate in running your Java code. The DEFAULT lifecycle handles your project deployment, the CLEAN lifecycle handles project cleaning, while the SITE lifecycle handles the creation of your project's site documentation.
[Selenium] 42. Can you mention the differences between maven & selenium? (3 min.) - Solution: Maven is a build and Selenium is a collection of libraries
[Selenium] 43. What is a WebDriver? (2 min.) - Solution: It is a subclass of selenium libraries/superClass that allows us to open a browser by creating a new webDriver object (usually named Driver)
[Selenium] 44. What is the folder structure when creating a project in maven? (2 min.) - Solution: SRC --> Test --> Java --> ToYourCustomDirectory
[Selenium] 45. What is XPath in Selenium? (2 min.) - Solution: XPath in Selenium is an XML path used for navigation through the HTML structure of the page. It is a syntax or language for finding any element on a web page using XML path expression. XPath can be used for both HTML and XML documents to find the location of any element on a webpage using HTML DOM structure
[Java] 46. What is the difference between Default AccessMod and Protected AccessMod? (1 min.) - Solution: Protected can be visible in subClasses and anywhere in the package. Default can only be visible in the same package and NOT in subclasses.
[Selenium] 47. How many different types of XPATh locators are there? (1 min.) - Solution:
[Java] 48. What is the difference between checked and unchecked Exception? (2 min.) - Solution:
[Selenium] 49. What are the advantages and disadvantages of Selenium? (3 min.) - Solution: 1. Selenium is open source and free to use without any licensing cost. 2. It supports multiple programming languages 3. It supports multi-browser testing 4. It has a good amount of resources and helping community 5. It supports many operating systems 6. Interact with the web application. Disadvantages: 1. Selenium supports only web-based applications 2. It doesn't have built-in reporting tool 3. Cannot work with graphics, captchas, barcodes, shape. 4. It doesn't support file upload facility
[Selenium] 50. What is Selenium tool set? (2 min.) - Solution: 1. Selenium IDE: Implemented as a Chrome and Firefox extension, and allows you to record, edit, and debug test 2. Selenium Remote Control: to write automated web application UI tests in any programming language 3. Selenium WebDriver: execute your tests against different browser 4. Selenium GRID: runs your tests on different machines against different browsers in parallel
[Selenium] 51. What it's the difference between Implicit Wait Vs Explicit Wait? (2 min.) - Solution: An explicit wait makes WebDriver wait for a certain condition to occur before proceeding further with execution. An implicit wait makes WebDriver poll the DOM for a certain amount of time when trying to locate an element, before throwing "NoSuchElement Exception"
[Selenium] 52. What are various ways of locating an element in Selenium? (2 min.) - Solution: By using any of the Selenium locators: Id, name, className, xpath, cass, linkText, partialLinkText, tagName
[Selenium] 53. Reason why you would not be able to locate an element. (2 min.) - Solution: Locator changed, there is and iframe, Waiting time (page is loading slowly or Element is dynamic), page is not fully loaded/opened, page changes and that element doesn't exist anymore
[Selenium] 54. What is Absolute and Relative xpath? (2 min.) - Solution: Absolute Xpath (starts with single (/): It uses Complete path from the Root Element to the desire element. Relative Xpath (starts with single (//): You can simply start by referencing the element you want and go from there. Relative Xpath are always preferred as they are not the complete paths from the root element.
[Selenium] 55. How can we move to parent element using xpath? (2 min.) - Solution: Using (..)expresion in xpath, we can move to parent element
[Selenium] 56. Mention 4 exceptions in Selenium and how to handle them (5 min.) - Solution: Though there are many Exception classes under WebDriverException, we commonly see these: NoSuchElementException, NoSuchWindowException, NoSuchFrameException, NoAlertPresentException, InvalidSelectorException, ElementNotVisibleException, ElementNotSelectableException,TimeoutException, NoSuchSessionException, StaleElementReferenceException
[Java] 57. Mention 4 exceptions in Java and how to handle them (5 min.) - Solution: NullPointerException, ArrayIndexOutOfBoundsException, ClassCastException, llegalArgumentException, IllegalStateException.
[GH] 58. What is the gitignore file? (2 min.) - Solution: gitignore file is a text file that tells Git which files or folders to ignore in a project. A local . gitignore file is usually placed in the root directory of a project. ... Each new line should list an additional file or folder that you want Git to ignore. The entries in this file can also follow a matching pattern.
[Jira] 59. Where do you get your test data? (2 min.) - Solution: BA provides, dummy data websites (generated in excel), java faker and developers provide from database
[Jira] 60. How do you test login functionality? (5 min.) - Solution:
[Selenium] 61. Differences between driver.close and driver.quit command (2 min.) - Solution: driver.close() is used to close the current browser. driver.quit() is used to close all the browser instances
[Selenium] 62. How can we move to the nth child element using xpath? (2 min.) - Solution: There are two ways: 1. Using square brackets with index position, like div[2] will find the second div element. 2. Using position() method like dive[position()=2] will find the second div element
[Java] 63. What is an Exception and exception handling? (3 min.) - Solution: Exceptions are events due to which java program ends abruptly without giving expected output. Java provides a framework where a user can handle exceptions. The process of handling Exceptions is called Exception Handling. Exceptions need to be handled because they break the normal flow of execution of a program. One of the important intentions of exception handling is to prevent this break and continue program execution. Sometimes, you might want to perform some series of actions on occurring of a certain exception.
[Java] 64. Mention the class hierarchy of exception and error. (3 min.) - Solution: #1) Checked Exception: Checked exception is handled during compile time and it gives the compilation error if it is not caught and handled during compile time. #2) Unchecked Exception: In case of the unchecked exception, a compiler does not mandate to handle. The compiler ignores during compile time. #3) Error: When a scenario is fatal and the program cannot recover then JVM throws an error. Errors cannot be handled by the try-catch block. Even if the user tries to handle the error by using Try catch block, it cannot recover from the error.
[Java] 65. How do you handle an exception? (3 min.) - Solution: Try and Catch block: try-catch blocks are generally used to handle exceptions. Type of exceptions is declared in catch block which is expected to come. When an exception comes in try block, immediately control moves to catch block. throws Exception: throws keyword in java is used to throw an exception rather than handling it. All checked exceptions can be thrown by methods. finally block: finally, block executes irrespective of execution of try-catch block and it executes immediately after try/catch block completes. Throwable: Throwable is a parent class for error and exception. Generally, it is difficult to handle errors in java. If a programmer is not sure about the type of error and exception, then it is advised to use the Throwable class which can catch both error and exception.
[Java] 66. What is 508 testing? (2 min.) - Solution:
[SS] 67. How many environments are there? (1 min.) - Solution:
[SS] 68. Which part of the regression test should be automated? (3 min.) - Solution: tests which are stable, repeated frequently, simple and required no tester input are good candidates for automation (edited)
[Java] 69. What is the abstract concept in OOP and why do we use it? Give one example please (2 min.) - Solution: Abstract classes help us organize what all the subclasses SHOULD have/do
[Java] 70. What is the difference between Interface and Abstraction? How are each created? What methods cannot be abstract/interfaced? (3 min.) - Solution:
[TQ] 71. Write a return method that can reverse String. (2 min.) - Solution:
[TQ] 72. Write a return method that can remove the duplicated values from String. (2 min.) - Solution:
[TQ] 73. Write a return method that can find the unique characters from the String. (2 min.) - Solution:
[TQ] 74. Write a return method that check if a string is build out of the same letters as another string. (2 min.) - Solution:
[TQ] 75. Write a return method that can find the frequency of characters. (2 min.) - Solution:
[TQ] 76. Write a method that can return the sum of the digits in a string. (2 min.) - Solution:
[TQ] 77. Write a method that can find the maximum number from an int Array. (2 min.) - Solution:
[TQ] 78. Write a method that can find the minimum number from an int Array. (2 min.) - Solution:
[TQ] 79. Write a return method that can concat two arrays. (2 min.) - Solution:
[TQ] 80. Write a method which can identifies given number is even or odd. (2 min.) - Solution:
[TQ] 81. Write a method which prints out the numbers from 1 to 30 but for numbers which are a multiple of 3, print "FIN" instead of the number and for numbers which are a multiple of 5, print "RA" instead of the number. for numbers which are a multiple of both 3 and 5, print "FINRA" instead of the number. (2 min.) - Solution:
[TQ] 82. Write a method that can divide two numbers without using division operator. (2 min.) - Solution:
[TQ] 83. Swap two variable' values without using a third variable. (2 min.) - Solution:
[TQ] 84. Write a return method that returns the factorial number of any given number. (2 min.) - Solution:
[TQ] 85. Write a method that can check if a number is prime or not. (2 min.) - Solution:
[TQ] 86. Write a return method that returns the Fibonacci of any given number. (2 min.) - Solution:
[TQ] 87. Given a list of fruit names: "Apple", "Pear", "Pomegranate", "Apple" Write a java operation to remove all the names Apple. (2 min.) - Solution:
[Java] 88. Can we override the static methods? (2 min.) - Solution: No, we can not override static methods. If a static method is created with a similar method signature as a method being passed down by inheritance this will be method hiding, not overriding.
[Java] 89. Can we execute a program without main() method? (2 min.) - Solution: Yes, one of the ways to execute the program without the main method is using static block. Also, in testing we use other approaches such as the Test annotations to run the code.
[Java] 90. What is difference between stack and heap? (2 min.) - Solution: Both are used for memory but have different purposes. Stack: Stores primitives, method calls, and references; Heap: Stores the objects themselves. The String pool is also in the heap.
[Java] 91. What are Wrapper classes? (2 min.) - Solution: Wrapper classes are object representations of primitive datatypes. These classes are needed to be able to store primitive like data in collections such as ArrayList. These wrapper classes also have useful utility methods.
[SS] 92. What did you talk about in your last retro meeting? Give an Example Please... (5 min.) - Solution: What went well during the last sprint / What didnt go well during the last sprint / How can we improve for the next sprint