0% found this document useful (0 votes)
30 views2 pages

API - Javascript - D3 Test - L2 - 202310

1) The document provides APIs for fetching posts, users, and comments data from a JSON placeholder API. It asks to build a simple application with home and post details pages using the data from the APIs and displaying additional user details. 2) It also asks to modify an existing D3 bar chart visualization code to change axis scales, keep the tooltip visible on highlight, change highlight color, and add additional features. 3) It provides programming logic problems - writing functions to check if integers form a right triangle, and subtracting integers based on comparisons. 4) It asks to write pseudocode to find customers whose withdrawals exceed deposits in the last 6 months from a banking transactions table.
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)
30 views2 pages

API - Javascript - D3 Test - L2 - 202310

1) The document provides APIs for fetching posts, users, and comments data from a JSON placeholder API. It asks to build a simple application with home and post details pages using the data from the APIs and displaying additional user details. 2) It also asks to modify an existing D3 bar chart visualization code to change axis scales, keep the tooltip visible on highlight, change highlight color, and add additional features. 3) It provides programming logic problems - writing functions to check if integers form a right triangle, and subtracting integers based on comparisons. 4) It asks to write pseudocode to find customers whose withdrawals exceed deposits in the last 6 months from a banking transactions table.
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/ 2

Creating Information Advantage

1. Programming: APIs
APIs for your reference:

GET List of Posts


https://jsonplaceholder.typicode.com/posts

get List of users


https://jsonplaceholder.typicode.com/users

Get Details of an user (1 is the userid, change as required)


https://jsonplaceholder.typicode.com/users/1

get comments of a post (1 is the postid, change as required)


https://jsonplaceholder.typicode.com/posts/1/comments

Create a Simple Application with the following Pages

1) Home Page - Show list of Posts (title, content), from the Posts API, for ever post, Fetch and Show the name of
the User who has created the post
2) when the user clicks the post, show the post details page, user details of the user who has created that post,
and comments of said post

Technologies to Use:
1) A FrontEnd framework of your Choice (React, Vue, Angular, etc...)
2) Use a Router to navigate between pages
3) use a Store to store the data

Bring Out the “You” in your solution:


Add additional features that demonstrate your technical, functional, technofunctional expertise and experience.

How to Submit the Assignment:


Option 1) you can use codesandbox and send the working application link
Option 2) Create a repo in github and then push your commits (Bonus Points for this)

2. Programming: D3 Visualization: (Can be solved with basic Java Script Understanding)


https://jsfiddle.net/aqxrL2zf/ Explore this code, understand, make the following changes. Make
any Assumptions including adding additional data fields required

1) Change the Y Axis Scale to be from


i. For Y Axis, instead of 0 to 100, provide a scale that starts with Min and Max
Values as per the data
ii. Try it with some negative values, so it still works

2) When you highlight on a bar, it expands, but tool tip (% number) goes away
i. Change the code so that the tool tip remains
ii. Change the highlighted colour from green to blue
Iii. Add a Percentile Line with Y2 Axis as Percentile Scale
Iv. Add any other additional features you can think of (indicate what they are)

How to Submit the Assignment: Share this jsfiddle in your name and share the link for your modified codeb

It is not the textbook perfect answer that we are looking for, but the strength of your foundational
understanding, eye for the details, curiosity in your mind and the ability to formulate solutions.
Creating Information Advantage

3. Programming Logic 1

Write a function that accept three positive integers as input and check if they form the sides of a right
triangle. Print YES if they form one, and NO if they do not. The output should be a single line containing
one of these two strings: YES or NO.

4. Programming Logic 2

Write a function which accepts two positive integers M and N as input. There are two cases to
consider:
(1) If M < N, then print M as output.
(2) If M >= N, subtract N from M. Call the difference M1. If M1 >= N, then subtract N from M1
and call the difference M2. Keep doing this operation until you reach a value k, such that, M k < N. You
have to print the value of Mk as output.

a. Test case 1 :
i. Input – M = 10, N = 15
ii. Output : 10
b. Test case 2:
i. Input – M = 15, N = 15
ii. Output : 0
c. Test case 3 :
i. Input – M = 15, N = 10
ii. Output : 5

5. Use Case Understanding


Assume a table with the following banking table for savings account with the fields:

Customer_Account_Number, pan_number, txn_date, credit_amount, debit_amount, balance. There will


be one record for every transaction.

Write a pseudocode to get all customers whose withdrawals are more than the deposits ove the last 6
months cumulatively. State your assumptions if any and write the program (or a pseudocode). Create
test data as needed.

It is not the textbook perfect answer that we are looking for, but the strength of your foundational
understanding, eye for the details, curiosity in your mind and the ability to formulate solutions.

You might also like