Data Analysis Interview Questions
Data Analysis Interview Questions
1. What is Python?
a. A low-level programming language
b. A high-level programming language
c. A markup language
d. A database management system
11. What is the difference between a "while" loop and a "for" loop in
Python?
a. Both loops are used for the same purpose
b. "while" loops are used for iterating over a sequence, while "for"
loops are used for conditional execution
c. "while" loops are used when the number of iterations is unknown,
while "for" loops are used when it is known
d. "while" loops are used for infinite loops, while "for" loops are used
for finite loops
14. What is the difference between the remove() and pop() methods in
Python?
a. Both methods are used to delete an item from a list, and there is no
difference between them.
b. remove() removes the last item from a list, while pop() removes an
item at a specific index.
c. remove() returns the removed item, while pop() does not return
anything.
d. pop() removes an item based on its index and returns the removed
item, while remove() removes an item based on its value and does
not return anything
2- Off-by-One Error:
3- Incorrect Variable Scoping: