Quantcast
Channel: Payilagam
Viewing all 321 articles
Browse latest View live

Quantitative Aptitude Questions with Answers – Part 1

$
0
0

Quantitative Aptitude Questions with Answers – Part 1  

This blog explains about Quantitative Aptitude Questions with Answers – Part 1 and is given below : 

1.A train running at the speed of 60 km/hr crosses a pole in 9 seconds. What is the length of the train?
A.120 metres B.180 metres C.324 metres D.150 metres

Answer :Option D
Explanation :

1 km = 1000 m and 1 hr = 3600s
Speed = 60 × 1000 / 3600
             = 50/3 m/s .

Now distance = speed × time
                            = 50 / 3 × 9
                            = 50 × 3
                            = 150 m

Therefore the length of the train is 150 metres. ( 0.15 km )

2.A vendor bought toffees at 6 for a rupee. How many for a rupee must he sell to gain 20%?
A.3 B.4 C.5 D.6

Answer: Option C
Explanation:

C.P. of 6 toffees = Re. 1
S.P. of 6 toffees = 120% of Re. 1
= Rs. 6/5 = Rs. 1.20

For Rs. 1.2, toffees sold = 6
For Re. 1, toffees sold = 6 x 5/6

                                            = 5

3.The average weight of A, B and C is 45 kg. If the average weight of A and B be 40 kg and that of B and C be 43 kg, then the weight of B is:
A.17 kg B.20 kg C.26 kg D.31 kg

Answer :Option D
Explanation :
Weight of B = (A + B)’s weight + (B + C)’s weight – (A + B + C)’s weight
                        = 40 * 2 + 43 * 2 – 45 * 3
                         = 80 + 86 – 135

                        = 31 kg.
Hence option [D] is correct answer.

4.A and B can do a work in 8 days, B and C can do the same work in 12 days. A, B and C together can finish it in 6 days. A and C together will do it in :
A.4 days B.6 days C.8 days D.12 days

Answer : Option C
Explanation :

Let A and C complete the work in x days
(A+B)’s one day’s work= 1/8
(B+C)’s one day’s work= 1/12
(C+A)’s one day’s work= 1/x
(A+B+C)’s one day’s work = 1/6
We have C’s one day work = (A+B+C)-(A+B)

                                                     = 1/6 – 1/8
                                                     = 8-6/48
C’s one day work = 1/24
A’s one day work = (A+B+C)-(B+C)

                                  = 1/6 – 1/12
                                  = 2-1/12
A’s one day work = 1/12
(A+C)’s one day work = 1/24 + 1/12
                                            = 1+2/24

                                            = 3/24

                                      = 1/8
                                  x = 8 days

5.Two numbers are respectively 20% and 50% more than a third number. The ratio of the two numbers is:
A.2 : 5             B.3 : 5              C.4 : 5            D.6 : 7

Answer: Option C) 4:5
Explanation:
Let the third number be x.
Then, first number = 120% of x =120x/100 = 6x/5
Second number =150% of x = 150x/100 = 3x/2

Ratio of first two numbers = 6x/5 : 3x/2

                                                      = 12x : 15x

                                                      = 4 : 5

 

6.The sum of ages of 5 children born at the intervals of 3 years each is 50 years. What is the age of the youngest child?
A.4 years      B.8 years        C.10 years          D  .None of these

Answer: Option A
Explanation :

Since, the children were born at the interval of three years ,let us assume their age as x, x+3,x+6,x+9,x+12.
given- the sum of five children is 50
therefore,
x+x+3+x+6+x+9+x+12 = 50
5x+30 = 50
5x = 50-30
5x=20
x=4
Hence, age of the youngest child is 4 years.

7.Look at this series: 8, 6, 9, 23, 87 , … What number should come next?
A.128            B.226            C.324            D.429

Answer : Option D

Explanation :
(8×1) – 2=6.

(6×2) – 3=9

(9×3) – 4=23

(23×4) – 5=87

The next term = ( 87×5 ) – 6

                             = 429

8.66 games were played in a tournament where each player played against each of the rest. The number of players is
A) 33 B) 12 C) 13 D) 11

Answer : Option B
Explanation :
Let the number of players = n+1

Number of games = n(n+1)/2 = 66
                                    = n(n+1) = 132
                                    = 11 * 12 = 132
Thus the number of players = 12

9. A father is 30 years older than his son however he will be only thrice as old as the son after 5 years .what is father’s present age?
(A) 40 yrs (B) 30 yrs(C)50 yrs(D)None of these

Answer : Option A
Explanation :
Let the age of the son = x
Then the age of his father = x+30
Given,father will be only thrice as old as the son after 5 years
x+30+5 = 3(x+5)
x+35 = 3x+15
35-15 = 3x-x
20 = 2x
2x = 20
x = 20/2 = 10
Therefore the age of his father = x+30

                                                             = 10+30

                                                            = 45 years

10. Arun, Kamal and Vinay invested Rs. 8000, Rs. 4000 and Rs. 8000 respectively in a business. Arun left after six months. If after eight months, there was a gain of Rs. 4005, then what will be the share of Kamal?
A.Rs. 890 B.Rs. 1335 C.Rs. 1602 D.Rs. 1780

Answer: Option A
Explanation:

Arun : Kamal : Vinay = (8,000 x 6) : (4,000 x 8) : (8,000 x 8)
= 48 : 32 : 64
= 3 : 2 : 4.
Kamal’s share = Rs.4005 x 2/9

                             = Rs. 890.

The post Quantitative Aptitude Questions with Answers – Part 1 appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.


Quantitative Aptitude Questions with Answers – Part 2

$
0
0

Quantitative Aptitude Questions with Answers – Part 2

This blog explains about Quantitative Aptitude Questions with Answers – Part 2 and is given below : 

11.Two number are in the ratio 3 : 5. If 9 is subtracted from each, the new numbers are in the ratio 12 : 23. The smaller number is:
A. 27           B. 33              C. 49            D. 55

Answer: Option B
Explanation:

Let the numbers be 3x and 5x.
Then, 3x – 9 = 12
5x – 9 =  23
23(3x – 9) = 12(5x – 9)
9x = 99
x = 11.
The smaller number = (3 x 11) = 33.

12.The speed of a boat in still water in 15 km/hr and the rate of current is 3 km/hr. The distance travelled downstream in 12 minutes is:
A.1.2 km           B.1.8 km           C.2.4 km             D.3.6 km

Answer: Option D
Explanation:
Speed downstream = (15 + 3) kmph

                                       = 18 kmph.
Distance travelled = 18 x 12/60 km

                                      = 3.6 km.

13. A man buys a cycle for Rs. 1600 and sells it at a loss of 15%. What is the selling price of the cycle?
A.Rs. 1290       B.Rs. 1360           C.Rs. 1480        D.Rs. 1502

Answer : Option B
Explanation :
S.P.of the cycle = 85% of Rs.1600
                               = Rs.(85/100 × 1600)
                               = Rs.1360

14.Pick the odd one out
a. 4 b. 16 c. 36 d. 8

Answer : Option D
Explanation :
All are square of the number except 8

15.Pick the odd one out.
a) 2 : 4          b) 5 : 25         c) 10 : 100        d) 3 : 9             e) 6 : 60

Answer : Option E
Explanation :

All are number and their square . Only 6 is the exception.

16. Joe is walking towards North for 15 miles, turns left and walks another 10 miles. He then turns right and walks 10 miles. Now, he again turns right and walks 30 miles. Which direction is he from Starting point?
a) South-East b) North-East c) North-West d) South-West

Answer : Option C
Explanation :
The direction is North west

17.Joe went 35 meters towards east from Mary’s house. He turns left and walks 15 meters. Now, he takes a left turn and walks 80 meters. Finally, he turns left and walks for 15 meters. How far Joe is from Mary’s house?
a) 30       b) 45           c) 50            d) 65

Answer : Option B
Explanation :
45 kilometers

18. If SNOW is coded as 7100, then WALL will be coded as
a. 5000       b. 4700            c. 4800           d. 4000

Answer : Option C
Explanation :
S + N + O + W = 19 + 14 + 15 + 23 = 71 and 7100 is the code
W + A + L + L = 23 + 1 + 12 + 12 = 48 and 4800 is the code

19. Introducing a girl, a boy said, “She is the daughter of the mother of the daughter of my aunt.” How is the girl related to the boy?

i) Cousin ii) Niece iii) Daughter iv) Aunt

Answer : Option A
Explanation :
i) The daughter of my aunt is my cousin.
ii) Mother of my cousin is my aunt.
iii) Daughter of my aunt is again my cousin.
iv) The girl is the boy’s cousin.

20. Ashwini is Kiran’s sister. komal is Kiran’s mother. Dipen is komal’s father. Esha is Dipen’s mother. Then, how is Ashwini related to Dipen?

i) Grandfather      ii) Grandmother          iii) Daughter     iv) Granddaughter

Answer : Option D
Explanation :

i) Ashwini is Kiran’s sister.
ii) Komal is Kiran’s mother, so Ashwini is a daughter of Komal.
iii) Dipen is Komal’s father , so Dipen is the grandfather of Ashwini.
iv) Hence , Ashwini is the grand daughter of Dipen.

REFERENCES : Quantitative Aptitude Questions with Answers – Part 1

https://payilagam.com/blogs/quantitative-aptitude-questions-with-answers-part-1/

The post Quantitative Aptitude Questions with Answers – Part 2 appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

MST Solutions – Fresher Interview Questions – Part 1

$
0
0

MST Solutions – Fresher Interview Questions – Part 1

This blog explains about MST Solutions – Fresher Interview Questions – Part 1 and is given below : 

1.What is constructor. Parameterised constructor and initiate those with example

A Constructor with arguments(or you can say parameters) is known as Parameterized constructor. As we discussed in the Java Constructor tutorial that a constructor is a special type of method that initializes the newly created object.

class Example{
//Default constructor
Example(){
System.out.println(“Default constructor”);
}
/* Parameterized constructor with
* two integer arguments
*/
Example(int i, int j){
System.out.println(“constructor with Two parameters”);
}
/* Parameterized constructor with
* three integer arguments
*/
Example(int i, int j, int k){
System.out.println(“constructor with Three parameters”);
}

/* Parameterized constructor with
* two arguments, int and String
*/
Example(int i, String name){
System.out.println(“constructor with int and String param”);
}
public static void main(String args[]){
//This will invoke default constructor
Example obj = new Example();

/* This will invoke the constructor
* with two int parameters
*/
Example obj2 = new Example(12, 12);

/* This will invoke the constructor
* with three int parameters
*/
Example obj3 = new Example(1, 2, 13);

/* This will invoke the constructor
* with int and String parameters
*/
Example obj4 = new Example(1,”BeginnersBook”);
}
}
Output:
Default constructor
constrSecond question string
Firstvalue=”500″;
Second year=”500″;
Thirdvalue=firstvalue+second value;uctor with Two parameters
constructor with Three parameters
constructor with int and String param

2. What is smoke testing and when to do smoking testing

Smoke Testing

SMOKE TESTING, also known as “Build Verification Testing”, is a type of software testing that comprises of a non-exhaustive set of tests that aim at ensuring that the most important functions work. The result of this testing is used to decide if a build is stable enough to proceed with further testing.

The term ‘smoke testing’, it is said, came to software testing from a similar type of hardware testing, in which the device passed the test if it did not catch fire (or smoked) the first time it was turned on.

3. What is agile and when we go for agile methodologies. 

Agile Methodology is a type of project management process. The agile method anticipates change and allows for much more flexibility than traditional methods. The process involves breaking down each project into prioritized requirements, and delivering each individually within an iterative cycle. Clients come to prescheduled regular meetings to review the work completed the previous iteration, and to plan work for the upcoming iteration. Detailed goals are set in each iteration meeting such as; expected changes, time estimates, priorities and budgets.The value for businesses that use this model include:

i) Lower Cost
ii)Enables clients to be happier with the end product by making improvements and involving clients with development decisions throughout the process.
iii)Encourages open communication among team members, and clients.
iv)Providing teams with a competitive advantage by catching defects and making changes throughout the development process, instead of at the end.
v)Speeds up time spent on evaluations since each evaluation is only on a small part of the whole project.
vi)Ensures changes can be made quicker and throughout the development process by having consistent evaluations to assess the product with the expected outcomes requested.
vii)It keeps each project transparent by having regular consistent meetings with the clients and systems that allow everyone involved to access the project data and progress.

REFERENCES : 

https://beginnersbook.com/2014/01/parameterized-constructor-in-java-example/

http://softwaretestingfundamentals.com/smoke-testing/

http://vcwebdesign.com/uncategorized/what-agile-methodology-why-do-we-use-it/

 

The post MST Solutions – Fresher Interview Questions – Part 1 appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

MST Solutions – Fresher Interview Questions – Part 2

$
0
0

MST Solutions – Fresher Interview Questions – Part 2

This blog explains about MST Solutions – Fresher Interview Questions – Part 2 and is given below : 

1.  Explain about Bug life cycle .

Bug Life Cycle or Defect Life Cycle:
Bug life cycle is also known as Defect life cycle. In Software Development process, the bug has a life cycle. The bug should go through the life cycle to be closed. Bug life cycle varies depends upon the tools (QC, JIRA etc.,) used and the process followed in the organization.What is a Software Bug?

Software bug can be defined as the abnormal behavior of the software. Bug starts when the defect is found and ends when a defect is closed, after ensuring it is not reproduced.

2. Regression testing
REGRESSION TESTING is a type of software testing that intends to ensure that changes (enhancements or defect fixes) to the software have not adversely affected it.

The likelihood of any code change impacting functionalities that are not directly associated with the code is always there and it is essential that regression testing is conducted to make sure that fixing one thing has not broken another thing.

During regression testing, new test cases are not created but previously created test cases are re-executed.

Regression [noun] literally means the act of going back to a previous place or state; return or reversion.

GUI testing
GUI stands for Graphical User Interface. One can interact with a computer or any software or website on a computer through two types of interfaces. These interfaces are command line interface and graphical user interface.GUI is often designed for the naïve user who does not have the knowledge of commands but can interact through the mouse pointer and interacting with the web elements. In such scenario, the developer has to think from the perspective of the naive user and the tester makes sure that the look and feel of the screen are simple, interacting through GUI on a website is easy to understand, etc. Therefore, GUI testing involves the testing of the screens which have the controls such as menus, icons, buttons, types of bars i.e. toolbar, menu bar, dialog boxes and windows, etc.

Levels of testing
What are the levels of testing?
A level of software testing is a process where every unit or component of a software/system is tested. The main goal of system testing is to evaluate the system’s compliance with the specified needs.In SDLC models there are characterized phases such as requirement gathering, analysis, design, coding or execution, testing, and deployment.

All these phases go through the process of software testing levels. There are mainly four testing levels are:

Unit Testing
Integration Testing
System Testing
Acceptance Testing

3. Functional and non functional testing

Functional testing is a type of testing which verifies that each function of the software application operates in conformance with the requirement specification. This testing mainly involves black box testing, and it is not concerned about the source code of the application.
Non-functional testing is a type of testing to check non-functional aspects (performance, usability, reliability, etc.) of a software application. It is explicitly designed to test the readiness of a system as per nonfunctional parameters which are never addressed by functional testing.

4. Boundary value and equivalence partitioning

Boundary testing is the process of testing between extreme ends or boundaries between partitions of the input values.

So these extreme ends like Start- End, Lower- Upper, Maximum-Minimum, Just Inside-Just Outside values are called boundary values and the testing is called “boundary testing”.
The basic idea in boundary value testing is to select input variable values at their:
Minimum
Just above the minimum
A nominal value
Just below the maximum
Maximum
In Boundary Testing, Equivalence Class Partitioning plays a good role
Boundary Testing comes after the Equivalence Class Partitioning.

5. What is Equivalent Class Partitioning?
Equivalent Class Partitioning is a black box technique (code is not visible to tester) which can be applied to all levels of testing like unit, integration, system, etc. In this technique, you divide the set of test condition into a partition that can be considered the same.

It divides the input data of software into different equivalence data classes.
You can apply this technique, where there is a range in the input field.
REFERENCES : MST Solutions – Fresher Interview Questions – Part 1

https://payilagam.com/blogs/mst-solutions-fresher-interview-questions-part-1/

http://softwaretestingfundamentals.com/regression-testing/https://www.softwaretestingclass.com/gui-testing-in-software-testing/https://www.guru99.com/levels-of-testing.htmlhttps://www.guru99.com/functional-testing-vs-non-functional-testing.htmlhttps://www.guru99.com/equivalence-partitioning-boundary-value-analysis.html

http://softwaretestingfundamentals.com/regression-testing/https://www.softwaretestingclass.com/gui-testing-in-software-testing/https://www.guru99.com/levels-of-testing.htmlhttps://www.guru99.com/functional-testing-vs-non-functional-testing.htmlhttps://www.guru99.com/equivalence-partitioning-boundary-value-analysis.html

http://softwaretestingfundamentals.com/regression-testing/https://www.softwaretestingclass.com/gui-testing-in-software-testing/https://www.guru99.com/levels-of-testing.htmlhttps://www.guru99.com/functional-testing-vs-non-functional-testing.htmlhttps://www.guru99.com/equivalence-partitioning-boundary-value-analysis.html

http://softwaretestingfundamentals.com/regression-testing/https://www.softwaretestingclass.com/gui-testing-in-software-testing/https://www.guru99.com/levels-of-testing.htmlhttps://www.guru99.com/functional-testing-vs-non-functional-testing.htmlhttps://www.guru99.com/equivalence-partitioning-boundary-value-analysis.html

http://softwaretestingfundamentals.com/regression-testing/https://www.softwaretestingclass.com/gui-testing-in-software-testing/https://www.guru99.com/levels-of-testing.htmlhttps://www.guru99.com/functional-testing-vs-non-functional-testing.htmlhttps://www.guru99.com/equivalence-partitioning-boundary-value-analysis.html

 

The post MST Solutions – Fresher Interview Questions – Part 2 appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

IT GALAX Fresher Interview Questions with Answers

$
0
0

IT GALAX Fresher Interview Questions with Answers

This blog explains about IT GALAX Fresher Interview Questions with Answers and is given below : 

Aptitude Questions – Part A

1. If 2/5 of 3x = 120 , what is 1/5 of x ?
a) 20 b) 10 c) 30 d) 40

Answer : Option A
Explanation :

2/5 of 3x = 120
3x = 120(5/2)
3x = 300
x = 100
So, 1/5 of x = 20

2.2^3 + 4 x (3-1) = ?
a) 12 b)23 c)10 d)16

Answer : Option D
Explanation :

(2 ^ 3) + 4 x (3-1) = 8 + 4 x 2
= 8 + 8
= 16

3. Find the missing number ?
72 , ? , 18 , 9
a) 42 b) 36 c) 32 d)40

Answer : Option B
Explanation :

It follows the pattern of half the preceeding number.
72,36,18,9

4.If 2b-b+5b = 4a-16, and if a=4, what is the value of b?

A. 0
B. 1
C. 2
D. 3

Answer : Option A
Explanation :

2b-b+5b = 4a-16
6b = 4(4)-16 = 0
b = 0

5. 42,000 cars crossed the bridge in one day. How many cars crossed the bridge in an hour ( on average) ?
A. 1750
B. 1755
C. 1756
D. 1745

Answer : Option A
Explanation :
42,000 cars crossed the bridge in one day ie) in 24 hours.
The number of cars crossed the bridge in an hour ( on average) = 42,000 / 24   = 1750

6. What is 6,300 of 42,000 in percent?

A. 10
B. 12.5
C. 15
D. 17.5

Answer : Option C
Explanation :

6300 of 42,000 in % = ( 6300 / 42000 )* 100
= 15 %

7. Fraction 8/36 in its simplest form is ?
a) 1/5 b) 2/9 c) 1/4 d) 4/18 e) None of these

Answer : Option B
Explanation :

On dividing 8/36 by 4 we get 2/9

8. Find the odd one out of the following words ?
A) cruise
B) crusade
C) expedition
D) campaign

Answer : Option A
Explanation :
All of them explains about the journey except Cruise.

9. If FRIEND is coded as HUMJTK, how is CANDLE written in that code ?

A) EDRIRL B) DCQHQK
C) ESJFME D) DEQJQM

Answer: A) EDRIRL
Explanation:
The first, second, third, fourth, fifth and sixth letters of th word are respectively moved two, three, four, five, six and seven steps forward to obtain the corresponding letters of the code.

10. Cricket : Pitch ::
A. Ship : Dock
B. Boat : Harbour
C. Wrestling : Track
D. Boxing : Ring

Answer: Option D
Explanation :

The game of cricket is played on a pitch.
Similarly, boxing is done in a ring.

11.AZ,BY,CX,…?
a)EF b)GH c)IJ d)DW

Answer : Option D
Explanation :

It follows the pattern A and Z , B and Y , C and X . Thus we have D and W.

12.Ten years ago, P was half of Q in age. If the ratio of their present ages is 3:4, what will be the total of their present ages
a)35
b)34
c)45
d)25
Answer: Option A

Explanation:

Let the present age of P and Q be 3x and 4x respectively.
Ten years ago, P was half of Q in age
=> 2(3x – 10) = (4x – 10)
=> 6x – 20 = 4x – 10
=> 2x = 10
=> x = 5

13. Which of the following number is divisible by 3 but not by 9 ?

A. 5271
B. 4122
C. 3141
D. 3222

Answer : Option A
Explanation :

A number is divisible by 3 if the sum of the digits is divisible by 3
A number is divisible by 9 if the sum of its digits is divisible by 9.

14. If 7 spiders make 7 webs in 7 days, then 1 spider will make 1 web in how many days?

A) 1
B) 3
C) 7
D) 14

Answer: Option C
Explanation :

The number of days taken by each spider to spin a web is seven days.So it takes the same for one spider to spin the web in 7 days.

15. A person crosses a 600 m long street in 5 minutes, What is his speed in km per hour?

A) 3.6
B) 7.2
C) 8.4
D) 10

Answer: Option B
Explanation:
Speed = (600/5×60) m/sec
             = 2 m/sec
             = 2 x (18/5) km/hr
             = 7.2 km/hr

 

Part – B

1. An Assembly is
a) A collection of files that appear to the programmer to be single DLL or EXE
b) Property
c) Event
d) Declarative syntax

Answer : Option A

2. What keyword is used to prevent a class from being inherited ?
a) Sealed
b) Static
c) Virtual
d) Protected

Answer : Option B

The post IT GALAX Fresher Interview Questions with Answers appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

IT GALAX Interview Questions with Answers – Part 1

$
0
0

IT GALAX Interview Questions with Answers – Part 1

This blog explains about IT GALAX Interview Questions with Answers – Part 1 and is given below : 

Java
1. OOPS

Object Oriented Programming (OOPs) Concept in Java
Object-oriented programming:  OOPs refers to languages that uses objects in programming. Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism etc in programming. The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function.
2. Multithreading in Java
Multithreading in java is a process of executing multiple threads simultaneously.

A thread is a lightweight sub-process, the smallest unit of processing. Multiprocessing and multithreading, both are used to achieve multitasking.

However, we use multithreading than multiprocessing because threads use a shared memory area. They don’t allocate separate memory area so saves memory, and context-switching between the threads takes less time than process.

Java Multithreading is mostly used in games, animation, etc.

Advantages of Java Multithreading
1) It doesn’t block the user because threads are independent and you can perform multiple operations at the same time.

2) You can perform many operations together, so it saves time.

3) Threads are independent, so it doesn’t affect other threads if an exception occurs in a single thread.

3. Exception (catch block is private or public or protected)
Exception Handling in Java
The Exception Handling in Java is one of the powerful mechanism to handle the runtime errors so that normal flow of the application can be maintained.

In Java, an exception is an event that disrupts the normal flow of the program. It is an object which is thrown at runtime.

Exception Handling is a mechanism to handle runtime errors such as ClassNotFoundException, IOException, SQLException, RemoteException, etc.

4. SQL  and Joins
SQL | Join (Inner, Left, Right and Full Joins)
A SQL Join statement is used to combine data or rows from two or more tables based on a common field between them. Different types of Joins are:

INNER JOIN
LEFT JOIN
RIGHT JOIN
FULL JOIN

5. Pvt key
A private key is a tiny bit of code that is paired with a public key to set off algorithms for text encryption and decryption. It is created as part of public key cryptography during asymmetric-key encryption and used to decrypt and transform a message to a readable format. Public and private keys are paired for secure communication, such as email.

A private key is also known as a secret key.
6. Foreign key
A foreign key is a key used to link two tables together. This is sometimes also called as a referencing key.

A Foreign Key is a column or a combination of columns whose values match a Primary Key in a different table.

The relationship between 2 tables matches the Primary Key in one of the tables with a Foreign Key in the second table.

If a table has a primary key defined on any field(s), then you cannot have two records having the same value of that field(s).

7. Jsp
Web based /stand alone
Web Application

The UI is rendered on a client machine, using a specialized client (a.k.a. web browser)
The UI capabilities on the client machine are limited to what the web browser (including plugins) supports. The programmer generally has no ability to implement arbitrary functionality on the client, but rather must work within the capabilities supported by the client.
Business logic and data storage are not on the client machine (generally speaking, there can be limited exceptions). Rather, one or more servers take those architectural roles.
Communication between the client and server occurs using a standardized network communication protocol (HTTP).
Stand Alone Application

The programmer has full control (within the capabilities of the operating system and with support of a broad selection of UI frameworks) over the user interface.
The business logic layer and data layer may reside on the same machine or on a remote server.

References

https://www.geeksforgeeks.org/object-oriented-programming-oops-concept-in-java/

https://www.javatpoint.com/multithreading-in-java

https://www.javatpoint.com/exception-handling-in-java

https://www.geeksforgeeks.org/sql-join-set-1-inner-left-right-and-full-joins/

https://www.techopedia.com/definition/16135/private-key

https://www.tutorialspoint.com/sql/sql-foreign-key.htm

https://stackoverflow.com/questions/7845451/technical-difference-between-a-stand-alone-app-vs-web-app

The post IT GALAX Interview Questions with Answers – Part 1 appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

IT GALAX Interview Questions with Answers – Part 2

$
0
0

IT GALAX Interview Questions with Answers – Part 2

This blog explains about IT GALAX Interview Questions with Answers – Part 2 and is given below :

Java Questions 
1. Class
A class is a user defined blueprint or prototype from which objects are created. It represents the set of properties or methods that are common to all objects of one type. In general, class declarations can include these components, in order:

Modifiers : A class can be public or has default access .
Class name: The name should begin with a initial letter (capitalized by convention).
Superclass(if any): The name of the class’s parent (superclass), if any, preceded by the keyword extends. A class can only extend (subclass) one parent.
Interfaces(if any): A comma-separated list of interfaces implemented by the class, if any, preceded by the keyword implements. A class can implement more than one interface.
Body: The class body surrounded by braces, { }.

Object
It is a basic unit of Object Oriented Programming and represents the real life entities. A typical Java program creates many objects, which as you know, interact by invoking methods. An object consists of :

State : It is represented by attributes of an object. It also reflects the properties of an object.
Behavior : It is represented by methods of an object. It also reflects the response of an object with other objects.
Identity : It gives a unique name to an object and enables one object to interact with other objects.

Inheritance
Inheritance in Java is a mechanism in which one object acquires all the properties and behaviors of a parent object. It is an important part of OOPs (Object Oriented programming system).

The idea behind inheritance in Java is that you can create new classes that are built upon existing classes. When you inherit from an existing class, you can reuse methods and fields of the parent class. Moreover, you can add new methods and fields in your current class also.

Polymorphism
Polymorphism in Java
Polymorphism in Java is a concept by which we can perform a single action in different ways. Polymorphism is derived from 2 Greek words: poly and morphs. The word “poly” means many and “morphs” means forms. So polymorphism means many forms.

There are two types of polymorphism in Java: compile-time polymorphism and runtime polymorphism. We can perform polymorphism in java by method overloading and method overriding.

If you overload a static method in Java, it is the example of compile time polymorphism. Here, we will focus on runtime polymorphism in java.

Interface in Java
Interface
An interface in java is a blueprint of a class. It has static constants and abstract methods.

The interface in Java is a mechanism to achieve abstraction. There can be only abstract methods in the Java interface, not method body. It is used to achieve abstraction and multiple inheritance in Java.

In other words, you can say that interfaces can have abstract methods and variables. It cannot have a method body.

Java Interface also represents the IS-A relationship.

It cannot be instantiated just like the abstract class.

Since Java 8, we can have default and static methods in an interface.

Since Java 9, we can have private methods in an interface.

 REFERENCES : 

IT GALAX Interview Questions with Answers – Part 1

https://payilagam.com/blogs/it-galax-interview-questions-with-answers-part-1/

https://www.geeksforgeeks.org/classes-objects-java/

https://www.javatpoint.com/inheritance-in-java

https://www.javatpoint.com/runtime-polymorphism-in-java

https://www.javatpoint.com/interface-in-java

 

The post IT GALAX Interview Questions with Answers – Part 2 appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

Zydesoft Fresher Interview questions with Answers

$
0
0

Zydesoft Fresher Interview questions with Answers 

This blog explains about Zydesoft Fresher Interview questions with Answers and is given below : 

Java
1. Collections in Java

The Collection in Java is a framework that provides an architecture to store and
manipulate the group of objects.

Java Collections can achieve all the operations that you perform on a data such as
searching, sorting, insertion, manipulation, and deletion.

Java Collection means a single unit of objects. Java Collection framework provides
many interfaces (Set, List, Queue, Deque) and classes (ArrayList, Vector,
LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet).

2. Arraylist fruits

(Get input(fruits) from user in main method and use message passing to the
another method and print the arraylist using iterators /for loop)

Create ArrayList in Java :
Java Provides 2 different ways to create an ArrayList,

Method 1 :
Creating ArrayList using Arrays class, Arrays.asList();

Syntax :

ArrayList list = new ArrayList(Arrays.asList(Object obj1, Object obj2, Object obj3,
..,objn));
Example :

import java.util.ArrayList;
import java.util.Arrays;
public class Method1 {
public static void main(String args[]) {
ArrayList<String> fruits = new ArrayList<String>(
Arrays.asList(“Apple”, “Banana”, “Grapes”,”Mango”));
System.out.println(“List of all Fruits – “+fruits);
}
}
Output :

List of all Fruits – [Apple, Banana, Grapes, Mango]
Method 2 :
Creating ArrayList using java.util.ArrayList class constructor.

Syntax :

ArrayList fruitsList = new ArrayList();
fruitsList.add(“Banana”);
fruitsList.add(“Apple”);
fruitsList.add(“Grapes”);
fruitsList.add(“Mango”);
Example :

import java.util.ArrayList;
import java.util.Arrays;
public class Sample {
public static void main(String args[]) {
ArrayList fruitsList = new ArrayList();
fruitsList.add(“Banana”);
fruitsList.add(“Apple”);
fruitsList.add(“Grapes”);
fruitsList.add(“Mango”);
System.out.println(“List of all Fruits – “+fruitsList);
}
}
Output :

List of all Fruits – [Banana, Apple, Grapes, Mango]

3. HTML

Name text box
Age. Text box
Submit
public class Student {
private Integer age;
private String name;
private Integer id;

public void setAge(Integer age) {
this.age = age;
}
public Integer getAge() {
return age;
}

public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}

public void setId(Integer id) {
this.id = id;
}
public Integer getId() {
return id;
}
}

4. How you get the image in html page

HTML Images Syntax
In HTML, images are defined with the <img> tag.

The <img> tag is empty, it contains attributes only, and does not have a closing
tag.

The src attribute specifies the URL (web address) of the image:

<img src=”url”>
The alt Attribute
The alt attribute provides an alternate text for an image, if the user for some
reason cannot view it (because of slow connection, an error in the src attribute,
or if the user uses a screen reader).

The value of the alt attribute should describe the image:

5. Different types of tag

HTML is a set of markup tags that tells the browser how to display the Web page
content.

Different types of HTML tags are:

Tag Description

<!DOCTYPE> Defines the document type

<html> Defines an HTML document

<head> Defines information about the document

<title> Defines a title for the document

<body> Defines the document’s body

<h1> to <h6> Defines HTML headings

<p> Defines a paragraph.

<br> Inserts a single line break

<hr> Defines a thematic change in the content

<!–…–> Defines a comment

6.Div

Div Tag | HTML
The div tag is known as Division tag. The Div tag is used in HTML to make divisions
of content in the web page like (text, images, header, footer, navigation bar etc).
Div tag has both open(<) and closing (>) tag and it is mandatory to close the tag.
Div tag is Block level tag
It is a generic container tag
It is used to the group of various tags of HTML so that sections can be created and
style can be Applied on them.

7. JSP
Request.getparameter

getParameter() – Passing data from client to JSP
The familiarity of the getParameter() method in getting data, especially form data,
from a client HTML page to a JSP page is dealt with here. The request.getParameter
() is being used here to retrieve form data from client side.

Steps to be followed
1) First, a html page exGetParameter.html accepts data from the client. The client
enters text in the space provided and clicks on ‘Submit’.
2) Immediately the getparam.jsp page gets called, it being mentioned in the action
tag.
3) This JSP page fetches the data using getParameter() method and displays the same
to the user.

8. Implicipt object & uses

There are 9 jsp implicit objects. These objects are created by the web container
that are available to all the jsp pages.

The available implicit objects are out, request, config, session, application etc.

A list of the 9 implicit objects is given below:

Object – Type
out – JspWriter
request –  HttpServletRequest
response –  HttpServletResponse
config – ServletConfig
application –  ServletContext
session – HttpSession
pageContext –  PageContext
page – Object
exception – Throwable

References :

https://www.javatpoint.com/collections-in-java
https://www.onlinetutorialspoint.com/java/2-ways-to-create-arraylist-in-java.html
https://www.tutorialspoint.com/springmvc/springmvc_textbox.htm
https://www.w3schools.com/html/html_images.asp
https://www.quora.com/What-are-the-different-types-of-HTML-tags
https://www.geeksforgeeks.org/div-tag-html/
https://www.geeksforgeeks.org/getparameter-passing-data-from-client-to-jsp/
https://www.javatpoint.com/jsp-implicit-objects

The post Zydesoft Fresher Interview questions with Answers appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.


MVI Technology Fresher Interview Questions with Answers

$
0
0

MVI Technology Fresher Interview Questions with Answers

This blog explains about  MVI Technology Fresher Interview Questions with Answers and is given below :

1. What is final ?

Final Keyword In Java
The final keyword in java is used to restrict the user. The java final keyword can
be used in many context. Final can be:

variable
method
class
The final keyword can be applied with the variables, a final variable that have no
value it is called blank final variable or uninitialized final variable. It can be
initialized in the constructor only.

2. What is static

Java static keyword
The static keyword in Java is used for memory management mainly. We can apply java
static keyword with variables, methods, blocks and nested class. The static keyword
belongs to the class than an instance of the class.

The static can be:

Variable (also known as a class variable)
Method (also known as a class method)
Block
Nested class
Static in Java

3. .equals and == equals Explain?

Difference between == and .equals() method in Java
In general both equals() and “==” operator in Java are used to compare objects to
check equality but here are some of the differences between the two:

Main difference between .equals() method and == operator is that one is method and
other is operator.
We can use == operators for reference comparison (address comparison) and .equals()
method for content comparison. In simple words, == checks if both objects point to
the same memory location whereas .equals() evaluates to the comparison of values in
the objects.
If a class does not override the equals method, then by default it uses equals
(Object o) method of the closest parent class that has overridden this method. See
this for detail
Coding Example:
filter_none
edit
play_arrow

brightness_4
// Java program to understand
// the concept of == operator
public class Test {
public static void main(String[] args)
{
String s1 = new String(“HELLO”);
String s2 = new String(“HELLO”);
System.out.println(s1 == s2);
System.out.println(s1.equals(s2));
}
}
Output:

false
true

4.Jdbc connection?

Java Database Connectivity with MySQL
To connect Java application with the MySQL database, we need to follow 5 following
steps.

In this example we are using MySql as the database. So we need to know following
informations for the mysql database:

Driver class: The driver class for the mysql database is com.mysql.jdbc.Driver.
Connection URL: The connection URL for the mysql database is
jdbc:mysql://localhost:3306/sonoo where jdbc is the API, mysql is the database,
localhost is the server name on which mysql is running, we may also use IP address,
3306 is the port number and sonoo is the database name. We may use any database, in
such case, we need to replace the sonoo with our database name.
Username: The default username for the mysql database is root.
Password: It is the password given by the user at the time of installing the mysql
database. In this example, we are going to use root as the password.

5.Primary key, unique key, foreign key,

Primary Key
Primary key cannot have a NULL value.
Each table can have only one primary key.
By default, Primary key is clustered index, and the data in database table is
physically organized in the sequence of clustered index.
Primary key can be related to another tables as a Foreign Key.
We can generate ID automatically with the help of Auto Increment field. Primary key
supports Auto Increment value.
We can define Primary key constraint on temporary table and table variable.
We can’t delete primary key value from the parent table which is used as a foreign
key in child table. To delete we first need to delete that primary key value from
the child table.

Unique Key
Unique Constraint may have a NULL value.
Each table can have more than one Unique Constraint.
By default, Unique key is a unique non-clustered index.
Unique Constraint can not be related with another table’s as a Foreign Key.

Foreign Key
Foreign key is a field in the table that is Primary key in another table.
Foreign key can accept multiple null value.
Foreign key do not automatically create an index, clustered or non-clustered. You
can manually create an index on foreign key.
We can have more than one foreign key in a table.
Foreign keys do not automatically create an index, clustered or non-clustered. You
must manually create an index on foreign keys.
Having a null foreign key is usually a bad idea instead of NULL referred to as
“orphan record”.
We can’t define foreign key constraint on temporary table or table variable.
We can delete the foreign key value from the child table even though that refers to
the primary key of the parent table.

6.Collection 

Collections in Java
Java Collection Framework
Hierarchy of Collection Framework
Collection interface
Iterator interface
The Collection in Java is a framework that provides an architecture to store and
manipulate the group of objects.

Java Collections can achieve all the operations that you perform on a data such as
searching, sorting, insertion, manipulation, and deletion.

Java Collection means a single unit of objects. Java Collection framework provides
many interfaces (Set, List, Queue, Deque) and classes (ArrayList, Vector,
LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet).

7.Write a Java Program for 
1.words count, first and last to find vowels or not

Program to count vowels, consonants, digits and spaces
public class Count {

public static void main(String[] args) {
String line = “This website is aw3som3.”;
int vowels = 0, consonants = 0, digits = 0, spaces = 0;

line = line.toLowerCase();
for(int i = 0; i < line.length(); ++i)
{
char ch = line.charAt(i);
if(ch == ‘a’ || ch == ‘e’ || ch == ‘i’
|| ch == ‘o’ || ch == ‘u’) {
++vowels;
}
else if((ch >= ‘a’&& ch <= ‘z’)) {
++consonants;
}
else if( ch >= ‘0’ && ch <= ‘9’)
{
++digits;
}
else if (ch ==’ ‘)
{
++spaces;
}
}

System.out.println(“Vowels: ” + vowels);
System.out.println(“Consonants: ” + consonants);
System.out.println(“Digits: ” + digits);
System.out.println(“White spaces: ” + spaces);
}
}
When you run the program, the output will be:

Vowels: 6
Consonants: 11
Digits: 3
White spaces: 3

2.duplicate not allowed but insertion order must be preserved.

Most of the Java Collections can be extended for tweaking.

Subclass LinkedHashSet, overriding the add method.

class TweakedHashSet<T> extends LinkedHashSet<T> {

@Override
public boolean add(T e) {
// Get rid of old one.
boolean wasThere = remove(e);
// Add it.
super.add(e);
// Contract is “true if this set did not already contain the specified
element”
return !wasThere;
}

}

REFERENCES :

https://www.javatpoint.com/final-keyword
https://www.javatpoint.com/static-keyword-in-java
https://www.geeksforgeeks.org/difference-equals-method-java/
https://www.javatpoint.com/example-to-connect-to-the-mysql-database
https://www.c-sharpcorner.com/blogs/difference-between-primary-key-unique-key-and-
foreign-key1
https://www.javatpoint.com/collections-in-java
https://www.programiz.com/java-programming/examples/vowel-consonant-count-string
https://stackoverflow.com/questions/36399845/linkedhashset-insertion-order-and-
duplicates-keep-newest-on-top

The post MVI Technology Fresher Interview Questions with Answers appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

Interview Aptitude Questions – Series with Answers

$
0
0

Interview Aptitude Questions – Series with Answers 

This blog explains about Interview Aptitude Questions – Series with Answers and is given below : 

1)Which number does not belong to this series 1,1,2,3,4,5,8,13,21?

Answer : Option A
Explanation :
It is 4 and is based on adding the adjacent number in the series.

1+1=2

1+2=3

2+3=5, there you go

3+5=8

5+8= 13

8+13=21 and so on

2) What will be the next number 5,10,19,32,49,70 ….?

Answer : Option D
Explanation :

The next number will be 95.
10-5 = 5

19-10 = 9

32-19=13

49-32= 17

70-49=21

?- 70= 25

3. In a certain code language if the word ‘MUSEUM’ is coded as ‘LSPAPG’, then how
will the word ‘PALACE’ be coded in that language?

a. OYIWXY

b. OYIXYW

c. IYXYWO

d. YXWYOI

Answer : Option A
Explanation :
Word: M U S E U M
Logic: -1 -2 -3 -4 -5 -6
Code: L S P A P G
Similarly, the code for PALACE is

Word: P A L A C E
Logic: -1 -2 -3 -4 -5 -6
Code: O Y I W X Y

4. If DELHI is coded as 73541 and CALCUTTA as 82589662, how can CALICUT be coded?

a. 5279431

b. 5978213

c. 8251896

d. 8543691

Answer : Option C
Explanation:
The alphabets are coded as follows:

D E L H I C A U T

7 3 5 4 1 8 2 9 6

So, in CALICUT, C is coded as 8, A as 2, L as 5, U as 9 and T as 6. Thus, the code
for CALICUT is 8251896.

5.In a certain code language, if the value of CONTRACT = 56 and ‘GROWTH’ = 30, then
what is the value of DISTRIBUTION?

a. 130

b. 132

c. 140

d. 142

Answer : Option B
Explanation :

Number of letters in the word CONTRACT = 8 and 8 x 7 = 56.

Number of letters in the word GROWTH = 6 and 6 x 5 = 30.

Similarly, DISTRIBUTION => 12 and 12 x 11 = 132.

6. In a certain code language, if the value of ‘BLOCK’ = 13 and ‘CURTAIN’ = 27,
then what is the value of the word ‘SCIENCE’?

a. 32

b. 36

c. 38

d. 34

Answer : Option C
Explanation :

In this product of the digits in the place-values of the letters as
per the alphabet is obtained first and then added i.e, BLOCK

=> B = 2

L = 12 => 1 x 2 = 2

O = 15 => 1 x 5 = 5

C = 3

K = 11 => 1 x 1 = 1

Now (2 + 2 + 5 + 3 + 1) = 13.

So, BLOCK = 13.

Similarly, SCIENCE = 38.

7. 1.5, 3, 5.5, 9, 13.5, 19, …

a. 81

b. 15.5

c. 21.5

d. 25.5

Answer : Option D
Explanation :
The pattern is get by adding 1.5, 2.5, 3.5 …..

Then, 19+6.5 = 25.5

8. Which term of the series 5,8,11,14,…….is 320?

a. 104th

b. 105th

c. 106th

d. 64th

Answer : Option C
Explanation :
Clearly, 5+3= 8, 8+3= 11, 11+3= 14,….

So this is an A.P series in which a=5, d=3.

Let the number of the terms be n

Then, 320= 5+(n-1)*3; 3n=318; n=106

9. In the series 5, 10, 20, 40,….what will be the 10th term?

a. 1280

b. 2560

c. 1820

d. 2650

Answer : Option D
Explanation :

This is an G.P series in which a= 5; r= 2

10th term= ar(n-1) = 5*2 (10-1) = 5*2 9 = 2560

10. In a certain code language, if the value of 14 x 15 = 25 and 26 x 42 = 64, then
what is the value of 73 x 31 = ?

a. 100

b. 110

c. 90

d. 120

Answer : Option A
Explanation :

14 x 15 = 14 + 15 = 29 and 29 – 4 = 25.

26 x 42 = 26 + 42 = 68 and 68 – 4 = 64.

Similarly, 73 x 31 = (73 + 31) – 4 = 104 – 4 = 100.

The post Interview Aptitude Questions – Series with Answers appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

Tips on improving your English speaking skills

$
0
0

        Tips on improving your English speaking skills

You want to learn how to speak English fluently, but do not know where to start? Don’t worry, this post will help you to speak English fluently:

Just follow the tips below on ‘Tips on improving your English speaking skills’

1. Start with believing in yourself.

Believe in yourself, and the rest will fall into place. Have faith in your own abilities, work hard and there is nothing you cannot accomplish.” – Brad Henry.

It is a very well-known fact that if anyone wants to do succeed in life, they must believe in themselves. We have to believe in ourselves and in our abilities because our inner faith will create our external results.pt 1

2. Listen. Speak. Read. Write. Repeat.

Listen a little. Speak a little. Read a little. Write a little. Then, listen a little more. Speak a little more. Read a little more. Write a little more. Do this, till it becomes a habit. The more you hear, the easier it will be for you to use new key expressions and words in an English conversation.pt 2

3. Keep your ears open.

English is everywhere. It’s in online videos, news channels, on radio. So listen and build your vocabulary. When most students listen to a native English-speaker, they focus on understanding what all the words mean. This is definitely important, but there is a lot more you can learn from listening. Try listening not just to what the words mean, but to how the person says them.

Notice which words the person links together in a sentence, or when they say “ya” instead of “you.” Try to remember these details the next time you speak and your English will begin to sound more natural.pt 3

4. Find the answer in the question.

Listen carefully when someone asks you a question in English and you’ll answer perfectly every time. If someone asks you a question and you’re not sure how to answer, start by thinking about the words used in the question. The person has already said most of the words you need to make your answer.PT 4

5. Make the mirror your best friend.

The most important relationship you’ll ever have is the one you have with yourself.
When you know and love who you see in the mirror, you find the answers and acceptance you’ve been seeking in others. When you learn to cultivate a healthy relationship with yourself, you also pursue healthier relationships with those around you.

When you become your own best friend, you become a more fulfilled you.
Speak to yourself in English, and it will make you feel confident about the way you are speaking.pt 5

6. Surround yourself in English.

You’ve probably heard others say this before, right?
Listen to things in English. Read things in English. Watch things in English. And there’s a good reason why so many people recommend this:
Because it works. Doing things in English will help you reach fluency faster. pt 6

6. Read full sentences.

Sentences are everywhere.
That’s right.
I don’t know if you’ve noticed lately, but they’re all around you!

You learnt Hindi, Tamil or Telugu in full sentences. Then why should learning English be any different. Read full sentences, speak in sentences.pt 7

7. Keep calm and do not worry about grammar.

Remember, even those who speak English fluently make grammatical mistakes. But, what they do right, is communicate without worrying about them. The key to learning a language is finding a balance between studying and practicing. Fluent English speaking isn’t the same as knowing perfect English grammar—even native English speakers make grammar mistakes! Fluency is about being able to communicate. Don’t be afraid to make mistakes–your goal is to deliver a message, not perfect grammar and vocabulary.pt8

8. Learn a word a day.

Keep your fear of new English words away. Starting each day with a fresh word can be intellectually nourishing—and more enjoyable than a bowl of All-Bran.
Here are some word sites: all are free and available through e-mail subscriptions.
• A.Word.A.Day
• Oxford English Dictionary Word of the Day
• Merriam-Webster’s Word of the Day
• Dictionary.com Word of the Day
• The Learning Network (The New York Times)
• The Quotations Page Word of the Day
And moreover use the word before it leaves you. Use the new word immediately to feel confident about it’s usage.pt 9

10. Practice. Practice. Practice. Till it makes you perfect.

There are no shortcuts in life. Definitely, no shortcuts to learn English. Only practice makes perfect–constantly look for opportunities to do so.pt 10

And finally always ‘Be proud and happy’ when people understand what you’re saying and when you’re able to carry on a perfect conversation.

Now you know how simple it is to master spoken English! With this guide on how to speak English, all you need is to start practicing regularly and you’ll learn English fluently in no time.

REFERENCES:

https://www.busuu.com/en/a/o/speak-english-fluently

https://www.tofluency.com/tips-fluent-english/

https://www.rin.in/tips/tip/how-to-speak-english-fluently-and-confidently–10-simple-tips/15

https://www.fluentu.com/blog/english/how-to-speak-english-well-fluently/

 

The post Tips on improving your English speaking skills appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

Finatel Interview Questions with Answers – Part 1

$
0
0

Finatel Interview Questions with Answers – Part 1 

This blog explains about Finatel Interview Questions with Answers – Part 1  and is given below :

Software Testing —Written Test— Level I Answer all the questions

 

1. Choose the correct defect life cycle

a. New,Open,Retest,Fix,Reopen

b.New,Open,Fix,Retest,Closed

c. New,Fix,Reopen,Closed,Retest

d. New,Retest,Fix,Reopen,Closed

 

Answer : Option B

 

2. Which statement is true in the following?

A.Severity describes what is the bug which needs to be fixed at the earliest and Priority describes the seriousness of the bug

B.Severity describes the seriousness of the bug and Priority describes what is the bug which needs to be fixed at the earliest.

C.Severity mentioned by developers

D. Priority mentioned by end users.

 

Answer : Option A

 

3.What is defect density?

A.Test cases count / defects count

B.Defects found by tester / defects found by customer

C.Total Defects Found / test scenarios

D. Total Defects Found / test cases

 

Answer : Option C

 

4. Which one of the following is NOT part of security testing scope?

A. XSS Testing

B. SQL Injection

C. Boundary Value Analysis

D. Click Jacking

E. None of the Above

 

Answer : Option B

 

5. Which of the following is not a layer of web application architecture?

A. Web page

B. Database

C. Web Server

D. Internet

E. None of the Above

Answer : Option E

 

6. Specify any 5 field validation checks that can be applied to verify a “Password” entry field

A. K- fold cross validation

B. configuration of K

C. Worked example

D. Cross validation API

E. Various of cross validation

 

7. Mr. Rahul __________ in the library this morning.

A. is study

B. studying

C. is studying

D. are studying

 

Answer : Option C

 

8. In recent years Cloud Computing has____ quite popular.

A. became

B. become

C. becoming

D. becomes

E. becomed

 

Answer : Option B

 

9. The bus ___ arrives late during bad weather.

A. every week

B. later

C. yesterday

D. always

 

Answer : Option D

 

10. Analyse the below pattern first

asp 1

Now, choose a pattern from the below list that completes the sequence.

Answer : Option C

 

11. write down a list of items that must be included while reporting a defect to development team

Detect to Development :

Details and complete the software detest report essential skills for Quality assurance developers and support personal . All software development team members need to take their defect report seriously providing through research and details reporting make the development job easier and more productive.

12. Which of the below items do you think is NOT part of a system testing engineer’s rolejakonerel from below list)

A. Reporting a bug

B. Analyzing the cause of a bug

C. Test Case Writing

D. Test Case Execution

E. Black-box Testing

F. Unit Testing

 

Answer : Option E

13. If you were running a race and you passed the person in 2nd place, what place would you be Write Your Answer Here

Answer : I would be in the second  place .

 

14. write a short paragraph of at least 300 words about “Importance of Software Testing “

Importance of Software Testing :

Software Testing and  White Box Testing . Software Testing one of main and final steps in the software  development life cycle testing . It is important to ensure that system works at was intended software testing method assuming that the functionality of the software testing .

The manager of the development at the team responsible for the testing . Software system has been decide to how  when the software testing should be performed in order to allocate the time and resource need to testing process that must be planned the development.

 Software Testing comprises  i) Functionality Testing and ii) Non Functionality Testing   

15. Design the test case template below and fill it with at-least 1test case of your choice

Test Scenario :

Test Case 1 :

Check the result on entering the valid user Id password

Test Case 2 :

Check the result on entering User Id of password

Test Case 3 :

Check the response when a User Id of password empty of logging button pressed and many more

Test case Test case Description Test Data
1 Check the response when Valid email Id Password Email

Guru99@gmail.com

Password

INT@123

 

 

 

Test case Test case Description Test steps Test Dat
1 Check the response when Valid email Id Password Enter Email address

Enter password

Click sign in

Email

Guru99@gmail.com

Password

INT@123

The post Finatel Interview Questions with Answers – Part 1 appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

Aspire Systems Interview Questions with Answers – Part 1

$
0
0

Aspire Systems Interview Questions with Answers – Part 1 

This blog explains about Aspire Systems Interview Questions with Answers – Part 1 and is given below : 

ASPIRE SYSTEMS – Written Test Part A – APTITUDE QUESTIONS

1. Which number replaces the question marks ?

734619
110907
524232
995001
678297
1548??

Answer : 8,1
Explanation : Reading each row as 3 separate 2-digit numbers, the central number equals the average of the left and right hand numbers.

 

2. Which letter replaces the question mark?

as 5

A. Y        B. X       C. Z      D. A 

Answer : Option A

Correct Answer : Y

Here, start with the top point of each star, and move clockwise around the other points. Letters advance through the alphabet in steps of 5 for the left hand star, 6 for the central star, and 7 for the right hand star.

3. Fact 1. Mary said, “Ann and I both have cats

 Fact 2: Ann said, “I don’t have a cat”

Fact 3: Mary always tells the truth, but Ann sometimes lies

If the following three statements are facts , which of the following statements must also be a fact?

I: Ann has a cat

II: Mary has a cat

III : Ann is lying

  1. I only
  2. II only
  3. I and II only
  4. All the statements are facts.

Answer : Option D

Explanation :

If Mary always tells the truth, then both Ann and Mary have cats (statements I and II), and Ann is lying (statement III). So all the statements are facts.

 

4. Out of. 7 consonants and 4 vowels, how many words of 3 consonants and 2 vowels can be formed?

A. 210 B. 1050 C. 25200 D. 21400

Answer : Option C

Explanation :

Number of ways of selecting (3 consonants out of 7) and (2 vowels out of 4)

= (7C3 x 4C2)
 
=   7 x 6 x 5 x 4 x 3  
3 x 2 x 1 2 x 1
  = 210.

Number of groups, each having 3 consonants and 2 vowels = 210.

Each group contains 5 letters.

Number of ways of arranging 
5 letters among themselves
= 5!
  = 5 x 4 x 3 x 2 x 1
  = 120.

 Required number of ways = (210 x 120) = 25200.

5. If log x (9/16) = -1/2 , then x is equal to:

A -3/4 

B. 3/4

C.81/256

D.256/81

Answer : Option B

Explanation :

Log x(9/16) = -1/2

Log x (9/16 ) = log (3/4) = x logx(-1/2)

Hence the value of X = 3/4

6. In a race of 200 m, A can beat B by 31 m and C by 18 m. In a race of 350 m, C will boat B by:

A. 22. 75 m

B .25 m

 C 19. 5 m

D. 7(4/7) m

Answer : Option B

Explanation :

A : B = 200 : 169.

A : C = 200 : 182.

C =   C x A   =   182 x 200   = 182 : 169.
B A B 200 169

When C covers 182 m, B covers 169 m.

When C covers 350 m, B covers   169 x 350 m = 325 m.
182

Therefore, C beats B by (350 – 325) m = 25 m.

 

7. A car owner buys petrol at Rs.7.50, Rs. 8 and Rs. 8.50 per litre for three successive years. What approximately is  the average  cost per litre of petrol  if he spends Rs . 4000 each  year?

A. Rs. 7.98        B. 8.50       C.Rs. 8         D. Rs. 9

Answer : Option A

Explanation :

Total quantity of petrol
consumed in 3 years
=   4000 + 4000 + 4000    litres
7.50 8 8.50
 
= 4000   2 + 1 + 2    litres
15 8 17
 
=   76700    litres
51

Total amount spent = Rs. (3 x 4000) = Rs. 12000.

 Average cost = Rs.   12000 x 51   = Rs. 6120   = Rs. 7.98
76700 767

 

8. Reena took a loan of Rs 1200 with simple interest for as many years as the rate of Interest . If she paid Re. 432 as interest  at the end of the loan period , what was the rate of Interest?

A. 3.6

B. 6

C. 6.3

D. 3.3

Answer : Option B

Explanation :

Let rate = R% and time = R years.

Then,   1200 x R x R   = 432
100

 12R2 = 432

 R2 = 36

 R = 6.

 

9. X can do a piece of work at 40 days. He works at it for 8 days and then Y finished it in 16 days. How long will they work together to complete the work? A. 13 1/3 days B. 15 days C. 25 days D. 26 days

Answer : Option A

Explanation :

Work done by X in 8 days =   1 x 8   = 1 .
40 5

 

Remaining work =   1 – 1   = 4 .
5 5

 

Now, 4 work is done by Y in 16 days.
5

 

Whole work will be done by Y in   16 x 5   = 20 days.
4

 

 X’s 1 day’s work = 1 , Y’s 1 day’s work = 1 .
40 20

 

(X + Y)’s 1 day’s work =   1 + 1   = 3 .
40 20 40

 

Hence, X and Y will together complete the work in   40   = 13 1 days.
3 3

 

10. The salaries A, B, C are in the ratio 2 : 3 : 5 If the increments of 15 %,10% and 20% are allowed respectively in their salaries, then  what will be new ratio of their salaries?

A. 3: 3 : 10

B. 10 : 11 : 20

C. 23 : 33 : 60

D. Can’t be determined

Answer : option C

Explanation :

Let A = 2k, B = 3k and C = 5k.

A’s new salary = 115 of 2k =   115 x 2k   = 23k
100 100 10

 

B’s new salary = 110 of 3k =   110 x 3k   = 33k
100 100 10

 

C’s new salary = 120 of 5k =   120 x 5k   = 6k
100 100

 

 New ratio   23k : 33k : 6k   = 23 : 33 : 60
10 10

 

11. INDIGENT : WEALTHY , Select the similar one

A. angry : rich

B. native : Affluent

C. gauche : graceful

D. Scholarly : erudite

Answer : option C

Correct Answer : Y

Here, start with the top point of each star, and move clockwise around the other points. Letters advance through the alphabet in steps of 5 for the left hand star, 6 for the central star, and 7 for the right hand star.

12. DEF , DEF2 , DE2F2 , ____ , D2E2F3

A. DEF2

B. D2EF2

C. D2E2F

D. D2E2F2

Answer : Option D

Explanation :

In this series, the letters remain the same: DEF.

The subscript numbers follow this series:

111, 112, 122, 222, 223, 233, 333, … 

13. On what dates of April , 2001 did Wednesday fall ?

A. 1, 8 , 15 , 22, 29

B. 2 , 9 ,16 , 23, 30

C. 3, 10 , 17 , 24

D. 4 , 11 , 18 , 25

Answer : Option D

Explanation :

We shall find the day on 1st April, 2001.

1st April, 2001 = (2000 years + Period from 1.1.2001 to 1.4.2001)

Odd days in 1600 years = 0

Odd days in 400 years = 0

Jan. Feb. March April
(31 + 28 + 31 + 1)     = 91 days  0 odd days.

Total number of odd days = (0 + 0 + 0) = 0

On 1st April, 2001 it was Sunday.

In April, 2001 Wednesday falls on 4th, 11th, 18th and 25th.

14. The interest on Rs. 750 for 2 years is the same as the true discount of Rs. 960 due 2 years hence. If the rate of interest is the same in both cases , it is

A. 12 % B. 15 % C. 14 % D. 16 (2/3) %

Answer : Option C

Explanation :

S.I. on Rs. 750 = T.D. on Rs. 960.

This means P.W. of Rs. 960 due 2 years hence is Rs. 750.

 T.D. = Rs. (960 – 750) = Rs. 210.

Thus, S.I. on R.s 750 for 2 years is Rs. 210.

 Rate =   100 x 210 % = 14%
750 x 2

The post Aspire Systems Interview Questions with Answers – Part 1 appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

Aspire Systems Interview Questions with Answers – Part 2

$
0
0

Aspire Systems Interview Questions with Answers – Part 2 

This blog explains about Aspire Systems Interview Questions with Answers – Part 2 and is given below : 

1. Three partners shared the profit in a business In the ratio 5 :7 : 8. They had partnered for 14 months, 8 months and 7 months respectively. What was the ratio of their Investments?

A. 5: 7: 8          B. 20: 49 :64              C. 38 : 28: 27           D. None of these

Answer : Option B

Explanation :

Let their investments be Rs. x for 14 months, Rs. y for 8 months and Rs. z for 7 months respectively.

Then, 14x : 8y : 7z = 5 : 7 : 8.

Now, 14x = 5        98x = 40y        y = 49 x
8y 7 20
And, 14x = 5        112x = 35z        z = 112 x = 16 x.
7z 8 35 5

 

 x : y : z = x : 49 x : 16 x = 20 : 49 : 64.
20 5

 

2. 36, 54, 18, 27, 9, 18.5. 4.5 (Pick the wrong number)

A.4.5

B. 18. 5

C. 54

D. 18

Answer : Option B

Explanation :

The terms are alternatively multiplied by 1.5 and divided by 3. However, 18.5 does not satisfy it.

 

3. Two ships are sailing in the sea on the two sides of a lighthouse. The angle of the top of the lighthouse Is observed from the ships are 30’ and 45′ respectively. If the lighthouse is 100 high, the distance between the two ships is:

A.173 m        B. 200 m          C. 273 m         D. 300 m                 

Answer: Option B

Explanation:

Let AB be the lighthouse and C and D be the positions of the ships.

AB = 100m,

∠ACB=30∘,

∠ADB=45∘

AB/AC=tan 30’ = 1/ 3

=>AC=AB∗√3

         =100√3m

AB/AD = tan 45’ =>AB=AD=100m

CD = AC+AD = (100√3 + 100)

                       =100(√3+1)=100∗2.7330m

                          = 273 m

4. The least perfect square, which is divisible by each of 21, 36 and 66 is:

A. 213444     B. 214344          C. 214434        D.231444

Answer : Option A

Explanation :

L.C.M. of 21, 36, 66 = 2772

Now, 2772 = 2 x 2 x 3 x 3 x 7 x 11

To make it a perfect square, it must be multiplied by 7 x 11.

So, required number = 2 x 2 x 3 x 3 x 7 x 7 x 11 x 11 = 213444

5. A watch which gains uniformly is 2 minutes low at noon on Monday and is 4 min 48 sec fast at 2 p.m. on the following Monday. When was it correct?

A. 2 p m. on Tuesday B. 2 p m. on Wednesday C. 3 p m on Thursday D 1 pm on Friday

Answer : Option B

Explanation : 

Time from 12 p.m. on Monday to 2 p.m. on the following Monday = 7 days 2 hours = 170 hours.

 The watch gains   2 + 4 4 min. or 34 min. in 170 hrs.
5 5
Now, 34 min. are gained in 170 hrs.
5

 

 2 min. are gained in   170 x 5 x 2 hrs = 50 hrs.
34

 Watch is correct 2 days 2 hrs. after 12 p.m. on Monday i.e., it will be correct at 2 p.m. on Wednesday.

 

6. The banker’s gain on a certain sum due 1(1/2) years hence is 3/25 of the banker’s discount. The rate % is

A. 5(1/5) % B. 9 (1/11) % C. 8 (1/8 )% D. 6 (1/6) %

Answer : Option B

Explanation :

Let, B.D = Re. 1.

Then, B.G. = Re. 3 .
25
 T.D. = (B.D. – B.G.) = Re.   1 – 3   = Re. 22 .
25 25

 

Sum =   1 x (22/25)   = Rs. 22 .
1-(22/25) 3

 

S.I. on Rs. 22 for 1 1 years is Re. 1.
3 2

 

 Rate =   100 x 1 %
= 100 = 9 1 %.
11 11
22 x 3
3 2

 

7. His behaviour is so unpredictable that he

A. never depends upon others for getting the work done

B. is seldom trusted by others

C. always insists on getting the work completed on time

D. seldom trusts others as far as the work schedule is concerned

Answer : Option B

Explanation :

No answer description available for this question

 

8. What is the name of the new malware which take over electronic devices and make them as “bots” ?

A. Ransomware B , combo Jack Malware C. Saposhi D. Xafecopy Trojan

Answer : Option C

Explanation :

The cybersecurity agencies have detected a new malware called Saposhi, which is capable of taking over electronic devices and turning them into ‘bots’, which can be then used for any purpose

9. Three taps A , B and C can fill a tank in 12, 15 and 20 hours respectively. If A is open all the time and B and C are open for one hour each alternatively , the tank will be full in :

A. 6 hours B . 6(2/3) hours C. 7 hours D. 7 (1/2 ) hours

Answer : Option C

Explanation :

(A + B)’s 1 hour’s work =   1 + 1   = 9 = 3 .
12 15 60 20
(A + C)’s hour’s work =   1 + 1   = 8 = 2 .
12 20 60 15

 

Part filled in 2 hrs =   3 + 2   = 17 .
20 15 60

 

Part filled in 6 hrs =   3 x 17   = 17 .
60 20

 

Remaining part =   1 – 17   = 3 .
20 20

 

Now, it is the turn of A and B and 3 part is filled by A and B in 1 hour.
20

 Total time taken to fill the tank = (6 + 1) hrs = 7 hrs.

 

10. A man completes 5/8 a job in 10 days. At this rate , how many more days will it take him to finish the job ?

A. 5 B. 6 C. 7 D. 7 (1/2)

Answer : Option B 

Explanation :

Work done = 5
8

 

Balance work =   1 – 5   = 3
8 8

Let the required number of days be x.

Then, 5 : 3 = :: 10 : x 5 x = 3 x 10
8 8 8 8

 

 x =   3 x 10 x 8  
8 5

 x = 6.

 

PART B TECHNICAL QUESTIONS. 

1. What will be the output for the below program?

main()

(char far “p1, ‘p2;

 printf(“%d %d”,  sizeof(s1), sizeof(s2));

}

A. 2, 2     B. 4, 4       C. 2, 4        D. None of these

Answer : Option D

2. What will be the output for the below program?

main()

(extern int i;

 i = 20;

printf(“%d”, sizeof(i));

}

A.2  B. 20 C. 4 D. Error undefined 

Answer : Option C

3. What will be the output of the below program ?

Main

{int i =1 ;

For(;;)

{printf(“%d”,i++);

If(i>100)

Break ;

}}

A. Condition is must in for loop

B. Prints 1 – 100

C. Prints 1 – 99

D. Compilation error

Answer : Option D

4. What will be the output of the below program ?

 Main ()

{

int i = 2

printf(“/n%d  , %d”, ++i, ++i); }

A. 3

B. 4

C.3

D. 4

Answer : Option D

5. What will be the output of the below program ?

Main()

{

Float  ( a = 0.9 );

If (a<0.9)

Printf(“ Less”)

Else

Printf(“ greater “);

}

A. Less B. Greater C. Error D. None of the above

Answer : Option D

6. How many times the program would print “C” ?

Main ()

(printf(“in C”);

Main ();)

A. Infinite number of times

B. 22767 times

C. 66825 times

D. Till the stack T overflow

Answer : Option B

7. What will be the output of the below ?

#define SQL(X)(X’X)

Main()

{

Int a , b = 3 ;

a = SQL(b+2)

printf(“/n%d,a);

A. 25    B. 11    C. Error    D. Garbage Value

Answer : Option D

 

8. Which of the following can not be checked in a switch case statement ?

A. Character

B. Integer

C. Float

D. Enum

Answer : Option C

9. What does the following declaration signify

Int ‘ptr[30];

A. Ptr is a pointer to an array of 30 integer pointers

B. Ptr is a array of 30 pointers to integers

C. Ptr is a array of 30 interger pointers

D. Ptr is a array of 30 pointers

Answer : Option D

 

10 . What will you do to treat the constant 3.14 as a float ?

A. Use float (3.14f)

B. Use 3.14f

C. Use f(3.14)

D. Use(f)(3.14)

Answer : Option B

References : Aspire Systems Interview Questions with Answers – Part 1 and 2

https://payilagam.com/blogs/aspire-systems-interview-questions-with-answers-part-1/

https://payilagam.com/blogs/aspire-systems-interview-questions-with-answers-part-2/

 

 

The post Aspire Systems Interview Questions with Answers – Part 2 appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

Minuscule Technologies Pvt . Ltd . Fresher Interview Questions

$
0
0

Minuscule Technologies Pvt . Ltd . Fresher Interview Questions 

This blog explains about Minuscule Technologies Pvt . Ltd . Fresher Interview Questions and is given below :

 

1.Write a program to find second largest number in an array, without sorting.

// JAVA Code for Find Second largest

// element in an array

class GFG {

 

    /* Function to print the second largest

    elements */

    public static void print2largest(int arr[], 

                                     int arr_size)

    {

        int i, first, second;

 

        /* There should be atleast two elements */

        if (arr_size < 2)

        {

            System.out.print(” Invalid Input “);

            return;

        }

 

        first = second = Integer.MIN_VALUE;

        for (i = 0; i < arr_size ; i++)

        {

            /* If current element is smaller than 

            first then update both first and second */

            if (arr[i] > first)

            {

                second = first;

                first = arr[i];

            }

 

            /* If arr[i] is in between first and 

               second then update second  */

            else if (arr[i] > second && arr[i] != first)

                second = arr[i];

        }

 

        if (second == Integer.MIN_VALUE)

             System.out.print(“There is no second largest”+

                                 ” element\n”);

        else

             System.out.print(“The second largest element”+

                                      ” is “+ second);

    }

 

    /* Driver program to test above function */

    public static void main(String[] args) 

    {

            int arr[] = {12, 35, 1, 10, 34, 1};

            int n = arr.length;

            print2largest(arr, n);

    }

}

Output:

The second largest element is 34

 

2. Write program to find number of line, word and characters available in a paragraph/file.

// Java program to count the 

// number of charaters in a file

import java.io.*;

 

public class Test

{

    public static void main(String[] args) throws IOException

    {

        File file = new File(“C:\\Users\\Mayank\\Desktop\\1.txt”);

        FileInputStream fileStream = new FileInputStream(file);

        InputStreamReader input = new InputStreamReader(fileStream);

        BufferedReader reader = new BufferedReader(input);

 

        String line;

 

        // Initializing counters

        int countWord = 0;

        int sentenceCount = 0;

        int characterCount = 0;

        int paragraphCount = 1;

        int whitespaceCount = 0;

 

        // Reading line by line from the 

        // file until a null is returned

        while((line = reader.readLine()) != null)

        {

            if(line.equals(“”))

            {

                paragraphCount++;

            }

            if(!(line.equals(“”)))

            {

 

                characterCount += line.length();

 

                // \\s+ is the space delimiter in java

                String[] wordList = line.split(“\\s+”);

 

                countWord += wordList.length;

                whitespaceCount += countWord -1;

 

                // [!?.:]+ is the sentence delimiter in java

                String[] sentenceList = line.split(“[!?.:]+”);

 

                sentenceCount += sentenceList.length;

            }

        }

 

        System.out.println(“Total word count = ” + countWord);

        System.out.println(“Total number of sentences = ” + sentenceCount);

        System.out.println(“Total number of characters = ” + characterCount);

        System.out.println(“Number of paragraphs = ” + paragraphCount);

        System.out.println(“Total number of whitespaces = ” + whitespaceCount);

    }

}

Output:

Total word count = 5

Total number of sentences = 3

Total number of characters = 21

Number of paragraphs = 2

Total number of whitespaces = 7

3. Program to find summation of integer number (for e.g, input = 8973 8+9+7+3 = 27 = 2+7 = 9 output should be  9)

// Java Program to find sum of series

import java.io.*;

 

class GFG {

 

    // Function to return sum of

    // 1/1 + 1/2 + 1/3 + ..+ 1/n

    static double sum(int n)

    {

      double i, s = 0.0;

      for (i = 1; i <= n; i++)

          s = s + 1/i;

      return s;

    }

 

 

    // Driven Program

    public static void main(String args[])

    {

        int n = 5;

        System.out.printf(“Sum is %f”, sum(n));

 

    }

}

 

// This code is contributed by Nikita Tiwari.

Output:

2.283333

Type 2

#include<stdio.h>

int main(){

  int num,sum=0,r;

  printf(“Enter a number: “);

  scanf(“%d”,&num);

  while(num){

      r=num%10;

      num=num/10;

      sum=sum+r;

  }

  printf(“Sum of digits of number:  %d”,sum);

  return 0;

}

Sample output:

Enter a number: 123

Sum of digits of number:  6

 

 

4. Print astriks in pyramid format, input should be number of rows

                    *

                  * * *

                * * * * *

              * * * * * * *

// Java code to demonstrate star pattern

public class GeeksForGeeks

{

    // Function to demonstrate printing pattern

    public static void printTriagle(int n)

    {

        // outer loop to handle number of rows

        //  n in this case

        for (int i=0; i<n; i++)

        {

 

            // inner loop to handle number spaces

            // values changing acc. to requirement

            for (int j=n-i; j>1; j–)

            {

                // printing spaces

                System.out.print(” “);

            }

 

            //  inner loop to handle number of columns

            //  values changing acc. to outer loop

            for (int j=0; j<=i; j++ )

            {

                // printing stars

                System.out.print(“* “);

            }

 

            // ending line after each row

            System.out.println();

        }

    }

 

    // Driver Function

    public static void main(String args[])

    {

        int n = 5;

        printTriagle(n);

    }

}

Output:

    *

   * *

  * * *

 * * * *

* * * * *

 

 

5. Find a String is palindrome or not? (for eg “MALAYALAM” – Reverse of string also give same value)

// Java program to find if given 

// string is K-Palindrome or not

class GFG 

{

 

    // find if given string is

    // K-Palindrome or not

    static int isKPalDP(String str1, 

            String str2, int m, int n) 

    {

 

        // Create a table to store 

        // results of subproblems

        int dp[][] = new int[m + 1][n + 1];

 

        // Fill dp[][] in bottom up manner

        for (int i = 0; i <= m; i++) 

        {

            for (int j = 0; j <= n; j++) 

            {

 

                // If first string is empty,

                // only option is to remove all

                // characters of second string

                if (i == 0) 

                {

                    // Min. operations = j

                    dp[i][j] = j; 

                } 

 

                // If second string is empty, 

                // only option is to remove all

                // characters of first string

                else if (j == 0) 

                {

                    // Min. operations = i

                    dp[i][j] = i; 

                } 

 

                // If last characters are same, 

                // ignore last character and

                // recur for remaining string

                else if (str1.charAt(i – 1) ==

                        str2.charAt(j – 1)) 

                {

                    dp[i][j] = dp[i – 1][j – 1];

                } 

 

                // If last character are different,

                //  remove it and find minimum

                else 

                {

                    // Remove from str1

                    // Remove from str2

                    dp[i][j] = 1 + Math.min(dp[i – 1][j], 

                            dp[i][j – 1]); 

                }

            }

        }

        return dp[m][n];

    }

 

    // Returns true if str is k palindrome.

    static boolean isKPal(String str, int k)

    {

        String revStr = str;

        revStr = reverse(revStr);

        int len = str.length();

 

        return (isKPalDP(str, revStr,

                len, len) <= k * 2);

    }

 

    static String reverse(String str)

    {

        StringBuilder sb = new StringBuilder(str);

        sb.reverse();

        return sb.toString();

    }

 

    // Driver program

    public static void main(String[] args) 

    {

        String str = “acdcb”;

        int k = 2;

        if (isKPal(str, k)) 

        {

            System.out.println(“Yes”);

        } 

        else 

        {

            System.out.println(“No”);

        }

    }

}

 

// This code is contributed by

// PrinciRaj1992

Output :

Yes

 

6.How to find the first non repeated character of a given String

// Java program to find first non-repeating character

 

class GFG 

{

    static final int NO_OF_CHARS = 256;

    static char count[] = new char[NO_OF_CHARS];

 

    /* calculate count of characters 

       in the passed string */

     static void getCharCountArray(String str) 

     {

         for (int i = 0; i < str.length();  i++)

              count[str.charAt(i)]++;

     }

 

    /* The method returns index of first non-repeating

       character in a string. If all characters are repeating 

       then returns -1 */

    static int firstNonRepeating(String str)

    {

        getCharCountArray(str);

        int index = -1, i;

 

        for (i = 0; i < str.length();  i++)

        {

            if (count[str.charAt(i)] == 1)

            {

                index = i;

                break;

            }   

        }  

 

      return index;

    }

 

    // Driver method

    public static void main (String[] args)

    {

        String str = “geeksforgeeks”;

        int index =  firstNonRepeating(str);

 

        System.out.println(index == -1 ? “Either all characters are repeating or string ” +

                   “is empty” : “First non-repeating character is ” +  str.charAt(index));

    }

}

Output:

First non-repeating character is f

 

7. In an array 1-100 multiple numbers are duplicates, how do you find it.

class RepeatElement 

{

    void printRepeating(int arr[], int size) 

    {

        int i, j;

        System.out.println(“Repeated Elements are :”);

        for (i = 0; i < size; i++) 

        {

            for (j = i + 1; j < size; j++) 

            {

                if (arr[i] == arr[j]) 

                    System.out.print(arr[i] + ” “);

            }

        }

    }

 

    public static void main(String[] args) 

    {

        RepeatElement repeat = new RepeatElement();

        int arr[] = {4, 2, 4, 5, 2, 3, 1};

        int arr_size = arr.length;

        repeat.printRepeating(arr, arr_size);

    }

}

Output :

Repeating elements are 4 2

 

 

8.How do you count a number of vowels and consonants in a given string?

  1. publicclass CountVowelConsonant {  

  2. public static void main(String[] args) {  

  3. //Counter variable to store the count of vowels and consonant  
  4. int vCount = 0, cCount = 0;  
  5. //Declare a string  
  6. String str = “This is a really simple sentence”;  
  7. //Converting entire string to lower case to reduce the comparisons
  8. str = str.toLowerCase();  
  9. for(inti = 0; i < str.length(); i++) {  
  10. //Checks whether a character is a vowel
  11. if(str.charAt(i) == ‘a’|| str.charAt(i) == ‘e’ || str.charAt(i) == ‘i’ || str.charAt(i) == ‘o’ || str.charAt(i) == ‘u’) {  
  12. //Increments the vowel counter
  13. vCount++;  
  14. }  
  15. //Checks whether a character is a consonant
  16. elseif(str.charAt(i) >= ‘a’ && str.charAt(i)<=’z’) {    
  17. //Increments the consonant counter
  18. cCount++;  
  19. }  
  20. }  
  21. out.println(“Number of vowels: “+ vCount);  
  22. out.println(“Number of consonants: “+ cCount);  
  23. }  
  24. }  

Output:

Number of vowels: 10

Number of consonants: 17

 

 

9.Write a program to find fibbonaci and factorial using recurssion.Ra

 

/*

* C Program to print fibonacci series using recursion

*/

#include <stdio.h>

#include <conio.h>

 

int fibonacci(int term);

int main(){

    int terms, counter;

    printf(“Enter number of terms in Fibonacci series: “);

    scanf(“%d”, &terms);

    /*

     *  Nth term = (N-1)th therm + (N-2)th term;

     */

    printf(“Fibonacci series till %d terms\n”, terms);

    for(counter = 0; counter < terms; counter++){

        printf(“%d “, fibonacci(counter));

    }

    getch();

    return 0;

}

/*

 * Function to calculate Nth Fibonacci number

 * fibonacci(N) = fibonacci(N – 1) + fibonacci(N – 2);

 */

int fibonacci(int term){

    /* Exit condition of recursion*/

    if(term < 2)

       return term;

    return fibonacci(term – 1) + fibonacci(term – 2);

}

Program Output

Enter number of terms in Fibonacci series: 9

Fibonacci series till 9 terms

0 1 1 2 3 5 8 13 21

REFERENCES : 

https://www.geeksforgeeks.org/find-second-largest-element-array/

 

https://www.geeksforgeeks.org/counting-number-lines-words-characters-paragraphs-text-file-using-java/

 

https://www.cquestions.com/2010/06/write-c-program-to-find-out-sum-of.html

 

https://www.geeksforgeeks.org/programs-printing-pyramid-patterns-java/

 

https://www.geeksforgeeks.org/find-if-string-is-k-palindrome-or-not/

 

https://www.geeksforgeeks.org/given-a-string-find-its-first-non-repeating-character/

 

https://www.geeksforgeeks.org/find-the-two-repeating-elements-in-a-given-array/

 

https://www.javatpoint.com/program-to-count-the-total-number-of-vowels-and-consonants

 

https://www.techcrashcourse.com/2015/03/c-program-fibonacci-series-using-recursion.html

The post Minuscule Technologies Pvt . Ltd . Fresher Interview Questions appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.


MVI Technologies Fresher Interview Questions

$
0
0

MVI Technologies Fresher Interview Questions 

This blog explains about MVI Technologies Fresher Interview Questions and is given below : 

 

1.In a given strg first letter should be in caps and last letter should be in small and find how many vowels present in the string.

// Java program to Convert characters 

// of a string to opposite case

class Test{

 

     // Method to convert characters 

     // of a string to opposite case

     static void convertOpposite(StringBuffer str)

     {

        int ln = str.length();

 

        // Conversion using predefined methods

        for (int i=0; i<ln; i++)

        {

            Character c = str.charAt(i);

            if (Character.isLowerCase(c))

                str.replace(i, i+1, Character.toUpperCase(c)+””);

            else

                str.replace(i, i+1, Character.toLowerCase(c)+””);

 

        }

     }

 

     public static void main(String[] args) 

     {

         StringBuffer str = new StringBuffer(“GeEkSfOrGeEkS”);

         // Calling the Method

         convertOpposite(str);

 

         System.out.println(str);

        }

 }

// This code is contributed by Gaurav Miglani

Output:

gEeKsFoRgEeKs

 

2.Find the duplicate and the unique by using collection

// Java program to remove duplicates from ArrayList

 

import java.util.*;

 

public class GFG {

 

    // Function to remove duplicates from an ArrayList

    public static <T> ArrayList<T> removeDuplicates(ArrayList<T> list)

    {

 

        // Create a new ArrayList

        ArrayList<T> newList = new ArrayList<T>();

 

        // Traverse through the first list

        for (T element : list) {

 

            // If this element is not present in newList

            // then add it

            if (!newList.contains(element)) {

 

                newList.add(element);

            }

        }

 

        // return the new list

        return newList;

    }

 

    // Driver code

    public static void main(String args[])

    {

 

        // Get the ArrayList with duplicate values

        ArrayList<Integer>

            list = new ArrayList<>(

                Arrays

                    .asList(1, 10, 1, 2, 2, 3, 3, 10, 3, 4, 5, 5));

 

        // Print the Arraylist

        System.out.println(“ArrayList with duplicates: “

                           + list);

 

        // Remove duplicates

        ArrayList<Integer>

            newList = removeDuplicates(list);

 

        // Print the ArrayList with duplicates removed

        System.out.println(“ArrayList with duplicates removed: “

                           + newList);

    }

}

Output:

ArrayList with duplicates: [1, 10, 1, 2, 2, 3, 3, 10, 3, 4, 5, 5]

ArrayList with duplicates removed: [1, 10, 2, 3, 4, 5]

3.Find the prime numbers upto 20

class PrimeNumbers

{

   public static void main (String[] args)

   {

                    int i =0;

       int num =0;

       //Empty String

       String  primeNumbers = “”;

        for (i = 1; i <= 100; i++)

                {

                                      int counter=0;

            for(num =i; num>=1; num–)

           { 

            if(i%num==0) 

             {

                counter = counter + 1;

              } 

          }

           if (counter ==2)

           {

              //Appended the Prime number to the String

              primeNumbers = primeNumbers + i + ” “;

           }

             }

       System.out.println(“Prime numbers from 1 to 100 are :”);

       System.out.println(primeNumbers);   }}

Output:

Prime numbers from 1 to 100 are :

2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97

4. Palindrome 1234321

  1. classPalindromeExample{  
  2. public static void main(String args[]){  
  3. int r,sum=0,temp;    
  4. int n=454;//It is the number variable to be checked for palindrome  
  5. temp=n;    
  6. while(n>0){    
  7. r=n%10;  //getting remainder  
  8. sum=(sum*10)+r;    
  9. n=n/10;    
  10. }    
  11. if(temp==sum)    
  12. out.println(“palindrome number “);    
  13. else
  14. out.println(“not palindrome”);    
  15. }  
  16. }  

Output:

palindrome  number

 

 

5. Using array find the 2nd largest number and 2nd smallest number in the given input

// Java program to find smallest and second smallest elements

import java.io.*;

 

class SecondSmallest

{

    /* Function to print first smallest and second smallest

      elements */

    static void print2Smallest(int arr[])

    {

        int first, second, arr_size = arr.length;

 

        /* There should be atleast two elements */

        if (arr_size < 2)

        {

            System.out.println(” Invalid Input “);

            return;

        }

 

        first = second = Integer.MAX_VALUE;

        for (int i = 0; i < arr_size ; i ++)

        {

            /* If current element is smaller than first

              then update both first and second */

            if (arr[i] < first)

            {

                second = first;

                first = arr[i];

            }

 

            /* If arr[i] is in between first and second

               then update second  */

            else if (arr[i] < second && arr[i] != first)

                second = arr[i];

        }

        if (second == Integer.MAX_VALUE)

            System.out.println(“There is no second” +

                               “smallest element”);

        else

            System.out.println(“The smallest element is ” +

                               first + ” and second Smallest” +

                               ” element is ” + second);

    }

 

    /* Driver program to test above functions */

    public static void main (String[] args)

    {

        int arr[] = {12, 13, 1, 10, 34, 1};

        print2Smallest(arr);

    }

}

/*This code is contributed by Devesh Agrawal*/

Output :

The smallest element is 1 and second Smallest element is 10

6. Write a java program to do the following

a) Read a file which contains the name of the students

Each line in the file is of the format Student name

Example Sam

                   Tim

                  Ram

                 Raghu

b) All the data from the file has to be loaded into one suitable data structure in java and duplicates have to be removed. Print the unique names from the file.

  1. #include <stdio.h>
  2. int main()
  3. {
  4. char name[50];
  5. int marks, i, num;
  6. printf(“Enter number of students: “);
  7. scanf(“%d”, &num);
  8. FILE *fptr;
  9. fptr = (fopen(“C:\\student.txt”, “w”));
  10. if(fptr == NULL)
  11. {
  12. printf(“Error!”);
  13. exit(1);
  14. }
  15. for(i = 0; i < num; ++i)
  16. {
  17. printf(“For student%d\nEnter name: “, i+1);
  18. scanf(“%s”, name);
  19. printf(“Enter marks: “);
  20. scanf(“%d”, &marks);
  21.   fprintf(fptr,”\nName: %s \nMarks=%d \n”, name, marks);
  22. }
  23. fclose(fptr);
  24. return 0;
  25. }

 

REFERENCES : 

https://www.geeksforgeeks.org/convert-alternate-characters-string-upper-case/

https://beginnersbook.com/2014/01/java-program-to-display-prime-numbers/

https://www.javatpoint.com/palindrome-program-in-java

https://www.geeksforgeeks.org/to-find-smallest-and-second-smallest-element-in-an-array/

https://www.programiz.com/c-programming/c-file-examples

https://www.programiz.com/c-programming/c-file-examples

The post MVI Technologies Fresher Interview Questions appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

SANDS Technologies Fresher Interview Questions with Answers

$
0
0

SANDS Technologies Fresher Interview Questions with Answers 

This blog explains about SANDS Technologies Fresher Interview Questions with Answers and is given below : 

1.Remove Duplicates in this string “coconut”

// CPP program to remove duplicate character

// from character array and print in sorted

// order

#include <bits/stdc++.h>

using namespace std;

 

char *removeDuplicate(char str[], int n)

{

   // Used as index in the modified string

   int index = 0;   

 

   // Traverse through all characters

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

 

     // Check if str[i] is present before it  

     int j;  

     for (j=0; j<i; j++) 

        if (str[i] == str[j])

           break;

 

     // If not present, then add it to

     // result.

     if (j == i)

        str[index++] = str[i];

   }

 

   return str;

}

 

// Driver code

int main()

{

   char str[]= “geeksforgeeks”;

   int n = sizeof(str) / sizeof(str[0]);

   cout << removeDuplicate(str, n);

   return 0;

}

Output:

geksfor

Time Complexity : O(n * n)
Auxiliary Space : O(1)
Keeps order of elements same as input.

 

2. Pattern

a

B c

d E f

G h I j

K l M n O

Program

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

#include<stdio.h>

 

void main()

{

    int i,j,n;

 

    printf(“Enter the no of lines\n”);

    scanf(“%d”,&n);

 

    for(i=1;i<=n;i++)

    {

        for(j=1;j<=i;j++)

        {

            printf(“%c”,(char)(j+64));

        }

 

        printf(“\n”);

    }

}

 

Output

 

3. How many Times String “RAJASTHAN” can be arranged

// Java program to find number of distinct

// permutations of a string.

public class GFG {

 

    static final int MAX_CHAR = 26;

 

    // Utility function to find factorial of n.

    static int factorial(int n)

    {

        int fact = 1;

        for (int i = 2; i <= n; i++)

            fact = fact * i;

        return fact;

    }

 

    // Returns count of distinct permutations

    // of str.

    static int countDistinctPermutations(String str)

    {

        int length = str.length();

 

        int[] freq = new int[MAX_CHAR];

 

        // finding frequency of all the lower case

        // alphabet and storing them in array of

        // integer

        for (int i = 0; i < length; i++)

            if (str.charAt(i) >= ‘a’)

                freq[str.charAt(i) – ‘a’]++;

 

        // finding factorial of number of appearances

        // and multiplying them since they are

        // repeating alphabets

        int fact = 1;

        for (int i = 0; i < MAX_CHAR; i++)

            fact = fact * factorial(freq[i]);

 

        // finding factorial of size of string and

        // dividing it by factorial found after

        // multiplying

        return factorial(length) / fact;

    }

 

    // Driver code

    public static void main(String args[])

    {

        String str = “fvvfhvgv”;

        System.out.println(countDistinctPermutations(str));

    }

}

 

4. Sum of digits using Recursion

// Recursive java program to 

// find sum of digits of a number

import java.io.*;

 

class sum_of_digits

{

    // Function to check sum 

    // of digit using recursion

    static int sum_of_digit(int n)

    { 

        if (n == 0)

            return 0;

        return (n % 10 + sum_of_digit(n / 10));

    }

 

    // Driven Program to check above

    public static void main(String args[])

    {

        int num = 12345;

        int result = sum_of_digit(num);

        System.out.println(“Sum of digits in ” + 

                           num + ” is ” + result);

    }

}

 

Output:

Sum of digits in 12345 is 15

   5.|1 2 3|

    |4 5 6|

    |7 8 9|

How you convert this matrix into

|1 2 3 4 5 6 7 8 9|

// Java implementation to 

// sort the given matrix

import java.io.*;

import java.util.*;

 

class GFG {

 

    static int SIZE = 10;

 

    // function to sort the given matrix

    static void sortMat(int mat[][], int n)

    {

        // temporary matrix of size n^2

        int temp[] = new int[n * n];

        int k = 0;

 

        // copy the elements of matrix 

        // one by one into temp[]

        for (int i = 0; i < n; i++)

            for (int j = 0; j < n; j++)

                temp[k++] = mat[i][j];

 

        // sort temp[]

        Arrays.sort(temp);

 

        // copy the elements of temp[]

        // one by one in mat[][]

        k = 0;

        for (int i = 0; i < n; i++)

            for (int j = 0; j < n; j++)

                mat[i][j] = temp[k++];

    }

 

    // function to print the given matrix

    static void printMat(int mat[][], int n)

    {

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

            for (int j = 0; j < n; j++)

                System.out.print( mat[i][j] + ” “);

            System.out.println();

        }

    }

 

    // Driver program to test above

    public static void main(String args[])

    {

        int mat[][] = { { 1, 2, 3 },

                        { 4, 5, 6 },

                        { 7, 8, 9 } };

        int n = 3;

 

        System.out.println(“Original Matrix:”);

        printMat(mat, n);

 

        sortMat(mat, n);

 

        System.out.println(“Matrix After Sorting:”);

        printMat(mat, n);

 

    }

}

 

Output :

Original Matrix:

1 2 3

4 5 6

7 8 9

6. Print the Alphabets which is in the prime number index

// Java Program to print 

// Characters at Prime index 

// in a given String

class GFG

{

    static boolean isPrime(int n)

    {

        // Corner case

        if (n <= 1) return false;

 

        // Check from 2 to n-1

        for (int i = 2; i < n; i++)

            if (n % i == 0)

                return false;

 

        return true;

    }

 

    // Function to print 

    // character at prime index

    static void prime_index(String input)

    {

        int n = input.length();

 

        // Loop to check if 

        // index prime or not

        for (int i = 2; i <= n; i++) 

            if (isPrime(i)) 

 

                System.out.print

                (input.charAt(i – 1));         

    }

 

    // Driver code 

    public static void main (String[] args)

    {

        String input = “GeeksforGeeks”;

 

        prime_index(input);

    }

}

 

// This code is contributed by Anant Agarwal.

Output :

eesoes

REFERENCES : 

https://www.geeksforgeeks.org/remove-duplicates-from-a-given-string/

https://codedost.com/c/character-alphabet-patterns-c/

https://codedost.com/c/character-alphabet-patterns-c/c-program-characteralphabet-pattern-5/

https://www.geeksforgeeks.org/number-distinct-permutation-string-can/

https://www.geeksforgeeks.org/sum-digit-number-using-recursion/

https://www.geeksforgeeks.org/sort-given-matrix/

https://www.geeksforgeeks.org/program-print-characters-present-prime-index-given-string/

The post SANDS Technologies Fresher Interview Questions with Answers appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

Xerago Fresher Interview Questions – Part 1

$
0
0

Xerago Fresher Interview Questions – Part 1

This blog explains about Xerago Fresher Interview Questions – Part 1 and is given below : 

 

1. The least perfect square , which is divisible by each of 21, 36 and 66 is

A. 214434             B. 214344            C 213444           D. 231444           E. 231443

2. A flagstaff 17.5 m high casts a shadow of length 40.25 m. The height of the building, which casts a Shadow of length 28.75 m under similar conditions will be

A. 10m.           B. 17.5m             C. 12.5m           D. 21. 25m           E. 17m

3. The percentage increase in the area of a rectangle, If each of its sides is increased by 20% is

A. 40%            B. 42%            C. 44%            D. 46%          E. 43%

4. How many natural numbers are there between 23 and 100 which are exact divisible by 6 ?

A. 8       B. 11         C. 13        D. 12 E.            None of these

5. On what dates of April, 2001 did Wednesday fall?

A. 1th , 8th ,15th, 22th, 29th        B. 2th,9 th ,16th, 23th, 30th          C. 4th ,11th , 18 th ,25th       D. 3th ,10th ,17th , 24th    E. None of these

6. Two ships are sailing in the sea on the two sides of a lighthouse. The angle of elevation of the top of the lighthouse is observed from the ships are 30° and 45° respectively. If the lighthouse Is 100 m high, the distance between the two ships is:

A. 173 m        B. 200 m           C. 273 m           D. 300 m        E. 170 m

7. A family consists of two grandparents, two parents and three grandchildren. The average age of the grandparents is 67 years, that of the parents is 35 years and that of the grandchildren is 6 years. What is the average age of the family?

A. 28 4/7 years            B. 32 1/7 years             C. 31 5/7 years             D. 30 1/7 years           E. None of these

8. What least number must be added to 1056, so that the sum is completely divisible by 23 ?

 A.18            B. 3             C. 2           D. 21        E. None of these

9. Present ages of Sameer and Anand are in the ratio of 5 :4 respectively. Three year’s hence. the ratio of their ages will become 11 : 9 respectively. What is Anand’s present age in years?

A. 40         B. 27           C. 24         D. Cannot be determined             E.. None of these

10. In how many different ways can the letters of the word ‘LEADING’ be arranged an such a way that the vowels always come together?

A. 360            B. 480          C.720            D. 5040

 

I Directions: Which of the phrases (A), (B), (C ) (D) given below the sentence should replace the word/phrase printed in bold  in the sentence to make it grammatically correct ?If the sentence is correct as it is given and no correction is required, mark (E) as the answer.

1. Since the girl did not want to be disturbed while studying, she left the phone off hooks.

 A.  of hook       B. for the hook           C. off hooking         D. off the hook          E. No correction required

2. In this question , there is a sentence of which some parts have been jumbled up. Rearrange these parts which are labelled P , Q , R and S to produce the correct sentence.

Then (P : it struck me / Q : of course / R : suitable it was / S how eminently)

The Proper sequence should be:

 A. SPQR    B. QSRP             C. PSRQ             D. QPSR

3. Directions : Choose the word which is most nearly the SAME in meaning as the word given ARDUOUS

A.Hazardous              B. Pleased           C. Different        D. Pleasurable       E. Pleased

4. In question given below of our four alternatives , choose the one which can be substituted for the-given word/sentence.

A prima facle case is such  A.  As it seems  at first sight B. As it is made to seem at first sight C. As it turns out to be at the end D. As it seems to the court after a number of hearings , In the questions below the sentences have been given in Direct/Indirect speech.

From the given alternatives , choose which have best explanation in the given sentence in indirect/Direct speech.

1. Dhruv said that he was sick and tired of working for that company.

2. Dhruv said,” I am sick and tired of Working for this company.

3.Dhruv said, “He was tired of that company.”

4.Dhruv said to me, “I am sick and tired of working for this company”

5.Dhruv said , “ I will be tired of working for that company”

 

6. Some proverbs  and idioms are given below together with their meanings. Choose the corect meaning of proverb/idiom, If E (i.e.) ‘None of these will be the answer.

To catch a tartar

  1. To trap wanted criminal with great difficulty B. To catch a dangerous person C. To meet with disaster D. To deal with a person who is more than one’s match E. None of these
  2. In questions below, each passage consist of six sentences. The first and sixth sentence are given in the beginning. The middle four sentences in each have been removed and jumbled up. These are labeled as P, Q, R and S. Find out the proper order for the

S1: You know my wife, Madhavi, always urged me to give up smoking. four sentences.

P : I really gave it up.

Q :  And so When I went to jail I said to myself I really must give it up, if for no other reason than of being self-reliant.  

R : When I merged from jail, I wanted to tell her of my great triumph.

S:  But when I met her, there she was with a packet of cigarettes.

T : Poor girl!.

 The Proper sequence should be:

A.PSRQ B. SPQR C. QPRS D. RSPQ 

8.Each question consist of two words which have a certain relationship to each other followed by four pairs of related words Select the pair which has the same relationship. AFTER:BEFORE

A. first :second      B. present:past          C. contemporary:historic       D. successor:predecessor

9.I felt the wall of the tunnel shiver. The master alarm squealed through my earphones. Almost simultaneously, Jack yelled down to me ,  there was a warning light on. Fleeting but spectacular sights snapped into and out of view, the snow,  the moon, looming close and big, the dazzling sunshine for once unfiltered by layers of air. The last twelve hours before splashing down in 81 degree water in South Pacific were particular bone-chilling. During this period, I had to go up in to command module. Even after the fiery down in 810 water in south pacific, we could still see our frosty breath inside the command module. The statement that the dazzling sunshine was “for once unfiltered by layers of air” means

  1. That the sun was very hot B. that there was no strong wind C. that the air was unpolluted D. None of these.
  2. In questions given below out of four alternatives, choose the one which can be substituted for the given word/sentence that which cannot be corrected
  3. Unintelligible B. Indelible C. Illegible D. Incorrigible

A. 1  B.2 C.3 D. 4

 

III . REASONING

 1.Choose the word which is different from the rest.

A. Hanger B. Platform C. Dock D. Park E. Bus stand

2. Rasik walked 20 in towards north. Then he turned right and walks 30 m. Then he turns right and walks 35 m. Then he turns left and walks 15 m. Finally he turns left and walks 15 m.In which direction and how many meters is he from the starting position 

A. 15 m West         B. 30 m East             C. 30 m West            D. 45 m East   

3. Pointing to a photograph, Ashok said ‘He is the son of the only daughter of the father of my brother.’ How Ashok is related to the man in the photograph?

A .Nephew        B. Brother            C. Father          D. Maternal Uncle

 

4. Read the two statements below and answer that follows :

 Almost a century ago, country X annexed its neighbour’s western province, clearly an unjust act.  It is the obligation of country X to return the province to its former possessors, even if doing so would involve great sacrifice on the part of those citizens of the country X who are currently living within that province

A  nation’s paramount responsibility is the well-being of its own citizens. Country X should make the sacrifice of returning the province only if it can be sure that such an act will provide some tangible benefit to the citizens of country X. The issue of whether the original annexation was just is a secondary consideration. Linda’s reply to Bruce most closely conditions to which at the following principles’

A nation is obliged to make sacrifices only in order to fulfil its paramount responsibility. Historical wrongs can properly be redressed only when all interested parties agree that a wrong has been committed.  No national sacrifice is too great,  provided that it is undertaken in order to insure the future web-being of the nation. The views of the entire nation should be consulted before the nation takes an action that involves considerable lace from any part of the nation. A nation is obligated to redress historical injustices only when such redress would involve minimal sacrifice from nation.

Enrolment in graduate and professional programs tends to be high in a strong economy and much lower during recessive perceived likelihood of future job availability, therefore, affects people’s willingness to pass up immediate earning power to invest in career-related training.

The argument above assumes that:

  1. be perceived likelihood of job availability has decreased in recent years.
  2. those who avoid graduate and professional school during an economic slump do so because of the perceived jobs
  3. perceptions of the likelihood of job availability are related to the state of the economy.
  4. those who enrol in graduate and professional schools during strong economy help increase the economy’s graduate and professional programs admit fewer students during recessions.

5. Which one will replace the question mark ?

18 24 18 30 16 40 45 2 7 ?

A. 10           B.12           C. 9           D. 6

 6. A + B means brother of B, A * B means A is the son of B , and A % B means B is the daughter of A then which of the following means M the maternal  uncle of N

A. M * O + N                  B. M % O * N + P            C. M + O % N             D.  None of these .

 7. In each question below,  are given two statements  followed by two conclusions I & II .  You have to  take the given statements to be true if they seem to be at variance from commonly known facts.  Read the conclusion and then decide which of the given conclusions logically follows  from the two given statements, disregarding commonly known facts .

  1. Statement : No women teacher can play Some women teachers are athletes
  2. Conclusion :  Male athletes can play. 2. Some athletes can play.
  3. Only conclusion I follows B. Only conclusion II follows C. Either I or II follows D. Neither I and II follow   Both I and II follows

8. In the below questions find out the alternative which will replace the question

 Parts:  Strap :: Wolf : ? 

A. Fox           B. Animal          C. Wood              D. Flow

9. Choose the alternative which is closely resembles the minor image of the given combination, SUPERVISOR

A-1             B.2            C.3             D. 4  

10. Two cars start from the opposite places of a main road. 150 km apart First car cons for 25 km and takes right turn and runs at 15 km. It then turns left and then runs for another 25 km and then takes the direction back to reach the main road . In the mean time, due to minor break down the other car has run only 35 km along the main road. What would be the distance between two cars at this point?

A. 65 km             B. 75 km             C. 80 km                   D. 85 km

11. Choose the word which is different from the rest

A. Deck              B. Quay              C. Stern             D. Bow             E- Mast 

12. Advertisement: Quicktrack is gaining more subscribers each year than any other business news service, Quicktrak offers the mast up-to-date international business news, and the most comprehensive company information needed to make wise investments decisions. Quicktrak is the only service devoted exclusively to international business news and the financial analysts of corporations. So, by choosing a financial news service other than Quicktrack, you are doing your company if disservice Which of the following is an assumption of the argument in the advertisement above?

A. Subscription to Quicktrak is not appreciably more expensive than a subscription to standard business magazine or in newspapers.

B. A significant portion of any company’s business involves international trade or investing in other companies.

C. Quicktrak has more subscribers than other business news services.

D. The market share of Quicktrak is increasing.

E. Choosing a financial news service other than Quicktrak is worse than choosing no financial news service at all.

13. Biologists attached a radio transmitter to one of a number of wolves that had been released earlier in the White River Wilderness Area as part of a relocation project. The biologists hoped to use this wolf to track the movements of the whole . Wolves usually range over a wide area in search of prey, and frequently follow the migrations of their prey animals. The biologists were surprised to find that this particular wolf never moved more than five miles away from the location in which it was I tagged, Which one of the following, if true, would by itself most help to explain the behaviour of the wolf tagged by the biologists.

A. The area in which the wolves were released was rocky and mountainous, in contrast to the flat, Heavily wooden room which they were taken.

B. The wolf had been tagged and released by the biologists only three miles away from a sheep ranch that provide, a large, stable population of prey animals.

C. The White River Wilderness Area had supported a population of wolves in past years, but they had been hunted extinction.

D. Although the wolves in the White River Wilderness Area were under government protection, their had been sharply reduced, within a few years of their release, by illegal hunting.

E. The wolf captured and tagged by the biologists had split off from the main pack whose movements the biologists had  to study, and its movements did not represent those of the main pack.

The post Xerago Fresher Interview Questions – Part 1 appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

RGS CONSTRUCTION TECHNOLOGIES Interview Questions

$
0
0

 RGS CONSTRUCTION TECHNOLOGIES Interview Questions 

 

This blog explains about  RGS CONSTRUCTION TECHNOLOGIES Interview Questions and is given below : 

 RGS CONSTRUCTION TECHNOLOGIES PVT. LTD

 

Level-1 (Programming test)

1. Given an array A of length N, write a Program to find the element which repeats in A maximum number of times as well as the corresponding count. In case of ties, choose the smaller element first.

2.Write a Program to find perfect numbers? A perfect number is when the sum of the factors smaller than the number is equal to that number.

 Example 1.

6 = 1+2+3 — Perfect Number

 Example 2.

28 = 1+2+4+7+14 —- Perfect Number

 Example 3.

12! = 1+2+3+4+6 —- Not a perfect Number

 

Level-2 (Programming test)

3.Write a Program to find and print the number of vowels in a given set of characters and print there number of occurrences of each vowel.

4.Write a Program to read N integers and find out if the values are in ascending order?

 

Level-3 (Programming test)

5.Get the two words from user and check whether the words are Anagrams. Two words are said to be Anagrams, if they share only same set of letters to form the word

Example:

 Input: Silent-Listen

output: is anagram

 

 Input: Apple-Orange

Output: is not anagram

6.In a given Array, find out the numbers which are all Niven numbers A number said to be Niven number, which is divisible by sum of its own digits print out the all niven numbers in given Array.

Example:

 Input : [13,433,49,420,4991]

Output : 420, 4991

 

Input : [11,77,81,867,5786,87512]

Output : 81

 

The post RGS CONSTRUCTION TECHNOLOGIES Interview Questions appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

Fourth Dimension Technologies Interview Question

$
0
0

Fourth Dimension Technologies Interview Question

 This blog explains about  FOURTH DIMENSION TECHNOLOGIES Interview Questions and is given below :-

FOURTH DIMENSION TECHNOLOGIES

Why String is Immutable? Give Some Example.

In java, string objects are immutable. Immutable simply means unmodifiable or unchangeable.Once string object is created its data or state can’t be changed but a new string object is created. Let’s try to understand the immutability concept by the example given below:

class Testimmutablestring{

public static void main(String args[]){

String s=”Sachin”;

s.concat(” Tendulkar”);//concat() method appends the string at the end

System.out.println(s);//will print Sachin because strings are immutable objects

}

}

Difference Between HashMap and Hash Table?

 HashMap and Hash Table both are used to store data in key and value form.Both r Using Hasing technique to store Unique Keys.But there are many differences between Hashmap and Hashtable classesthat are given below.

           HASHMAP      HASHTABLE
Hashmap is Fast Hashtable is Slow
Hashmap is a new class introduced in JDK 1.2 Hashtable is legacy class
HashMap allow one null key and multiple null values. Hashtable doesn’t allow any null key or Value
HashMap is traversed by Iterator. Hashtable is traversed by Enumerator and Iterator
Iterator in HashMap is fail – fast Enumerator in Hastable in Not fail-fast.
HashMap inherits AbstractMap Class Hashtable inherits Dictionary class

 Difference Between ArrayList and Vector?
ArrayList and Vector both implements List interface and maintains insertion order.

ArrayList Vector
ArrayList increments 50% of current array size if the number of elements exceeds from its capacity. Vector increments 100% means doubles the array size if the total number of elements exceeds than its capacity.
ArrayList is not synchronized. Vector is synchronized.
 ArrayList is not a legacy class. It is introduced in JDK 1.2. Vector is a legacy class.
ArrayList is fast because it is non-synchronized. Vector is slow because it is synchronized, i.e., in a multithreading environment, it holds the other threads in runnable or non-runnable state until current thread releases the lock of the object.
ArrayList uses the Iterator interface to traverse the elements.  A Vector can use the Iterator interface or Enumeration interface to traverse the elements.

What is DBMS?
      The software which is used to manage database is called Database Management System (DBMS). For Example, MySQL, Oracle etc. are popular commercial DBMS used in different applications.

What is Synchronization?
    In general, synchronization is used to protect access to resources that are accessed concurrently. One of the benefits of using multiple threads in an application is that each thread executes asynchronously. There are many situations in which multiple threads must share access to common objects.
 
 Checked Exception & Unchecked Exception Differences.
 
Checked Exception UnChecked Exception
Checked exceptions occur at compile time. Unchecked exceptions occur at runtime.
A checked exception is checked by the compiler. The compiler does not check these type of exception.
These types of exception can be handled at the time of compilation. These types of exceptions cannot be a catch or handle at the time of compilation, because they get generated by the mistakes in the program.
They are the sub-class of the exception class. They are runtime exceptions and hence are not a part of the Exception class.
Here, the JVM needs the exception to catch and handle. Here, the JVM needs the exception to catch and handle.
Examples of Checked exceptions:
  • File Not Found Exception
  • No Such Field Exception
  • Interrupted Exception
Examples of Unchecked Exceptions:
  • Undeclared Throwable Exception
  • Empty Stack Exception
  • Arithmetic Exception

The post Fourth Dimension Technologies Interview Question appeared first on Payilagam | Java | .NET | Selenium| PHP | Android | DevOps| Ionic| Best Training in Chennai.

Viewing all 321 articles
Browse latest View live