IT Trainer Questions


Q:

Inside an interface when should the variables be initialized?

A) Globally B) Whenever required
C) Inside a function D) During the time of declaration
 
Answer & Explanation Answer: D) During the time of declaration

Explanation:

They should be initialized during the time of declaration itself otherwise it is a compilation eror

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

0 4568
Q:

Which of the following is not an Output device?

A) Scanner B) Moniter
C) Printer D) Speakers
 
Answer & Explanation Answer: A) Scanner

Explanation:
Report Error

View Answer Report Error Discuss

9 4559
Q:

What is conversion operator ?

Answer

Class can have a public method for specific data type conversions.
for example:
class B
{
double value;
public  B(int i )
operator double()
{
return value;
}
};
B BObject;
double i = BObject; // assigning object to variable i of type double.
now conversion operator gets called to assign the value.

Report Error

View answer Workspace Report Error Discuss

11 4556
Q:

Manisha went to shop with certain amount, with which she can buy 50 Chacobar or 40 Fivestar. She uses 10% amount for petrol and out of the remaining balance, she purchases 20 Fivestar and some Chacobar. Find the number of Chacobar she can buy?

A) 20 B) 24
C) 26 D) 28
 
Answer & Explanation Answer: A) 20

Explanation:

Let the total amount be 200 {L.C.M of 40 and 50}

Chacobar C.P. = 200/50 = 4

Fivestar C.P = 200/40 = 5

Remaining Money after petrol = [200 - 200×10%] = 180

Remaining money after buying fivestars = [180 - 20×5] = 80

So number of Chacobar she can buy = 80/4 = 20

Report Error

View Answer Report Error Discuss

17 4546
Q:

IF YOU HAVE ME, YOU WANT TO SHARE ME. IF YOU SHARE ME, YOU HAVEN'T GOT ME. WHAT AM I?

Answer

A Secret is what you want to share if you have with you. And if you share that secret with anyone, then secret will not be with you only.

Report Error

View answer Workspace Report Error Discuss

24 4545
Q:

Which of the following method declarations are allowed inside interface?

A) public void m1() B) private void m1()
C) protected void m1() D) abstract public void m1()
 
Answer & Explanation Answer: D) abstract public void m1()

Explanation:

Inside an interface every method will be by default abstract and public

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

0 4515
Q:

Which class is used to indicate Black Navigation Bar ?

A) .navbar-inverse B) .navbar-black
C) .navbar-dark D) .navbar-default
 
Answer & Explanation Answer: A) .navbar-inverse

Explanation:

.navbar-inverse is used to display in black color.

Report Error

View Answer Report Error Discuss

Filed Under: .NET
Exam Prep: Bank Exams
Job Role: Analyst , IT Trainer

2 4472
Q:

A caribbean shape that makes ships disappear

A) Square B) Triangle
C) Circle D) Pentagon
 
Answer & Explanation Answer: B) Triangle

Explanation:

The triangle is a caribbean shape that makes ships disappear.

 

A_caribbean_shape_that_makes_ships_disappear1558074852.jpg image

Report Error

View Answer Report Error Discuss

1 4465