
Q1).What is Python?
Ans1: Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it h
as fewer syntactical constructions than other languages.
Ans1: Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it h
as fewer syntactical constructions than other languages.
Q2).Name some of the features of Python.
Ans2: Following are some of the salient features of python
Ans2: Following are some of the salient features of python
- It supports functional and structured programming methods as well as OOP.
- It can be used as a scripting language or can be compiled to byte-code for building large applications.
- It provides very high-level dynamic data types and supports dynamic type checking.
- It supports automatic garbage collection.
- It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.
Q3).Do you have any personal projects?
Really?
Ans3:This shows that you are willing to do more than the bare minimum in terms of keeping your skillset up to date. If you work on personal projects and code outside of the workplace then employers are more likely to see you as an asset that will grow. Even if they don’t ask this question I find it’s useful to broach the subject.
Really?
Ans3:This shows that you are willing to do more than the bare minimum in terms of keeping your skillset up to date. If you work on personal projects and code outside of the workplace then employers are more likely to see you as an asset that will grow. Even if they don’t ask this question I find it’s useful to broach the subject.
Q4).Is python a case sensitive language?
Ans4: Yes! Python is a case sensitive programming language.
Ans4: Yes! Python is a case sensitive programming language.
What are the supported data types in Python?
Python has five standard data types −
Python has five standard data types −
- Numbers
- String
- List
- Tuple
- Dictionary
Q5).What is the output of print str if str = ‘Hello World!’?
Ans5: It will print complete string. Output would be Hello World!.
Q6).What is the output of print str[0] if str = ‘Hello World!’?
Ans6: It will print first character of the string. Output would be H.
Q7).What is the output of print str[2:5] if str = ‘Hello World!’?
Ans7: It will print characters starting from 3rd to 5th. Output would be llo.
Q8).What is the output of print str[2:] if str = ‘Hello World!’?
Ans8: It will print characters starting from 3rd character. Output would be llo World!.
Q9).What is the output of print str * 2 if str = ‘Hello World!’?
Ans9: It will print string two times. Output would be Hello World!Hello World!.
Q10).What is the output of print str + “TEST” if str = ‘Hello World!’?
Ans10: It will print concatenated string. Output would be Hello World!TEST.
Ans5: It will print complete string. Output would be Hello World!.
Q6).What is the output of print str[0] if str = ‘Hello World!’?
Ans6: It will print first character of the string. Output would be H.
Q7).What is the output of print str[2:5] if str = ‘Hello World!’?
Ans7: It will print characters starting from 3rd to 5th. Output would be llo.
Q8).What is the output of print str[2:] if str = ‘Hello World!’?
Ans8: It will print characters starting from 3rd character. Output would be llo World!.
Q9).What is the output of print str * 2 if str = ‘Hello World!’?
Ans9: It will print string two times. Output would be Hello World!Hello World!.
Q10).What is the output of print str + “TEST” if str = ‘Hello World!’?
Ans10: It will print concatenated string. Output would be Hello World!TEST.
Excellent and useful blog admin. Share more Python interview questions with answers.
ReplyDeletePython Training Chennai | Python courses in Chennai
This was helpful to me thanks for sharing this useful information. Kindly continue the work.
ReplyDeleteIELTS Classes in Vadapalani
IELTS Class in Kodambakkam
IELTS Classes in Chennai Saidapet
IELTS Coaching Center in Porur
IELTS Classes in Madanandapuram
IELTS Class in Virugambakkam
IELTS Training near me
Nice blog keep updating
ReplyDeleteIOT Training in Chennai
PHP Training in Chennai
Wordpress Training in Chennai
vizer tv apk
ReplyDeletegomovies
ReplyDeletegifts whatsapp groups
ReplyDeleteYour article is very helpful.You can visit my website :asphalt nitro apk download
ReplyDeleteThanks for this article.You might be interested in :candy crush game download for android apk
ReplyDeleteIf Your are not ediot then try this app Poweramp Apk
ReplyDeleteTry this new app EA SPORTS™ FIFA 20 Companion Apk : which is most trending now.
ReplyDelete