0% found this document useful (0 votes)
4 views3 pages

AgnikWebInterview v2.1

This document outlines the instructions for a programming test, including how to submit answers and the total marks available. It contains questions related to JavaScript, HTML, and SQL, requiring explanations and coding tasks. Participants must provide their name and answers in a specified format and submit a .rar file via email.

Uploaded by

saikat ganguly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

AgnikWebInterview v2.1

This document outlines the instructions for a programming test, including how to submit answers and the total marks available. It contains questions related to JavaScript, HTML, and SQL, requiring explanations and coding tasks. Participants must provide their name and answers in a specified format and submit a .rar file via email.

Uploaded by

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

PROGRAMMING TEST PART II

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.

Name: Total Marks: 40

Date:
=======================================================

1. In which conditions should we use the ‘==’ operator and not the ‘===’ operator in JavaScript? [2 marks]

2. What is implicit type coercion in JavaScript? [2 marks]

3. When do you pass a function as an argument to another function in JavaScript? [3 marks]

4. State how an inner function can access the outer function’s scope in JavaScript. [2 marks]

5. What is the scope chain in JavaScript? [2 marks]


6. Make an HTML page (using JavaScript/JQuery, CSS. You can also use Bootstrap) as follows: [16 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.

7. On click of “Reset”, the page will reset to its initial state.

Demo UI:

This section will


appear as soon
as the page
loads.

This section will


appear after
clicking submit.
7. SQL/ Database

Consider the following table.

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]

You might also like