Interview Questions

Q:

Difference between Arraylist and Linked list?

Answer

ArrayList and LinkedList both implements List interface and maintains insertion order. Both are non synchronized classes.


 


But there are many differences between ArrayList and LinkedList classes that are given below.


 

ArrayList    V/s     LinkedList ::


 

1) ArrayList internally uses dynamic array to store the elements.


                   Whereas


LinkedList internally uses doubly linked list to store the elements.


 

2) Manipulation with ArrayList is slow because it internally uses array. If any element is removed from the array, all the bits are shifted in memory.


                   Whereas


Manipulation with LinkedList is faster than ArrayList because it uses doubly linked list so no bit shifting is required in memory.


 

3) ArrayList class can act as a list only because it implements List only.


                   Whereas


LinkedList class can act as a list and queue both because it implements List and Deque interfaces.


 

4) ArrayList is better for storing and accessing data.


                   Whereas


LinkedList is better for manipulating data.

Report Error

View answer Workspace Report Error Discuss

3 2528
Q:

How to upload files in Amazon S3?

Answer

Amazon S3 provides uploading of large files and retrieve small offsets for end-to-end transfer data rates. The large file gets stored into small files that are smaller in size. Amazon S3 stores multiple of files together in a bundle or in a compressed form, For example in .gzip or .gz format and then convert them into Amazon S3 objects. The files get uploaded on the Amazon server by the use of FTP or another protocol and then retrieved through the HTTP GET request. The request includes the defined parameters like URL, offset (byte-range) and size (length).

Report Error

View answer Workspace Report Error Discuss

Subject: Cloud Computing

0 2528
Q:

How can you avoid callback hells ?

Answer

There are lots of ways to solve the issue of callback hells:


1. Modularization: break callbacks into independent functions
2. Use a control flow library, like async
3. Use generators with Promises
4. Use async/await (note that it is only available in the latest v7 release and not in the LTS version)

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: Analyst , IT Trainer

3 2526
Q:

The yield to maturity on a discount bond is

A) equal to both the coupon rate / current yeild B) less than the current yeild but greater than the coupon rate
C) greater than both the coupon rate / current yeild D) equal to the current yeild but greater than the coupon rate
 
Answer & Explanation Answer: A) equal to both the coupon rate / current yeild

Explanation:

Yield to maturity is a concept for fixed rate bonds and is the internal rate of return i.e. the rate at which future flows are discounted on a compound basis to give the present value of the bond including accrued interest.

Report Error

View Answer Report Error Discuss

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

1 2523
Q:

How can you deploy an ASP.NET Web application?

Answer

You can deploy an ASP.NET Web application using either the Windows Installer deployment or ClickOnce deployment technique.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

0 2523
Q:

Describe account receivable?

Answer

Accounts Receivable means the amount which comes in to the business. Eg: If the trader made sales to the customer then obviously the trader will received the amount for the sales made. So here the amount which comes in is said to be accouts receivable.

Report Error

View answer Workspace Report Error Discuss

1 2522
Q:

Securities and Exchange Board of India (SEBI) is related to

A) Government of India B) Banks
C) State Government D) Share Market
 
Answer & Explanation Answer: D) Share Market

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Accounts Payable
Exam Prep: Bank Exams , CAT
Job Role: Bank PO

7 2521
Q:

How do you stay up to date with fashion?

Answer

Designers stay current by reading magazines, browsing the internet, attending fashion shows, and studying technical manuals. They study the history of fashion to better understand its development and current tendencies.

Report Error

View answer Workspace Report Error Discuss

4 2520