RRB Railway Group D 2018 Exam

RRB Railway Group D 2018 Exam ( English & Hindi) Analysis Questions Asked 17th September 2018 ( 1, 2, 3 Shifts)

Hello Dear, we are here with section-wise questions asked in RRB Group D Exam held on 17th September 2018 ( All Shifts). Here, we have collected questions from the students who appeared in RRB RRB Group D Exam in 1, 2, 3 shifts. All these questions will be helpful for those candidates who are are going to appear for the exam.  Computer-based online test for RRB Railway Group D Recruitment Exam 2018 starts from 17 September 2018 You can check questions here for 18, 19, 20, 21, 22 September 2018. The duration of this exam is 90 minutes (120 minutes for eligible PWD candidates accompanied with scribe). There will be four sections in the exam (Mathematics – 25 Questions, General Intelligence & Reasoning - 30 Questions, General Science - 25 Questions, General Awareness & Current Affairs - 25 Questions) and candidates need to attempt 100 questions in this time duration.
RRB Railway Group D 2018 Exam ( English & Hindi) Analysis Questions Asked 17th September 2018 ( 1, 2, 3 Shifts)

Exam pattern of RRB Railway Group D 2018:

  • Exam Mode Online
  • Duration of the test 90 Min
  • Type of questions MCQ
  • Number of questions 100
  • Negative Marking There will be a negative marking of 1/3 marks for every incorrect answer.
  • Name of the sections in the examination Mathematics, General Intelligence, and reasoning, General Science, General Awareness on current affairs

Questions Asked in RRB Group D 17th September 2018 ( All Shifts)

Pattern of RRB Railway Group D Recruitment Exam 2018:

Duration of CBT (Computer Based Test): 90 Minutes (120 minutes for eligible PWD candidates accompanied by scribe)
Sr. No.
Section
No. of Questions
1
Mathematics
25
2
General Intelligence and Reasoning
30
3
General Science
25
4
General Awareness and Current Affairs
20

Questions Asked in RRB Group D 17th September 2018 ( 1st Shifts)


SectionLevelGood Attempts
MathematicsModerate16
General Intelligence & ReasoningEasy24
General ScienceEasy -Moderate14
General Awareness on Current AffairsModerate13
OverallModerate67

Railway Group-D Mathematics


Some questions from exam:
  • sec^4X - sec^2 X = 3 then tan^4X + tan^2 X =?
  • If A works in 22 days and B completes it in 33 days. If A left work before 3 days then in how many days total work will complete?

TopicNo of QuestionsLevel
S.I, CI 2Moderate
Pipe & Cistern1Easy-Moderate
Profit/ Loss3-4Easy-Moderate
Ages1Easy
Time and Work2Easy
Geometry (circle)1Easy-Moderate
Time, Speed and Distance2Easy
Average1Easy
Trigonometry3Easy-Moderate
Percentage2Easy-Moderate
DI (Pie Chart)2Moderate
Misc.5Moderate
Total25Moderate


Railway Group-D General Intelligence & Reasoning

TopicNo of QuestionsLevel
Syllogism4-5Easy
Venn Diagram2-3Easy
Methematical Calculation2Easy
Mirror Image1Easy
Odd one out3-4Easy
Coding-Decoding2-3Easy-Moderate
Analogy7-8Easy
Series 2Easy
Direction2Easy
Statement & Conclusion2Easy-Moderate
Counting Figure1Easy
Calendar2Easy
Total30Easy

Railway Group-D General Science


Some questions asked in 1st shift of today's exam are given below:-
  • How many water molecules are present in washing soda?
  • One question from Newton's law.
  • One question on pH level of salt
  • one question on reproduction of plant.
TopicNo of QuestionsLevel
Physics9-11Easy
Chemistry7-9Moderate
Biology8-11Easy
Total25Easy-Moderate


Railway Group-D General Awareness on Current Affairs


Total Questions: 20

Some questions asked in exam are given below:-

  • Sonam Kapoor got award for which movie?

  • Who played the role of Allaudin khilji in Padmavat movie?

  • Where was Oskar award held?
  • Who got Labour award?
  • Who is the brand ambassador of American Tourister?

  • Name the award given for bravery shram award.

  • Oscar academy award function is held in which country?

  • What is the mass of the earth?

  • Find the work done in moving a charge of 4 c across the potential difference of 18v?

  • Which animal creates ultrasound?

  • After fertilization, zygote grows in ____.

  • First Indian city to employ a robot in traffic control.

  • Which country is with the largest coastline?

  • First female high court of Jammu & Kashmir.

  • Who is the CEO of Apple?

  • UEFA player of the year.

  • What is the capital of the Netherlands?

  • Who is the CM of Tripura?

  • When is National Voter day?

  • Who is India's Sports Minister?

  • Who is the inventor of Telephone?

  • What is the unit of power?

  • Sonam Kapoor got an award for which movie?

  • Who played the role of Allaudin Khilji in Padmavat movie?

  • Who got labour award?

  • Who is the brand ambassador of American Tourister?

  • How many water molecules are present in washing soda?

  • One questions was related to PH value.

  • Who was given 2017 Nobel Literature Award?

  • Which film was given the Best feature film award in 2018 National Awards?

  • Women Entrepreneurship platform is launched by?

  • Who is the PM of Japan?

  • Who is the Manchester of India?

  • Which is the largest planet of solar system?

  • One question was related to Sagarmala project.

  • Who is the President of Venezuela?

  • Which is the cleanest railway station?

  • Name the best living city in the world.

  • What is the Formula of Methyl Isocyanate which was leaked in Bhopal Gas tragedy?

Questions Asked in RRB Group D 17th September 2018 ( 2nd Shifts)

Section
Level
Good Attempts
Mathematics
Moderate
15-18
General Intelligence & Reasoning
Easy
23-26
General Science
Easy -Moderate
13-16
General Awareness on Current Affairs
Moderate
12-14
Overall
Moderate
68-72
Railway Group-D Mathematics

Topic
No of Questions
Level
S.I, CI 
2
Moderate
Pipe & Cistern
1
Easy-Moderate
Profit/ Loss
3-4
Easy-Moderate
Ages
1
Easy
Time and Work
2
Easy
Geometry (circle)
1
Easy-Moderate
Time, Speed and Distance
2
Easy
Average
1
Easy
Trigonometry
3
Easy-Moderate
Percentage
2
Easy-Moderate
DI (Pie Chart)
2
Moderate
Misc.
5
Moderate
Total
25
Moderate



Railway Group-D General Intelligence & Reasoning

Topic
No of Questions
Level
Syllogism
4-5
Easy
Venn Diagram
2-3
Easy
Methematical Calculation
2
Easy
Mirror Image
1
Easy
Odd one out
3-4
Easy
Coding-Decoding
2-3
Easy-Moderate
Analogy
7-8
Easy
Series 
2
Easy
Direction
2
Easy
Statement & Conclusion
2
Easy-Moderate
Counting Figure
1
Easy
Calendar
2
Easy
Total
30
Easy
Railway Group-D General Science

  • Which is the last element in the Newland Octave periodic Table
  • Critical angle of diamond?
  • No. of elements in the 18th group of Periodic table?
  • Which gas is used in the Electric Bulb?
  • Which is the longest period in the periodic table?
  • What is Coulomb SI unit of?
  • Connective tissue related questions
  • pH value of blood?
  • Voltage=24V, Resistance=4 ohm, Current=?
  • Who discovered Light Quantum Principle?
  • Chemical formula of Bleaching Powder?
  • Which Bacteria infects virus?
  • What percentage is 3 of 81?
  • What number is to be added to 2800 to make it a perfect square?
  • What is the semi perimeter of 5,12,13?
  • A does a work in 25 days, b days the work in 20 days, A+B does a work in 5 days. A left after 5 days, how many days will B take to finish the work?
  • Trigonometry - 2-3Qs

Questions Asked in RRB Group D 17th September 2018 ( 3rd Shifts)

We'll Update soon

Questions Asked in RRB Group D 17th September 2018 ( 1st, 2nd and 3rd Shifts)


  • एक क्वेश्चन पूछा गया है कि हाइड्रोमीटर से क्या मापा जाता है 
  • दूसरा पूछा गया है की लिमोनाइट किसका अयस्क होता है
  • और एक प्रश्न पूछा गया है कि लौंग का सबसे बड़ा उत्पादक राज्य कौन सा है
  • nacl ka ph value
  • Hcf lcm que
  • Easy of living index 2018 
  • Best city award-pune
  • भोपाल गैस में कौन सी गैस फैली थी
  • सबसे हल्की गैस कौन सी है
  • क्लोरोफॉर्म का रासायनिक नाम क्या होता है
  • लक्स किसकी इकाई होती है
  • भारतीय रेल स्वच्छ सर्वेक्षण में सबसे साफ़ स्टेशन
  • CEO of Apple
  • प्रेशर की यूनिट क्या है
  • मनुष्य के अंदर कितनी पसलियां होती है
  • Man booker prize
  • 100 वी स्मार्ट सिटी कौन सी है-shilong
  • Hcf lcm que
  • Ek chemistry me mass no krke tha
  • चंद्रगुप्त मौर्य के बेटे का क्या नाम है??
  • padmavati me alowddin ka role kisne kia ??
  • pahado ki rani kise kha jata h 
  • v= 18volt , c= 4 , I =?
  • India ke khel mantri kon he
  • Bihar ke governer kon he
  • Conclusion 8_9 questions
  • Sabse hot blood kis ka h
  • triangle ki shirsh ki coordinate diye the triagngle ka area 
  • uefa player of the year 2018 football 
  • Which one is true 9/16>13/24, 9/16<13/24, 9/16=13/24
  • Oscars held in country Usa, Uk, Rusia
  • Many questions in implicit and venn diagram
  • mirror and find next image......
  • Where zygote is developed
  • 21 जनवरी सन 1988 को कौन सा दिन था
  • X have 25000 rs he repair 20 %of money in somthind and 30 % in other thing so how much he left
  • Odisha ke cm ka pucha tha
  • Where the heart is placed in human body?
  • Who will lead the joint session if loksbha speaker and deputy speakar absent....?
  • Odd one out? Crow, duck, monkey,squirrel
  • Garam blood kiska hota hai.
  • oscar award kis desh diya jata hai.
  • uch sadan kaunsa hai. 
  • Math bhinn o ka hcf .ci me 1/2brsic intereste.
  • Indian post payment Bank ko kis ne inagurate kiya
  • 160000 10% 2 year halfyear k liye compound intreat
  • 4 ratio diye the Hcf pucha tha
  • Tree ke tne ka lachilapan kiske karan hota hai
  • Apple के बाद 900 ट्रीटय banne wali kaon
  • 1 facebook
  • 2 wolmod
  • 3 amazom
  • 4 goole

  • Champaran andolan kis state m hua
  • Algebra m a^3+b^3+b^3 _3abc =0 pe ek question
  • And trigonometry ka 1 question
  • Chloroform ka sutr
  • Molecular mass of HNO3
  • CI ka ek question
  • h2so4 ka nam
  • सल्फर का परमाणु क्रमांक कितना है
  • Who played the role of Alaudin khilji in Padmavat
  • Vishakhapatnam kis state me he
  • Woman fifa word cup
  • Hausla 2017 kisase related hai
  • Ramnath kovind ne kitni mahilawo ko sammanit kia
  • Who discover blood group
  • Rani khet bimari kisme hoti hai
  • Konsi T.B india mai jyda hoti hai
  • Nacl ka chemical name
  • Chili saltpeter formula
  • Joker of animal kingdom
  • Miss world 2017- manushi chhiler
  • Sir world bird day bi aya ha
  • pH scale of wine
  • Moving on moving forward book writer
  • 60का 18%.....54का कितना%होगा।
  • Find workdone if mass 10kg when velocity changes 4m/s to 8m/s.
  • Ease of doing business ranking
  • who is the auther of playing it my way?
  • Flipkart ko kis company ne kharida h
  • 7^48×8^40×23^84 what unit digit
  • Nirmala sita ram defence minister कहा से जीती है लोकसभा में
  • Father of economics
  • टेलीविजन का आविष्कार
  • Blood ka ph value
  • Bone bone conctive tissue
  • Body ka power house
  • Choose odd 23 ,79,37,87
  • Madak family
  • Strongst Acid - h2so4
  • Preodic table
  • Fungus
  • Virus
  • Coding deciding
  • Train distance time
  • 2 : 9 :: 3 : A 16 B 18 C 27 D 29
  • distane se q hai sir hai
  • 6:45 bje kitne angle banega?
  • miror 2 tha
  • 60/75 के समतुल्य 4/x है तो x=??
  • the colour of himogkobin ?
  • Who discover cell
  • Blue whel : water :: horse:  A ground , B sea, C D
  • Which of the following solutions is the most acidic Option-ph6,ph1,ph0,ph5
  • चार ghantiya 4,6,8,14सेकंड के अंतराल पर बजती है। बे चारो इकठ्ठे 12 बजे बजना आरंभ करती है तो फिर इकठ्ठे कब बजेगी
  • खट्टे फलों में मुख्य रूप से क्या भाई जाती है
  • वर्गीकरण से प्रश्न पूछा गया
  • कौन भिन्न होगा। १ तबला। २.तानपुरा 3.सरोद। 4.सितार
  • शब्दों के तार्किक क्रम से भी प्रश्न पूछे थे 1 नुस्खा। 2 पकाना 3 परोसना 4 खाना 
  • Unit for charge
  • Maitri 2018 Kin kin desho ka
  • Sanjukta Sen Abhiyan
  • Pakistan ke president kis number ke the
  • Hausala 2017 celebration was based on?
  • OSCAR given in which country
  • What was the theme of International film festival held at Melbourne in which sonam kapoor was given award for neerja?
  • One question on Odd one out
  • Option 
  • 1)Einstein 
  • 2)virat kohli 
  • Other 2 option name on scientist
  • One on redink award ?
  • कांसा किस किस की मिश्र धातु है
  • work kon si rashi hai..
  • Next Asian game
  • Sir calendar se question aya tha 22 may 2006
  • Next Asian game
  • Earth Ka darvmaan pucha
  • Currency of Benguela >>> Kwanza (AOA)
  • The South Asian Football Federation Championship >> SAFF
  • Rajsabha ka upsabhapati
  • Death keps no calendar 

  • Conclusion 
  • 1. Men must die one day

  • 2.death can come any time .

  • "samprati" kis desh k sath yudh abhyas h
  • "pencil portal" app kis chij se sambandhit h
  • "NASSCOM" ki first lady presidant kob h
  • PUBLIC ACCOUNT COMMITEE KA presidant kon h
  • squire root of 961
  • {(2^4)^1/2}^n=256 then n=?
  • FIELD ko GJFME to NORMAL ko kaise likha jayega
  • Colour of iodin
  • Oscar award kon deta ha option USA :UK: French Indonesia
  • Full form CTBT >> Comprehensive Nuclear-Test-Ban Treaty
  • HDI Kon jari krta h >> UNDP
  • Comanwelth me India ka sthan
  • Qatar ki currency se related aya >>Qatari riyal
  • Sir ek kazakistan ya kirgistan militry exercise tha ... yaad nahi rha
  • Us open karate championship 2018 me India ne kitne padak jite
  • Redink award kise Mila h
  • Kain se jeev Ka garm blood hota hai
  • A) frog
  • B) whel fish
  • C)pigon
  • D)crocodile

  • [11:44, 9/17/2018] +91 88091 86300: Water me H2 and O2 ka ratio from mass
  • [11:45, 9/17/2018] +91 88091 86300: Options
  • 1:8
  • 8:1
  • 1:2
  • 2:1
  • Training of Rural Youth for Self Employment (TRYSEM) 
  • TRYSEM full form
  • [10:46, 9/17/2018] +91 87559 81705: Q.ध्वनि हवा में 333 m/sec की गति से यात्रा करती है, इस प्रकार, 1 sec में, 333 मीटर की दूरी तय की जाती है:
  • 1. कण
  • 2. स्रोत
  • 3 रिसीवर
  • 4अशांति
  • Sound travels at a speed of 333 m/s in the air, thus, in 1 sec, a distance of 333 m is travelled by: 
  • 1particles
  • 2. source
  • 3receiver
  • 4 disturbance
  • Which of the following is present in the center of a flower? 
  • 1Carpel 
  • 2Stamen
  • 3 Petals
  • 4sepals
  • सर टेस्ट क्रिकेट में tea ब्रेक के पहले शतक बनाने वाले खिलाडी कोण है ??

Data Structure Part-2-Algorithm

An algorithm is a procedure having well defined steps for solving a particular problem. Algorithm is finite set of logic or instructions, written in order for accomplish the certain predefined task. It is not the complete program or code, it is just a solution (logic) of a problem, which can be represented either as an informal description using a Flowchart or Pseudo code.
The major categories of algorithms are given below:
  • Sort: Algorithm developed for sorting the items in certain order.
  • Search: Algorithm developed for searching the items inside a data structure.
  • Delete: Algorithm developed for deleting the existing element from the data structure.
  • Insert: Algorithm developed for inserting an item inside a data structure.
  • Update: Algorithm developed for updating the existing element inside a data structure.
The performance of algorithm is measured on the basis of following properties:
  • Time complexity: It is a way of representing the amount of time needed by a program to run to the completion.
  • Space complexity: It is the amount of memory space required by an algorithm, during a course of its execution. Space complexity is required in situations when limited memory is available and for the multi user system.
Each algorithm must have:
  • Specification: Description of the computational procedure.
  • Pre-conditions: The condition(s) on input.
  • Body of the Algorithm: A sequence of clear and unambiguous instructions.
  • Post-conditions: The condition(s) on output.
Example: Design an algorithm to multiply the two numbers x and y and display the result in z.
  • Step 1 START
  • Step 2 declare three integers x, y & z
  • Step 3 define values of x & y
  • Step 4 multiply values of x & y
  • Step 5 store the output of step 4 in z
  • Step 6 print z
  • Step 7 STOP
. Alternatively the algorithm can be written as ?
  • Step 1 START MULTIPLY
  • Step 2 get values of x & y
  • Step 3 z← x * y
  • Step 4 display z
  • Step 5 STOP

Characteristics of an Algorithm

An algorithm must follow the mentioned below characteristics:
  • Input: An algorithm must have 0 or well defined inputs.
  • Output: An algorithm must have 1 or well defined outputs, and should match with the desired output.
  • Feasibility: An algorithm must be terminated after the finite number of steps.
  • Independent: An algorithm must have step-by-step directions which is independent of any programming code.
  • Unambiguous: An algorithm must be unambiguous and clear. Each of their steps and input/outputs must be clear and lead to only one meaning.

Data Structure Part-1

Introduction

Data Structure can be defined as the group of data elements which provides an efficient way of storing and organising data in the computer so that it can be used efficiently. Some examples of Data Structures are arrays, Linked List, Stack, Queue, etc. Data Structures are widely used in almost every aspect of Computer Science i.e. Operating System, Compiler Design, Artifical intelligence, Graphics and many more.
Data Structures are the main part of many computer science algorithms as they enable the programmers to handle the data in an efficient way. It plays a vitle role in enhancing the performance of a software or a program as the main function of the software is to store and retrieve the user's data as fast as possible

Basic Terminology

Data structures are the building blocks of any program or the software. Choosing the appropriate data structure for a program is the most difficult task for a programmer. Following terminology is used as far as data structures are concerned
Data: Data can be defined as an elementary value or the collection of values, for example, student's name and its id are the data about the student.
Group Items: Data items which have subordinate data items are called Group item, for example, name of a student can have first name and the last name.
Record: Record can be defined as the collection of various data items, for example, if we talk about the student entity, then its name, address, course and marks can be grouped together to form the record for the student.
File: A File is a collection of various records of one type of entity, for example, if there are 60 employees in the class, then there will be 20 records in the related file where each record contains the data about each employee.
Attribute and Entity: An entity represents the class of certain objects. it contains various attributes. Each attribute represents the particular property of that entity.
Field: Field is a single elementary unit of information representing the attribute of an entity.

Need of Data Structures

As applications are getting complexed and amount of data is increasing day by day, there may arrise the following problems:
Processor speed: To handle very large amout of data, high speed processing is required, but as the data is growing day by day to the billions of files per entity, processor may fail to deal with that much amount of data.
Data Search: Consider an inventory size of 106 items in a store, If our application needs to search for a particular item, it needs to traverse 106 items every time, results in slowing down the search process.
Multiple requests: If thousands of users are searching the data simultaneously on a web server, then there are the chances that a very large server can be failed during that process
in order to solve the above problems, data structures are used. Data is organized to form a data structure in such a way that all items are not required to be searched and required data can be searched instantly.

Advantages of Data Structures

Efficiency: Efficiency of a program depends upon the choice of data structures. For example: suppose, we have some data and we need to perform the search for a perticular record. In that case, if we organize our data in an array, we will have to search sequentially element by element. hence, using array may not be very efficient here. There are better data structures which can make the search process efficient like ordered array, binary search tree or hash tables.
Reusability: Data structures are reusable, i.e. once we have implemented a particular data structure, we can use it at any other place. Implementation of data structures can be compiled into libraries which can be used by different clients.
Abstraction: Data structure is specified by the ADT which provides a level of abstraction. The client program uses the data structure through interface only, without getting into the implementation details.

Data Structure Classification

DS Introduction Linear Data Structures: A data structure is called linear if all of its elements are arranged in the linear order. In linear data structures, the elements are stored in non-hierarchical way where each element has the successors and predecessors except the first and last element.
Types of Linear Data Structures are given below:
Arrays: An array is a collection of similar type of data items and each data item is called an element of the array. The data type of the element may be any valid data type like char, int, float or double. The elements of array share the same variable name but each one carries a different index number known as subscript. The array can be one dimensional, two dimensional or multidimensional.
The individual elements of the array age are:
age[0], age[1], age[2], age[3],??? age[98], age[99].
Linked List: Linked list is a linear data structure which is used to maintain a list in the memory. It can be seen as the collection of nodes stored at non-contiguous memory locations. Each node of the list contains a pointer to its adjacent node.
Stack: Stack is a linear list in which insertion and deletions are allowed only at one end, called top.
A stack is an abstract data type (ADT), can be implemented in most of the programming languages. It is named as stack because it behaves like a real-world stack, for example: - piles of plates or deck of cards etc.
Queue: Queue is a linear list in which elements can be inserted only at one end called rear and deleted only at the other end called front.
It is an abstract data structure, similar to stack. Queue is opened at both end therefore it follows First-In-First-Out (FIFO) methodology for storing the data items.
Non Linear Data Structures: This data structure does not form a sequence i.e. each item or element is connected with two or more other items in a non-linear arrangement. The data elements are not arranged in sequential structure.
Types of Non Linear Data Structures are given below:
Trees: Trees are multilevel data structures with a hierarchical relationship among its elements known as nodes. The bottommost nodes in the herierchy are called leaf node while the topmost node is called root node. Each node contains pointers to point adjacent nodes.
Tree data structure is based on the parent-child relationship among the nodes. Each node in the tree can have more than one children except the leaf nodes whereas each node can have atmost one parent except the root node. Trees can be classfied into many categories which will be discussed later in this tutorial.
Graphs: Graphs can be defined as the pictorial representation of the set of elements (represented by vertices) connected by the links known as edges. A graph is different from tree in the sense that a graph can have cycle while the tree can not have the one.

Operations on data structure

1) Traversing: Every data structure contains the set of data elements. Traversing the data structure means visiting each element of the data structure in order to perform some specific operation like searching or sorting.
Example: If we need to calculate the average of the marks obtained by a student in 6 different subject, we need to traverse the complete array of marks and calculate the total sum, then we will devide that sum by the number of subjects i.e. 6, in order to find the average.
2) Insertion: Insertion can be defined as the process of adding the elements to the data structure at any location.
If the size of data structure is n then we can only insert n-1 data elements into it.
3) Deletion:The process of removing an element from the data structure is called Deletion. We can delete an element from the data structure at any random location.
If we try to delete an element from an empty data structure then underflow occurs.
4) Searching: The process of finding the location of an element within the data structure is called Searching. There are two algorithms to perform searching, Linear Search and Binary Search. We will discuss each one of them later in this tutorial.
5) Sorting: The process of arranging the data structure in a specific order is known as Sorting. There are many algorithms that can be used to perform sorting, for example, insertion sort, selection sort, bubble sort, etc.
6) Merging: When two lists List A and List B of size M and N respectively, of similar type of elements, clubbed or joined to produce the third list, List C of size (M+N), then this process is called merging

Exception Handling


Output of Java program-Exception Handling


Prerequisites : Exception handling , control flow in try-catch-finally
1) What is the output of the following program?
public class Test
{
    public static void main(String[] args)
    {
        try
        {
            System.out.printf("1");
            int sum = 9 / 0;
            System.out.printf("2");
        }
        catch(ArithmeticException e)
        {
            System.out.printf("3");
        }
        catch(Exception e)
        {
            System.out.printf("4");
        }
        finally
        {
            System.out.printf("5");
        }
    }
}
a) 1325
b) 1345
c) 1342
d) 135
Ans. (d)
Explanation: Once an exception occurs in try block, the execution passes to correspondingcatch statement and doesn’t return back to try block. Only one of the catch blocks are executed at a time. finally block is always executed whether or not the exception occurred.

2) What is the output of the following program?
public class Test
{
    private void m1()
    {
        m2();
        System.out.printf("1");
    }
    private void m2()
    {
        m3();
        System.out.printf("2");
    }
    private void m3()
    {
        System.out.printf("3");
        try
        {
            int sum = 4/0;
            System.out.printf("4");
        }
        catch(ArithmeticException e)
        {
            System.out.printf("5");
        }
         
         
        System.out.printf("7");
    }
    public static void main(String[] args)
    {
        Test obj = new Test();
        obj.m1();
    }
}
a) 35721
b) 354721
c) 3521
d) 35
Ans. (a)
Explanation: If an exception is handled in the catch statement, the program continues with its normal execution, after executing the catch statement corresponding to that exception. Also, when an exception occurs in the try block, the rest of the program in the try block is not executed.
3) What is the output of the following program? 
public class Test
{
    public static void main(String[] args)
    {
        try
        {
            System.out.printf("1");
            int data = 5 / 0;
        }
        catch(ArithmeticException e)
        {
            System.out.printf("2");
            System.exit(0);
        }
        finally
        {
            System.out.printf("3");
        }
        System.out.printf("4");
    }
}
a) 12
b) 1234
c) 124
d) 123
Ans. (a)
Explanation: The only case when the code inside finally block is not executed is when System.exit(0) is called explicitly in the program. Then exit statement is called and the program is terminated without executing any further.

4) What is the output of the following program?
public class Test
{
    public static void main(String[] args)
    {
        try
        {
            System.out.printf("1");
            int data = 5 / 0;
        }
        catch(ArithmeticException e)
        {
            Throwable obj = new Throwable("Sample");
            try
            {
                throw obj;
            }
            catch (Throwable e1)
            {
                System.out.printf("8");
            }
        }
        finally
        {
            System.out.printf("3");
        }
        System.out.printf("4");
    }
}
a) Compilation error
b) Runtime error
c) 1834
d) 134
Ans. (c)
Explanation: Exceptions can be thrown in catch clause. This is done in order to change the exception type at run time. Exceptions in catch clause are thrown by creating instances of class Throwable as shown in the program.
5) What is the output of the following program?
import java.io.EOFException;
import java.io.IOException;
public class Test
{
    public static void main(String[] args)
    {
        try
        {
            System.out.printf("1");
            int value = 10 / 0;
            throw new IOException();
        }
        catch(EOFException e)
        {
            System.out.printf("2");
        }
        catch(ArithmeticException e)
        {
            System.out.printf("3");
        }
        catch(NullPointerException e)
        {
            System.out.printf("4");
        }
        catch(IOException e)
        {
            System.out.printf("5");
        }
        catch(Exception e)
        {
            System.out.printf("6");
        }
    }
}
a) 1346
b) 136726
c) 136
d) 13
Ans. (d)
Explanation: In multi-catch statements, the exceptions must be listed from more specific to more general. Only one catch statement which is most specific to the occurred exception is executed.