Searching for "V"

Q:

This Union Territory possesses a coastal stretch of about 45 km with 28 marine fishing villages. However 45% of the population is engaged in agricultural and allied products.
Which among the following Union Territories is referred to in the above passage

A) Lakshadweep B) Pondicherry
C) Andaman and Nicobar D) Daman
 
Answer & Explanation Answer: A) Lakshadweep

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

Q:

public abstract class Shape {

private int x;

private int y;

public abstract void draw();

public void setAnchor(int x, int y) {

this.x = x;

this.y = y;

}

}

Which two classes use the Shape class correctly?

A) public class Circle implements Shape { private int radius; B) public abstract class Circle extends Shape { private int radius; }
C) public class Circle extends Shape { private int radius; public void draw(); D) None
 
Answer & Explanation Answer: B) public abstract class Circle extends Shape { private int radius; }

Explanation:

Only B is true

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

public abstract class Shape {

private int x;

private int y;

public abstract void draw();

public void setAnchor(int x, int y) {

this.x = x;

this.y = y;

}

}

Which two classes use the Shape class correctly?

A) public class Circle implements Shape { private int radius; B) public abstract class Circle extends Shape { private int radius; }
C) public class Circle extends Shape { private int radius; public void draw(); D) None
 
Answer & Explanation Answer: B) public abstract class Circle extends Shape { private int radius; }

Explanation:

Only B is true

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

void waitForSignal() {

Object obj = new Object();

synchronized (Thread.currentThread()) {

obj.wait();

obj.notify();

}

}

Which statement is true?

A) This code can throw an InterruptedException. B) This code can throw an IllegalMonitorStateException.
C) This code can throw a TimeoutException after ten minutes D) All the above
 
Answer & Explanation Answer: B) This code can throw an IllegalMonitorStateException.

Explanation:

It will throw  IllegalMonitorStateException.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

Q:

The noval ' Post office ' was written by

A) Rabindranath Tagore B) K.M. Munshil
C) R.D.Dinkar D) Neeraj
 
Answer & Explanation Answer: A) Rabindranath Tagore

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

Q:

Which of the books is written by Kapil Dev

A) One day Wonders B) Cricket - My Style
C) Twenty Years at the top D) Cricket-Favourite Game
 
Answer & Explanation Answer: B) Cricket - My Style

Explanation:

Which_of_the_books_is_written_by_Kapil_Dev1556278350.jpg image

 

Cricket - My Style is written by Kapil Dev.

Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

Q:

public class Threads2 implements Runnable {

public void run() {

System.out.println("run.");

throw new RuntimeException("Problem");

Which among the following is true?

}

public static void main(String[] args) {

Thread t = new Thread(new Threads2());

t.start();

System.out.println("End of method.");

}

}

A) java.lang.RuntimeException: Problem B) run. java.lang.RuntimeException: Problem
C) End of method. java.lang.RuntimeException: Problem D) End of method. run. java.lang.RuntimeException: Problem
 
Answer & Explanation Answer: D) End of method. run. java.lang.RuntimeException: Problem

Explanation:

Only D can be true

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

The quotation ' Some of born great , Some achieve greatness, and some have greatness, thrust upon them ' is atributed to

A) Bertrand Russell B) Abraham Lincoln
C) William Shakeshpare D) George Orwell
 
Answer & Explanation Answer: C) William Shakeshpare

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors