Class 12 Computer ScienceImportant Questions for Board Exams
16
Total Questions
8
Long Answer
8
Short Answer
Exception Handling in Python
2 questionsWhat is the difference between a syntax error and a runtime error? Give one example of each.
Write a Python program that takes two numbers as input and raises an exception if the divisor is zero. Use try-except-else-finally.
File Handling in Python
2 questionsWrite a Python function to count the number of lines in a text file.
What is the difference between 'w' and 'a' mode in file handling?
Data Handling with Pandas — Series and DataFrame
2 questionsWrite Python code to create a DataFrame from a dictionary and display only rows where marks > 80.
What are the parameters of read_csv()? Explain: filepath, sep, header, index_col.
Data Visualisation with Matplotlib
2 questionsWrite Python code to draw a bar chart showing the marks of 5 students using Matplotlib.
When would you choose a histogram over a bar chart? Give one example.
Computer Networks
2 questionsExplain the OSI model. State the function of each layer.
Distinguish between a hub and a switch. Which is more efficient and why?
Database Concepts
2 questionsWhat is a primary key? How does it differ from a candidate key and a foreign key?
State four advantages of using a DBMS over a flat file system.
Structured Query Language (SQL)
2 questionsWrite SQL queries to: (a) Create a table Student(RollNo, Name, Marks, Grade) (b) Insert a row (c) Display students with Marks > 80 ordered by Name.
What is the difference between WHERE and HAVING clause in SQL?
Society, Law and Ethics in IT
2 questionsWhat is phishing? How is it different from hacking? What are the precautions against each?
What is net neutrality? Why is it important for internet users?