ESPN

  www.espn.go.com
Work in HR? Unlock Free Profile

ESPN Mobile Software Engineer Interview Question

I interviewed in Bristol, CT and was asked:
"Design a block function that returns an array and Bool."
Tags: technical
Add Tags [?]
Answer

Part of a Mobile Software Engineer Interview Review - one of 81 ESPN Interview Reviews

Answers & Comments

0
of 0
votes

Blocks are a relatively recent introduction (2010?) to the world of Objective C. Like declared functions in most other languages, a block function can only return one "thing" (or object). To get both an array and BOOL out of a block, you can either declare "__block" variables that can be passed in and modified from within the block, or you can return some Objective C object that contains both the array and BOOL.

- Interview Candidate on Jan 24, 2013

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.