Interview Questions

Q:

What is Automatic Reference Counting (ARC) ?

Answer

ARC is a compiler-level feature that simplifies the process of managing the lifetimes of Objective-C objects. Instead of you having to remember when to retain or release an object, ARC evaluates the lifetime requirements of your objects and automatically inserts the appropriate method calls at compile time.

Report Error

View answer Workspace Report Error Discuss

Subject: IOS

2 3712
Q:

What is a Wrapper class?

Answer

Wrapper classes wrap primitive values in a class and offers utility to access them through objects. Some of the primitive wrapper data types are:


Byte, short, int, long, float, double, char, Boolean.


Example: 


Create a class name VectorAdd to populate it with integer values using the add(int, object) method.


public class VectorAdd


{


       public static void main(String argv[])


       {


             Vector v = new Vector();


             v.add(0,new Integer(10));


             v.add(1,new Integer(20));


             v.add(2,new Integer(30));


             for(int i=0; i < v.size();i ++)


             {


                  Integer iw =(Integer) v.get(i);


                  System.out.println(iw);


             }


       }


}

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 3707
Q:

What is Stop-and-Wait Protocol?

Answer

In Stop and wait protocol, sender sends one frame, waits until it receives confirmation from the receiver (okay to go ahead), and then sends the next frame.


 

Report Error

View answer Workspace Report Error Discuss

0 3703
Q:

Different access specifiers for the class member in C++

Answer

Access specifiers in C++ determines the scope of the class members.


Public: If a class member is public, it can be used anywhere without the access restrictions.


Private: if a class member is private, it can be used only by the members and friends of class.


Protected: If a class member is protected, it can be used only by the members and friends of class and the members and friends of classes derived from class.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

1 3699
Q:

What is RUNSTATS?

Answer

A DB2 utility used to collect statistics about the data values  in tables which can be used   by the optimizer to decide the access path. It also collects statistics used for space   management. These statistics are stored in DB2 catalog tables.

Report Error

View answer Workspace Report Error Discuss

0 3698
Q:

Classify the Hashing Functions based on the various methods by which the key value is found.

Answer

Direct method,


 Subtraction method,


 Modulo-Division method,


 Digit-Extraction method,


 Mid-Square method,


 Folding method,


Pseudo-random method

Report Error

View answer Workspace Report Error Discuss

Subject: Technology

5 3689
Q:

Describe a time where customer wasn’t happy and what did you do to change it?

Answer

There’s no doubt that working in retail you will encounter an unhappy, disgruntled, or difficult customer.  Learning to hold in your personal feelings, addressing empathy for customers, and representing the company well in order to keep customers coming back are all important skills recruiters will look for when assessing how you deal with uncomfortable situations.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Retail

2 3672
Q:

What are three ways to reduce page load time?

Answer

There are many answers here: Reduce image sizes, remove unnecessary widgets, HTTP compression, put CSS at the top and script references at the bottom or in external files, reduce lookups, minimize redirects, caching, etc.

Report Error

View answer Workspace Report Error Discuss

4 3667