Zypp Electric
Zypp Electric
Zypp Electric
6. What is the process of defining a method in a subclass having same name & type
signature as a
method in its superclass?
a) Method overloading
b) Method overriding
c) Method hiding
d) None of the mentioned
7. What is the use of final keyword in Java?
a) When a class is made final, a subclass of it can not be created
b) When a method is final, it can not be overridden.
c) When a variable is final, it can be assigned value only once.
d) All of the above
if (nums[mid] == target)
return mid;
else if (nums[mid] < target)
left = mid + 1;
else
right = mid - 1;
}
return left;
}
1. Which MySQL function would you use to concatenate strings from multiple
rows into a single string?
CONCAT_WS
GROUP_CONCAT
CONCAT
STRING_CONCAT
WINDOW
OVER
PARTITION
WITH
DROP INDEX
DELETE INDEX
SQL Questions 1
REMOVE INDEX
ERASE INDEX
ALTER INDEX
MODIFY INDEX
ADD INDEX
CREATE INDEX
7. Which JOIN type in MySQL is suitable for combining rows from two tables
even if there is no match found in the other table?
INNER JOIN
LEFT JOIN
RIGHT JOIN
8. In SQL, what is the typical syntax for using the LAG function?
LAG(column_name)
LAG(column_name, n)
LAG(n, column_name)
LAG
9. Question 1:
Consider the following scenario where you have a table named
"employees" in a MySQL database. The table has the following structure:
SQL Questions 2
CREATE TABLE employees (
emp_id INT PRIMARY KEY,
emp_name VARCHAR(50),
department_id INT,
salary DECIMAL(10, 2),
hire_date DATE
);
Answer: -
10. Question 2
The ideal time between when a customer places an order and when the
order is delivered is below or equal to 45 minutes.
You have been tasked with evaluating delivery driver performance by
calculating the average order value for each delivery driver who has
delivered at least once within this 45-minute period.
Your output should contain the driver ID along with their corresponding
average order value.
Table: Delivery_details
driver_at_restaurant_datetime DATETIME,
driver_id INT,
restaurant_id INT,
consumer_id INT,
is_new BOOLEAN,
delivery_region VARCHAR(255),
is_asap BOOLEAN,
order_total FLOAT,
discount_amount FLOAT,
tip_amount FLOAT,
refunded_amount FLOAT
);
Answer: -
SELECT
driver_id,
AVG(order_total) AS average_order_value
FROM
orders
WHERE
delivered_to_consumer_datetime IS NOT NULL
AND TIMESTAMPDIFF(MINUTE, placed_order_with_restaurant_datetime,
delivered_to_consumer_datetime) <= 45
GROUP BY
driver_id;
SQL Questions 4
NAME:- RAJA SAHA Reg.No:- 12209471 Date:- 15/02/2024
Part A - MCQs:
A. Read each question carefully and select the correct option (A, B, C, or D).
B. Mark your answer on the provided answer sheet or select the corresponding option electronically.
C. Review your answers before submission.
Part B - Open-ended:
Part - A
MCQ
1
● What does CAN stand for in the context of telematics devices?
a) Controlled Area Network
b) Cellular Access Network
c) Controller Area Network
d) Centralized Area Network
2
Part-B
Answer the following Questions
2. What are the key factors to consider when selecting Telematic IoT devices for fleet
management and logistics operations?
Answer:-
• Connectivity: Ensure compatibility with reliable and scalable communication
networks to maintain constant communication with fleet assets.
• Accuracy: Prioritize devices with accurate GPS tracking and sensor readings
to make informed decisions based on reliable data.
• Real-Time Monitoring: Choose devices providing real-time insights for
effective monitoring and quick response to changes or issues in the fleet.
• Integration: Select devices that seamlessly integrate with existing fleet
management systems to streamline operations and avoid data silos.
• Data Security: Prioritize devices with robust security features to protect
sensitive fleet data and comply with privacy regulations.
3
3. How does IoT contribute to the concept of smart cities?
OR
Can you describe a project or experience where you successfully implemented an IoT
solution?
Answer:-
The “AirWatch” project, an IoT-based Air Quality Tracker Solution, addresses global
air pollution concerns by developing an affordable gadget to monitor pollutants like
CO, CO2, noise, temperature, and humidity. Utilizing ESP32 for energy-efficient
operation and incorporating sensors such as PM2.5, MQ-7, and MQ135, the system
provides real-time data displayed on an LCD. The project employs machine learning to
enhance sensor accuracy and offers audible alerts through a Piezo Buzzer. Results are
visualized on the Blynk Platform, providing clear insights into air quality levels. Future
plans include advanced data analytics, integration with smart city initiatives, and
continuous sensor improvements to contribute effectively to climate change initiatives
and public health outcomes. The project stands as an impactful solution, striving for a
healthier, sustainable world.
4. What are some challenges or limitations faced in the deployment and implementation
of IoT solutions?
Answer:-
• Security Concerns: Ensuring the security of IoT devices and data from cyber
threats remains a top challenge, requiring continuous efforts to prevent
unauthorized access and data breaches.
• Interoperability: Lack of standardized protocols hinders seamless integration
between different IoT devices and platforms, limiting the scalability and
efficiency of IoT solutions.
• Scalability: As IoT networks grow, managing the scalability of infrastructure
and handling a large number of connected devices become significant challenges.
• Data Privacy: The extensive data collected by IoT devices raises concerns about
user privacy, necessitating clear policies and compliance with data protection
regulations.
• Power Consumption: Optimizing power consumption is crucial, especially for
devices with limited battery life, to ensure prolonged device lifespan and
operational efficiency.