प्रश्न और उत्तर का अभ्यास करें
8प्र: How can your application perform actions that are provided by other application e.g. sending email? 983 05b5cc7d6e4d2b419777514fe
5b5cc7d6e4d2b419777514fe- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
Intents are created to define an action that we want to perform and the launches the appropriate activity from another application. Code Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_EMAIL, recipientArray); startActivity(intent);
प्र: How will you launch an Activity within you application? 1631 05b5cc7d6e4d2b419777514fd
5b5cc7d6e4d2b419777514fd- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
For launching an application, we will need to create an intent that explicitly defines the activity that we wish to start. For example: Code Intent intent = new Intent(this, MyTestActivity.class); startActivity(intent);
प्र: Whats a struct? 1610 05b5cc7d6e4d2b419777514fc
5b5cc7d6e4d2b419777514fc- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
A struct is a special C data type that encapsulates other pieces of data into a single cohesive unit. Like an object, but built into C.
प्र: Whats the difference between a NSArray and a NSMutableArray? 1150 05b5cc7d6e4d2b419777514fb
5b5cc7d6e4d2b419777514fb- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
A NSArray’s contents can not be modified once it’s been created whereas a NSMutableArray can be modified as needed, i.e items can be added/removed from it.
प्र: If I call performSelector:withObject:afterDelay: – is the object retained? 1012 05b5cc7d6e4d2b419777514fa
5b5cc7d6e4d2b419777514fa- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
Yes the object is retained. It creates a timer that calls a selector on the current threads run loop. It may not be 100% precise time-wise as it attempts to dequeue the message from the run loop and perform the selector.
प्र: Explain the correct way to manage Outlets memory? 1048 05b5cc7d6e4d2b419777514f9
5b5cc7d6e4d2b419777514f9- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
Create them as properties in the header that are retained. In the viewDidUnload set the outlets to nil(i.e self.outlet = nil). Finally in dealloc make sure to release the outlet.
प्र: Where can you test Apple iPhone apps if you don’t have the device? 1772 05b5cc7d6e4d2b419777514f8
5b5cc7d6e4d2b419777514f8- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
iOS Simulator can be used to test mobile applications. Xcode tool that comes along with iOS SDK includes Xcode IDE as well as the iOS Simulator. Xcode also includes all required tools and frameworks for building iOS apps. However, it is strongly recommended to test the app on the real device before publishing it.
प्र: Which API is used to write test scripts that help in exercising the application's user interface elements? 1490 05b5cc7d6e4d2b419777514f7
5b5cc7d6e4d2b419777514f7- उत्तर देखेंउत्तर छिपाएं
- Workspace
- SingleChoice
उत्तर :
व्याख्या :
UI Automation API is used to automate test procedures. Tests scripts are written in JavaScript to the UI Automation API. This in turn simulates user interaction with the application and returns log information to the host computer.

