3.7 of 5 231 reviews Bristol, CT 1000 to 5000 Employees

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 Flag Question

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

Answers & Comments

of 0
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 Flag Response

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.

Glassdoor is your free inside look at ESPN interview questions and advice. All interview reviews posted anonymously by ESPN employees and interview candidates.