Viva Questions
Viva Questions
LAN (Local Area Network): Covers a small geographic area like an office or building.
MAN (Metropolitan Area Network): Spans a city or a large campus.
WAN (Wide Area Network): Covers large geographic areas, often using leased
telecommunication lines (e.g., the Internet).
PAN (Personal Area Network): A very small network for personal devices (e.g.,
Bluetooth).
Networking Devices
Network Protocols
S.S.Jassal
Q8. What is HTTP, and where is it used?
A8. HTTP (Hypertext Transfer Protocol) is used for transferring web pages on the World Wide
Web.
Network Topologies
Bus topology
Star topology
Ring topology
Mesh topology
Tree topology
IP Addressing
Security
S.S.Jassal
Miscellaneous
S.S.Jassal
Q8. What is hacking? Is it always illegal?
A8. Hacking refers to gaining unauthorized access to a system or network. It can be:
S.S.Jassal
Online Fraud and Legal Awareness
Miscellaneous
S.S.Jassal
Q2. What is a database?
A2. A database is an organized collection of data that can be easily accessed, managed, and
updated.
SQL (Structured Query Language): A language used for managing and manipulating
databases.
MySQL: A database management system that uses SQL to interact with databases.
Data Types
SQL Commands
INSERT INTO table_name (column1, column2, ...) VALUES (value1, value2, ...);
Clauses
GROUP BY: Groups rows with the same values in specified columns.
ORDER BY: Sorts rows in ascending or descending order.
Functions
S.S.Jassal
Q16. What are aggregate functions in MySQL?
A16. Aggregate functions perform calculations on a set of values and return a single value.
Examples:
sql
CopyEdit
SELECT COUNT(*) FROM employees;
Constraints
S.S.Jassal
Miscellaneous
DELETE: Removes specific rows based on a condition and can be rolled back.
TRUNCATE: Removes all rows from a table and cannot be rolled back.
sql
CopyEdit
SELECT DISTINCT column_name FROM table_name;
sql
CopyEdit
RENAME TABLE old_table_name TO new_table_name;
S.S.Jassal