AgnikWebInterview v2.1
AgnikWebInterview v2.1
How to submit the answers: Please write down your name and answers to all questions except
question 6 in this file. For question 6, include the HTML file and any other required file. Make a .rar file
for everything. Rename the .rar file to “your full name_AgnikWebTest.rar”. Email the file to the email
address from which you received the test.
Date:
=======================================================
1. In which conditions should we use the ‘==’ operator and not the ‘===’ operator in JavaScript? [2 marks]
4. State how an inner function can access the outer function’s scope in JavaScript. [2 marks]
1. Create 3 input boxes with labels “Red”, “Green”, and “Blue” respectively, that take only numbers as input.
2. Create another input box with the label “Number of Circles” that takes a number from 0 to 10 as input.
3. Create a button called “Submit”.
4. On click of the “Submit” button, display ‘n’ numbers of Red circles, ‘n’ number of Green circles, and ‘n’ number of
Blue circles in 3 separate rows in the top to bottom order respectively, where ‘n’ is the value entered in “Number
of Circle” input field as in point 2.
5. Along with the Circles. Display 2 more buttons, “Start” & “Reset”.
6. On click of “Start”, the circles will start to disappear in the following order,
a. The red circle row will disappear ‘x’ seconds after the click of “Start”.
b. The green circle row will disappear ‘y’ seconds after the Red circle row disappears.
c. The blue circle row will disappear ‘z’ seconds after the Green circle row disappears.
Where x, y & z are the values entered in the input box “Red”, “Green”, and “Blue” respectively as in point 1.
Demo UI:
Name: worker
A. Write an SQL query to fetch the list of employees with the same salary, using only one select statement. [3 marks]
B. Write an SQL query to fetch the names of all workers who earn the highest salary. [3 marks]
C. Write an SQL query to fetch departments along with the total salaries paid for each of them. [2 marks]
D. Write an SQL query to fetch three max salaries from the worker table. [2 marks]
E. Write an SQL query to print the names of employees having the highest salary in each department. [3 marks]