Interview Questions

Q:

What is factory method in AngularJS ?

A) It generates the facts and figures B) It is used to create the service
C) It is used to calculate the factorial of a number D) All the above
 
Answer & Explanation Answer: B) It is used to create the service

Explanation:

In general, Services are Javscript functions and are responsible to do a specific tasks. Factories implements module pattern in which we use a factory method to generate an object which is use for building models.

It's syntax is
module.factory('factoryName', function);

Report Error

View Answer Report Error Discuss

Filed Under: Web Technology
Job Role: Analyst , Software Architect

1 3131
Q:

How To Open Outlook Explorer in VB Code?

Answer

Once can use the Shell function to call any Aplication in VB 6.0. For Outlook Express one can use, Shell (msimn.exe)

Report Error

View answer Workspace Report Error Discuss

0 3128
Q:

How to create recursive query in SQL Server?

Answer

Recursive query can be create in SQL using stored procedure but you can also use CTE (Common table expression). It might be also worth asking about performance as CTE is not always very fast.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

0 3127
Q:

Write code snippet to retrieve IMEI number of Android phone?

Answer

TelephonyManager class can be used to get the IMEI number. It provides access to information about the telephony services on the device.


Code


        TelephonyManager mTelephonyMgr = (TelephonyManager)


        getSystemService(Context.TELEPHONY_SERVICE);


        String imei = mTelephonyMgr.getDeviceId();

Report Error

View answer Workspace Report Error Discuss

0 3122
Q:

What is Ribbon ?

Answer

Ribbon is the term used as a replacement to the menu bar and toolbars in the older Microsoft Office versions. Under the ribbon, file menu items and toolbar buttons were grouped according to their functionality. It made these functions much accessible on the main interface, with the most commonly used buttons being shown instantly.

Report Error

View answer Workspace Report Error Discuss

9 3121
Q:

Which of the following investment choices is least risky?

A) Renting B) Bonds
C) Flipping D) CD's
 
Answer & Explanation Answer: D) CD's

Explanation:

CDs are the least risky investment choice when compared to flipping, renting and bonds.

A certificate of deposit (CD) is a savings certificate with a fixed maturity date, specified fixed interest rate and can be issued in any denomination aside from minimum investment requirements. A CD restricts access to the funds until the maturity date of the investment. CDs are generally issued by commercial banks.

CDs are issued by the bank and are guaranteed by the government. So even if the bank goes bankrupt the investor's money is guaranteed to a certain extent.

Flipping and renting are subjected to market fluctuations while bonds are not insured.

 

Report Error

View Answer Report Error Discuss

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

0 3120
Q:

What are the Golden Rules Of Accounting ?

Answer

Golden rules of accounting convert complex book-keeping rules into a set of well defined principles which can be easily studied and applied.



Real accounts involve machinery, land and building etc... Similarly when you credit what goes out, you are reducing the account balance when a tangible asset goes out of the organization. Debit All Expenses And Losses, Credit All Incomes And Gains. This rule is applied when the account in question is a nominal account.


Personal-Account


---Debit the receiver


---Credit the Giver


Real-Account


---Debit what comes in


---Credit what goes out


Nominal-Account


---Debit all expenses and losses


---Credit all income and gains

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Receivable Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

3 3120
Q:

EXPLAIN has output with MATCHCOLS = 0. What does it mean?

Answer

a nonmatching index scan if ACCESSTYPE = 1


 

Report Error

View answer Workspace Report Error Discuss

0 3118