Interview Questions

Q:

Which of the following are valied?

A) A class can extend any number of classes simulteneously B) A class can implement only one interface at a time
C) A class can extend other class or can implement interface but not both simulteneously D) None of the above
 
Answer & Explanation Answer: D) None of the above

Explanation:

A is wrong because a class can extend nly one class .B is wrong because a class can implement any number of interfaces.C is wronb because both can can be done simulteneously.So, D is correct

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

1 4108
Q:

Which CICS service transaction is used to gain accessibility to CICS control tables? Mention the one that has the highest priority?

Answer

CEDA 

Report Error

View answer Workspace Report Error Discuss

0 4100
Q:

If sub class data member is hiding super class data member then how to access super class data member inside sub class methods?

Answer

use super keyword.


super keyword points immediate super class.


Class Sample {


int a =23;


 }


Class Sub extends Sample { 


 String a = "bablu";


 void show() {


 System.out.println(a); //bablu


 System. out. println(this.a); //bablu


 System. out.println(super.a); //23


}


}


Class Demo {


Public static void main(string[] args) {


sub s = new Sub();


s.show();


}


}


 

Report Error

View answer Workspace Report Error Discuss

Subject: Java

1 4097
Q:

What is the use of Namespace?

A) To encapsulate the data B) To structure a program into logical units.
C) Both a and b D) none of these
 
Answer & Explanation Answer: B) To structure a program into logical units.

Explanation:

The main aim of the namespace is to understand the logical units of the program and to make the program so robust.

Report Error

View Answer Report Error Discuss

Filed Under: C++

1 4091
Q:

What have you learned from your studies that can be applied to a career in investment banking?

Answer

You might initially think that if you haven’t done a degree in finance or economics you haven’t got very much to offer an investment bank, but you’d be wrong. Any numerate discipline will have given you a mathematical toolkit that will come in useful in technical banking work, and any good degree proves that you’re intelligent, hardworking, and effective under pressure. Extra-curricular activities may have given you a wealth of other skills that are valuable at an investment bank, such as being able to juggle a number of commitments and work with others.

Report Error

View answer Workspace Report Error Discuss

Subject: Bank Interview

2 4088
Q:

Explain in your words about Channel of communication, Skipper and Sundry Services.

Answer

Channel of communication : It is a floe of communication within a department.


Skipper : This term is used for the status of a room, which indicates that a guest has left the hotel room without arranging to settle his or her account. 


Sundry Services :These are the extra services, which are provided to the guests. For e.g. message, handling of guests.

Report Error

View answer Workspace Report Error Discuss

Subject: Hospitality

7 4086
Q:

What is the difference between the functions unlink and unset in PHP?

Answer

The function unlink() is to remove a file, where as unset() is used for destroying a variable that was declared earlier.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

1 4086
Q:

Where does the allocaters are implemented?

A) Template library B) Standard library
C) C++ code library D) None of these
 
Answer & Explanation Answer: B) Standard library

Explanation:

Allocaters are implemented in C++ standard library but it is used for C++ template library.

Report Error

View Answer Report Error Discuss

Filed Under: C++

1 4081