SQL
Q1. The purpose of WHERE clause in a SQL statement is to: {1}
(A) Create a table
(B) Filter rows based on a specific condition
(C)Specify the columns to be displayed
(D)Sort the result based on a column
Q2. Identify the SQL command used to delete a relation (table) from a relational database.
(A) DROP TABLE {1}
(B) REMOVE TABLE
(C)DELETE TABLE
(D)ERASE TABLE
Q3. State whether the following statement is True or False:
In SQL, the HAVING clause is used to apply filter on groups formed by the GROUP BY clause.
Q4. Fill in the Blank:
The COUNT(*) function provides the total number of __________ within a relation (table) in a relational
database.
(A) Columns
(B) Unique values
(C)Not-null values
(D)Rows
Q5. Match the following SQL functions/clauses with their descriptions:
SQL Function Description
P. MAX() 1. Find the position of a substring in a string.
Q. SUBSTRING() 2. Returns the maximum value in a column.
R. INSTR() 3. Sorts the data based on a column.
S. ORDER BY 4. Extracts a portion of a string.
(A) P-2, Q-4, R-3, S-1
(B) P-2, Q-4, R-1, S-3
(C)P-4, Q-3, R-2, S-1
(D)P-4, Q-2, R-1, S-3
PYTHON PANDA
Q1. State whether the following statement is True or False:
Slicing can be used to extract a specific portion from a Pandas Series. {1}
Q2. Which of the following Python statements can be used to select a column column_name from a
DataFrame df ?
(A) df.getcolumn('column_name')
(B) df['column_name']
(C)df.select('column_name')
(D)df(column_name)
Q3. By default, the plot() function of Matplotlib draws a ______ plot.
(A) histogram
(B) column
(C)bar
(D)line
Q4. Which of the following Python statements is used to import data from a CSV file into a Pandas
DataFrame (Note: pd is an alias for pandas)?
(A) pd.open_csv('filename.csv')
(B) pd.read_csv('filename.csv')
(C)pd.load_csv('filename.csv')
(D)pd.import_csv('filename.csv')
Q5. In a Pandas DataFrame, if the tail() function is used without specifying the optional argument
indicating the number of rows to display, what is the default number of rows displayed, considering the
DataFrame has 10 entries?
(A) 0
(B) 1
(C)4
(D)5
Q6. While creating a Series using a dictionary, the keys of the dictionary become:
(A) Values of the Series
(B) Indices of the Series
(C)Data type of the Series
(D)Name of the Series
NETWORK
Q1. Identify the networking device responsible for routing data packets based on their destination
addresses. {1}
(A) Modem
(B) Hub
(C)Repeater
(D)Router
Q2. In which of the network topologies do all devices connect to a central point, such as a switch or
hub?
(A) Star
(B) Bus
(C)Tree
(D)Mesh
SOCIETAL IMPACTS
Q1. e-waste refers to:
(A) Software that has become obsolete
(B) Data that has been deleted from a storage device
(C)Viruses that infect computers
(D)Electronic devices that are no longer in use
Q2. What is plagiarism?
(A) Using copyrighted material without giving proper acknowledgement to the source
(B) Downloading illegal software.
(C)Spreading misinformation online.
(D)Hacking into computer systems.
Q3. Identify the type of cybercrime that involves sending fraudulent emails to deceive individuals into
revealing sensitive information.
(A) Hacking
(B) Phishing
(C)Cyberbullying
(D)Cyberstalking