This document is a Computer Science worksheet for Class XII students of Everwin Group of CBSE Schools, dated March 14, 2025. It includes programming exercises such as predicting outputs of expressions, explaining jump statements, correcting code errors, and writing programs for various tasks. The tasks involve loops, conditionals, and basic arithmetic operations in Python.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
48 views1 page
CLASS XII-CS Worksheet - 14.03.2025
This document is a Computer Science worksheet for Class XII students of Everwin Group of CBSE Schools, dated March 14, 2025. It includes programming exercises such as predicting outputs of expressions, explaining jump statements, correcting code errors, and writing programs for various tasks. The tasks involve loops, conditionals, and basic arithmetic operations in Python.
DATE: 14.03.2025 COMPUTER SCIENCE WORKSHEET CLASS: XII
1. Predict the output.
a) 7 * 4+ 4**3 // 5 – 10 b) 13>6 and 9 > 15 or not 19 > 3 2. Predict the output for the following: I) for i in range(1,6): for j in range(0,i): print(i, end=" ") print('') II) for i in range(1,6): for j in range(5,i-1,-1): print(i, end=" ") print('') 3. Explain Jump statements with an example. 4. Rishi has written a code and his code is having errors. Rewrite the correct code and underline the corrections made. x=input("Enter a no:-") if x%2=0: for i range(2*x): print(i) loop else: print("#") 5. Write a program to check whether a number is positive or negative number. 6. Write a program to print a square root of every 3rd number from range 3 to 15. 7. Write a program to find the product of two numbers by using repeated addition.