Acies Global-1
Acies Global-1
To find synonyms,antonyms of the words. To infer what the passage is about etc..
The participants were asked to join the google meet link with cameras on.
The topic given was “Are self driving cars safer or dangerous?”.
2.After everyone completed their turn, they asked us to interact with each other and question
about each other’s opinions.
Given a list of integers determine if the product of the integers is even or odd. If the product
is even return sum of integers else return 0
ANSWER:
def check_product_and_get_sum(int_list):
product = 1
product *= num
if product % 2 == 0:
return sum(int_list)
else:
return "Product is odd"
integers = [1,2, 3, 4]
result = check_product_and_get_sum(integers)
print(result)
You are the manager of a popular restaurant chain. You have two warehouses that service your
restaurants. You've been tasked to go through the inventory at both warehouses and provide a
sorted, comprehensive list of all of your items between the two warehouses. Your assistant has
written a function complete_inventory that takes 2 integer arrays (warehouse 1 and warehouse_2)
and 2 integers (x and y) and returns an array. The arrays warehouse_1 and warehouse 2 contain the
product IDs of your inventory in warehouse 1 and warehouse 2 respectively, in sorted fashion. The
integers x and y represent the number of initialized items in warehouse 1 and warehouse 2
respectively. Also note that warehouse_1 will be large enough to hold all values of both
warehouse_1 and warehouse_2 The goal of the function is to combine warehouse_1 and
warehouse_2 into warehouse_1 in a way that you get a sorted array of product IDs from both
warehouses. You found some issues with the function your assistant made and it's up to you to
debug the function.
back_index = len(warehouse_1)
first_pointer =x
second_pointer =y
else:
warehouse_1[back_index] = warehouse_2[second_pointer]
return warehouse_1
ANSWER:
back_index = len(warehouse_1) - 1
first_pointer = x - 1
second_pointer = y - 1
first_pointer -= 1
else:
warehouse_1[back_index] = warehouse_2[second_pointer]
second_pointer -= 1
back_index -= 1
return warehouse_1
Class ,inheritance, polymorphism, abstraction and other oops concepts , datastructures, software
engineering based case studies
3.what difficulties u faced in doing the project and how u overcame that.
4.Explain about any internships u have done and what have u learnt from that
5.Consider a scenario where a company’s profit has reduced greatly compared to the previous year.
What solution would u give to the company.
6. There are three boxes, one contains only apples, one contains only oranges, and one contains both apples
and oranges. The boxes have been incorrectly labeled such that no label identifies the actual contents of the
box it labels. Opening just one box, how could you label every box correctly
Final Round:
3.What is an IDE