/**/ Sanjeev Study Hub – Class 11 & 12 Notes, Question Papers, IP & CS Study Material

Friday, October 9, 2026

Class 12 IP: Python Pandas 50 MCQs Online Practice Test (Instant Result)

Class XII - Informatics Practices (065)

Python Pandas – I & II | 50 Important MCQs Test

๐Ÿ“‹ Total Questions: 50 ๐ŸŽฏ Full Marks: 50 ⏱️ CBSE Board Prep 2026-27

1. Which of the following is the correct way to import Pandas?

2. Which Pandas data structure is one-dimensional and labelled?

3. Which Pandas data structure is two-dimensional?

4. Which function is used to create a Series?

5. Which function is used to create a DataFrame?

6. By default, how many rows are displayed by head()?

7. Which function displays the last five rows of a DataFrame by default?

8. Which function is used to read a CSV file in Pandas?

9. Which method is used to save a DataFrame as a CSV file?

10. In a Series, labels associated with values are called:

11. What does df.shape return?

12. What does df.columns return?

13. What does df.index return?

14. Which attribute displays the data types of columns?

15. Which argument is commonly used in drop() to specify a column?

16. Which value commonly represents a missing value in Pandas?

17. Which of the following creates a Series with values 10, 20 and 30?

18. What is the default index of pd.Series([10,20,30])?

19. What is the output of s[1] if s = pd.Series([10,20,30])?

20. Which expression selects elements from position 1 up to but not including 4?

21. Which statement creates a Series from a dictionary?

22. When a scalar is used to create a Series, what is required?

23. Which statement is correct for scalar Series creation?

24. Which operator can be used for element-wise addition of two compatible Series?

25. Which method returns the maximum value of a Series?

26. Which method returns the minimum value of a Series?

27. Which method returns the sum of values in a Series?

28. Which statement creates a DataFrame from a dictionary of lists?

29. Which statement creates a DataFrame from a list of dictionaries?

30. How can a new column 'Grade' be added to df?

31. Which statement selects the Marks column from df?

32. Which statement selects two columns Name and Marks?

33. Which statement deletes a column named Marks?

34. Which statement renames Marks to Score?

35. What does axis=1 generally refer to in DataFrame operations?

36. What does axis=0 generally refer to in DataFrame operations?

37. Which expression filters rows where Marks are greater than 80?

38. What type of selection is df[df['Marks'] > 80]?

39. Which command displays the first 3 rows?

40. Which command displays the last 3 rows?

41. What does df.info() provide?

42. Which statement reads student.csv into a DataFrame named df?

43. Which statement saves df to student.csv without writing the index?

44. If df has 4 rows and 3 columns, what is df.shape?

45. What is the output type of df.shape?

46. Which code gives rows where Marks are equal to 90?

47. Which operator means 'not equal to' in Python?

48. Which of the following is a valid DataFrame column assignment?

49. Which Pandas structure is best suited for tabular data with rows and columns?

50. Which of the following is NOT a Pandas operation?

Thursday, October 8, 2026

Class 10 Computer Application Question Paper 2026-27 with Answer Key

SAMPLE QUESTION PAPER  (2026–27)

Class-X | Computer Application

⏱️ TIME: 02:00 HOURS                                                                             ๐Ÿ“ MAX MARKS: 50

๐Ÿ“Œ General Instructions

  • The question paper contains 5 sections labeled A through E.
  • Compulsory Questions: All questions are mandatory, though internal choices are provided.
  • Section A: 12 MCQs (1 mark each = 12 Marks).
  • Section B: 7 Short Answer questions (2 marks each = 14 Marks).
  • Section C: 4 Long Answer-I questions (3 marks each = 12 Marks).
  • Section D: 1 Long Answer-II question (4 marks = 4 Marks).
  • Section E: 2 Case-based questions (4 marks each = 8 Marks).
SECTION - A (Objective / MCQs) 12 × 1 = 12 Marks
1. What does WWW stand for?
a) World Wide Web
b) World Web Wide
c) Web World Wide
d) Wide World Web
๐Ÿ’ก Show Answer
Answer: a) World Wide Web

2. Which of the following is used to identify a website on the Internet?
a) URL
b) CPU
c) RAM
d) ROM
๐Ÿ’ก Show Answer
Answer: a) URL

3. Which protocol is commonly used for accessing web pages?
a) HTTP
b) FTP
c) SMTP
d) POP
๐Ÿ’ก Show Answer
Answer: a) HTTP
4. Which Internet service is mainly used for sending and receiving electronic messages?
a) E-mail
b) FTP
c) WWW
d) Video conferencing
๐Ÿ’ก Show Answer
Answer: a) E-mail
5. Which attribute specifies the path/location of an image in HTML?
a) href
b) alt
c) src
d) link
๐Ÿ’ก Show Answer
Answer: c) src
6. Which HTML tag is used to create a hyperlink?
a) <a>
b) <link>
c) <href>
d) <url>
๐Ÿ’ก Show Answer
Answer: a) <a>
7. Which attribute is used with the <a> tag to specify the destination of a link?
a) src
b) href
c) target
d) alt
๐Ÿ’ก Show Answer
Answer: b) href
8. Which HTML tag is used to create a table row?
a) <td>
b) <th>
c) <tr>
d) <table>
๐Ÿ’ก Show Answer
Answer: c) <tr>
9. Which tag is used to create a table heading/cell heading?
a) <td>
b) <th>
c) <tr>
d) <caption>
๐Ÿ’ก Show Answer
Answer: b) <th>
10. Which Internet service allows users to transfer files from one computer to another?
a) E-mail
b) FTP
c) Chat
d) Search engine
๐Ÿ’ก Show Answer
Answer: b) FTP
11. Assertion (A): The <a> tag is used to create a hyperlink in an HTML document.
Reason (R): The href attribute specifies the destination URL of the hyperlink.
a) Both A and R are true, and R is the correct explanation of A.
b) Both A and R are true, but R is not the correct explanation of A.
c) A is true, but R is false.
d) A is false, but R is true.
๐Ÿ’ก Show Answer
Answer: a) Both A and R are true, and R is the correct explanation of A.
12. Assertion (A): The <img> tag is used to insert an image into an HTML webpage.
Reason (R): The src attribute specifies the location or path of the image.
a) Both A and R are true, and R is the correct explanation of A.
b) Both A and R are true, but R is not the correct explanation of A.
c) A is true, but R is false.
d) A is false, but R is true.
๐Ÿ’ก Show Answer
Answer: a) Both A and R are true, and R is the correct explanation of A.
SECTION - B (Short Answer Questions) 7 × 2 = 14 Marks

13. Explain the difference between SMTP and POP protocols.
๐Ÿ’ก Show Answer
Answer: SMTP (Simple Mail Transfer Protocol) is used for sending outgoing emails from a client to a server. POP (Post Office Protocol) is used for retrieving incoming emails from a server to a local device.
14. What is a web browser? Give two examples of web browsers.
๐Ÿ’ก Show Answer
Answer: A web browser is software used to access and view web pages on the Internet.
Examples: Google Chrome, Mozilla Firefox.
15. What is a URL? Write its full form and explain its purpose.
๐Ÿ’ก Show Answer
Answer: Full form: Uniform Resource Locator.
Purpose: It serves as the unique web address of a specific resource (webpage, file, image) on the Internet.
16. Explain E-mail with an example? Mention any two advantages of an E-mail.
๐Ÿ’ก Show Answer
Answer: E-mail is a method of exchanging digital messages over the Internet (e.g., student@example.com).
Advantages:
1. Fast and instant delivery.
2. Cost-effective and paperless.
17. A webpage contains text that takes the user to another website when clicked. What is this feature called? Explain its use.
๐Ÿ’ก Show Answer
Answer: It is called a Hyperlink.
Use: It allows users to jump instantly from one webpage or document to another.
18. Write the purpose of the following attribute: a) cellpadding b) cellspacing
๐Ÿ’ก Show Answer
Answer:
a) cellpadding: Space between cell content and its border.
b) cellspacing: Space between individual adjacent table cells.
19. Differentiate between rowspan and colspan attributes with examples.
๐Ÿ’ก Show Answer
Answer:
• rowspan: Merges cells vertically across rows (e.g., <td rowspan="2">).
• colspan: Merges cells horizontally across columns (e.g., <td colspan="3">).
SECTION - C (Long Answer Questions - I) 4 × 3 = 12 Marks

20. Rohan wants to use the Internet for different purposes (sending teacher messages, online classes, transferring files, buying books). Identify the four Internet services.
๐Ÿ’ก Show Answer
Answer:
1. E-mail: For sending messages.
2. Video Conferencing: For online classes.
3. FTP: For file transfers.
4. E-commerce: For online shopping.
21. Neha wants to display school logo (school.jpg) with alt text. Answer the questions:

a) Which tag? b) Which attribute? c) Write the HTML code.

๐Ÿ’ก Show Answer
Answer:
a) Tag: <img>
b) Attribute: src
c) Code: <img src="school.jpg" alt="School Logo">
22. Aman wants to create website and email link for school@example.com. Answer the questions:

a) Which tag? b) Which attribute? c) Write HTML code for email link.

๐Ÿ’ก Show Answer
Answer:
a) Tag: <a>
b) Attribute: href
c) Code: <a href="mailto:school@example.com">Send Email</a>
23. Functions of <table>, <tr>, <th>, <td> and code example for 3 students' marks.
๐Ÿ’ก Show Answer
Answer:
• <table>: Creates table container.
• <tr>: Table Row | <th>: Header Cell | <td>: Data Cell.

<table border="1"><tr><th>Name</th><th>Marks</th></tr><tr><td>Amit</td><td>85</td></tr><tr><td>Priya</td><td>92</td></tr><tr><td>Rahul</td><td>78</td></tr></table>
SECTION - D (Long Answer Question - II) 1 × 4 = 4 Marks

24. Types of Lists in HTML OR Physical vs Logical Tags with examples.
๐Ÿ’ก Show Answer
Answer (Types of Lists):
1. Unordered List: <ul>, <li>
2. Ordered List: <ol>, <li>
3. Description List: <dl>, <dt>, <dd>

Answer (Physical vs Logical):
• Physical: <b>, <i>, <u> (Visual styling)
• Logical: <strong>, <em> (Semantic importance)
SECTION - E (Case-Based Questions) 2 × 4 = 8 Marks

25. Case Study 1: List Tags

1. Unordered list tag? 2. Item tag? 3. Description term tag? 4. Description detail tag?

๐Ÿ’ก Show Answer
Answers: 1. <ul> | 2. <li> | 3. <dt> | 4. <dd>
26. Case Study 2: Table Attributes

1. Space between cells? 2. Space inside cell? 3. Border purpose? 4. Bgcolor purpose?

๐Ÿ’ก Show Answer
Answers:
1. cellspacing
2. cellpadding
3. Sets border thickness.
4. Sets table/cell background color.

Class 12 IP: Python Pandas 50 MCQs Online Practice Test (Instant Result)

Class XII - Informatics Practices (065) Python Pandas – I & II | 50 Important MCQs Test ...