Objective C interview questions

Objective C interview questions

Take as many assements as you can to improve your validate your skill rating

Total Questions: 5

1. What is the file extension name used for Objective-C code?

Correct Answer is : .m

2. What does the leading + sign at the start of a method indicate?

Correct Answer is : A class method

3. What is a local variable that has no default initial value and does not retain its value through method calls?

Correct Answer is : An auto variable

4. What is the value of s after executing this loop: int i = 0, s = 0; while (i < 5) s += ++i;

Correct Answer is : 15

5. What is the value of z after executing this sequence (check indentation)?int x = 100, y = 50, z = -1; if ( x + y > 50) if ( x + y < 100) z = 0; else z = 1;

Correct Answer is : 1

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon