0% found this document useful (0 votes)
9 views1 page

Class-XII-CS Assessment Test

The document is an assessment test for Class XII in Computer Science, consisting of multiple-choice questions and open-ended questions. It covers topics such as variables, operators, tokens, literals, data types, and type conversion in Python. Additionally, it includes code prediction tasks and a programming exercise to compute the factorial of a number.

Uploaded by

lakshayyash16
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
9 views1 page

Class-XII-CS Assessment Test

The document is an assessment test for Class XII in Computer Science, consisting of multiple-choice questions and open-ended questions. It covers topics such as variables, operators, tokens, literals, data types, and type conversion in Python. Additionally, it includes code prediction tasks and a programming exercise to compute the factorial of a number.

Uploaded by

lakshayyash16
Copyright
© © All Rights Reserved
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
You are on page 1/ 1

Assessment Test

Class: XII, Subject: Computer Science


1. Which of the following cannot be a variable? 1
a. _init_
b. in
c. it
d. on
2. What will be the value of the expression? 1
14 + 13 % 15
a. 14
b. 27
c. 12
d. 0
3. Which among the following list of operators has the highest precedence? 1
+, -, **, %, /, <<, >>,
a) <<, >>
b) **
c) I
d) %
4. What are tokens in Python? How many types of tokens are allowed in Python? 2
5. What are literals in Python? How many types of literals are allowed in Python? 2
6. What are operators? Give examples of some unary and binary operators. 2
7. What are variables? How are they important for a program? 3
8. What are data types? How are they important? 3
9. What are immutable and mutable types? List out them. 3

10. What is the difference between implicit type conversion and explicit type conversion? 3
11. Predict the output of the following code fragments: 3
x = 10
y=0
while x > y:
print (x, y)
x=x-1
y=y+1
12. Predict the output of the following code fragments: 3
keepgoing = True
x=100
while keepgoing :
print (x)
x = x - 10
if x < 50 :
keepgoing = False
13. Write a program to compute factorial of a number. 3

You might also like