EducationWorld

Class 10 Computer Science Chapter 3 Test 1 – Python Programming

Class 10 computer chapter 3 test series pdf free download

Prepare for the Class 10 Computer Science and Entrepreneurship Chapter 3: Introduction to Python Programming – Test 1, designed according to the latest Punjab Board 2027 Model Papers and the new syllabus issued by PECTAA Punjab. This full unit test is part of our chapter-wise test series for Class 10 students, covering important Python programming concepts to strengthen programming skills, improve conceptual understanding, and prepare effectively for the 2027 matric annual examinations. Download and practice Class 10 Computer Science Chapter 3 test material to improve your exam preparation and achieve better results in Punjab Boards.

Unit: 3
Total Time: 35 Minutes
Chapter Wise Class Test

Test No. 1

Computer Science
Total Marks: 25
ABCD
1ABCD
2ABCD
3ABCD
ABCD
4ABCD
5ABCD
6ABCD
ABCD
7ABCD
8ABCD
NOTE: Four possible answers A, B, C and D to each question are given. The choice which you think is correct, fill that circle in front of that question with Marker or Pen ink. Cutting or filling two or more circles will result in zero mark in that question.
TIME: 10 MinOBJECTIVEMARKS: 8
Q.1:(08)

1. Which of the following steps in not part of a basic programming process?

(A) write code(B) compile/interpret(C) Execute(D) Ignore Errors

2. Which of the following is paid professional edition for Python?

(A) PyCharm(B) VS Code(C) IDLE(D) All of these

3. In print(” “) statement written inside double quotes is called:

(A) Message(B) String(C) Paragraph(D) Syntax

4. To handle numeric input we use:

(A) int()(B) float()(C) Both a, b(D) None of them

5. Matplotlib is a:

(A) Compiler(B) IDE(C) Interpreter(D) Built-in Library

6. What is the output of the below code?

age = 25; print(" Age : ", age)

(A) Age: 25(B) 25(C) Age(D) age

7. What is the data type of variable x in x = 123

(A) Integer(B) Float(C) String(D) Boolean

8. Which operator has the highest precedence in Python?

(A) Addition (+)(B) Multiplication (*)(C) Exponentiation (**)(D) Parentheses ()
TIME: 25 MinSUBJECTIVEMARKS: 17
(PART – I)
Q.2: Write short answers.(6×2=12)
(i)Define google colab.
Google Colab is a free, cloud-based Jupyter notebook service by Google. It lets you write and run Python code in a web browser without any setup, and offers free access to GPUs.
(ii)What are the advantage of python?
Python is easy to learn, has simple readable syntax, is free and open-source, runs on many platforms, and has a large collection of libraries.
(iii)Write any two types of variables.
1) Local variable (declared inside a function). 2) Global variable (declared outside functions, usable everywhere).
(iv)Differentiate between integer and float datatype.
Integer: whole numbers without a decimal point, e.g. x = 10.
Float: numbers with a decimal point, e.g. y = 3.14.
(v)Discuss three basic data types in python.
int: whole numbers (25). float: decimal numbers (2.5). str: text inside quotes (“Ali”).
(vi)How do you get user input in python?
By using the input() function, e.g. name = input("Enter name: "). For numbers, convert it: age = int(input("Enter age: ")).
(PART – II)
☆ Write a detailed answer.(5)
Q.3:Write a program in python that five numbers from user and display their sum.
total = 0
for i in range(5):
    num = float(input("Enter number: "))
    total = total + num
print("Sum =", total)

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
error: Content is protected !!