WorksheetsLOGICAL THINKING
Total questions: 20
Worksheet time: 7mins
Which data structure is best suited for implementing a browser’s forward/backward feature?
a) Queue
b) Linked List
c) Stack
d) Graph
In Data Science, which library in Python is MOSTLY used for data manipulation and analysis?
a) Matplotlib
b) NumPy
c) Pandas
d) Seaborn
In Big Data, the term “Velocity” refers to:
a) Speed of data generation
b) Type of data (structured/unstructured)
c) Volume of stored data
d) Veracity of data
1. A’s age is twice B’s age 5 years ago, and the sum of their ages now is 35. What is A’s present age?
a) 20
b) 25
c) 15
d) 30
In Python, what does list1 = [1,2,3]*2 result in?
a) [2,4,6]
b) [1,2,3,1,2,3]
c) Error
d) [[1,2,3],[1,2,3]]
5. Which sorting algorithm is most efficient when the data is almost sorted?
a) Bubble Sort
b) Insertion Sort
c) Quick Sort
d) Merge Sort
1. What is the time complexity of binary search?
a) O(log n)
b) O(n)
c) O(n log n)
d) O(1)
8. If stack operations are PUSH(1), PUSH(2), POP, PUSH(3), POP – what remains?
a) [1]
b) [2]
c) [3]
d) Empty
In Machine Learning, what does “Overfitting” mean?
a) Model fits well on training but fails on test data
b) Model performs well on both training and test
c) Model cannot learn training data properly
d) Model accuracy increases as data decreases
Which one is NOT a supervised ML algorithm?
a) Decision Tree
b) SVM
c) K-Means
d) Random Forest
for(int i=0; i<5; i++) {
static int x = 5;
x++;
printf("%d ", x);
}
a) 6 6 6 6 6
b) 6 7 8 9 10
c) 5 6 7 8 9
d) Error
Bag: 5 red, 6 green, 7 blue. Probability both balls are red?
a) 2/153
b) 5/153
c) 10/153
d) 20/153
1. Which company developed ChatGPT?
a) Google
b) OpenAI
c) Microsoft
d) IBM
Which of the following is NOT a supervised learning algorithm?
a) Linear Regression
b) Decision Tree
c) K-Means Clustering
d) Logistic Regression
Which of the following is an example of unsupervised learning in AI?
a) Fraud detection
b) Customer segmentation
c) Stock price prediction
d) Spam mail classification
a = [1, 2, 3]
b = a
b.append(4)
print(a)
a) [1, 2, 3]
b) [1, 2, 3, 4]
c) Error
Elon Musk’s AI company is called?
a) OpenAI
b) xAI
c) DeepMind
d) Anthropic
A pen bought at 25% discount, sold for 20% profit on marked price. Profit %?
a) 20%
b) 30%
c) 60%
d) 80%
Which evaluation metric is BEST when you deal with imbalanced datasets?
a) Accuracy
b) Precision
c) Recall
d) F1-Score
Series: 2, 6, 12, 20, 30, ?
a) 40
b) 42
c) 44
d) 46
