THE JAIN INTERNATIONAL SCHOOL, KANPUR
Class-XI Subject-CS Worksheet- programming fundamentals Date:12.08.2025
1. What is meant by the character set?
2. Name any four types of characters included in the character set.
3. Which encoding standard is used by 3 for representing characters?
4. Give an example of a whitespace character in .
5. Define a token in .
6. List the five categories of tokens.
7. Give any three examples of keywords.
8. What is a identifier? Give two rules for naming identifiers.
9. What is a literal in ? Give two examples.
10. Write two examples of operators.
11. Name any two punctuators used in and their purpose.
12. What is the difference between a keyword and an identifier?
13. What is a variable in ?
14. How do you assign a value to a variable in ?
15. Differentiate between l-value and r-value with an example.
16. Can we assign a value to an expression in ? Why or why not?
17. How do you write a single-line comment in ?
18. How do you write a multi-line comment in ?
19. Why are comments used in a program?
20. Name any three numeric data types in .
21. What is the difference between an integer and a floating-point number in ?
22. Give an example of a complex number in .
23. What are Boolean values in ? Give their possible values.
24. Give an example of a string in .
25. Differentiate between a list and a tuple.
26. What is the None type in ?
27. What is a dictionary in ? Give one example.
28. What is meant by mutable data types? Give two examples.
29. What is meant by immutable data types? Give two examples.
30. Give two examples of arithmetic operators in .
31. Which operator is used for exponentiation in ?
32. Give an example of a relational operator and its purpose.
33. Write the symbols for logical AND and logical OR in .
34. Name two assignment operators in .
35. What is an augmented assignment operator? Give an example.
36. What is the purpose of the is operator in ?
37. Give an example of a membership operator.
38. What is an expression in ?
39. What is the difference between an expression and a statement?
40. Define operator precedence with an example.
41. What is explicit type conversion? Give an example.
42. What is implicit type conversion? Give an example.
43. Which function is used to take input from the user in ?
44. Which function is used to display output in ?
45. How do you print multiple values in one print() statement?
46. What is a syntax error? Give one example.
47. What is a logical error? Give one example.
48. What is a run-time error? Give one example.
49. Which type of error occurs if you divide a number by zero?
50. Which error will be raised if you use a variable without assigning a value to it?
Output-Based Questions (1 Mark Each)
1. print(5 + 3 * 2)
2. x = 10
y = 3
print(x // y, x % y)
3. print(2 ** 3 ** 2)
4. a = 7
b = 2
print(a / b, a // b)
5. print(10 > 5 and 5 > 2)
6. print('apple' < 'banana')
7. a = 5
a += 3
print(a)
8. x = [1, 2, 3]
y = x
print(x is y)
9. s = ""
print(s[2:5])
10. t = (1, 2, 3)
print(len(t))
11. d = {"a": 1, "b": 2}
print("a" in d)
12. print(type(3 + 4j))
13. x = None
print(x is None)
14. print(bool(0), bool(5))
15. print(int(3.8))
16. x = 5
print(float(x) + 2)
17. print(10 == 10.0)
18. print(5 and 0)
19. x,y = 7,7
print(id(x) == id(y))
20. print("A\nB\nC")
21. print(10 + 3 * 2 ** 2)
22. x,y = 5,10
print(x < y and y < 20 or y == 5)
23. a = 4
a *= 3 + 2
print(a)
24. A, b = [1, 2],[1, 2]
print(a == b, a is b)
25. text = "python"
print("th" in text, "py" not in text)
26. X, y = "15", 5
print(int(x) + y)
27.