No questions found
Try searching for HTML, Python, SQL, Stack or other topics.
🌐 Web Technology — Important Questions & Answers
1. What is HTML?
Answer: HTML stands for HyperText Markup Language. It is the standard markup language used to create and structure web pages.
Example:
<h1>Welcome to My Website</h1>
This is a web page.
2. What are HTML Tags?
Answer: HTML tags are special keywords written inside angle brackets. They tell the browser how different parts of a web page should be displayed.
Common tags include <h1> for headings, <p> for paragraphs, <a> for links and <img> for images.
3. What is CSS? Explain its types.
Answer: CSS stands for Cascading Style Sheets. It is used to control the appearance and layout of HTML elements.
Types of CSS:
- Inline CSS: Written directly inside an HTML element.
- Internal CSS: Written inside the <style> tag.
- External CSS: Written in a separate CSS file.
4. What is JavaScript?
Answer: JavaScript is a programming language commonly used to make web pages interactive and dynamic.
Example:
document.getElementById("demo").innerHTML = "Hello!";
5. What is DOM?
Answer: DOM stands for Document Object Model. It represents an HTML document as a tree of objects.
JavaScript can use the DOM to access, modify, add or remove HTML elements and their content.
6. What are JavaScript Events?
Answer: An event is an action or occurrence detected by the browser. JavaScript can respond to these events.
Common events:
- click
- mouseover
- keydown
- submit
- change
7. What is HTTP?
Answer: HTTP stands for HyperText Transfer Protocol. It is used for communication between a web browser and a web server.
HTTP allows clients to send requests to servers and receive responses.
8. What is XML?
Answer: XML stands for Extensible Markup Language. It is used to store and transport structured data.
Example:
<student>
<name>Riya</name>
<course>BCA</course>
9. What is the difference between Java and JavaScript?
Answer: Java and JavaScript are different programming languages.
- Java: A general-purpose programming language.
- JavaScript: Commonly used to add dynamic and interactive behaviour to web pages.
10. Explain the basic structure of an HTML document.
Answer: A basic HTML document contains the DOCTYPE declaration, html, head and body sections.
<!DOCTYPE html>
My Page
Hello World
The head contains information about the page, while the body contains the content displayed on the page.
💻 Data Structures — Important Questions & Answers
1. What is a Data Structure?
Answer: A data structure is a way of organizing and storing data so that it can be accessed and processed efficiently.
Examples: Array, Stack, Queue, Linked List, Tree and Graph.
2. What is an Array?
Answer: An array is a collection of elements of the same data type stored in a sequence. Each element can be accessed using an index.
Example:
int marks[] = {75, 80, 65, 90};
3. What is a Stack?
Answer: A stack is a linear data structure that follows the LIFO principle.
- Push: Adds an element.
- Pop: Removes the top element.
- Peek: Returns the top element.
4. What is a Queue?
Answer: A queue is a linear data structure that follows the FIFO principle.
- Enqueue: Adds an element.
- Dequeue: Removes an element.
- Front: First element.
5. What is a Linked List?
Answer: A linked list is a linear data structure made up of nodes. Each node contains data and a reference to another node.
Types:
- Singly Linked List
- Doubly Linked List
- Circular Linked List
6. What is a Tree?
Answer: A tree is a non-linear data structure that represents data in a hierarchical form.
Important terms:
- Root
- Parent
- Child
- Leaf
- Edge
7. What is a Graph?
Answer: A graph is a non-linear data structure consisting of vertices and edges.
Graphs can be directed or undirected.
8. Explain BFS and DFS.
BFS: Breadth First Search visits vertices level by level and generally uses a queue.
DFS: Depth First Search explores as far as possible along a branch before backtracking.
9. What is Sorting?
Answer: Sorting is the process of arranging data in a particular order.
Common techniques:
- Bubble Sort
- Insertion Sort
- Selection Sort
- Merge Sort
- Quick Sort
10. What is Searching?
Answer: Searching is the process of finding a particular element in a collection of data.
- Linear Search: Checks elements one by one.
- Binary Search: Searches a sorted collection by repeatedly dividing the search range.
🗄️ DBMS — Important Questions & Answers
1. What is DBMS?
Answer: DBMS stands for Database Management System. It is software used to create, store, organize, manage and retrieve data.
Advantages:
- Reduces data duplication.
- Improves data organization.
- Helps maintain data security.
- Makes data retrieval easier.
2. What is a Database?
Answer: A database is an organized collection of related data that can be stored and accessed electronically.
Example: A college database may contain student names, roll numbers, courses and marks.
3. What is a Table?
Answer: A table is a collection of related data organized into rows and columns.
- Row: Represents a record.
- Column: Represents a field.
4. What is SQL?
Answer: SQL stands for Structured Query Language. It is used to communicate with and manage data in relational databases.
Example:
SELECT * FROM Students;
5. What are SQL Commands?
Answer: SQL commands are instructions used to perform operations on a database.
- DDL: CREATE, ALTER, DROP
- DML: INSERT, UPDATE, DELETE
- DQL: SELECT
- DCL: GRANT, REVOKE
- TCL: COMMIT, ROLLBACK
6. What is a Primary Key?
Answer: A primary key is a column or combination of columns that uniquely identifies each record in a table.
CREATE TABLE Student (
Student_ID INT PRIMARY KEY,
Name VARCHAR(50)
);
7. What is a Foreign Key?
Answer: A foreign key is a column that references a key in another table. It is used to establish relationships between tables.
8. What is Normalization?
Answer: Normalization is the process of organizing data to reduce unnecessary duplication and improve data consistency.
- First Normal Form (1NF)
- Second Normal Form (2NF)
- Third Normal Form (3NF)
9. What is a Relationship in DBMS?
Answer: A relationship describes how data in one table is connected to data in another table.
- One-to-One
- One-to-Many
- Many-to-Many
10. What is a Transaction?
Answer: A transaction is a sequence of database operations treated as one logical unit of work.
ACID properties:
- Atomicity
- Consistency
- Isolation
- Durability
🐍 Python Programming — Important Questions & Answers
1. What is Python?
Answer: Python is a high-level, interpreted programming language known for its simple and readable syntax.
Features:
- Easy to learn and read.
- Interpreted language.
- Supports object-oriented programming.
- Large collection of libraries.
2. What are Variables in Python?
Answer: A variable is a name used to refer to a value stored in a program.
Example:
name = "Riya"
age = 20
marks = 85.5
3. What are Data Types in Python?
Answer: A data type defines the kind of value stored or handled by a program.
- int: Integer values.
- float: Decimal values.
- str: Text values.
- list: Ordered, mutable collection.
- tuple: Ordered, immutable collection.
- dict: Key-value collection.
- bool: True or False.
4. What are Operators in Python?
Answer: Operators are symbols or keywords used to perform operations on values and variables.
- Arithmetic: +, -, *, /, %
- Comparison: ==, !=, >, <
- Logical: and, or, not
- Assignment: =, +=, -=
5. What are Conditional Statements?
Answer: Conditional statements execute different blocks of code depending on whether a condition is true or false.
Example:
marks = 75
if marks >= 40:
print("Pass")
else:
print("Fail")
6. What are Loops in Python?
Answer: Loops are used to execute a block of code repeatedly. Python mainly provides for and while loops.
Example:
for i in range(5):
print(i)
7. What is a Function?
Answer: A function is a reusable block of code designed to perform a particular task.
Example:
def greet():
print("Hello!")
greet()
8. What are Lists and Tuples?
Answer: Lists and tuples are collections used to store multiple values.
- List: Ordered and mutable.
- Tuple: Ordered and immutable.
Example:
numbers = [10, 20, 30]
points = (10, 20, 30)
9. What is a Dictionary?
Answer: A dictionary is a collection that stores data in key-value pairs.
Example:
student = {
"name": "Riya",
"course": "BCA",
"year": 2
}
10. What is Object-Oriented Programming?
Answer: Object-Oriented Programming (OOP) is a programming approach based on classes and objects.
Important OOP concepts:
- Class
- Object
- Inheritance
- Encapsulation
- Polymorphism
- Abstraction