3i Infotech Papers: Sample Questions 1242 - 1243 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 1242

» Languages » Java

Essay Question▾

Describe in Detail

Which methods in the Object class are declared as final?

Explanation

Following methods are Final:

  • GetClass ():

    Returns the runtime class of an object.

  • Notify ():

    Wakes up a single thread that is waiting on this object’s monitor.

  • NotifyAll ():

    Wakes up all threads that are waiting on this object’s monitor.

  • wait ():

    Causes current thread to wait until another thread invokes the notify () method or the notifyAll () method for this object.

Question number: 1243

» Basic CS » Operating System

MCQ▾

Question

The standard source for standard input, standard output and standard error is

Choices

Choice (4) Response

a.

/dev/null

b.

The terminal

c.

/usr/you/input, /usr/you/output/, /usr/you/error respectively

d.

All of the above

Answer

b.

Explanation

Understanding of standard output and standard error.

Understanding of Standard Output and Standard Error.

Understanding of standard output and standard error.

The standard source for standard input, standard output and standard error is the terminal.

Standard Output

  • Program sends information to standard output even without knowing.

  • However, the same output can go to a printer, an ordinary file, or the network.

Standard Input

  • Program gets its information from standard input which by is the keyboard.

  • Program never “knows” where the information comes from.

  • Standard input can also come from a file or network.

Standard Error

In addition to standard input and standard output, a running program sends error messages, which by default, the shell directs to the screen.