Interview Questions

Q:

Write a method to fill all the spaces in a string with '%20'

Answer

public class Test {


    public void replaseSpaces(char[] str, int length) {


        int spaceCount = 0, newLength = 0, i = 0;


        for(i = 0; i < length; i++) {


            if (str[i] == ' ') 


                spaceCount++;


        }


 


        newLength = length + (spaceCount * 2);


        str[newLength] = '\0';


        for(i = length - 1; i >= 0; i--) {


            if (str[i] == ' ') {


                str[newLength - 1] = '0';


                str[newLength - 2] = '2';


                str[newLength - 3] = '%';


                newLength = newLength - 3;


            }


            else {


                str[newLength - 1] = str[i];


                newLength = newLength - 1;


            }


        }


        System.out.println(str);


    }


 


    public static void main(String[] args) {


        Test tst = new Test();


        char[] ch = {'t', 'h', 'e', ' ', 'd', 'o', 'g', ' ', ' ', ' ', ' ', ' ', ' '};


        int length = 6;


        tst.replaseSpaces(ch, length);  


    }


}

Report Error

View answer Workspace Report Error Discuss

0 2270
Q:

Automatic stabilizers refer to

A) government spending and taxes that automatically increase or decrease along with the business cycle. B) changes in the money supply and interest rates that are intended to achieve macroeconomic policy objectives.
C) changes in federal taxes and purchases that are intended to achieve macroeconomic policy objectives. D) the money supply and interest rates that automatically increase or decrease along with the business cycle.
 
Answer & Explanation Answer: A) government spending and taxes that automatically increase or decrease along with the business cycle.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2268
Q:

What is the information does assembly manifest provide?

Answer

Information provided by Assembly Manifest:



  1.  Assembly Name

  2.  Version Number

  3.  Culture

  4.  Strong name

  5.  List of files inside the assembly

  6.  Reference information

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2268
Q:

Which among the following is an asset for a bank?

A) The loans disbursed by Bank to its customers B) Cash Deposits of Customers
C) Investments made by Bank’s customers in its financial Products D) All of the above
 
Answer & Explanation Answer: A) The loans disbursed by Bank to its customers

Explanation:

Asset means anything that can be converted into cash. Here in banks, the loans disbursed by Bank to its customers is considered as assets because when they are cleared by them, then they are directly converted to cash.

Report Error

View Answer Report Error Discuss

Filed Under: Accounts Receivable
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

6 2267
Q:

What is the difference between Business Analyst & System Analyst?

Answer

The business analyst must understand IT and also has to understand the stakeholder’s needs. 


A systems analyst has the ability to look at a program or utility and see the code. They can go in and pinpoint where changes need to be made. 

Report Error

View answer Workspace Report Error Discuss

0 2267
Q:

What role does Dalvik play in Android development ?

Answer

Dalvik serves as a virtual machine, and it is where every Android application runs. Through Dalvik, a device is able to execute multiple virtual machines efficiently through better memory management.

Report Error

View answer Workspace Report Error Discuss

3 2266
Q:

What are the different types of diagrams and what do you know about them?

Answer

Use case diagram, activity diagram, Collaboration diagram. 


Use case diagram :


It describes the business environment. Its primary goal is to show the series of events and actions within any given process that will be performed by an actor.  


 


Activity diagram:


The activity diagram is important because it gives an outline of the work flow within the business as well as the activities and action completed. 


For instance with a company, there is likely to be more than one department. In such a case each department, will have different access levels to the system. 


So if there’s a Medical, HR and Accounts team they will only have access to screens that relate to each. 


The activity diagram will highlight the differences within the departments which will be very helpful for developers when they are designing and coding. 


 


Collaboration diagram:


A collaboration diagram, also called a communication diagram or interaction diagram, is an illustration of the relationships and interactions among software objects in the Unified Modeling Language (UML). The concept is more than a decade old although it has been refined as modeling paradigms have evolved. 

Report Error

View answer Workspace Report Error Discuss

0 2261
Q:

How do you handle conflict?

Answer

When responding to conflict resolution questions, answer with confidence since you're being considered for a supervisory position where you will frequently be required to work in teams, delegate responsibilities, and handle difficult problems.


The following is an effective way to answer conflict resolution questions:


Before proposing a solution, I collect all relevant facts surrounding the conflict. Conflicts are often resolved if sufficient time is devoted to determining root causes, while disregarding trivial or irrelevant facts.


An effective answer can also be supplemented with the following response:


When resolving a problem between employees, I serve as a neutral third party. When needed, I establish rules of conduct. For an organization to operate efficiently, employees must be on the same page. At most organizations, bad feelings exist among some employees, so a manager is responsible for ensuring that employees are placed in situations where they're comfortable to focus on their job responsibilities. In other words, employees must be situated around others they can work with so productivity is not affected.

Report Error

View answer Workspace Report Error Discuss

1 2261