1. Write a program in React.js.
[Explanation]
React.js is a JavaScript library for building user interfaces, especially for single-page applications. It
lets you create reusable components.
[Real Life Example]
Imagine an online to-do list where each task is a component. When you add a task, the screen
updates instantly without refreshing the page.
[Explain like 17-18 yr old]
React is like LEGO for websites. Each part (like a button or task box) is a brick. You build apps by
putting these bricks together.
2. Write a Python program.
[Explanation]
Python is a simple, high-level programming language. You can write anything from web apps to AI
models with it.
[Real Life Example]
name = input("Enter your name: ")
print("Hello, " + name + "!")
[Explain like 17-18 yr old]
Python is like texting in code. Super easy. You type print("Hello") and it just shows that. Great for
beginners.
3. Write a JavaScript program related to your project.
[Explanation]
JavaScript powers interactivity on websites. You can use it to respond to user actions like clicks or
inputs.
[Real Life Example]
document.getElementById("clickMe").onclick = function() {
alert("You clicked the button!");
[Explain like 17-18 yr old]
JS is what makes buttons actually do something when you click. Like alerts or animations.
4. What do you mean by SQL Correlated Subqueries?
[Explanation]
A correlated subquery is a SQL query that uses values from the outer query. It runs for every row
selected by the outer query.
[Real Life Example]
Finding employees who earn more than the average salary of their department.
[Explain like 17-18 yr old]
Think of checking each student's marks and comparing them to their class average - but you do that
for every class.
5. What are the types of joins in SQL? Write a query for outer join.
[Explanation]
Joins combine rows from two or more tables. Types:
- INNER JOIN: Common data only.
- LEFT JOIN: All from left + matched from right.
- RIGHT JOIN: All from right + matched from left.
- FULL OUTER JOIN: All data from both tables, even if no match.
[Real Life Example]
SELECT * FROM students
FULL OUTER JOIN marks ON students.id = marks.student_id;
[Explain like 17-18 yr old]
Joins are like merging two Excel sheets. Outer join keeps everything even if something's missing on
one side.
6. What is Linked List?
[Explanation]
A linked list is a data structure where each element (node) points to the next. Unlike arrays, the
elements are not stored contiguously.
[Real Life Example]
Like a treasure hunt: each clue leads you to the next clue.
[Explain like 17-18 yr old]
It's like a chain. Each part has something and a pointer to the next part. You can't just jump to the
4th - you go one by one.
7. Some questions on my project.
[Explanation]
Be ready to explain your project's purpose, tech used, challenges faced, and improvements you'd
make.
[Real Life Example]
"I made a quiz app using React. It fetches questions from an API. I learned about managing state
and faced issues with API delays."
[Explain like 17-18 yr old]
Just talk about what you made, how you made it, and what cool/funny stuff happened while doing it.
8. My group project.
[Explanation]
Explain your role in a team project, how you collaborated, and what each member contributed.
[Real Life Example]
"In our attendance management system, I handled the backend (Python Flask), others managed the
database and UI."
[Explain like 17-18 yr old]
Say who did what in the group, like 'I made the backend, my friend designed the app, we worked
together on testing.'
9. What are the differences between inner join, left join, right join, and full outer join?
[Explanation]
- INNER JOIN: Only matching rows.
- LEFT JOIN: All from left, matched from right.
- RIGHT JOIN: All from right, matched from left.
- FULL OUTER JOIN: All rows from both, matched or not.
[Real Life Example]
Two friend lists: left (your list), right (class list). Inner = common friends, left = your friends + who are
in class, full = everyone.
[Explain like 17-18 yr old]
It's like comparing Instagram followers - Inner: who follow each other, Left: who you follow even if
they don't, Full: everyone.
10. What programming languages do you know?
[Explanation]
List languages you've worked with and your comfort level in each.
[Real Life Example]
"I know Python (advanced), JavaScript (intermediate), and Java (basic)."
[Explain like 17-18 yr old]
Just say what you've coded in, like "Python for projects, JS for web, a bit of Java from school."
11. Difference between C and C++.
[Explanation]
C is procedural (no classes), C++ is object-oriented (supports classes/objects). C++ also supports
features like function overloading.
[Real Life Example]
In C you write steps. In C++, you design objects (like a Car class with speed and color).
[Explain like 17-18 yr old]
C is like following a recipe. C++ lets you make your own ingredients and tools.
12. What are the things that make C++ an object-oriented programming language?
[Explanation]
Key OOP concepts:
- Classes & Objects
- Inheritance
- Polymorphism
- Encapsulation
- Abstraction
[Real Life Example]
A Car class with properties (color, speed) and methods (drive, stop). You can make many car
objects from it.
[Explain like 17-18 yr old]
C++ lets you build your own things (like cars, players) with features. You use them just like
real-world things.
13. What is Machine Learning?
[Explanation]
Machine learning is when computers learn from data to make decisions or predictions without being
explicitly programmed.
[Real Life Example]
Netflix recommending shows based on what you watch.
[Explain like 17-18 yr old]
ML is like teaching a computer to learn from examples - like showing it photos of cats until it can
spot one itself.
14. Data structure you are familiar with?
[Explanation]
Mention common structures: Arrays, Linked Lists, Stacks, Queues, Trees, Graphs, Hash Maps.
[Real Life Example]
"I've used stacks to implement undo features and hash maps to store key-value pairs."
[Explain like 17-18 yr old]
Data structures are ways to store stuff. Like arrays = shelves, stacks = plates (last-in, first-out),
queues = lines at a canteen.
15. What are the different sorting algorithms and their time and space complexity?
[Explanation]
Some sorting algorithms:
- Bubble Sort: O(n²) time, O(1) space
- Selection Sort: O(n²) time, O(1) space
- Merge Sort: O(n log n) time, O(n) space
- Quick Sort: O(n log n) avg, O(n²) worst, O(log n) space
- Insertion Sort: O(n²) time, O(1) space
[Real Life Example]
Sorting student marks from lowest to highest using different strategies.
[Explain like 17-18 yr old]
Sorting is like arranging books. Bubble = slow and clumsy, Merge = fast but needs extra space,
Quick = mostly fast, but not always.