Machine Learning Interview Questions – Set 08

What is Pruning in Decision Trees, and How Is It Done? Pruning is a technique in machine learning that reduces the size of decision trees. It reduces the complexity of the final classifier, and hence improves predictive accuracy by the reduction of overfitting. Pruning can occur in: Top-down fashion. It will traverse nodes and trim subtrees … Read more

Multi Threading Java Interview Questions – Set 08

What is the difference between sleep(), suspend() and wait() Thread.sleep() takes the current thread to a “Not Runnable” state for specified amount of time. The thread holds the monitors it has acquired. For example, if a thread is running a synchronized block or method and sleep method is called then no other thread will be … Read more

Core Java Interview Questions – Set 08

What values of the bits are shifted in after the shift In case of signed left shift >> the new bits are set to zero. But in case of signed right shift it takes the value of most significant bit before the shift, that is if the most significant bit before shift is 0 it … Read more

Data Analytics Interview Questions – Set 07

What was your most difficult data analysis project? With a question like this, the interviewer is gaining insight into how you approach and solve problems. It also provides an idea of the type of work you have already done. Be sure to explain the event, action, and result (EAR), avoid blaming others, and explain why … Read more

Exception Handling Java Interview Questions – Set 07

Explain how you would get thread-safety issues due to non-atomic operations with a code example The code snippets below demonstrates non-atomic operations producing incorrect results with code. The program below uses a shared Counter object, that is shared between three concurrent users (i.e. three threads). The Counter object is responsible for incrementing the counter. Firstly, the Counter class. … Read more

JSP Java Interview Questions – Set 07

How can I set a cookie and delete a cookie from within a JSP page Cookie mycook = new Cookie(“name”,”value”); response.addCookie(mycook); Cookie killmycook = new Cookie(“mycook”,”value”); killmycook.setMaxAge(0); killmycook.setPath(“/”); killmycook.addCookie(killmycook); What is JavaServer Pages Standard Tag Library (JSTL A tag library that encapsulates core functionality common to many JSP applications.JSTL has support for common, structural tasks … Read more

Core Java Interview Questions – Set 07

What is the difference between preemptive scheduling and time slicing Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The … Read more

Project Management Interview Questions – Set 07

Are there any positive aspects of the risk identification process? The risk identification process may be able to come up with some opportunities too. What kinds of projects interest you the most? Why? The one word that you need to focus on for this pm interview question is ‘relevance’. Do your research about the company … Read more

Servlet Java Interview Questions – Set 07

When init() and Distroy() will be called init() is called whenever the servlet is loaded for the first time into the webserver.it performs certain one time activities which are required during the lifetime of the servlet.It may be some initialisation of variables or a database connection. Destroy will be called whenever the servlet is removed … Read more

Artificial Intelligence Interview Questions – Set 07

What are the different algorithm techniques you can use in AI and ML? Some algorithm techniques that can be leveraged are: Learning to learn Reinforcement learning (deep adversarial networks, q-learning, and temporal difference) Semi-supervised learning Supervised learning (decision trees, linear regression, naive bayes, nearest neighbor, neural networks, and support vector machines) Transduction Unsupervised learning (association … Read more