Python Flashcards

1
Q

What kind of language is python?

A

Both interpretive and compiled:

The python compiler first compiles it into bytecode (.pyc)

It is then executed by the python virtual machine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Dynamically or Statically Typed

A

Dynamically Typed

Statically Typed languages run faster

Dynamically Typed language are easier to code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Difference between / and //

A

// Is integer division
/ is floating point division

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Object Pass Methodology

A

Immutable objects are passed by value

Mutable Objects are passed by reference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly