Ticker

6/recent/ticker-posts

Python subjective question for competitive exam (37)

Q1 What is Python? List some popular applications of Python in the world of technology.

Python is a widely-used general-purpose, high-level programming language. It was created by Guido van Rossum in 1991 and further developed by the Python Software Foundation. It was designed with an emphasis on code readability, and its syntax allows programmers to express their concepts in fewer lines of code.
It is used for: System Scripting
Web Development
Game Development
Software Development
Complex Mathematics



Q2 What is a lambda function

A lambda function is an anonymous function. This function can have any number of parameters but, can have just one statement.
For Example: a = lambda x, y : x*y
print(a(7, 19))



Q3. What is the difference between / and // in Python?

// represents floor division whereas / represents precise division.
For Example: 5//2 = 2
5/2 = 2.5



Q4. What is swapcase function in Python?

It is a string function that converts all uppercase characters into lowercase and vice versa. It is used to alter the existing case of the string. This method creates a copy of the string which contains all the characters in the swap case.
For Example: string = "ramEat"
string.swapcase() ---> "RAMeAT"



Q5.Is Indentation Required in Python?

Yes, indentation is required in Python. A Python interpreter can be informed that a group of statements belongs to a specific block of code by using Python indentation. Indentations make the code easy to read for developers in all programming languages but in Python, it is very important to indent the code in a specific order.





Python subjective question for competitive exam (34)
Python subjective question for competitive exam (33)
Python subjective question for competitive exam (32)
Python subjective question(recursion) for competitive exam (31)
Python subjective question for competitive exam (30)
Python subjective question for competitive exam (29)
Python subjective question for competitive exam (28)
Python subjective question for competitive exam (27)
Python subjective question for competitive exam (26)
Python subjective question for competitive exam (25)
Python subjective question for competitive exam (24)
Python subjective question for competitive exam (23)
Python subjective question for competitive exam (22)
Python subjective question for competitive exam (21)
Python subjective question for competitive exam (20)
Python subjective question for competitive exam (19)
Python subjective question for competitive exam (18)
Python subjective question for competitive exam (17)
Python subjective question for competitive exam (16)
Python subjective question for competitive exam (15)
Python subjective question for competitive exam (14)
Python subjective question for competitive exam (13)
Python subjective question for competitive exam (12)
Python subjective question for competitive exam (11)
Python subjective question for competitive exam (10)
Python subjective question for competitive exam (9)
Python subjective question for competitive exam (8)
Python subjective question for competitive exam (7)
Python subjective question for competitive exam (6)
Python subjective question for competitive exam (5)
Python subjective question for competitive exam (4)
Python subjective question for competitive exam (3)
Python subjective question for competitive exam (2)
Python subjective question for competitive exam (1)

Post a Comment

0 Comments