s="viratkohli"
Leet,code
wordDict = ("virat", "kohli"]
#Output: True
MCQAptitude type questions - 30mins
1. A train 130 meters long passes a man running at 10km/hr in the same direction in 10 seconds. Find
the speed of the train. a) 45 km/hr b) 50 km/hrc) 57 km/hr d) 60 km/hr
2. A boat can travel 20 km downstream in 2hours and 18km upstream in 3 hours. What is the speed of
the current? a) 1.5 km/h b) 2 km/hc) 2.5 km/h d) 3 km/h
3. If 15men working 9 hours a day can reapa field in i6 days, in how many days will 18 men reap the
field, working 8 hours a day? a) 15 days b) 18 days c) 20 days d) 22 days
4. Amixture contains milk and water in the ratio 5:3. If 16 liters of the mixture are replaced with water,
25
the ratio of milk and water becomes 5:7. What was the initial quantity of milk in the mixture? a)
liters b)30 liters g 35 liters d) 40 liters
e average of 5consecutive odd nmbers is 27. What is the product of the first and the last number?
a) 621 b) 667 y713 d) 725
DWO pipes A and B can fill atank in 15 hours and 20 hours respectively, while a thírd pipe C can
empty the full tank in 25 hours. All the three pipes are opened together. In how many hours will the
tank be filled? a)9 hours b 10 hours c) 1l hours d) 12 hours
discount of 20%. What is
I Aman buys an article for Rs. 80 and marks it up by 50%. He then allows a
his profit percentage? a) 10% b) 15% y20%d) 25%
rate of interest per
d. A sum of money becomes 3 times itself in 8 years at simple interest. What is the
annum? a) 12.5% b) 15% c) 20% d25%
9 What is the probability of getting a sum of 7 or ll when two dice are rolled? a) /6 b) 1929 d)
5/36
probability that the two N's
10. If theletters of the word "BANANA" are arranged at random, what is the
come together? a) 1/3 by 1/5 c) 1/6 d) 2/5
and retrieval? a)
11. Which of the following data structures uses a hashing technique for efficient search
Linked List b) Tree HashTable d) Queue
12. What is the time complexity of inserting an element at the beginning of asingly linked list? a) O(1)
b) O(log n) n) d) O(n log n)
13. Which sorting algorithm is known for its instability?
a) Merge Sort b)Insertion Sort c) Quick Sort d) Heap Sort
14. What is the purpose of a'grammar' in automata theory? aYTo define the syntax of a language b) To
execute a program c) To optimize code d) To store data
15. Which testing technique focuses on testing the intermal structure of a program? a Black-boxtesting
b) White-box testing
c) Regression testing d) Acceptance testing
16. What is the goal of'unsupervised learning' in machine learning? a) To predict a target variable based
on labeled data by To discover patterns and structures in unlabeled data
c) To train a modelwith predefined rules d) To evaluate the performance of a model
17. What is a'foreign key' in arelational database? Aprimary key of adifferent table that establishes a
link between the two tables
b) A unique key that identifies each row in a table c) A key used to encrypt data in a table d) A key
used to index data for faster retrieval
18. Which component of the 'MVC' architecture handles user input and interactions?
a) Model b) ViewcController d) Database
T9. What is the purpose of'ACID' properties in database transactions?
wa)lo ensure data consistency and reliability b)To control access to the database c)To optimize
query performance d) To define the schema of thc database
20. What is 'REST in the context of web services?
a) A protocol for communication between web application_ Aprogramming language for web
development c) A database management system d) A type of user interface
21. Which of the following is NOT a common type of data visualization? a)Scatter plot b) Histogram c)
Box plothCryptogram
22. What is 'dimensionality reduction' in machine learning? a) Reducing the number of features in a
dataset b) Reducing the size of thetraining data Reducing the complexity of a modeld) Reducing
the time taken to train a model
23. What is the purpose of a 'loss function' in machine learning? To measure the error between
predicted and actual values b) To visualize the performance of a model c) To select the best features
for a model d) To split the data into training and testing sets
24. What does 'bias' refer to in amachine learning model? ayThe error introduced by approximating a
real-world problem with a simplified model b) The variance in the predictions of amodel c)The
accuracy of a model on the training data d) The ability of a model to generalize to unseen data
25. Which of the following is NOT a type of machine learning? a) Supervised learning b) Unsupervised
learning Reinforcement learning d) Predictive learning
26. What is 'A/B testing' in data science? atA method for comparing two versions of a product or
featureb) A technique for data cleaning c) A type of machine learning algorithm d) A visualization
tool
a
27. What is a 'ROC curve' used for in machine learning? a) To evaluate the performance of
classification model b) To visualize the structure of a decision tree c) To cluster data points d) To
reduce the dimensionality of data
28. What is 'k-means clustering'? a) A supervised learning algorithm for classificationbAn
unsupervised learning algorithm for grouping data points into clusters
c) A method for feature scaling d) A technique for handling missing values
overfitting
29. What is the purpose of 'regularization' in machine learning? a) To prevent the
c) To increase complexity of a model
b' To improve the accuracy of a model on the training data
d) To reduce the time taken to train a model
determine the emotional tone or
30. What is 'sentiment analysis' in data science? a) Analyzing text data to d
recognize objects
opinion b) Analyzing time series data to identify trends c) Analyzing image data to
Analyzing network data to identify relationships