SixBytes Institute Logo
SixBytesInstitute
CBSE & ICSE•Class 10 Computer•NCERT Solutions & Concepts•
Solved Board Q&ACBSE & ICSEClass 10ComputerProgramming with PythonVerified Faculty Notes & Solutions

Python Programming – Solved Practical Board Examination Programs & Output Q&A

Solved Python board practical exam questions: list analysis, prime number check, palindrome string, Fibonacci series, and output finding questions.

6 students readUpdated 30 August 2026

Python Programming – Solved Practical Board Questions

QUESTION 1 • CBSE Practical Board Exam (3 Marks)

Write a Python program to accept a number from the user and check whether it is a Prime Number or Composite Number.

SOLUTION • Clean Code & Logic
# Prime Number Verification Program
num = int(input("Enter an integer: "))

if num <= 1:
    print(f"{num} is neither prime nor composite.")
else:
    is_prime = True
    for i in range(2, int(num ** 0.5) + 1):
        if num % i == 0:
            is_prime = False
            break
            
    if is_prime:
        print(f"{num} is a PRIME number.")
    else:
        print(f"{num} is a COMPOSITE number.")
QUESTION 2 • String Palindrome (3 Marks)

Write a Python program to check whether a given string is a Palindrome without using built-in reverse function.

SOLUTION
# Palindrome String Check
text = input("Enter a string: ").strip().lower()

reversed_text = ""
for char in text:
    reversed_text = char + reversed_text

if text == reversed_text:
    print(f"'{text}' is a PALINDROME.")
else:
    print(f"'{text}' is NOT a palindrome.")

Indexed Topics & Examination Keywords

#CBSE Computer Science Practicals#Python Solved Programs#Output Finding Questions#Python Board Exam 2026#Class 10 Coding Questions
SixBytes Academic Coaching • Shyampur & Premnagar

Aiming for 95%+ in CBSE / ICSE Board & Competitive Exams?

Join daily batches at SixBytes Institute for personalized mentoring, one-on-one doubt solving, and structured mock test series for Classes 9–12 & NDA.

Inquire on WhatsApp