Aptitude and Tech Interview questions (Sunday 02)

Q1 Can you explain how Python’s garbage collection works?

Q2 What is the purpose of the Python library Pandas in data science?
a) To create machine learning models
b) To visualize data
c) To perform numerical operations on data
d) To manipulate and analyze data

Q3 Which of the following is NOT a data type in Python?

a) Integer
b) Float
c) Complex
d) Decimal
e) All of the above are data types in Python

Q4 What is the value of the expression log(1000) - log(100) + log(10)?
a) 1
b) 2
c) 3
d) 4

Q5 What is the probability of rolling a sum of 7 with two fair six-sided dice?
a) 1/6
b) 1/12
c) 1/9
d) 1/36


q-2 ans is d
q-3 ans is d
q-4 ans is a
q-5 ans is b

1 Like

Great answer :+1: but for last 2 question my suggestion is

If you reconsider answer for question 04 by applying
log(ab) = log(a) + log(b)
log(a/b) = log(a) - log(b)
You will get correct answer

And for question 05 the concept can be
The possible ways to get a sum of 7 are:


There are 6 × 6 = 36 possible outcomes.

Use these approaches for practice.
I hope it will help.
Keep learning :heart: