Interview Questions

Q:

How can we achieve singleton pattern in iOS?

Answer

The Singleton design pattern ensures a class only has one instance, and provides a global point of access to it. The class keeps track of its sole instance and ensures that no other instance can be created. Singleton classes are appropriate for situations where it makes sense for a single object to provide access to a global resource.Several Cocoa framework classes are singletons. They includeNSFileManager, NSWorkspace, NSApplication, and, in UIKit,UIApplication. A process is limited to one instance of these classes. When a client asks the class for an instance, it gets a shared instance, which is lazily created upon the first request.

Report Error

View answer Workspace Report Error Discuss

Subject: IOS

3 2704
Q:

Capitalism is characterized by which of the following?

A) Profits B) A market economy
C) Privately owned businesses D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

Capitalism is an economic system followed by a country or a society which is characterized by Privately owned businesses, a market economy and profits.


Capitalism is defined as "production for exchange" driven by the desire for personal accumulation of money receipts in such exchanges, mediated by free markets. The markets themselves are driven by the needs and wants of consumers and those of society as a whole in the form of the bourgeois state.

Report Error

View Answer Report Error Discuss

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

0 2703
Q:

What is Thread?

Answer

A Thread is a block of code that can be executed in parallel with another block of code.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2703
Q:

What is Catalog Views?

Answer

Catalog views return information that is used by the SQL Server Database Engine. Catalog Views are the most general interface to the catalog metadata and provide the most efficient way to obtain, transform, and present customized forms of this information. All user- available catalog metadata is exposed through catalog views.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

1 2702
Q:

What are the rules which should be followed while naming a variable in VB?

Answer

Some of the rules which should be followed while naming a variable in VB are as follows: 


1) Characters should be less than 255.


2) Space between characters should be allowed.


3) A variable should begin with a number.


4) Period may not be permitted.

Report Error

View answer Workspace Report Error Discuss

0 2701
Q:

Promotions and promotion mix :

What about the budget? We want our promotional campaigns to be cost effective enough. I don’t think we can afford celebrity endorsements as of now!

Answer

No problem. We can use network marketing as an alternative. The company already has its strong network of customers who can spread the word about its products. They can encourage referral rewards for say every three customers who will buy our product or avail our service.


We can also announce a contest for the customers to buy the product and win a chance to get himself broadcasted for the product advertisement. We can ask them to send in their photo along with the contest application form which they get alongwith the product they buy. So we don’t have to pay them as we would otherwise have to pay to a celebrity.

Report Error

View answer Workspace Report Error Discuss

0 2701
Q:

What documents are used for use cases?

Answer

There are 2 documents: 


FRD (functional requirement document) 


SDD (system design document) which can also be called TRS (Technical requirements specifications) 

Report Error

View answer Workspace Report Error Discuss

0 2700
Q:

What are the different models used in cluster analysis?

Answer

There are many algorithms that can be used to analyze the database to check the maintenance of all the data sets that are already present. The different types of cluster models include as follows:


- Connectivity models: these are the models that connect one cluster to another cluster. This includes the example of hierarchical clustering that is based on the distance connectivity of one model to another model. 


- Centroid models: these are the models that are used to find the clusters using the single mean vector. It includes the example of k-means algorithm.


- Distribution models: it includes the specification of the models that are statistically distributed for example multivariate normal distribution model.


- Density models: deals with the clusters that are densely connected with one another in the regions having the data space. 


- Group models: specifies the model that doesn’t provide the refined model for the output and just gives the grouping information

Report Error

View answer Workspace Report Error Discuss

0 2700