https://github.com/osamajavaid/qualify-test
This Qualifying test for software house based in Peshawar
https://github.com/osamajavaid/qualify-test
css html interview-questions javasc nextjs reactjs tailwin
Last synced: 3 months ago
JSON representation
This Qualifying test for software house based in Peshawar
- Host: GitHub
- URL: https://github.com/osamajavaid/qualify-test
- Owner: osamajavaid
- Created: 2023-06-12T11:02:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-13T05:33:15.000Z (over 2 years ago)
- Last Synced: 2025-05-16T10:11:21.457Z (5 months ago)
- Topics: css, html, interview-questions, javasc, nextjs, reactjs, tailwin
- Language: JavaScript
- Homepage:
- Size: 15.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Qualifying test for Junior Document Generation Specialist role
Please answer the following questions with reference to the provided file `data.json`.
1. Write a JS expression that returns the number of DIRECTORS.
2. Write a JS expression that returns the number of SHAREHOLDERS.
3. Write a JS expression that lists the full names of all position holders.
4A. Is Product B hardware or software?
4B. Does Product A have a price of “100”?
4C. Is the launch date of Product B the 6th January 2010?
5. Write a JS expression that prints the effective date formatted in YYYY-MMM-DD format.
6. What is the JSON address in object notation that stores Robert Johnson’s email address?
7. Write a JS expression that returns an array of all unique email domains of the position holders.
8. Write a JS expression that returns an array of objects containing the names and email addresses of all DIRECTORS.
9. Write a JS function that takes an email domain as a parameter and returns an array of objects containing the names, email addresses, and corresponding _id of all position holders whose email addresses belong to the specified domain.
10. Write a JavaScript function that returns an array of objects containing the names and email addresses of the top 3 shareholders with the highest number of shares. The function should only consider shareholders whose email addresses belong to the “example.com” domain.
To determine the top shareholders, consider the following criteria:
● The number of shares held by each shareholder is stored in a separate array called “shareholdings”, you need to correlate this with the “global.positions” array.
● The order of shareholders in the “global.positions” array corresponds to the order of their shareholdings in the “shareholdings” array.
● The length of the “shareholdings” array is equal to the number of shareholders.