Regulatory Body Exams Exam  >  Regulatory Body Exams Test  >  Mock Test Series for SEBI Grade A Exam 2026  >  SEBI Grade A (IT) Mock Test - 1 - Regulatory Body Exams MCQ

SEBI Grade A (IT) Mock Test - 1 Free Online Test 2026


Full Mock Test & Solutions: SEBI Grade A (IT) Mock Test - 1 (130 Questions)

You can boost your Regulatory Body Exams 2026 exam preparation with this SEBI Grade A (IT) Mock Test - 1 (available with detailed solutions).. This mock test has been designed with the analysis of important topics, recent trends of the exam, and previous year questions of the last 3-years. All the questions have been designed to mirror the official pattern of Regulatory Body Exams 2026 exam, helping you build speed, accuracy as per the actual exam.

Mock Test Highlights:

  • - Format: Multiple Choice Questions (MCQ)
  • - Duration: 100 minutes
  • - Total Questions: 130
  • - Analysis: Detailed Solutions & Performance Insights
  • - Sections covered: Paper - I, Paper - II

Sign up on EduRev for free and get access to these mock tests, get your All India Rank, and identify your weak areas to improve your marks & rank in the actual exam.

SEBI Grade A (IT) Mock Test - 1 - Question 1

Who has resigned as the Managing Director and CEO of Paytm Payments Bank?

Detailed Solution: Question 1

The correct answer is Surinder Chawla. In News
  • Surinder Chawla has resigned as the Managing Director and CEO of Paytm Payments Bank.
Key Points
  • His resignation, effective from June 26, 2024, was announced by Paytm on April 8, 2024.
  • Chawla cited personal reasons and a desire to explore better career prospects for his resignation.
  • Prior to joining PPBL, Chawla served as Head - Branch Banking at RBL Bank, focusing on expanding the CASA base and fee revenue.
  • Chawla's resignation comes amid Paytm Payments Bank facing prohibitory action from the Reserve Bank of India.
  • Paytm has not disclosed any information regarding Chawla's potential successor.

SEBI Grade A (IT) Mock Test - 1 - Question 2

What is the name of Zimbabwe's new gold-backed currency?

Detailed Solution: Question 2

The correct answer is ZiG. In News
  • Zimbabwe's new gold-backed currency, Zimbabwe Gold (ZiG), started trading to address high inflation concerns.
Key Points
  • It was launched with an initial exchange rate of 13.56 ZiG to $1, replacing the Real Time Gross Settlement Dollar (RTGS).
  • The RTGS had experienced significant devaluation, losing about 80% of its value before the currency change.
  • Bank balances were transitioned into ZiG over the weekend, with customers given a 21-day period to complete the process.
  • New ZiG banknotes are set to enter circulation by the end of the month, as per the Reserve Bank of Zimbabwe's statement.
  • The RTGS, also known as the Zimdollar, was introduced in 2019 following a decade of dollarization.
  • Despite efforts to stabilize the currency, annual inflation exceeded 55% in March, raising concerns of hyperinflation reminiscent of the 2007-2009 era.

Additional Information

  • Zimbabwe is a landlocked country in southern Africa known for its dramatic landscape and diverse wildlife, much of it within parks, reserves and safari areas.
  • On the Zambezi River, Victoria Falls make a thundering 108m drop into narrow Batoka Gorge, where there’s white-water rafting and bungee-jumping.
  • Downstream are Matusadona and Mana Pools national parks, home to hippos, rhinos and birdlife.
  • Capital: Harare
  • Official languages: Shona, Tshwa, English, Xhosa, etc.
  • Population: 1.63 crores (2022).

SEBI Grade A (IT) Mock Test - 1 - Question 3

Which country recently held its first parliamentary election under the new leadership of Emir Sheikh Meshal al-Ahmad al-Sabah?

Detailed Solution: Question 3

The correct answer is Kuwait

In News

  • Kuwait held its first parliamentary election since Sheikh Meshal al-Ahmad al-Sabah became Emir, with a focus on pushing economic reforms amid longstanding deadlock between appointed governments and elected parliaments.

Key Points

  • The new Emir criticized the National Assembly and the government in his inaugural speech, accusing them of harming the country's interests.
  • The protracted feud between appointed governments and the elected parliament has hindered fiscal reform, including the passage of a debt law crucial for accessing international markets and reducing reliance on oil revenues.
  • Voting took place in the fourth election since December 2020, with Kuwait banning political parties and candidates running as independents.
  • Sheikh Meshal, aged 83, succeeded his late brother in December and dissolved parliament in February, citing the assembly's violation of constitutional principles.
  • Kuwait's assembly holds significant influence compared to similar bodies in other Gulf monarchies, but political deadlock has led to frequent cabinet reshuffles and parliament dissolutions.
  • The election saw 200 candidates competing, the lowest in over five decades, with an estimated 835,000 voters across five electoral districts, each electing 10 lawmakers.

SEBI Grade A (IT) Mock Test - 1 - Question 4

Which country retained the top spot for the best place to conduct business for the 16th consecutive year according to the EIU report?

Detailed Solution: Question 4

The correct answer is Singapore

In News

  • According to the Economist Intelligence Unit (EIU) business environment ranking, Singapore, Denmark, and the United States are considered the best places in the world to conduct business.
Key Points
  • The ranking is based on indicators such as inflation, cost of living, economic growth, and fiscal policies, providing insights into the attractiveness of doing business across 82 countries and territories.
  • Singapore has consistently topped the list for the past 16 years, attributed to factors such as political stability and the government's focus on assisting domestic private-sector companies in technological upgrades.
  • The EIU's analysts highlight that the ranking serves as an effective tool for identifying which economies are better positioned for growth and where an increase in investment spending may soon occur.
  • Notable "big improvers" in the index include countries like Greece, Qatar, and India, indicating improvements in their business environments.
  • Singapore has also hinted at potential measures for unvaccinated travelers, such as longer quarantine periods and additional testing, reflecting its commitment to managing public health amidst global uncertainties.

SEBI Grade A (IT) Mock Test - 1 - Question 5

Who is the author of the book "From A Car Shed To The Corner Room & Beyond"?

Detailed Solution: Question 5

The correct answer is S Raman. In News
  • The author of "From A Car Shed To The Corner Room & Beyond" is S Raman.
Key Points
  • Raman retired as the Chairman and Managing Director of Canara Bank and as a wholetime Member of the board of SEBI.
  • The book explores the intricate dance between personal integrity, professional challenges, and systemic issues in the financial world.
  • Raman's career trajectory, starting from a clerk with SBI to the top positions in various banks, is detailed in the book.
  • The autobiography provides insights into the challenges faced by public sector bankers, particularly in decision-making regarding high-value credit.
  • Raman's narrative is philosophical, covering unique vignettes from his 46-year-long illustrious career.

SEBI Grade A (IT) Mock Test - 1 - Question 6

Which of the following words is similar in meaning to "amplify" in the context of the passage?

Detailed Solution: Question 6

The correct answer is option 4.

Key Points

  • To answer this question, let's first understand the meaning of the highlighted word "amplify" in the context of the passage:
  • Amplify - to make something larger, greater, or more intense; to increase the strength or amplitude of (बढ़ाना)
    • For Example:
    • The microphone was used to amplify the speaker's voice in the auditorium.
  • Now, let's consider the options:
  • Diminish - to make or become less; to reduce or decrease (कम करना)
    • For Example:
    • The medicine is expected to diminish the pain.
  • Isolate - to set apart or separate from others; to be or remain alone (अलग करना)
    • For Example:
    • The scientist will isolate the specific gene responsible for the trait.
  • Alleviate - to make a situation or symptom less severe or more bearable (कम करना)
    • For Example:
    • The relief efforts aim to alleviate the suffering of the affected population.
  • Exacerbate - to make a situation, problem, or negative feeling worse or more severe (बढ़ाना)
    • For Example:
    • The economic downturn could exacerbate unemployment rates.
  • Illuminate - to make something clearer or brighter; to light up (प्रकाशित करना)
    • For Example:
    • The streetlights will illuminate the dark alley.
  • So, after understanding the meaning of the highlighted word "amplify" and all the words given as options, we can conclude that the word "exacerbate" is the most similar in meaning to the word "amplify" in the context of the passage, as both words involve making a situation more intense or severe.
  • Therefore, the correct answer is "Exacerbate."

SEBI Grade A (IT) Mock Test - 1 - Question 7

Which of the following words is opposite in meaning to "susceptible" in the context of the passage?

Detailed Solution: Question 7

The correct answer is option 3.

Key Points

  • To answer this question, let's first understand the meaning of the highlighted word "susceptible" in the context of the passage:
  • Susceptible - likely or liable to be influenced or harmed by a particular thing (प्रभावित होने वाला)
    • For Example -
    • Children with weak immune systems are more susceptible to infections.
  • Now, let's consider the options:
  • Vulnerable - susceptible to physical or emotional harm or attack (असुरक्षित)
    • For Example -
    • The elderly are often vulnerable to scams targeting their financial resources.
  • Permeable - allowing liquids or gases to pass through; full of holes (प्रवाही)
    • For Example -
    • The membrane is permeable to water molecules.
  • Resistant - offering resistance to something; not easily affected or harmed by it (प्रतिरोधी)
    • For Example -
    • Certain plants are resistant to pests due to their natural defences.
  • Immutable - unchanging over time; unalterable (अपरिवर्तनीय)
    • For Example -
    • The fundamental laws of physics are considered immutable.
  • Sensitive - easily affected, changed, or damaged by something; responsive to stimuli (संवेदनशील)
    • For Example -
    • Her skin is very sensitive to sunlight.
  • So, after understanding the meaning of the highlighted word and the meanings of all the words given as options, we can conclude that the word that is opposite in meaning to "susceptible" in the context of the passage is "resistant." Susceptible implies being likely to be influenced or harmed, while resistant indicates being not easily affected or harmed.
  • Therefore, the correct answer is "Resistant."

SEBI Grade A (IT) Mock Test - 1 - Question 8

What does the passage suggest as a potential reason for 2023 being declared the hottest year on record by the World Meteorological Organisation?

Detailed Solution: Question 8

The correct answer is option 2.

Key Points

  • To answer this question, let's refer to the following information from the passage regarding the reason for 2023 being declared the hottest year on record by the World Meteorological Organisation:
  • "Heat waves are occurring with greater frequency and are lasting longer than ever before, with the World Meteorological Organisation declaring that 2023 was the hottest year on record."
  • From this part of the passage, it is evident that the passage suggests the rise in the frequency and duration of heat waves as the potential reason for 2023 being declared the hottest year on record. The information explicitly mentions that heat waves are occurring more frequently and lasting longer, leading to the declaration by the World Meteorological Organisation.
  • Therefore, the correct answer is "Rise in the frequency and duration of heat waves."

SEBI Grade A (IT) Mock Test - 1 - Question 9

What is the overall tone of the passage?

Detailed Solution: Question 9

The correct answer is option 5.

Key Points

  • To answer this question, read the passage carefully and examine the overall tone of the passage:
  • The passage discusses the impact of global warming on temperatures worldwide, emphasizing the increasing frequency and duration of heat waves. It highlights the declaration by the World Meteorological Organisation that 2023 was the hottest year on record. The passage also introduces a working paper from Harvard University, discussing how extreme heat affects early childhood development and health, as well as providing practical solutions to mitigate climate change.
  • So, upon close examination, the passage conveys a "Concerned and urgent" tone. It addresses the significant disruptions caused by global warming, emphasizes the potential adverse effects on early childhood development, and urgently calls for a detailed study of the correlation between health outcomes and environmental conditions. The tone is more inclined towards expressing concern and urgency about the impacts of climate change, indicating the need for immediate attention and action.
  • Therefore, the correct answer is "Concerned and urgent."

SEBI Grade A (IT) Mock Test - 1 - Question 10

In the following question, a small paragraph is given from which five words have been replaced with a blank. These words represented by a letter are given below the paragraph, in random order. Rearrange these words in an appropriate order so that these fit the blanks and give out a grammatically and meaningfully coherent paragraph.

All our cleverness is _________ ineffective when nature does a dance of destruction. Its fury can and will wash _________ all imperfections. Indian culture, based on Vedic treatises, in _________ human evolution, but we are using our entire energy in distorting these _________ according to our convenience instead of making efforts to make ourselves _________ of them

A. Worthy B. Assists C. Traditions D. Away E. Rendered

Detailed Solution: Question 10

The correct answer is EDBCA.

Key Points

  • To find the correct sequence of the words in the paragraph, we need to find the meanings of the given words first; Let's look at the given table:

  • As the given table clarifies the meaning of the given words, we can infer the following points:
    • The first blank should be filled with the word rendered as the sentence is in the passive voice; hence past participle form of the verb should be followed by the helping verb is.
    • The second blank should be filled with the word away as wash away is a phrasal verb which means to be removed or carried away by a moving body of water, and it is used as it is.
    • The third blank should be filled with the word assists as the sentence is started with the singular subject Indian culture, and hence the singular verb assists should follow it.
    • The fourth blank should be filled with the word traditions as the blank is preceded by a pronoun these, which refers to a plural noun, and when we look at the rest of the words, the only word that fits here is traditions.
    • The fifth blank is left with the option worthy; also, the blank is preceded by a pronoun ourselves, which should follow an adjective worthy, as an adjective modifies a noun, here to make the sentence sensible.

Hence the complete paragraph is:
All our cleverness is rendered ineffective when nature does a dance of destruction. Its fury can and will wash away all imperfections. Indian culture, based on Vedic treatises, assists in human evolution, but we are using our entire energy in distorting these traditions according to our convenience instead of making efforts to make ourselves worthy of them

SEBI Grade A (IT) Mock Test - 1 - Question 11

A sentence/part of the sentence is underlined. Five alternatives are given to the underlined part which will improve the sentence. Choose the correct alternative and choose the option corresponding to it. In case no improvement is needed, click the option corresponding to “no improvement required”

Claimed through EU Member States by disappointed energy sector investors have been a major growth industry in recent years.

Detailed Solution: Question 11

The correct answer is Option 3.

Key Points

  • The original sentence is awkwardly phrased and does not clearly convey the meaning. The main issue is the placement and form of the words at the beginning of the sentence, making it hard to understand who is doing what.
  • Option 3, "Claims against EU Member States," correctly reformulates the sentence to clearly indicate that the claims are directed against EU Member States by disappointed energy sector investors. This option corrects the grammatical structure and improves clarity.

  • The original sentence's structure makes it difficult to immediately grasp the subject and object, which is clarified by the correct option.

Therefore, the correct answer is ‘Claims against EU Member States’.

Additional Information

  • Option 1, "Claims against EU Members State," incorrectly uses "State" in the singular form where the plural is needed, as it is referring to multiple EU Member States.
  • Option 2, "Claims against EU Members States," is grammatically incorrect due to the unnecessary plural form of "Members" when it should be "Member States" to correctly refer to the states as members of the EU.
  • Option 4, "Claim against EU Member States," uses the singular "Claim" which is less accurate since the context suggests a trend of multiple claims rather than a singular instance.

SEBI Grade A (IT) Mock Test - 1 - Question 12

What approximate value should come in the place of the question mark ‘?’ in the following question?

(37.5% of 1615.86)/(100.97 × 0.995) = √?

Detailed Solution: Question 12

Given:

(37.5% of 1615.86)/(100.97 × 0.995) = √?

Concept Used:

Follow the BODMAS rule according to the table given below:

Calculation:

Since we need to find out the approximate value, we can write these values to their nearest integers.

(37.5% of 1615.86)/(100.97 × 0.995) = √?

⇒ (37.5% of 1616)/(101 × 1) = √?

⇒ (3/8) × 1616/101 = √?

⇒ √? = 3 × 202/101

⇒ √? = 3 × 2

⇒ ? = 62

⇒ 36

The value of ‘?’ Is 36.

SEBI Grade A (IT) Mock Test - 1 - Question 13

A travels 1/4th of journey on bike and remaining by car and taxi in the respective ratio of 3 : 2. If A completes whole journey in 4 hours and the distance covered by car is 18 km, then find average speed of whole journey.

Detailed Solution: Question 13

Given:

Distance covered in car = 18 km

Formula Used:

Distance = Speed x Time

Average speed = Total Distance/Total time

Calculation:

Let total distance = 10X

Journey on bike = 10X/ 4

Journey on bike = 2.5X

Remaining distance = 7.5X

Journey on car = (3 / 5) × 7.5X

Journey on car = 4.5X

⇒ 4.5X = 18

⇒ X = 4

Total distance = 40 km

Average speed = 40/ 4

Average speed = 10 kmph

∴ Average speed of journey is 10 kmph

Alternate Method

Distance covered in car = 18 km

Distance covered in taxi = 18/3 × 2 = 12 km

Let the total distance be 4x

Distance covered by car and taxi = 3x

⇒ 3x = 12 + 18

⇒ 3x = 30

⇒ 4x = 40

Average = 40/4 = 10 kmph

∴ Average speed of journey is 10 kmph

SEBI Grade A (IT) Mock Test - 1 - Question 14

Direction: In the following question, assuming the given statement to be true, find which of the conclusion(s) among the given conclusions is/are definitely true, and then give your answers accordingly.

Statement:

E ≥ H < N ≤ D = Y, H > Q = R

Conclusions:

I. Y > Q

II. D > R

Detailed Solution: Question 14

Given statements: E ≥ H < N ≤ D = Y, H > Q = R

On combining: E ≥ H > Q = R, R = Q < H < N ≤ D = Y

Conclusions:

I. Y > Q → True (as Q < H < N ≤ D = Y, so it is definite that Y is greater than Q.)

II. D > R → True (as R = Q < H < N ≤ D, so it is definite that D is greater than R.)

Both conclusions directly follow after combining the given statements.

Hence, the correct answer is Both I and II follow.

SEBI Grade A (IT) Mock Test - 1 - Question 15

How many symbols are there in the above arrangement between the 2nd element from the left end and the 3rd element from the right end?

Detailed Solution: Question 15

Left side 7 8 6 % = 2 $ T U V @ E 5 4 8 & M A K L 3 9 X Z O N ~ 0 B Right side

2nd element from left side is 8 and 3rd element from right side is ~ .

Left side 7 8 6 % = 2 $ T U V @ E 5 4 8 & M A K L 3 9 X Z O N ~ 0 B Right side .

Symbols are there in the above arrangement between the 2nd element from the left end and 3rd element from the right side: %, =, $, @, &

Hence, only five symbols are there in the above arrangement between the 2nd element from the left end and the 3rd element from the right end.

SEBI Grade A (IT) Mock Test - 1 - Question 16

Who among the following is the nephew of I?

Detailed Solution: Question 16

From the given information,

1) There are seven persons W, S, P, D, E, I, and N in a family of three generations.

2) N is the mother of three children.

3) S is the paternal aunt of P.

4) E is the mother of P, who is the grandson of N.

5) E has no siblings.

6) N has one brother.

7) D is the only brother of W.

8) P is the nephew of W, who is the niece of I.

Therefore, the best possible family tree is,

Hence, D is the nephew of I.

SEBI Grade A (IT) Mock Test - 1 - Question 17

Who was known as the "Mother Teresa of Western Odisha"?

Detailed Solution: Question 17

Parbati Giri (1926-1995) was known as the "Mother Teresa of Western Odisha" for her humanitarian work among the poor, tribals, and marginalized communities.

SEBI Grade A (IT) Mock Test - 1 - Question 18

Which of the following is correct (in C++)?

Detailed Solution: Question 18

The correct answer is "option 1.

CONCEPT:

An idea behind templates is to pass any data type as a parameter to the function so that the need for writing the same code for different datatypes decreases.

Templates are mechanisms used to implement the generic concepts.

Generics allows datatype as a parameter to classes, functions & interfaces.

EXPLANATION:

Templates are of two types: Class templates & Functions templates

Function templates are used to write generic functions that can be used for different data types.

Class templates are the classes that have members of generic type.

Class templates & function templates are instantiated in the same way.

But class templates are not used for storage classes & are not initiated by defining an object using the template argument.

Hence, the correct answer is option 1

SEBI Grade A (IT) Mock Test - 1 - Question 19

After execution of the following code, what will be the values of a, b and c?

int a,b,c;

b=1;

c=5;

a=0-(++b)+c++;

Detailed Solution: Question 19

Answer: Option 1)

Concept:-

Meaning of i++: [post increment]

First, we read i then after reading the value of i we are going to increment i this is nothing but post-increment.

Meaning of ++i: [pre increment]

First we increment i than we read value of I, this is nothing but pre increment:

Explanation:

b=1;

c=5;

this will assign value 1,5 to variables b and c respectively

a=0-(++b)+c++;

In this expression first, b will be pre incremented.

a = 0 -(2) + c++;

and then c's value will be returned after that c will be incremented because of post-increment.

a = 0 - (2) + 5; // c will become 6

Hence a = 3, b = 2, c= 6

SEBI Grade A (IT) Mock Test - 1 - Question 20

Which of the following is/are the computer malware?

I. spyware

II. keyloggers

III. ransomware

IV. trojan horses

Detailed Solution: Question 20

The correct answer is option 4.

  • A computer virus is a type of malicious software that, when executed, replicates itself by modifying other computer programs and inserting its own code.
  • When this replication succeeds, the affected areas are then said to be "infected" with a computer virus
  • Examples: computer "worms", ransomware, spyware, adware, keyloggers, rootkits, bootkits etc.
  • Spyware
    • It is unwanted software that infiltrates your computing device, stealing your internet usage data and sensitive information.
    • Spyware is classified as a type of malware — malicious software designed to gain access to or damage your computer, often without your knowledge. Spyware gathers your personal information and relays it to advertisers, data firms, or external users.
  • Keylogger
    • A keylogger is a program that records the keystrokes on a computer. It does this by monitoring a user's input and keeping a log of all keys that are pressed. The log may be saved to a file or even sent to another machine over a network or the Internet.
    • Keylogger programs are often deemed spyware because they usually run without the user knowing it. They can be maliciously installed by hackers to spy on what a user is typing.
  • Ransomeware
    • A type of malicious software designed to block access to a computer system until a sum of money is paid.
    • It has the ability to lock a computer screen or encrypt important, predetermined files with a password.
  • Trojan horses
    • A Trojan horse is not a virus because it avoids replicating itself.
    • A Trojan horse, or Trojan, is a type of malicious code or software that looks legitimate but can take control of your computer.
    • A Trojan is designed to damage, disrupt, steal, or in general inflict some other harmful action on your data or network.

SEBI Grade A (IT) Mock Test - 1 - Question 21

What is balance factor of an AVL tree?

Detailed Solution: Question 21

Key Points
Adelson-Velskii and Landis (AVL) tree is a height-balanced binary search tree. An AVL tree is a balanced binary search tree. In an AVL tree, the balance factor of every node is either -1, 0, or +1. The balance factor of a node is the difference between the heights of the left and right subtrees of that node.

So at every node of the AVL tree must satisfy the |h(TL) - h(TR)| ≤ 1.

Hence the correct answer is |h(TL) - h(TR)| ≤ 1.

Additional Information

  • In an AVL tree, a single insertion may cause at most 2 rotations in the worst case.
  • In an AVL tree, a single deletion may cause multiple rotations in the worst case.

SEBI Grade A (IT) Mock Test - 1 - Question 22

Which shell is the most common and best to use in Shell programming?

Detailed Solution: Question 22

The correct answer is option 2.

Concept:

Bash, or the Bourne-Again Shell, is by far the most widely used choice and it comes installed as the default shell in the most popular Linux distributions. It was derived from the original UNIX Bourne shell (also known as sh) and was created to be fully compatible with previous scripts while also incorporating numerous improvements.

Bash is a fairly reliable shell choice because it has been around for a long time and has a lot of documentation. In fact, most online tutorials presume you're familiar with bash.

As a result, it is recommended for the majority of users and performs admirably for the majority of common system administration chores. If you require more sophisticated scripting options or other advanced tools, however, you should look into some of the newer shells.

Hence the correct answer is bash Shell.

SEBI Grade A (IT) Mock Test - 1 - Question 23

Which of the following is false about the UDP protocol?

Detailed Solution: Question 23

User Datagram Protocol (UDP):

  • UDP is an unreliable connectionless-transport layer Protocol used for its simplicity and efficiency in applications where error can be provided by the application layer
  • UDP provided process-to-process communication

SEBI Grade A (IT) Mock Test - 1 - Question 24

What function is used to remove missing values in pandas?

Detailed Solution: Question 24

The correct answer is dropna()

Key Points

  • The .dropna() method in pandas is used to remove missing values (NA/NaN values) from the dataset. When used without any parameters, dropna() will remove any row in the DataFrame that contains at least one missing value.
  • Here is a basic example:

import pandas as pd
import numpy as np

# Creating a DataFrame with some NaN values
df = pd.DataFrame({'A': [1, 2, np.nan], 'B': [5, np.nan, np.nan], 'C': [1, 2, 3]})

print("Before dropping NaN values: ")
print(df)

print("\nAfter dropping NaN values: ")
print(df.dropna())

  • In the output, you will see that any row which had a NaN value will be removed.
  • You also have the option to drop columns that contain missing values by using df.dropna(axis=1). This drops any column with a NaN value.
  • Furthermore, you have other ways of handling missing data, such as the fillna() function, which allows you to fill NaNs with any value you choose, rather than removing them.

SEBI Grade A (IT) Mock Test - 1 - Question 25

What is the difference between $* and $@?

Detailed Solution: Question 25

The correct answer is option 1.

Concept:

$@ treats each quoted argument as separate arguments. $@ which means, ‘All of the command-line arguments to the shell script’. We also should put $@ inside double quotes to handle the case of arguments containing spaces ("$@" is special syntax and is equivalent to "$1" "$2" …).

Example 1:

for var in "$@"

do

echo "$var"

done

input 1: 1 2 "3 4"

output:

1

2

3 4

input 2: " 1 2 3 4"

output:

1 2 3 4

$* considers the entire set of positional parameters as a single string. $* is all the parameters to the script or function, split into separate arguments on whitespace.

Example 1:

for var in $*

do

echo "$var"

done

input 1: 1 2 "3 4"

output:

1

2

3

4

input 2: " 1 2 3 4"

output:

1

2

3

4

Hence the correct answer is $@ treats each quoted argument as separate arguments but $* considers the entire set of positional parameters as a single string.

SEBI Grade A (IT) Mock Test - 1 - Question 26

Which method is used to sets the position of a file pointer?

Detailed Solution: Question 26

The correct answer is option 3.

Concept:

The seek() method :

This method is used to position the file object at a particular position in a file.

The syntax of seek() is:

file_object.seek(offset [ , reference_point])

In the above syntax, offset is the number of bytes by which the file object is to be moved. reference_point indicates the starting position of the file object. That is, with reference to which position, the offset has to be counted.

  • It can have any of the following values:
    • 0 - beginning of the file
    • 1 - current position of the file
    • 2 - end of file
  • By default, the value of reference_point is 0, i.e. the offset is counted from the beginning of the file.

Hence the correct answer is seek().

Additional Information The tell() method:

This function returns an integer that specifies the current position of the file object in the file. The position so specified is the byte position from the beginning of the file till the current position of the file object.

The syntax of using tell() is:

file_object.tell()

SEBI Grade A (IT) Mock Test - 1 - Question 27

What will be the output of the following Python code:

a = 1

if (a = 2):

print("value of a is", a)

Detailed Solution: Question 27

The correct option is Syntax Error

CONCEPT:

Syntax errors occur when the programmer does not follow or makes mistake in the syntax of a particular programming language

Common syntax errors in python:

  • leaving out a keyword.
  • misspelling a keyword.
  • leaving out a symbol, such as a comma, brackets....etc.

In Python, assignment using `=` operator is not allowed inside an condition of if statement

The error thrown will be "SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '=' ".

Syntax of if statement in python:

if condition:

# code to execute in case if the above condition is true

Additional Information

IOError is raised when an input/output operation fails.

SEBI Grade A (IT) Mock Test - 1 - Question 28

What is the port number for SMTP protocol?

Detailed Solution: Question 28

The correct answer is option 3.

Concept:

The Simple Mail Transfer Protocol (SMTP) is a communication protocol used on the internet for electronic mail transmission. SMTP is used by mail servers and other message transfer agents to send and receive email messages. User-level email clients typically use SMTP only for relaying messages to a mail server and submitting an outgoing email to the mail server.

  • SMTP servers typically use the Transmission Control Protocol on ports 25 (for plaintext) and 587 (for encrypted data) (for encrypted communications).
  • SMTP is important because it establishes a standard set of guidelines for transferring messages from one email host to another. Essentially, SMTP is the only way to send an email from one provider to another without losing any content or functionality.

Hence the correct answer is 25.

Additional Information

  • SMTP makes use of Port 25.
  • It makes use of persistent TCP connections and thus can send multiple emails all at once.
  • It is a stateless protocol.
  • It is a connection-oriented protocol.
  • It makes use of TCP at the transport layer.
  • It is a push control protocol.

SEBI Grade A (IT) Mock Test - 1 - Question 29

Database table by name Employee_Records is given below

What is the output of the following SQL query?

SELECT Count(*) FROM

( ( SELECT Employee, Manager FROM Employee_Records)

AS S NATURAL JOIN

( SELECT Manager, Salary FROM Employee_Records) AS T );

Detailed Solution: Question 29

Correct answer is Option C
Key Points
Following will be contents of temporary table S

Following will be contents of temporary table T

  • Following will be the result of natural join of above two tables.
  • The key thing to note is that the natural join happens on column name with same name which is Manager in the above example.
  • “Hari” appears two times in Manager column, so there will be four entries with Manager as “Hari”.

SEBI Grade A (IT) Mock Test - 1 - Question 30

In terms of computers, the set of ways in which an adversary can enter a system and can potentially cause damage is called:

Detailed Solution: Question 30

The correct answer is Attack Surface.

Key Points

  • The attack surface:
    • It is the number of all possible points, or attack vectors, where an unauthorized user can access a system and extract data.
    • The smaller the attack surface, the easier it is to protect.
    • Organizations must constantly monitor their attack surface to identify and block potential threats as quickly as possible.
    • They also must try and minimize the attack surface area to reduce the risk of cyberattacks succeeding.
    • However, doing so becomes difficult as they expand their digital footprint and embrace new technologies.
    • The attack surface is split into two categories: the digital and physical.

View more questions
4 docs|17 tests
Information about SEBI Grade A (IT) Mock Test - 1 Page
In this test you can find the Exam questions for SEBI Grade A (IT) Mock Test - 1 solved & explained in the simplest way possible. Besides giving Questions and answers for SEBI Grade A (IT) Mock Test - 1, EduRev gives you an ample number of Online tests for practice
Download as PDF