wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

LOGICAL THINKING

Total questions: 20

Worksheet time: 7mins

Name
Class
Date
1.

Which data structure is best suited for implementing a browser’s forward/backward feature?

a)

a) Queue

b)

b) Linked List

c)

c) Stack

d)

d) Graph

2.

In Data Science, which library in Python is MOSTLY used for data manipulation and analysis?

a)

a) Matplotlib

b)

b) NumPy

c)

c) Pandas

d)

d) Seaborn

3.

In Big Data, the term “Velocity” refers to:

a)

a) Speed of data generation

b)

b) Type of data (structured/unstructured)

c)

c) Volume of stored data

d)

d) Veracity of data

4.

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)

a) 20

b)

b) 25

c)

c) 15

d)

d) 30

5.

In Python, what does list1 = [1,2,3]*2 result in?

a)

a) [2,4,6]

b)

b) [1,2,3,1,2,3]

c)

c) Error

d)

d) [[1,2,3],[1,2,3]]

6.

5. Which sorting algorithm is most efficient when the data is almost sorted?

a)

a) Bubble Sort

b)

b) Insertion Sort

c)

c) Quick Sort

d)

d) Merge Sort

7.

1. What is the time complexity of binary search?

a)

a) O(log n)

b)

b) O(n)

c)

c) O(n log n)

d)

d) O(1)

8.

8. If stack operations are PUSH(1), PUSH(2), POP, PUSH(3), POP – what remains?

a)

a) [1]

b)

b) [2]

c)

c) [3]

d)

d) Empty

9.

In Machine Learning, what does “Overfitting” mean?

a)

a) Model fits well on training but fails on test data

b)

b) Model performs well on both training and test

c)

c) Model cannot learn training data properly

d)

d) Model accuracy increases as data decreases

10.

Which one is NOT a supervised ML algorithm?

a)

a) Decision Tree

b)

b) SVM

c)

c) K-Means

d)

d) Random Forest

11.

for(int i=0; i<5; i++) {

    static int x = 5;

    x++;

    printf("%d ", x);

}

a)

a) 6 6 6 6 6

b)

b) 6 7 8 9 10

c)

c) 5 6 7 8 9

d)

d) Error

12.

 Bag: 5 red, 6 green, 7 blue. Probability both balls are red?

a)

a) 2/153

b)

b) 5/153

c)

c) 10/153

d)

d) 20/153

13.

1. Which company developed ChatGPT?

a)

a) Google

b)

b) OpenAI

c)

c) Microsoft

d)

d) IBM

14.

Which of the following is NOT a supervised learning algorithm?

a)

a) Linear Regression

b)

b) Decision Tree

c)

c) K-Means Clustering

d)

d) Logistic Regression

15.

Which of the following is an example of unsupervised learning in AI?

a)

a) Fraud detection

b)

b) Customer segmentation

c)

c) Stock price prediction

d)

d) Spam mail classification

16.

a = [1, 2, 3]

b = a

b.append(4)

print(a)

a)

a) [1, 2, 3]

b)

b) [1, 2, 3, 4]

c)

c) Error

17.

Elon Musk’s AI company is called?

a)

a) OpenAI

b)

b) xAI

c)

c) DeepMind

d)

d) Anthropic

18.

A pen bought at 25% discount, sold for 20% profit on marked price. Profit %?

a)

a) 20%

b)

b) 30%

c)

c) 60%

d)

d) 80%

19.

Which evaluation metric is BEST when you deal with imbalanced datasets?

a)

a) Accuracy

b)

b) Precision

c)

c) Recall

d)

d) F1-Score

20.

Series: 2, 6, 12, 20, 30, ?

a)

a) 40

b)

b) 42

c)

c) 44

d)

d) 46