wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Mining MID TERM content 1

Total questions: 75

Worksheet time: 38mins

Name
Class
Date
1.

In Python, which library is commonly used for data manipulation and analysis?

a)

NumPy

b)

Pandas

c)

Matplotlib

d)

TensorFlow

2.

In Pandas, what is the function used to check the data types of each column in a DataFrame?

a)

.types()

b)

.dtypes

c)

.get_types()

d)

.checktypes()

3.

If a Pandas column shows dtype: object, what does this usually represent?

a)

Floating-point numbers

b)

Strings or mixed data types

c)

Boolean values

d)

Date and time values

4.

Which Pandas data structure is one-dimensional and similar to an array or list in Python?

a)

DataFrame

b)

Series

c)

Dictionary

d)

Tuple

5.

What is the default dtype of integers in Pandas if you create a Series like pd.Series([1, 2, 3])?

a)

float64

b)

int32 or int64 (depending on system)

c)

object

d)

bool

6.

What is the purpose of the line import pandas as pd?

a)

To rename the Python interpreter

b)

To import the pandas library with an alias

c)

To install pandas in the code

d)

To import pandas and NumPy together

7.

If we want to calculate the average Price of all items, which Pandas function is most appropriate?

a)

df['Price'].mean()

b)

df['Price'].sum()

c)

df['Price'].count()

d)

df['Price'].min()

8.

What is the main goal of Data Mining?

a)

To delete unnecessary data

b)

To extract useful patterns and knowledge from data

c)

To store data in databases

d)

To clean data only

9.

Which of the following is a type of data commonly used in Data Mining?

a)

Text data

b)

Numerical data

c)

Categorical data

d)

All of the above

10.

Python is widely used in Data Mining because it is:

a)

Complex and hard to learn

b)

Limited to only numerical operations

c)

Easy to use and has powerful libraries

d)

Only for making websites

11.

Which Python library is most commonly used for data manipulation and analysis?

a)

NumPy

b)

Pandas

c)

Matplotlib

d)

TensorFlow

12.

Jupyter Notebook is best described as:

a)

A text editor only

b)

A web-based environment for writing and running Python code

c)

A library for data visualization

d)

A programming language

13.

In Python, a Series in Pandas can be described as:

a)

A 2D labeled data structure

b)

A 1D labeled array

c)

A collection of Python functions

d)

A type of chart

14.

A Pandas DataFrame is essentially:

a)

A single list of numbers

b)

A 2D table of rows and columns

c)

A database

d)

A file format

15.

Which of the following is a valid Python data type?

a)

Integer

b)

String

c)

Boolean

d)

All of the above

16.

If you want to install a Python library, which command is commonly used?

a)

run install library_name

b)

download library_name

c)

pip install library_name

d)

setup library_name

17.

In Jupyter Notebook, which key combination is often used to run a cell?

a)

Shift + Enter

b)

Ctrl + S

c)

Alt + Tab

d)

Ctrl + C

18.

CLS permanently clears all files in the current directory.

a)

True

b)

False

19.

CD .. moves the user to the parent directory.

a)

True

b)

False

20.

The REN command can be used to move files to another directory.

a)

True

b)

False

21.

In DOS, the wildcard ? replaces one or more characters in filenames.

a)

True

b)

False

22.

The wildcard * can match zero or more characters in a filename.

a)

True

b)

False

23.

The CHOICE command allows branching based on user input.

a)

True

b)

False

24.

How to insert comments in Python ?

a)

# this is a comment

b)

// this is a comment

c)

/* this is a comment */

25.

What is the main goal of Data Mining?

a)

To delete unnecessary data

b)

To extract useful patterns and knowledge from data

c)

To store data in databases

d)

To clean data only

26.

Which of the following is a type of data commonly used in Data Mining?

a)

Text data

b)

Numerical data

c)

Categorical data

d)

All of the above

27.

Python is widely used in Data Mining because it is:

a)

Complex and hard to learn

b)

Limited to only numerical operations

c)

Easy to use and has powerful libraries

d)

Only for making websites

28.

Which Python library is most commonly used for data manipulation and analysis?

a)

NumPy

b)

Pandas

c)

Matplotlib

d)

TensorFlow

29.

Jupyter Notebook is best described as:

a)

A text editor only

b)

A web-based environment for writing and running Python code

c)

A library for data visualization

d)

A programming language

30.

In Python, a Series in Pandas can be described as:

a)

A 2D labeled data structure

b)

A 1D labeled array

c)

A collection of Python functions

d)

A type of chart

31.

A Pandas DataFrame is essentially:

a)

A single list of numbers

b)

A 2D table of rows and columns

c)

A database

d)

A file format

32.

Which of the following is a valid Python data type?

a)

Integer

b)

String

c)

Boolean

d)

All of the above

33.

If you want to install a Python library, which command is commonly used?

a)

run install library_name

b)

download library_name

c)

pip install library_name

d)

setup library_name

34.

In Jupyter Notebook, which key combination is often used to run a cell?

a)

Shift + Enter

b)

Ctrl + S

c)

Alt + Tab

d)

Ctrl + C

35.

what is the output of the code?

x = "apple"

y = "banana"

x = y = z = "Orange"

print(x)

print(y)

print(z)

a)

Orange

Orange

Orange

b)

apple

banana

Orange

c)

banana

Orange

Orange

d)

None of the above

36.

What is data?

a)

Processed facts with meaning

b)

Raw facts and figures

c)

Organized information

d)

Interpreted results

37.

Which of the following is information?

a)

The number 45

b)

A list of names

c)

Average age of customers

d)

Random characters

38.

What does Data Science combine?

a)

Math, programming, and art

b)

Programming, math, and statistics

c)

Science, biology, and math

d)

History, logic, and math

39.

Data mining is best described as:

a)

Writing Python code

b)

Discovering patterns from large datasets

c)

Storing information in databases

d)

Drawing graphs with Matplotlib

40.

Which is structured data?

a)

A CSV file of sales records

b)

A folder of memes

c)

A YouTube video

d)

A voice recording

41.

Which is unstructured data?

a)

Excel table

b)

SQL database

c)

Social media posts

d)

School grades sheet

42.

Why is Python popular in data mining?

a)

It’s very old

b)

It has powerful libraries and is simple

c)

It only works with numbers

d)

It doesn’t require syntax

43.

What does PIP stand for in Python?

a)

Python Interpreter Program

b)

Python Installer for Packages

c)

Program Installation Protocol

d)

Python Index Package

44.

Which of the following is a Python library?

a)

Facebook

b)

Excel

c)

Pandas

d)

Google

45.

What is a dataset?

a)

A single number

b)

A group of related data

c)

A programming language

d)

A library for graphs

46.

Which of the following is a data type?

a)

Boolean

b)

Pandas

c)

Numpy

d)

Matplotlib

47.

An integer is:

a)

A decimal number

b)

A whole number

c)

A True/False value

d)

A string of characters

48.

A float is:

a)

Text

b)

A number with decimals

c)

Only whole numbers

d)

True or False values

49.

Boolean values are:

a)

Numbers

b)

Text

c)

True or False

d)

Fractions

50.

Which is a string?

a)

25

b)

25.6

c)

"Hello World"

d)

True

51.

Syntax in programming is like:

a)

Grammar in English

b)

Colors in art

c)

Steps in cooking

d)

Notes in music

52.

A conditional statement is used for:

a)

Loops

b)

Making decisions

c)

Defining strings

d)

Adding numbers

53.

Operators in Python include:

a)

+, -, *, /

b)

if, else, while

c)

print(), input()

d)

True, False

54.

An array is:

a)

A table of rows and columns

b)

A collection of items in one variable

c)

A set of functions

d)

A loop command

55.

Which library is best for handling arrays?

a)

Pandas

b)

Numpy

c)

Seaborn

d)

Matplotlib

56.

Pandas is mainly used for:

a)

File storage

b)

Machine learning

c)

Data analysis in rows/columns

d)

Graphics design

57.

Which Python library creates charts?

a)

Pandas

b)

Matplotlib

c)

Seaborn

d)

Scikit-learn

58.

Which library is built on Matplotlib?

a)

Pandas

b)

Numpy

c)

Seaborn

d)

Scikit-learn

59.

Scikit-learn is mainly for:

a)

Web design

b)

Data storage

c)

Machine learning

d)

Image editing

60.

What are batch files used for?

a)

Drawing graphs

b)

Automating tasks in Windows

c)

Writing emails

d)

Browsing the web

61.

What does the ECHO command do?

a)

Deletes files

b)

Shows text on screen

c)

Hides folders

d)

Clears memory

62.

The CLS command is used to:

a)

Clear the screen

b)

Copy files

c)

Show directory

d)

Run Python code

63.

The DIR command shows:

a)

Directories and files

b)

Python libraries

c)

Excel formulas

d)

SQL queries

64.

What is REM in a batch file?

a)

Remove files

b)

Restart memory

c)

Write comments

d)

Rename folder

65.

Which Excel function finds the position of text?

a)

MID

b)

LEFT

c)

FIND

d)

LEN

66.

Which function extracts characters from the middle of text?

a)

RIGHT

b)

LEFT

c)

MID

d)

COUNT

67.

LEFT function extracts text from:

a)

Right side

b)

Middle

c)

Beginning (left side)

d)

Random characters

68.

RIGHT function extracts text from:

a)

Left side

b)

Middle

c)

End (right side)

d)

Start_num position

69.

TEXTSPLIT is used to:

a)

Count numbers

b)

Split text into pieces

c)

Add values

d)

Remove duplicates

70.

COUNT function counts:

a)

All text values

b)

All cells, empty or not

c)

Only numbers

d)

Only strings

71.

COUNTIF counts cells:

a)

Without conditions

b)

Based on one condition

c)

With multiple criteria

d)

Randomly

72.

VLOOKUP searches a value in:

a)

Any row

b)

The first column of a table

c)

A batch file

d)

Python arrays

73.

LEN function returns:

a)

File length

b)

The number of characters in text

c)

The last character only

d)

The first number in a list

74.

SUM function is used to:

a)

Divide numbers

b)

Add numbers

c)

Subtract numbers

d)

Count words

75.

In Pandas, pd.DataFrame() is used to:

a)

Create a dataset table

b)

Open a batch file

c)

Start a Python IDE

d)

Run machine learning