Free tutorials & notes in Hindi & English · Clean code examples 🧰 मुफ़्त PDF और फ़ोटो टूल्स →
🏆 Project और Revision  ·  Lesson 25

ज़रूरी Questions और Viva

Pandas

Q1. Series और DataFrame में अंतर बताइए।

Series one-dimensional है, एक index के साथ; DataFrame two-dimensional है, row index और column labels के साथ। DataFrame का हर column एक Series है।

Q2. loc और iloc में अंतर।

loc labels से चुनता है और slice का end शामिल करता है; iloc integer positions से चुनता है और end शामिल नहीं करता।

Q3. NaN क्या है? इसे कैसे ढूँढें और भरें?

NaN missing value दिखाता है। df.isnull().sum() गिनता है; df.fillna(value) बदलता है; df.dropna() ऐसी rows हटाता है।

Q4. df में Total = Eng + Maths column जोड़ने का code लिखिए।

df['Total'] = df['Eng'] + df['Maths']

Q5. Column और row कैसे हटाएँ?

Column के लिए df.drop('Col', axis=1); row के लिए df.drop('rowlabel') या df.drop(index=…)।

Q6. Roll को index बनाकर marks.csv पढ़ने का statement लिखिए।

df = pd.read_csv('marks.csv', index_col='Roll')

Output-based questions

Python
import pandas as pd
s = pd.Series([10, 20, 30, 40, 50], index=['a', 'b', 'c', 'd', 'e'])
print(s['b':'d'].sum(), s.iloc[1:3].sum(), s[s > 25].count())
90 50 3
Python
import pandas as pd
df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]}, index=['x', 'y', 'z'])
df['C'] = df['A'] * df['B']
print(df.loc['y'])
print(df.shape, df.iloc[2, 2])
A 2 B 5 C 10 Name: y, dtype: int64 (3, 3) 18
Python
import pandas as pd
s1 = pd.Series([5, 10, 15], index=[1, 2, 3])
s2 = pd.Series([1, 2, 3], index=[2, 3, 4])
print(s1 - s2)
1 NaN 2 9.0 3 13.0 4 NaN dtype: float64
Python
import pandas as pd
df = pd.DataFrame({'Team': ['Red', 'Blue', 'Red', 'Blue', 'Green'], 'Points': [12, 9, 15, 11, 7]})
print(df.groupby('Team')['Points'].max().sort_values(ascending=False))
Team Red 15 Blue 11 Green 7 Name: Points, dtype: int64

Matplotlib

Q7. Plotting के module का नाम और import statement लिखिए।

Matplotlib का pyplot: import matplotlib.pyplot as plt

Q8. Bar chart और histogram में अंतर।

Bar chart बीच में जगह वाले bars से categories की तुलना करता है; histogram सटे bars से bins में numeric data का वितरण दिखाता है।

Q9. Chart कौन सा function save करता है? उदाहरण दीजिए।

plt.savefig('chart.png')

Q10. Line का रंग, marker और style कौन से parameters बदलते हैं?

color='red', marker='o', linestyle='--' (मोटाई के लिए linewidth=2)।

SQL

Q11. Single-row और aggregate functions में उदाहरण सहित अंतर।

Single-row functions हर row के लिए value लौटाते हैं – ROUND, UCASE, MONTH। Aggregate functions group के लिए एक value – SUM, AVG, COUNT।

Q12. Output बताइए: SELECT ROUND(2345.678, -2), MOD(23, 4), LENGTH("IP 065");

2300, 3, 6

Q13. Output बताइए: SELECT MID("Informatics", 3, 4), INSTR("Informatics", "a");

form, 7

Q14. WHERE और HAVING में अंतर।

WHERE grouping से पहले rows filter करता है; HAVING GROUP BY के बाद groups filter करता है और aggregate functions ले सकता है।

Q15. COUNT(*) और COUNT(column) में अंतर।

COUNT(*) सभी rows गिनता है; COUNT(column) उस column के NULLs छोड़ देता है।

Q16. जिन cities में 2 से ज़्यादा students हों, उनकी संख्या दिखाने की query लिखिए।

SELECT City, COUNT(*) FROM STUDENT GROUP BY City HAVING COUNT(*) > 2;

Networks और Internet

Q17. Hub और switch में अंतर।

Hub data सभी ports पर broadcast करता है; switch सिर्फ़ destination port पर भेजता है।

Q18. Static और dynamic web page में अंतर।

Static pages सबको एक जैसा content दिखाते हैं; dynamic pages server programs से बनते हैं और हर user के लिए बदल सकते हैं।

Q19. Cookie क्या है?

Website द्वारा browser में रखी छोटी text file जो login या पसंद जैसी जानकारी याद रखती है।

Q20. VoIP क्या है? उदाहरण दीजिए।

Voice over Internet Protocol – Internet पर voice calls, जैसे WhatsApp calls।

Societal impacts

Q21. Active और passive digital footprints में अंतर।

Active: जानबूझकर share किया data (posts, emails)। Passive: बिना जानकारी इकट्ठा data (IP address, cookies, location)।

Q22. Plagiarism क्या है? इससे कैसे बचें?

दूसरों का काम अपना बताना। स्रोत बताकर और अपने शब्दों में लिखकर बचें।

Q23. दो open-source licences के नाम बताइए।

GPL (GNU General Public License) और Apache License; content के लिए Creative Commons।

Q24. E-waste संभालने के दो तरीके बताइए।

चालू devices दोबारा इस्तेमाल/दान करें और बाकी अधिकृत recyclers को दें; ख़रीदारी कम करें।

Q25. IT Act, 2000 क्या है?

भारत का क़ानून जो electronic records और digital signatures को क़ानूनी मान्यता देता है और cyber crimes की सज़ा तय करता है।

Viva questions

pandas किसलिए इस्तेमाल होता है?

Data analysis – tabular data पढ़ना, साफ़ करना, process और summarise करना।

head() क्या करता है?

Series/DataFrame की पहली 5 (या n) rows दिखाता है।

Series का default index क्या है?

0, 1, 2 … (RangeIndex)।

कौन सा function DataFrame का statistical summary देता है?

describe()

GROUP BY clause का उपयोग?

एक जैसी value वाली rows को group करना ताकि aggregate functions हर group पर चलें।

अक्सर पूछे जाने वाले प्रश्न (FAQ)

Class 12 IP में किस unit के सबसे ज़्यादा marks हैं?
Data Handling using Pandas और Data Visualisation के सबसे ज़्यादा marks हैं, फिर Database Query using SQL। सटीक weightage के लिए वर्तमान CBSE syllabus देखें।
SQL functions का revision कैसे करें?
हर function की example और output वाली एक page की table बनाएँ, फिर छोटी table पर queries का output बताने का अभ्यास करें।
← Class 12 Informatics Practices
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

Course पूरा! आगे सीखेंData Science (60 Days) आपकी प्रगति: 25 / 25 (100%) · अगला course आगे बढ़ें →

यह lesson कैसा लगा?

आपकी राय से हम content और बेहतर बनाते हैं।

अपना review और सुझाव लिखें (वैकल्पिक)

Review approve होने के बाद आपका नाम और शहर इसके साथ public दिख सकते हैं। Email या phone न लिखें।

▶ CodingEasily on YouTube

Video से सीखें – आसान Hindi में

चुनी हुई video: RDBMS भाग 3 – Class XI Commerce IT

▶ Channel subscribe करें