Banner_Ads

Interview Question-Answers | Tutorial For Beginners


tech4allsa2z:This blog provides you tutorial and most common Interview questions for beginners related to the following technology like java, python.

Python Interview questions for Freshers -2



 



Q1: Why is Python called scripting language?


Answer: Python supports scripts: programs written for a Python run-time environment that automate the execution of tasks. These tasks could alternatively be executed one-by-one by a user.

Q2 : What is Python Shell?


Answer: Python Shell is an interactive command line interface. Python statements can be executed using Python Shell.

 

Q3: What are the limitations of Python?

Answer: There are certain limitations of Python, which include the following:

  1. It has design restrictions.
  2. It is slower when compared with C and C++ or Java.
  3. It is inefficient in mobile computing.
  4. It consists of an underdeveloped database access layer.

Q4: Do runtime errors exist in Python?

Answer: Yes, runtime errors exist in Python.

Q5: Why do we need a break in Python?

Answer: Break helps in controlling the Python loop by breaking the current loop from execution and transfer the control to the next block.

Q6: Why do we need a continue in Python?

Answer: A continue also helps in controlling the Python loop but by making jumps to the next iteration of the loop without exhausting it.

Q7: Can we use a break and continue together in Python? How?

Answer:  Break and continue can be used together in Python. The break will stop the current loop from execution, while jump will take to another loop.

Q8: Does Python support an intrinsic do-while loop?

Answer: No Python does not support an intrinsic do-while loop.

Q9: What are assignment operators in Python?

Answer: The assignment operators in Python can help in combining all the arithmetic operators with the assignment symbol.

Q10: How are identity operators different than the membership operators?

Answer: Unlike membership operators, the identity operators compare the values to find out if they have the same value or not.

 

 

Post a Comment

0 Comments