Assignments

Exercise

Exercise General Instructions:-

  • Ideally, the code should be shared on your GitHub (give us the GitHub link)
  • Include test cases with your code
  • Include a readme to describe how to execute your code and test cases

Problem statement

Q1. Write a bash script which will count number of files and directories in any directory.

  • User must be able to give the directory name through command line argument.
  • If the directory doesn't exist it should pop up a message "Given directory abc doesn't exist".
  • Count the number of files and directories in that directory and show output of the result.
  • Output should also contain the size of files present in that directory as well as in sub-directories.

Q2. Create an Ansible generic role to install AWS CLI with below requirements -

  • Role must pe platform independent (i.e role can install on different OS families like RedHat & Debian )
  • Minimum use of shell & command module
  • Install awscli only if not installed
  • Configure awscli with demo credentials AWS Access Key (AKIA12345RN25BN12345), AWS Secret Access Key (ABCDefghn4PjVweiC3vZIJFRz3jS12345678) and AWS Region (ap-south-1)

Exercise

Exercise General Instructions:-

  • Ideally, the code should be shared on your GitHub (give us the GitHub link)
  • Include test cases with your code
  • Include a readme to describe how to execute your code and test cases

Problem statement

Q1. Write a bash script to block the "Unauthorized Access" on the web-server through iptables from the given log file. Download log file here

Q2. Create a generic Ansible role which can install and configure NGinx & Apache web-servers

  • Create a README.md
  • Role must pe platform independent (i.e role can install on different OS families like RedHat & Debian )
  • Minimum use of shell & command module
  • User must have option to install Apache or Nginx through command line input
  • Install Apache/Nginx if not installed
  • Create a vhost file using Jinja2 template

Exercise

Exercise General Instructions:-

  • Ideally, the code should be shared on your GitHub (give us the GitHub link)
  • Include test cases with your code
  • Include a readme to describe how to execute your code and test cases

Problem statement

You will have two parts for the assignment.

1. Your task is to write Test Cases in an excel spreadsheet to test the end to end Shopping experience. Test case should cover the test cases from Registration to add a product to a shopping cart and proceed to checkout and place the order.

2. Also, automate registration process using automation scripts to fill address, shipping details, and proceed to simulate payment.

Create all the possible scenarios that you would thoroughly test. Be specific with the instructions you provide for your scenarios and provide as much detail as possible so that another tester would be able to follow your instructions without any questions.

Please share the script and test cases links.

Exercise

Exercise General Instructions:-

  • Ideally, the code should be shared on your GitHub (give us the GitHub link)
  • Include test cases with your code
  • Include a readme to describe how to execute your code and test cases

Problem statement

Exercise

Exercise General Instructions:-

  • Ideally, the code should be shared on your GitHub (give us the GitHub link)
  • Include test cases with your code
  • Include a readme to describe how to execute your code and test cases

Problem statement

A palindrome is a word, phrase, number, or other sequence of units that can be read the same way in either direction, with general allowances for adjustments to punctuation and word dividers.

For a positive integer P of not more than 1000000 digits, write the value of the smallest palindrome larger than P to output. (Numbers are always displayed without leading zeros.)

Ensure that the assignment is submitted with working test cases

Input
The first argument is integer t which is the number of test cases. Followed by t number of positive integers.

Output
For each P, output the smallest palindrome larger than P.

Example

Input
2 809 2136

Output
818 2222

Exercise

Exercise General Instructions:-

  • Ideally, the code should be shared on your GitHub (give us the GitHub link)
  • Include test cases with your code
  • Include a readme to describe how to execute your code and test cases

General Instructions:-

- Don't use any mutable 'vars', nulls or throw Exceptions - (hint: use vals, Options and Eithers instead, if you need them).
- Bonus points: demonstrate use of a type parameter and/or a higher order function.

Problem statement

Consider a store where items have prices per unit but also volume prices. For example, apples may be $1.00 each or 4 for $3.00. Implement a point-of-sale scanning API that accepts an arbitrary ordering of products (similar to what would happen at a checkout line) and then returns the correct total price for an entire shopping cart based on the per unit prices or the volume prices as applicable.

Here are the products listed by code and the prices to use (there is no sales tax):

Ensure that the assignment is submitted with working test cases

Product Code Price
A $2 each or 4 for $7
B $12
C $1.25 each or $6 for a six-pack
D $.15

There should be a top level point of sale terminal service object that looks something like the pseudo-code below. You are free to design and implement the rest of the code however you wish, including how you specify the prices in the system:

terminal.setPricing(...)
terminal.scan("A")
terminal.scan("C")
... etc.
result = terminal.total

    Here are the minimal inputs you should use for your test cases. These test cases must be shown to work in your program:
  • Scan these items in this order: ABCDABAA; Verify the total price is $32.40.
  • Scan these items in this order: CCCCCCC; Verify the total price is $7.25.
  • Scan these items in this order: ABCD; Verify the total price is $15.40.

Exercise

Problem statement

Please go through the below attached assignment, after completing it please share you Github or Google docs URL with us for further interview process.

Download assignment here

Trusted by innovative organizations, big and small.
Awards and Recognitions
Upcoming webinar:

REST API using Akka HTTP with Scala on 29th August, 2019 at 10:00 PM IST / 12:30 PM EDT Register here!