0% found this document useful (0 votes)
33 views4 pages

CBSE Class 12 Computer Science PYQs

The document provides important and previously asked questions for CBSE Class 12 Computer Science, covering topics such as Computer Networks, MySQL, and SQL queries. It includes definitions, differentiations, and SQL commands relevant to the syllabus. Additionally, it features one-word answers for key concepts and terms in the subject.

Uploaded by

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

CBSE Class 12 Computer Science PYQs

The document provides important and previously asked questions for CBSE Class 12 Computer Science, covering topics such as Computer Networks, MySQL, and SQL queries. It includes definitions, differentiations, and SQL commands relevant to the syllabus. Additionally, it features one-word answers for key concepts and terms in the subject.

Uploaded by

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

CBSE Class 12 Computer Science - PYQs

& Important Questions


CBSE Class 12 Computer Science - Important & Previously Asked Questions (PYQs)

---

## Chapter: Computer Networks

### 1. Basic Concepts


- What is data communication?
- Define computer network.
- What is a protocol? Name any one.
- Differentiate between LAN, MAN, and WAN. *(CBSE 2019)*
- Differentiate between Switch and Hub. *(CBSE 2020)*
- Define bandwidth and latency with an example. *(CBSE 2023)*

### 2. Network Devices


- What is the use of a router? *(CBSE 2018)*
- Explain:
- Repeater *(CBSE 2021)*
- Gateway *(CBSE 2020)*
- NIC (Network Interface Card)
- What is a MAC address? Give an example. *(CBSE 2022)*

### 3. Network Topologies


- Define topology. *(CBSE 2017)*
- Draw and explain:
- Bus topology *(CBSE 2020)*
- Star topology *(CBSE 2019)*
- Ring topology *(CBSE 2018)*
- State one advantage and disadvantage of Bus topology. *(CBSE 2021)*

### 4. Transmission Media


- Differentiate between:
- Guided vs. Unguided Media *(CBSE 2017)*
- Twisted Pair vs. Optical Fiber *(CBSE 2019)*
- Give two advantages of Optical Fiber over coaxial cable. *(CBSE 2020)*

### 5. Network Security & Protocols


- Define Firewall. *(CBSE 2023)*
- What is Phishing? *(CBSE 2018)*
- What are cookies? Are they harmful? *(CBSE 2017)*
- Explain:
- HTTP vs HTTPS *(CBSE 2019)*
- FTP *(CBSE 2016)*
- VoIP *(CBSE 2022)*
- TCP/IP *(CBSE 2020)*
- What is an IP address? How does IPv4 differ from IPv6? *(CBSE 2021)*

### 6. Web Services


- Differentiate between web browser and search engine. *(CBSE 2022)*
- Name any two web browsers and two search engines. *(CBSE 2018)*

---

## Chapter: MySQL – Simple Queries

### 1. SQL Basics


- Write SQL queries to:
- Create a table EMP with EmpID, Name, Salary, Department *(CBSE 2023)*
- Insert values into the EMP table *(CBSE 2022)*
- Retrieve all records from EMP *(CBSE 2021)*
- What is the function of the DISTINCT keyword? *(CBSE 2021)*

### 2. SELECT Queries


- Display names of employees with salary > 50000 *(CBSE 2022)*
- Select employees from 'Sales' department *(CBSE 2023)*
- Find names starting with 'S' *(CBSE 2021)*
- Order records by salary descending *(CBSE 2020)*

### 3. SQL Functions


- Use COUNT() to count employees in a department *(CBSE 2019)*
- Find average salary using AVG() *(CBSE 2020)*
- Use SUM() for total salary *(CBSE 2018)*
- Find MAX() and MIN() salary *(CBSE 2017)*
- Use GROUP BY to count employees department-wise *(CBSE 2022)*

### 4. Conditional Selection


- Use logical operators:
- AND: Employees with salary > 40000 and department = 'IT' *(CBSE 2021)*
- OR: Employees from HR or Finance *(CBSE 2022)*
- NOT: Employees not from Admin *(CBSE 2020)*
### 5. CBSE Past Year Questions
**Table: STUDENT**
| Admno | Name | Class | Section | Marks |
|-------|----------|-------|---------|--------|
| 101 | Aman | 12 | A | 87 |
| 102 | Riya | 12 | B | 93 |
| 103 | Mohit | 11 | A | 78 |

**Questions:**
- Display all details of students of class 12. *(CBSE 2023)*
- Display names of students with marks > 85. *(CBSE 2022)*
- Sort all students by name. *(CBSE 2021)*
- Count students in each class. *(CBSE 2020)*
- Select students with names ending in 't'. *(CBSE 2018)*
- Use BETWEEN to select marks from 80 to 90. *(CBSE 2019)*

**Predict the output:**


```sql
SELECT Name FROM STUDENT WHERE Marks BETWEEN 80 AND 90;
-- Output: Aman

SELECT COUNT(*) FROM STUDENT WHERE Class = 12;


-- Output: 2
```

**Output based queries:**


```sql
SELECT MAX(Marks), MIN(Marks) FROM STUDENT;
-- Output: 93 | 78

SELECT AVG(Marks) FROM STUDENT;


-- Output: 86
```

**Error Correction:**
```sql
-- Incorrect: SELECT name marks FROM STUDENT;
-- Correct: SELECT name, marks FROM STUDENT;

-- Incorrect: SELECT * WHERE Marks > 80 FROM STUDENT;


-- Correct: SELECT * FROM STUDENT WHERE Marks > 80;
```
---

## One Word / One Line Questions

### Computer Networks


- Full form of IP: **Internet Protocol**
- Full form of URL: **Uniform Resource Locator**
- Full form of ISP: **Internet Service Provider**
- Default port of HTTP: **80**
- Default port of HTTPS: **443**
- Protocol for file transfer: **FTP**
- Topology with central hub: **Star**
- Device to connect different networks: **Router**
- Unique hardware address: **MAC Address**

### MySQL
- Full form of SQL: **Structured Query Language**
- One DDL command: **CREATE**
- One DML command: **INSERT**
- Aggregate function to find total: **SUM()**
- Clause to sort results: **ORDER BY**
- Clause to filter rows: **WHERE**
- Clause to group rows: **GROUP BY**
- Command to remove a table: **DROP**

Common questions

Powered by AI

Bus topology connects all devices to a single communication line; a failure in this main line can disrupt the entire network, making it less reliable. Star topology connects all devices to a central hub; if one connection fails, other devices remain unaffected, making it more reliable in isolation but vulnerable if the hub fails. Ring topology connects devices in a circular fashion; data travels in one direction, and a failure in any cable or device can split the network into two segments, improving reliability slightly over bus but less so than star. Star topology offers the most robust architecture against single-point failures when considering the entire network's functional continuity, provided the central hub is resilient .

A LAN (Local Area Network) is a network that covers a small geographic area, like a single building or a campus, and is typically used for connecting computers within this area to share resources and information. A WAN (Wide Area Network), on the other hand, covers a much larger geographic area, potentially worldwide, and is used to connect multiple LANs. WANs are ideal for businesses with multiple office locations spread out across different towns, states, or countries .

A firewall enhances network security by acting as a barrier between a trusted internal network and untrusted external networks, filtering incoming and outgoing traffic based on predetermined security rules. It prevents unauthorized access to or from a private network. However, firewalls can be bypassed using techniques such as IP spoofing, where attackers disguise their IP address to appear trustworthy, or by using tunneling protocols that encapsulate restricted protocols within allowed ones. Advanced persistent threats (APTs) and some forms of encrypted traffic can also evade detection by a firewall .

Errors in SQL syntax prevent queries from executing, often resulting in an error message specifying the issue. Identifying and correcting these errors requires understanding SQL syntax rules, such as the order of clauses and proper punctuation. For example, a common error like omitting a comma between selected columns in 'SELECT name marks FROM STUDENT;' will result in a syntax error. Correcting it involves inserting the comma: 'SELECT name, marks FROM STUDENT;'. Similarly, incorrect clause ordering or omitting 'FROM' can be identified and corrected by adhering to proper SQL statement syntax, like changing 'SELECT * WHERE Marks > 80 FROM STUDENT;' to 'SELECT * FROM STUDENT WHERE Marks > 80;' .

A Network Interface Card (NIC) is a hardware component that allows a computer to connect to a network. It provides the physical interface through which the network cable is attached. The NIC is responsible for converting data from the computer into a format that can be transmitted over the chosen network medium (wired or wireless). Each NIC has a unique hardware address known as a MAC (Media Access Control) address, which is used to ensure that data transferred over the network reaches the correct destination .

Web browsers and search engines are both essential for internet usage, but they serve different roles. A web browser is a software application used to access websites by entering their URLs, facilitating rendering of web pages and user interaction with web content. Examples include Google Chrome and Mozilla Firefox. A search engine, like Google or Bing, is a software system designed to search the internet for information. It helps users find specific content by entering keywords, returning a list of relevant webpages found in its indexed database. Browsers enable users to view and interact with content, while search engines help users discover new websites related to their search queries .

Optical fiber offers several advantages over coaxial cable, including significantly higher bandwidth and faster data transmission speeds, as well as greater resistance to electromagnetic interference, which enhances signal quality. Additionally, optical fibers are lighter and more durable over long distances. However, optical fibers can be more expensive to install and repair, and they require special equipment and skills for handling and splicing, which can be seen as disadvantages compared to coaxial cables .

HTTP (HyperText Transfer Protocol) is a protocol used for transmitting web pages on the internet. It is not encrypted, meaning data transferred using HTTP can be intercepted and read by unauthorized parties. HTTPS (HTTP Secure) incorporates encryption via the TLS/SSL protocols, providing secure communication over a computer network and safeguarding user privacy. This encryption ensures that data such as passwords and credit card information cannot be easily intercepted or tampered with during transmission, making HTTPS more suitable for any site that requires login information or financial transactions .

An IP address is a unique string of numbers separated by periods for IPv4, and by colons for IPv6, that identifies each computer using the Internet Protocol to communicate over a network. IPv4 uses 32-bit addresses, limiting the address space to about 4.3 billion unique addresses, which has proved insufficient with the rapid growth of devices connecting to the internet. IPv6 addresses this limitation by using 128-bit addresses, vastly increasing the number of possible unique addresses, accommodating the expanding number of devices connected to the internet, and supporting auto-configuration capabilities and improved routing .

The SQL GROUP BY clause is used to arrange identical data into groups based on one or more columns, often in conjunction with aggregate functions like COUNT, SUM, AVG, MAX, or MIN to provide meaningful insights. For example, in a company, you can group employees by department using the GROUP BY clause and then use COUNT() to find out how many employees are in each department, SUM() to calculate total salaries by department, or AVG() to determine the average salary. This helps in generating reports that reflect the organizational structure and financial summaries department-wise, aiding decision-making processes .

You might also like