12th Computer Science Public Answer Key 2025

12th Computer Science Public Answer Key 2025 | PDF Download

12th Computer Science Public Answer Key 2025 | PDF Download

12th Computer Science Public Exam 2025 โ€“ Answer Key

Question 18: Output of Python Code

Code:

for x in range(5, 20, 5):
    print(x, end=' ')
        

Output:

5 10 15

Question 24: String Methods in Python

Code:

str1 = 'WELCOME'
print(str1.islower())  
print(str1.lower())  
        

Output:

False
welcome

Question 33: Output of Python Code

Code:

squares = []
for x in range(1, 6):
    s = x ** 2
    squares.append(s)
print(squares)
        

Output:

[1, 4, 9, 16, 25]

Question 38: Set Operations Output

Code:

A = {1, 2, 3, 4, 5}
B = {4, 5, 6, 7, 8}

print(A | B)  # Union
print(A & B)  # Intersection
print(A - B)  # Difference (A - B)
print(B - A)  # Difference (B - A)
print(A ^ B)  # Symmetric Difference
        

Output:

{1, 2, 3, 4, 5, 6, 7, 8}
{4, 5}
{1, 2, 3}
{6, 7, 8}
{1, 2, 3, 6, 7, 8}

Tags:

Comments

Leave a Reply

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

Search


Categories