Questions Flashcards

1
Q

Differences between Python 2 and 3?

A

Python 3 is more in-demand and includes a typing system. Python 2 is outdated and uses an older syntax for the print function

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

definition and example of a decorator

A

new functionality to an existing object without modifying its structure.

operations such as being passed as an argument.

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

definition of a tuple

A

Tuples are used to store multiple items in a single variable.

Tuple is one of 4 built-in data types in Python used to store collections of data,: List, Set, and Dictionary.

A tuple is a collection which is ordered and unchangeable.

Tuples are written with round brackets.

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

CRUD functions in SQL

A

CRUD is an acronym that stands for Create, Read, Update, and Delete

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

Normalization (sql)

A

eliminates repetitive data

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

Closures (js)

A

enable data privacy

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

what is mutable

A

objects can change their values

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

immutable

A

no change is possible over time in python.

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

definition of module

A

A file containing Python code example.py

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

definition of react

A

front-end JavaScript library for building user interfaces or UI components

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

definition of hoisting

A

a function or a variable can be used before declaration

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

What does = mean?

A

assigning values to a variable

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

What does == mean?

A

comparison between two variables regardless of the datatype of variable

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

What does === mean?

A

check for a strict comparison type between two variables, check datatype and compare two values.

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

what is recursion?

A

a process by which a function calls itself directly or indirectly

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