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

Set 2

Swiggy’s Focus on Personalization and Customer Engagement you know this paper ?

Uploaded by

elvishyadav7645
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Set 2

Swiggy’s Focus on Personalization and Customer Engagement you know this paper ?

Uploaded by

elvishyadav7645
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PLACEMENT PREPARATORY TEST

SET 2
1. If you want to retrieve a list of all customers and their respective orders, which SQL join will you use—
INNER JOIN or OUTER JOIN—and why
Customers table:
| CustomerID | Name | City |
|------------|-------|----------|
| 1 | John | New York |
| 2 | Alice | London |
| 3 | Bob | Paris |

Orders table:
| OrderID | CustomerID | Product |
|---------|------------|-------------|
| 101 | 1 | Laptop |
| 102 | 3 | Phone |
| 103 | 4 | Tablet |

2. What is the difference between DELETE and TRUNCATE commands?


3. How many tennis balls can fit into a typical classroom?
4. What are the 7P's of marketing?
5. In a sample of 25 data points. You want to calculate the sample standard deviation. How many degrees
of freedom would you use in your calculation?
6. What is the difference between a critical value and a p-value in a hypothesis test?
7. In a chi-square test, what is the null hypothesis typically stating?
8. In a one-way ANOVA, what is the F-statistic used to measure?
9. What is the SQL query to find the average salary of employees grouped by their department?
10. What is the difference between rank and dense_rank window function in sql?
11. Given a table named orders with columns order_date (DATE) and order_time (TIME), write an SQL query
to create a new column order_datetime that combines the order_date and order_time into a single
DATETIME value.
12. Scenario: You are working with a database for a small online bookstore. The database has two
collections: 'books' and 'sales'.
Aggregation Question: Write a MongoDB aggregation query to calculate the total number of books sold
and the total sales amount for each book genre.
13. Write a MongoDB pipeline query to find all books that have been sold more than 10 times and display
the book title and total quantity sold.
14. What Pandas method is used to fill missing values in a DataFrame with a specific value?
15. Given an array arr = np.array([12, 7, 9, 21, 5]), write a Python code that creates a new array where each
element is doubled if it is greater than 10 and remains unchanged if it is 10 or less.
16. Give the output:
import pandas as pd
data = {
'Product': ['Apple', 'Orange', 'Apple', 'Orange', 'Apple'],
'Quantity': [10, 20, 30, 40, 50]
}
df = pd.DataFrame(data)
grouped_df = df.groupby('Product')['Quantity'].mean()
grouped_df['Apple'] = grouped_df['Apple'] + 5

print(grouped_df)
17. Which of the following is a key advantage of using a "differentiation" strategy in marketing?
A. It allows the company to compete primarily on price
B. It attracts a mass market of customers
C. It creates customer loyalty by providing unique value
D. It reduces the need for significant R&D investment

18. In the context of consumer decision-making, what is the "evoked set"?


A. A list of all the brands available in a particular product category
B. A set of brands that the consumer is aware of but does not consider for purchase
C. A set of brands that a consumer considers for purchase from their awareness set
D. The final brand chosen by the consumer for purchase

19. Which of the following is a primary advantage of segmenting a market by psychographics rather than
demographics?
A. Psychographics provides more easily accessible data
B. It allows for more precise targeting of customer attitudes, interests, and lifestyles
C. It ensures that the target market consists of high-income consumers
D. It reduces the cost of market research

20. Which of the following methods is typically used to impute missing values in a dataset?

You might also like