Computer Science Practical Viva Questions
Computer Science Practical Viva Questions
Questions
1. What are Phython Keywords?
Keywords are reserved words that convey a specific
meaning to the Python interpreter, and we can use a
keyword in our program only for the purpose for which it
has been defined.
2. Name any 3 Immutable Data Types.
int, string, tuple
3. What is the difference between a list and a tuple?
The difference between a list and a tuple is that a list is
mutable while a tuple is not. Tuple can be further
implemented as a key to dictionaries.
4. How can you convert a number into a string?
In order to convert a number into a string, use the inbuilt
function str(). If you want an octal or hexadecimal
representation, use the inbuilt function oct() or hex().
5. What are literals in Python?
1. String literals
2. Numeric literals
3. Boolean literals
4. Special literals
5. Literal collections
For example,
While loop.
.bin or .dat
15. Name any two method/ function which are used to
write text file in python?
project?
project?
10. What were the main challenges you faced during the