3i Infotech Placement: Sample Questions 294 - 295 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 294

Question

MCQ▾

In objective test a correct answer score 4 marks and on a wrong answer 2 marks are negative. A student scores 480 marks from 150 questions. How many answers were correct?

Choices

Choice (4)

a.

110

b.

130

c.

150

d.

120

Answer

b.

Explanation

In an objective test, every correct answer will get + 4 marks and every wrong answer will get -2 marks.

A student scores 480 marks from 150 questions.

We are asked to find the correct answers given by student. Let it be x.

So,

So, student has answered 130 correct questions.

Question 295

Edit

Describe in Detail

Essay▾

How can two threads be made to communicate with each other?

Explanation

Understanding of Two Thread Process
  • Two threads can communicate with each other using the wait () and modify () , notify () methods.
  • Wait () tells the thread to wait until another threads calls notify () method.
  • Wait () causes the current thread to wait unit another thread notifies it of a condition change.
  • We use wait () in conjunction with notify () or notifyAll () to coordinate the activities of multiple threads using the same resources.
  • The notifyAll () method notifies all the threads waiting on the monitor by the current thread and wakes them up- one of the waiting threads than grabs the monitor and proceeds.

Developed by: