# Class 12 computer science with python question paper with solution

## Class 12 computer science with python question paper with solution

In this post I am going solve Class 12 Computer Science with Python Important question and their solution with proper explanation. CBSE’s Class 12 Computer Science with Python sample paper can be downloaded from their official website http://cbseacademic.nic.in/SQP_CLASSXII_2020-21.html. 1 . What is the full form of IDLE ? (Marks =1)

Answer : Integrated Development and Learning Environment.
Note : IDLE (Integrated Development and Learning Environment) is an integrated development environment (IDE) for Python. The Python installer for Windows contains the IDLE module by default. If you running Linux you have to install IDLE Separately.

2. Given the list L=[1,2,5,9,10,11,75,85,24]
What will be output of
print(L[3:5])  (Marks =1)

Note : It will return fourth, and fifth item.

3. Find the valid identifier from the following
a) S-name b) True c) 2ndName d) A_name (Marks =1)

Note : Variable name can’t start with any digit(1,2,3..), should not have (-) and white space.

4. Suppose a tuble Tup declared as
Tup=(12,15,63,80)
Which of following in incorrect ? (Marks =1)
a) print(Tup) b) Tup=90 c) print(min(tup)) d) print(len(tup))

Note : a) print(Tup) will output 15, c) print(min(tup)) output 12 and
d) print(len(tup)) output

5. What is full form of “URL”? (Marks =1)

Note : The link address on the internet is the URL. The URL was introduced in 1994 by Tim Berners-Lee as well as the Working Group on Internet Engineering.

6. Differentiate between the round() and floor() functions with the help of suitable example. (Marks =1)

Answer :  The function round() is used to convert a fractional number into whole as the nearest next whereas the function floor() is used convert to the nearest lower whole number, e.g.,
round (6.6) = 7, round (5.1) = 6 and floor (6.6) = 7, floor (6.45) = 6

7. Name the Python Library modules which need to be imported to invoke the following functions : (Marks =2)
a) sqrt(), b) dump()

Answer :  a) math , b) pickle

5 1 vote
Article Rating
Subscribe
Notify of This site uses Akismet to reduce spam. Learn how your comment data is processed.