0% found this document useful (0 votes)
6 views

Computer Science Practical Viva Questions

The document contains a series of questions and answers related to Python programming concepts, including keywords, data types, operators, and functions. It also includes project-related questions focusing on features, functionality, motivation, and challenges faced during development. This serves as a practical viva guide for computer science students.

Uploaded by

vaishvikxbox
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Computer Science Practical Viva Questions

The document contains a series of questions and answers related to Python programming concepts, including keywords, data types, operators, and functions. It also includes project-related questions focusing on features, functionality, motivation, and challenges faced during development. This serves as a practical viva guide for computer science students.

Uploaded by

vaishvikxbox
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Computer Science Practical Viva

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?

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

6. What is an operator in Python?

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.

7. Why is the return keyword used in Python?


The purpose of a function is to receive the inputs and
return some output. The return is a Python statement that
we can use in a function for sending a value back to its
calling function or the operating system.

8. What is the difference between the del keyword and


clear () function?
The difference between del keyword and clear () function
is that while del keyword removes one element at a time,
clear function removes all the elements.
9. What is difference between actual and formal
parameter/ arguments.

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.

10. What is the use of comments in Python?


A comment is text that doesnt affect the outcome of a
code, it is just a piece of text to let someone know what
you have done in a program or what is being done in a
block of code.
11. What is the default sep argument/ parameter for
print () function?
The default sep argument for print function is space.
12. What is the default end argument/ parameter for
print () function?
The default end argument for print () function.
13. Which loop in python is known as condition loop in
python?

While loop.

14. What is the extension of binary file in Python?

.bin or .dat
15. Name any two method/ function which are used to
write text file in python?

write() and writelines()

Project Viva Questions

1. Tell me about your project.

2. Can you explain the main features and functionality of your

project?

3. Explain a specific function or module in your project?

4. What the frontend and backend of the project?

5. What was the motivation behind choosing this particular

project?

6. What is the future scope of your project?

7. What are the limitations of your project?

8. Which books/study material or websites have you used

making this project?

9. What are your learnings from this project?

10. What were the main challenges you faced during the

development of your project?

You might also like