Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

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

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)

Answer : [9, 10]
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)

Answer : d) A_name
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
Which of following in incorrect ? (Marks =1)
a) print(Tup[1]) b) Tup[2]=90 c) print(min(tup)) d) print(len(tup))

Answer : b) Tup[2]=90
Note : a) print(Tup[1]) will output 15, c) print(min(tup)) output 12 and
d) print(len(tup)) output

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

Answer :  Uniform Resource Locator
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
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments
Do you have any Query / Suggestion