0% found this document useful (1 vote)
532 views2 pages

Imp CBSE Class 12 Computer Science Practical Viva Q Python 2024-2025

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 (1 vote)
532 views2 pages

Imp CBSE Class 12 Computer Science Practical Viva Q Python 2024-2025

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/ 2

CBSE Class 12 Computer Science Practical Viva

Questions (Python Basics) 2024-2025


==================================================

Q.1 What are Python Keywords?

A.1 Keywords are reserved words that convey a specific


meaning to the Python interpreter.

Q.2 List out Mutable & Immutable Data Types of Python.

A. 2 Mutable Data Types : list, set, dictionaries

Immutable Data Types : int, float, string, tuple, Byte

Q.3 What is the difference between a list and a tuple?

A.3 The difference between a list and a tuple is that a list


is mutable while a tuple is not.

Q. 4 How can you convert a number into a string?

A. 4 In order to convert a number into a string, use the


inbuilt function str().

Q. 5 What are literals in Python?

A. 5 Python literals can be defined as data which can be


assigned to a variable or constant.

There are five types of literals available in Python:

1. String literals
2. Numeric literals
3. Boolean literals
4. Special literals
5. Literal collections

1|Page Powered By… Mr. Rupesh Laheru


Q.6 What is an operator in Python?

A.5 An operator is a particular symbol that is used on


some values and produces an output as a result.

For example,

10+30=40. Here, "+" and "=" are operators.

Q.7 Why is the return keyword used in Python?

A. 7 The purpose of a function is to receive the inputs and


return some output.

Q.8 What is the difference between the del keyword and


clear () function?

A.8 del keyword removes one element at a time, clear


function removes all the elements.

Q.9 What is difference between actual and formal parameter/


arguments.

A.9 Formal arguments: The formal arguments are the


parameters/ arguments in a function declaration.

Actual arguments: are values (or variables)/ expressions


that are used inside the parentheses of a function call.

Q.10 What is the use of comments in Python?

A.10 Comments in Python is the inclusion of short


descriptions along with the code to increase its
readability.

Q. 11 What is the extension of binary file in Python?

A.11 .bin or .dat

2|Page Powered By… Mr. Rupesh Laheru

You might also like