0% found this document useful (0 votes)
6 views7 pages

Li-Fi Emergency Healthcare Monitoring System

Uploaded by

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

Li-Fi Emergency Healthcare Monitoring System

Uploaded by

Lekhasri. M Leka
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

My project is titled “Secured Emergency Healthcare Monitoring System using

Li-Fi.”
The goal is to securely transmit real-time patient health data using Li-Fi and
strong encryption techniques.
On the transmitter side, we use three sensors — BMP (for pressure), MAX30100
(for heart rate and oxygen), and MPU6050 (for movement) — connected to an
Arduino Uno. These sensors collect patient health data, which is then shown on
an LCD and encrypted using AES, a symmetric encryption method.
A random AES key is generated, and to secure that key, it is encrypted using RSA
public key encryption.
Both the AES-encrypted data and the RSA-encrypted AES key are transmitted via
Li-Fi, using an LED torch.
On the receiver side, a Raspberry Pi Pico W with a solar panel receives the
light signals. It uses the RSA private key to decrypt the AES key, then uses
that AES key to decrypt the original data. Finally, the decrypted data is
displayed on an LCD.
I was responsible for handling the sensor data collection, implementing AES and
RSA encryption, and managing the full Li-Fi-based communication.
This system is highly useful for secure and fast data transmission in emergency
healthcare scenarios, especially in places where RF-based communication is not
reliable or not allowed, like operation theatres or intensive care units.

What is negative indexing in Python?


Python allows you to use -1, -2, -3... to access elements from the end of a
list.

python
Copy
Edit
my_list = [10, 20, 30, 40]
print(my_list[-1]) # Output: 40
2. What’s the difference between global and local variables?
Local: Defined inside a function. Works only there.

Global: Defined outside functions. Can be used anywhere.

python
Copy
Edit
x = 10 # global

def func():
y = 5 # local
3. How do you create an array in Python?
Use the array module or just use a list.

python
Copy
Edit
from array import array
arr = array('i', [1, 2, 3])
4. What is 'self' in Python?
self refers to the current object of the class. It's used to access variables
and methods inside the class.

python
Copy
Edit
class Student:
def __init__(self, name):
[Link] = name
5. Does Python use private and public access?
Python doesn’t enforce access control but uses:

_var → "protected" (by convention)

__var → "private" (name mangling)

6. What are the two major loop statements in Python?


for loop and while loop

python
Copy
Edit
for i in range(5):
print(i)

i = 0
while i < 5:
print(i)
i += 1
7. Difference between NumPy and SciPy?
NumPy: Basic arrays and math

SciPy: Advanced science functions (like integration, statistics)

8. What is a module in Python?


A file containing Python code you can reuse in other programs.

python
Copy
Edit
import math
print([Link](25))
9. What is data abstraction in Python?
Hiding complex details and showing only necessary things using classes and
methods.

10. Can Python connect to a database?


Yes, using libraries like mysql-connector-python, sqlite3, etc.

🛢 MySQL Questions – Easy Answers


1. What is a JOIN and its types?
Combines rows from two tables:
INNER JOIN – matching rows

LEFT JOIN – all from left, matching from right

RIGHT JOIN – all from right

FULL JOIN – all from both (not directly in MySQL)

2. What is normalization?
Organizing data in tables to remove duplicates and improve structure.

Example: Separating student info and marks into different tables.

3. What is a transaction in SQL?


A group of SQL commands that run as one single unit. Either all succeed or none
do.

sql
Copy
Edit
START TRANSACTION;
UPDATE accounts SET balance = balance - 1000 WHERE id = 1;
UPDATE accounts SET balance = balance + 1000 WHERE id = 2;
COMMIT;
4. What is a view in SQL?
A virtual table (output of a saved query). It shows data but doesn’t store it.

sql
Copy
Edit
CREATE VIEW high_salary AS
SELECT name FROM employees WHERE salary > 50000;
🌐 Web Development – Easy Answers
1. What are HTML, CSS, and JavaScript?
HTML: Structure (like the skeleton)

CSS: Style (colors, layout)

JavaScript: Logic (clicks, dynamic updates)

2. What is a framework?
A tool that helps build apps faster with pre-written code.

Examples:

Frontend: React, Angular

Backend: Django, Flask

3. What is a REST API?


A way for apps to talk to each other over the internet using HTTP.
Example: A mobile app requests data from a server using REST API.
4. What is CRUD in web dev?
Basic database actions:

Create

Read

Update

Delete

5. What is responsive design?


Making websites look good on all screen sizes (mobile, tablet, desktop) using
CSS media queries or frameworks like Bootstrap.

📌 Would you like a:


📝 PDF version of these beginner-friendly questions and answers?

💻 Practice coding questions in Python or SQL?

Just let me know!

You said:
in tcs nqt i am in ninja round so based on that level create me questions with
answers

ChatGPT said:
Perfect! Since you're in the TCS NQT Ninja Round, the questions will be focused
on fundamental programming, databases, and basic web concepts — suitable for
freshers.

Here’s a customized list of beginner-friendly Python, MySQL, and Web Development


questions with answers at the Ninja level, exactly the kind you can expect:

🐍 Python – Ninja Round Questions


1. What are variables in Python?
Answer:
Variables are used to store data values.

python
Copy
Edit
x = 5
name = "Lekha"
2. Write a program to check if a number is even or odd.
python
Copy
Edit
num = 7
if num % 2 == 0:
print("Even")
else:
print("Odd")
3. What is a list in Python?
Answer:
A list is a collection of items that is ordered and changeable.

python
Copy
Edit
fruits = ["apple", "banana", "cherry"]
4. What is a function in Python?
Answer:
A function is a block of code that performs a specific task.

python
Copy
Edit
def greet():
print("Hello!")

greet()
5. Write a Python program to find the factorial of a number using recursion.
python
Copy
Edit
def factorial(n):
if n == 0:
return 1
return n * factorial(n - 1)

print(factorial(5)) # Output: 120


6. What is the difference between = and == in Python?
= is used for assignment

== is used for comparison

7. What is a loop? Give an example.


python
Copy
Edit
for i in range(5):
print(i)
A loop repeats a block of code.

🛢 MySQL – Ninja Round Questions


1. What is SQL?
Answer:
SQL stands for Structured Query Language. It is used to interact with databases.

2. What is a table?
Answer:
A table is a collection of rows and columns used to store structured data.

3. Write a query to select all records from a table named students.


sql
Copy
Edit
SELECT * FROM students;
4. Write a query to insert a new student into the students table.
sql
Copy
Edit
INSERT INTO students (id, name, marks) VALUES (1, 'Lekha', 90);
5. What is the use of the WHERE clause?
Answer:
To filter rows based on a condition.

sql
Copy
Edit
SELECT * FROM students WHERE marks > 80;
6. What is a primary key?
Answer:
A column that uniquely identifies each row in a table.

7. Write a query to update marks of a student with id 1.


sql
Copy
Edit
UPDATE students SET marks = 95 WHERE id = 1;
🌐 Web Development – Ninja Round Questions
1. What is HTML?
Answer:
HTML stands for HyperText Markup Language. It’s used to create the structure of
a webpage.

2. What is CSS?
Answer:
CSS stands for Cascading Style Sheets. It’s used to style HTML elements.

3. What is JavaScript used for?


Answer:
JavaScript is used to make webpages interactive (e.g., clicking a button,
showing popups).

4. What is a hyperlink in HTML?


html
Copy
Edit
<a href="[Link] Here</a>
It’s used to link to another webpage.

5. What is the purpose of the <form> tag?


Answer:
It is used to collect user input, like login or signup forms.
6. What is the difference between ID and class in CSS?
id: Unique (used once) → #idname

class: Can be used for multiple elements → .classname

7. What is a responsive website?


Answer:
A website that works well on all screen sizes (desktop, mobile, tablet).

You might also like