Cau1:
All threads :
Statement A : Are created with MIN_PRIORITY by default
Statement B : Have a thread body
a. A is true and B is false
b. Both A and B are true
c. A is false and B is true
d. Both A and B are false
Cau2 :
You have creadted a thread to print on the screen. You want to allow more processor time to the other threads doing critical tasks. What will you do ?
a. Call the wait() method
b. Call the vield() method
c. Call the notifyall() method
d. Call the notify() method
Cau3 :
When a server socket secures a connection with a client, which of the following methods accepts the connection ?
a. Socket.accept();
b. ServerSocket.setSocketFactory();
c. ServerSocket.accept();
d. ServerSocket.ServerSocket(int port);
Cau 4:
Statement1 : The Runnable interface is a redundant interface because Thread class can be used to create threads.
Statement2 : Thread class cannot be extende in all situations, such as to create an applet that creates a thread.
a. Both statements are false
b. Statement 1 is true but statement 2 is false
c. Statement 2 is true but statement 1 is false
d. Both the statements are true.
Cau 5
Benton, Inc is going in for workflow automation. One of the workflow that they want to automate is payroll processing of the employee. The process followed by benton is discussed below.
the HR Head of a region checks the attendance of employees and sends the detail of No of days worked and leave taken by the employees to HR Operations. The HR Operations checks the leave balance. If employee has a leave balance, the HR Operattions updates the balance, or calculates the leave without pay amoount accordingly. HR Operations the prints the pay slip and hands it over to regional HR along with the salary Check.
Which of the following is an extemal entily that does not interact directly with the system
a. Check Attendance
b. HR Operation
c. HR Head
d. Employee