Interview Questions and Answers - Order By Newest Q1621. What are the application Logging levels specified in your applications ? Log4j
Ans. In our Organization, the policy is to keep it WARN in production so as to reduce logging Noise. We use Info in Test environments. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q1622. What should be the logging level while logging exceptions ? Log4j
Ans. It depends on how severe the exception is. If the exception is completely unexpected and breaks the request, It should be logged as ERROR or FATAL. If it's not expected but we can live with it and the application request continue in-spite of it, It should be WARN. If it's expected , it can be just INFO. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q1623. What is the difference between INFO and DEBUG logging levels ? Log4j
Ans. Info Messages are something which we would like to see even if the application is in best of state. DEBUG messages are usually something that we would like to see while debugging some problem. DEBUG is lower level than Info. Any message logged with info gets printed if the Root level set is DEBUG. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Log4j  Log4j levels Q1624. What is the difference between DEBUG and TRACE logging levels ? Log4j
Ans. TRACE designates finer grained informational events than the DEBUG.TRACE is level lower than DEBUG. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Log4j  DEBUG vs TRACE Q1625. how many reducer task runs on a hadoop cluster ? BigData
Ans. Generally one reducer runs for all mappers, but it can be increased as per requirements. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Hadoop  BigData Asked in 1 Companies Q1626. How to change the backup log directory using log4j ? Log4j
Ans. There is a property called "filePattern" within appender that regulates where the backed up files will be created for rolling logs. It actually contains the absolute path which can be modified to have backed up logs within some other directory. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Log4j Q1627. What does the property maxBackupIndex in Log4j means ? Log4j
Ans. It means that the app will only maintain these many backed up log files. Older backed up logs will be deleted. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Log4j Q1628. What is the use of Property files ?
Ans. Property files are used to maintain configurable values as key value pairs. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  config  property files This question was recently asked at 'Veritas'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Mutex vs Semaphore Asked in 1 Companies This question was recently asked at 'Veritas'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies This question was recently asked at 'Veritas'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies This question was recently asked at 'Veritas'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1633. Given array of integers, find first two numbers that adds up to 10. Core Java
This question was recently asked at 'Amazon'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Code  Coding Asked in 1 Companies Ans. array is traversed from first element to last element. Here current element is compared with next element. If current element is greater than next element it is swapped. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  sorting  bubble sort Asked in 1 Companies Q1635. Write code to check if a Binary tree is symmetrical Algorithm
This question was recently asked at 'Amazon'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  binary tree Asked in 1 Companies Q1636. Write a program to reverse words of a sentence. Core Java
This question was recently asked at 'Amazon'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  code  Coding Asked in 1 Companies Q1637. how to get most significant bit from a byte? Core Java
This question was recently asked at 'Amazon'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1638. What data structure will you use if we have to search an element in million of elements ? Data Structure
This question was recently asked at 'Microsoft'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Search Asked in 1 Companies Q1639. Write a function that returns the depth of a tree. Algorithm
This question was recently asked at 'Amazon'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1640. Write code to find the node where two linked lists intersect. Algorithm
This question was recently asked at 'Amazon'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1641. Check if tic tac toe has a winner Algorithm
This question was recently asked at 'Microsoft'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1642. Write program to balance a binary tree Algorithm
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q1643. Given a graph, find if it represents a tree Algorithm
Ans. We can simply find it by checking the criteria of a tree. A tree will not contain a cycle, so if there is any cycle in the graph, it is not a tree. We can check it using another approach, if the graph is connected and it has V-1 edges, it could be a tree. Here V is the number of vertices in the graph Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1644. Explain different sorting algorithms and Big O of each Algorithm
This question was recently asked at 'Microsoft,ServiceNow'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 2 Companies Q1645. Write a program to find loop in a linked list Algorithm
This question was recently asked at 'Microsoft'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1646. How to convert a bst to doubly linked list Algorithm
This question was recently asked at 'Amazon'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1647. What is a package management system ? Tool
Ans. A package management system is a collection of software that automates the process of installing, upgrading and configuring an application. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  rpm Q1648. What is RPM ? Tool
Ans. Redhat Packaging system or rpm is a Package Manager or type of Package Management system extensively used for Linux systems. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  rpm  package management Q1649. What is priority inversion inheritance method?
Ans. https://en.wikipedia.org/wiki/Priority_inversion Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Ans. Priority inversion is a problematic scenario in scheduling in which a high priority task is indirectly preempted by a lower priority task effectively inverting the relative priorities of the two tasks. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 5 Companies