Python Interview Questions

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Key Feature #4 (Functions)

In Python, functions are first-class objects. This means that they can be assigned to variables, returned from other functions and passed into functions. Classes are also first class objects.

Key Feature #6 (Spheres)

Python finds uses in many spheres -- web applications, automation, scientific modelling, big data applications and many more. It's also often used as "glue" code to get other languages and components to play nicely.

Key Feature #2 (Dynamically Compiled)

Python is a dynamically typed language, this means that you don't need to state the types of variables when you declare them or anything like that. You can do things like x=111 and then x="I'm a string" without error.

Key Feature #1 (Interpreted language)

Python is an interpreted language. That means, that unlike C and its variants, Python does not need to be compiled before it is run. Other interpreted languages include PHP and Ruby.

Key Feature #3 (Object Oriented Programming)

Python is well suited to object oriented programming in that it allows the definition of classes along with composition and inheritance. Python does not have access specifiers (like C++'s public, private), the justification for this point is given as "we are all adults here".

Key Feature #5 (Quick Code)

Writing Python code is quick but running it is often slower than compiled languages. Fortunately, Python allows the inclusion of C based extensions so bottlenecks can be optimized away and often are. The numpy package is a good example of this, it's really quite quick because a lot of the number crunching it does isn't actually done in Python.


Set pelajaran terkait

Chapter 5 : Premiums, Proceeds, and Beneficiaries

View Set

Exam - Part 9 - Human Resources Management

View Set

Multiple Roles and Role Conflict

View Set

Intro to Project Management Chapter 4

View Set

Ch 20: Management of Anger, Aggression, and Violence

View Set

(ECO 201) Chapter 8: Market Failure

View Set