Developer Interview Questions

269,153 developer interview questions shared by candidates

A company is assigning four tasks - Payroll, Inventory, Marketing, and Sales-to four employees: Aaliyah, Brent, Claire, and David. Each employee will handle exactly one task, which will be assigned to exactly one employee. The following conditions apply. • If Aaliyah is assigned Payroll, then David must be assigned Inventory. • If Brent is assigned Marketing, then Claire cannot be assigned Sales. • If Claire is assigned Inventory, then Aaliyah must be assigned Sales. Which of the following assignments is possible? Options 1. Aaliyah: Payroll, Brent: Inventory, Claire: Marketing, David: Sales 2. Aaliyah: Payroll, Brent: Marketing, Claire: Sales, David: Inventory 3. Aaliyah: Marketing, Brent: Sales, Claire: Inventory, David: Payroll 4. Aaliyah: Payroll, Brent: Sales, Claire: Inventory, David: Marketing 5. Aaliyah: Sales, Brent: Marketing, Claire: Inventory, David: Payroll
avatar

MERN Developer

Interviewed at McKinley Rice

3.8
Nov 18, 2024

A company is assigning four tasks - Payroll, Inventory, Marketing, and Sales-to four employees: Aaliyah, Brent, Claire, and David. Each employee will handle exactly one task, which will be assigned to exactly one employee. The following conditions apply. • If Aaliyah is assigned Payroll, then David must be assigned Inventory. • If Brent is assigned Marketing, then Claire cannot be assigned Sales. • If Claire is assigned Inventory, then Aaliyah must be assigned Sales. Which of the following assignments is possible? Options 1. Aaliyah: Payroll, Brent: Inventory, Claire: Marketing, David: Sales 2. Aaliyah: Payroll, Brent: Marketing, Claire: Sales, David: Inventory 3. Aaliyah: Marketing, Brent: Sales, Claire: Inventory, David: Payroll 4. Aaliyah: Payroll, Brent: Sales, Claire: Inventory, David: Marketing 5. Aaliyah: Sales, Brent: Marketing, Claire: Inventory, David: Payroll

1) Update the existing map without creating another map. 2) Write code to show the deadlock. 3) Find the maximum number from the given array. 4) Write the signature of service returning all the records from the provided table. 5) Explain about the Json format.
avatar

Senior Java Developer/Lead

Interviewed at WhizAI, an IQVIA business

4.7
May 5, 2022

1) Update the existing map without creating another map. 2) Write code to show the deadlock. 3) Find the maximum number from the given array. 4) Write the signature of service returning all the records from the provided table. 5) Explain about the Json format.

1. You have two strings. A test string and a glob Test string can have a & b, any number of times, any location. Glob can have a, b, ? and *, any number of times, any location. E.g. test= {a,b,a,a,a,a,b,b,b,b,b,b} glob = {a,?, *, b} Now, ? means ANY character, single occurrence. So it's either a or b, one time * means ANY OR NO character, any number of occurrences. E.g. the above glob and test actually match. Problem is: write an algorithm to match glob with test. You MAY NOT use regular expressions :D 2. The input is any string of any length of any characters. Write a program to generate ALL unique permutations of those characters. Unique. You may not store in an array or list, due to memory constraints. e.g. for input of abc your program should give 6 permutations but for aba your program should give 3. Hint: make the list alphabetical.
avatar

Systems Developer

Interviewed at Two Sigma

3.9
Aug 9, 2012

1. You have two strings. A test string and a glob Test string can have a & b, any number of times, any location. Glob can have a, b, ? and *, any number of times, any location. E.g. test= {a,b,a,a,a,a,b,b,b,b,b,b} glob = {a,?, *, b} Now, ? means ANY character, single occurrence. So it's either a or b, one time * means ANY OR NO character, any number of occurrences. E.g. the above glob and test actually match. Problem is: write an algorithm to match glob with test. You MAY NOT use regular expressions :D 2. The input is any string of any length of any characters. Write a program to generate ALL unique permutations of those characters. Unique. You may not store in an array or list, due to memory constraints. e.g. for input of abc your program should give 6 permutations but for aba your program should give 3. Hint: make the list alphabetical.

Viewing 851 - 860 interview questions

Glassdoor has 269,153 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.