Python Viva Questions | Python Viva Questions & Answers | hindi |best16 Python viva voce questions
Summary
TLDRIn this Python programming viva session, students explore key Python concepts and interview questions. The session covers the development of Python, its keywords, rules for variable names, data types, operators, loops, and more. Key differences between lists and tuples are discussed, as well as the language's features like dynamic typing, portability, and versatility for web development, data analysis, AI, and scientific computing. Practical aspects such as local variables and the use of input and print functions are also addressed, making it an essential resource for students preparing for Python-based interviews and exams.
Takeaways
- 😀 Python was developed by Guido van Rossum at CWI Research Center in the Netherlands in 1989.
- 😀 Python is written in C, making it a powerful and efficient language.
- 😀 Keywords in Python are predefined words with special meanings that cannot be redefined by the programmer.
- 😀 Variable names in Python must begin with a letter or an underscore, cannot contain spaces or special symbols, and are case-sensitive.
- 😀 Python supports unary operators such as ++, --, NOT, and AND.
- 😀 Python does not have a specific data type for single characters like other languages (e.g., C or Java); characters are treated as strings of length 1.
- 😀 The modulus operator (%) is used to find the remainder of a division operation, like 15 % 30 equals 15.
- 😀 Python has two types of loops: while and for.
- 😀 Lists in Python are mutable (dynamic), meaning their elements can be modified, while tuples are immutable (static).
- 😀 Python has 35 reserved keywords up to version 3.10, which cannot be used as variable names.
- 😀 Python is a versatile, interpreted, dynamically typed language with features like portability, integration with other languages, and support for multiple paradigms.
- 😀 Python is used for various fields like web development, data analysis, artificial intelligence, scientific computing, and automation.
- 😀 Python's local variables are declared inside functions, and the input() function is used to accept user input via the keyboard.
Q & A
Who developed the Python programming language?
-Python was developed by Guido van Rossum in 1991 at the Centrum Wiskunde & Informatica (CWI) research center in the Netherlands.
In which language is Python written?
-Python is written in the C programming language.
What are keywords in Python?
-Keywords are predefined words in Python that have a specific meaning. These cannot be redefined by the programmer for personal use. Examples include 'if', 'else', 'for', and 'while'.
What are the rules for variable names in Python?
-In Python, variable names must start with a letter or an underscore. They can include letters, digits, and underscores but cannot contain spaces or special characters. Python variable names are case-sensitive.
What is a unary operator in Python?
-Unary operators in Python operate on a single operand. Examples include '++' (increment), '--' (decrement), and the 'not' operator.
Does Python have a character data type?
-Python does not have a specific 'char' data type for single characters like C or Java. Instead, single characters are treated as strings of length one.
What is the result of 15 % 30 in Python?
-The result of 15 % 30 is 15. The '%' operator in Python is the modulo operator, which gives the remainder when one number is divided by another.
How many loops are available in Python?
-Python has two main types of loops: the 'for' loop and the 'while' loop.
What is the difference between a list and a tuple in Python?
-Lists are mutable (can be changed) while tuples are immutable (cannot be changed). Lists are used for dynamic data, while tuples are used for static data.
What are the features of Python language?
-Python has several key features including being interpreted, dynamically typed, portable, supporting multiple paradigms, and integration with other languages. It is widely used for web development, AI, data analysis, scientific computing, and more.
Outlines

This section is available to paid users only. Please upgrade to access this part.
Upgrade NowMindmap

This section is available to paid users only. Please upgrade to access this part.
Upgrade NowKeywords

This section is available to paid users only. Please upgrade to access this part.
Upgrade NowHighlights

This section is available to paid users only. Please upgrade to access this part.
Upgrade NowTranscripts

This section is available to paid users only. Please upgrade to access this part.
Upgrade NowBrowse More Related Video

پایتون مقدماتی استاد جادی - قسمت اول، چرا پایتون؟

79. EDEXCEL GCSE (1CP2) User input and display output

Belajar Python [Dasar] - 04 - Mengenal Variabel

Chapter 1 - Video 4 - Praktikum SosHum

PYTHON BASICS (What I Would Learn First)

1- Programming For Beginners - Introduction - البرمجة للمبتدئين
5.0 / 5 (0 votes)