Analytics Quotient Java Selenium Interview Questions
In Softwaretestingblog we are trying to share various things like Java Selenium interview questions, Selenium Tutorials, Manual Testing, and SQL Queries.
Selenium
- Write a snippet code to executing javascript from selenium using javascript executor.
- How to handle frame.how to came back from the parent window.
- What is the difference between XPath and CSS selectors? Write the code using cssSelector…present in the validate day.
- Write a snippet code on SQL: Database connection
Java:
- Write a java program where you get rid of all the space from a string variable.
- Write a java program to retrieve all the permutations value using string.
- Write a java code to print a number is Prime number or not.
Some Database questions
- Difference between truncate, drop and delete.
Section A – Java & Testing
- Write code snippet for executing javascript using javascript executor in selenium?
- Write code snippet for the creation of SQL- DB Connection
- How to handle frames in webDriver? And how to come back to the present window?
- What is Maven build life cycle? Name 3 build lifecycle of Maven
- What is the difference between Xpath and CSSSelector? Write CSS Selector for below Snippet to find available days<div class=”day past calendar day 2017-02-13 calendar row-1 unavailable”>
<div class=”day today calendar day 2017-02-14 calendar row-2 unavailable”>
<div class=”day calendar day 2017-02-15 calendar row-3″>
<div class=”day calendar day 2017-02-16 calendar row-4″> - Write code to print below Pattern:*
***
*****
*******
*********Or1
12
123
1234
12345For Solution Visit: Number Pattern Program & Star Pyramid Program - Write code for: Replace substring with another string in a string [Or] Reverse a string without using reverse function
- Find the Inner HTML Of below:div<div class=”voteforme”>
<input type=”hidden_1″ name=”_id_” value=”26219″>
<a class=”vote-up-off” title=”This Answer is Useful”>Up Hello Vote</a>
<div> - Which will logically corect or array?int[] mylist={“1″,”2″,”3”};
int[] mylist={5,6,7};
int mylist[][]={4,5,6,7};
int mylist[]={4,5,6}
Section B – Database
With reference to the database table given below which query will you write to retrieve all employee whether they have matching departments in the department’s table
Employees | ||
Last_Name | Department_ID | Salary |
Bose | 10 | 1,00,000 |
Sinha | 20 | 90,000 |
Sinha | 30 | 10,111 |
Nayak | 20 | 70,000 |
Sampath | 60,000 |
Departments | |
Department_ID | Department_Name |
10 | Sales |
20 | Marketing |
30 | Accounting |
40 | Addmistration |
- Select last name, department_name from employee e left outer join department d on (e.department_id=d.department_id)
- Select last name, department_name from employee e right outer join department d on (e.department_id=d.department_id)
- Select last_name, department_name from employee full outer join department d on (e.department_id=d.department_id)
- None of the above
What is the difference between SQL, ‘truncate’, ‘drop’ and ‘delete’ statement and explain?
About Analytics Quotient
Analytics Quotient (AQ) partners with large global brands to provide solutions in the areas of data science, scalable analytics and data visualization. Analytics Quotient two primary service verticals are Analytics & Insight Generation and Data Visualization & Management.
Analytics Quotient builds large, continuous analytics engagements that help clients answer simple business questions and execute advanced analytics projects. Our best-in-class visualization solutions can be integrated with marketing research and any other type of data.
We have 400+ associates who are globally located across Atlanta, Bentonville, Norwalk, Rogers, San Francisco, London, and Bangalore.
Leave a Reply