IT Trainer Questions


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

6 22949
Q:

What was the day on 15th august 1947 ?

A) Friday B) Saturday
C) Sunday D) Thursday
 
Answer & Explanation Answer: A) Friday

Explanation:

15 Aug, 1947 = (1946 years + Period from 1.1.1947 to 15.8.1947)

15th_August_1947_day1534219857.jpg image

 

Odd days in 1600 years = 0 

 

Odd days in 300 years = 1

 

46 years = (35 ordinary years + 11 leap years) = (35 x 1 + 11 x 2)= 57 (8 weeks + 1 day) = 1 odd day 

 

Jan.   Feb.   Mar.   Apr.   May.   Jun.   Jul.   Aug 

 

( 31 + 28 + 31 + 30 + 31 + 30 + 31 + 15 ) = 227 days = (32 weeks + 3 days) = 3 odd days.

 

Total number of odd days = (0 + 1 + 1 + 3) = 5 odd days. 

 

 

Hence, as the number of odd days = 5 , given day is Friday.

Report Error

View Answer Report Error Discuss

Filed Under: Calendar
Exam Prep: CAT , Bank Exams , AIEEE , GATE
Job Role: Bank PO , Bank Clerk , IT Trainer

3800 395665
Q:

 If a2 = 12, then a4 =? 

 

A) 144 B) 72
C) 36 D) 24
 
Answer & Explanation Answer: A) 144

Explanation:

Given a x a = 12

asked to find a x a x a x a =  (a x a) x (a x a)

a4 = a2 x a2 

= 12 x 12

= 144.

 

More :: Mathematical operations questions and answers.

Report Error

View Answer Report Error Discuss

Filed Under: Numbers
Exam Prep: Bank Exams , AIEEE , CAT , GATE
Job Role: Bank Clerk , Analyst , Bank PO , IT Trainer

6 31430
Q:

What is mesh network?

Answer

A network in which there are multiple network links between computers to provide multiple paths for data to travel.

Report Error

View answer Workspace Report Error Discuss

Subject: Network Administration
Job Role: IT Trainer

0 2098
Q:

Where did India play its 1st One Day International match?

A) Lords B) Headingley
C) Taunton D) The Oval
 
Answer & Explanation Answer: B) Headingley

Explanation:

India play its 1st One Day International match in cricket against England in the year 1974 in Headingley in Leeds.

Where_did_India_play_its_1st_One_Day_International_match1552388512.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

4 5794
Q:

Wince : Pain :: Prostration : ?

A) Frustration B) Submissiveness
C) Strained D) Discomfiture
 
Answer & Explanation Answer: B) Submissiveness

Explanation:

First is the sigh of the second.

Hence, Wince : Pain :: Prostration :Submissiveness.

Report Error

View Answer Report Error Discuss

Filed Under: Analogy
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

4 5163