SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
iOS 5 App Development Basics
Start Test
Study First
Subjects
:
it-skills
,
apple
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. This keyword in the property directive is related to memory management and refers to the idea that we want to maintain control of memory issues
retain
Model-View-Controller
'Interface Builder'
convenience
2. An array of background images called 'bgImages' has been declared as an instance variable in your header file. You have created a set of 5 background images stored in UIImage variables wp1 through wp5. Write a line of code that initializes the array.
bgImages = [[NSArray alloc] initWithObjects: wp1 - wp2 - wp3 - wp4 - wp5 - nil];
Xcode
%@
UIWindow
3. Tests to see whether two values are not equal
!=
NSArray
interface file
alpha ... 1
4. Modulus (remainder) operator
%1.2f
boiler-plate
%
segmented control
5. RAM for iPhone
count++;
class
for(<initialization>;<test condition>;<update instruction>){/*do this over and over*/}
512MB
6. Used to receive an event in code and trigger something
Determine how controls resize/reposition themselves when a device changes orientation
IBAction
NSString *userName;
@
7. Multiline text entry block
eXtensible Markup Language
attributes
h
UITextView
8. Symbol used for inheritance
xcodeproj
Isolate the functional components of an app
ommand+Return
:
9. Scaling factor to make an image suitable for retina display
2
storyboard
retain - release - dealloc - autorelease
instantiation
10. The ________ class provided a container for the management and display of views
UIWindow
ption+Command+Return
YES
Model-View-Controller
11. This type of app typically involves hierarchical data
NSObject
productivity
@end
Document Outline Area or Outline View
12. Dimensions of iPad (in points)
114 x 114
NSLog
NSString *userName;
1024 x 768
13. How do you get rid of an onscreen keyboard?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
14. Scaling - rotation - and translation are the most commonly used manipulations supported by _____ transforms - but skewing is also possible.
Send the 'resignFirstResponder' message to the object that currently controls the keyboard (such as a text field)
affine
Model-View-Controller
First Responder
15. Size of iPhone 'lo-res' icon image in pixels
productivity
57 x 57
NSLog
alpha
16. Although it is possible to declare an instance variable and then define a corresponding property - you may also use @property alone to...
pipe
implicitly declare a matching instance variable
:
Integrated Development Environment
17. This type of app is typically one screen - and gives you the basics with minimal interaction
scene
utility
Classes
Outlets ... pointer
18. Dimensions of iPhone (in points)
Cocoa Touch - Media - Core Services - Core OS
320 x 480
Determine how controls resize/reposition themselves when a device changes orientation
<type> <variableName>;
19. @property directives should be placed ____ (above or below) any IBActions in the header file
UIImageView
alpha ... 0
above
%
20. Precondition repetition structure syntax
while(<boolean expression>){/*stuff to do here*/}
&&
Nib (but a few call it 'zib' but that's not preferred)
productivity
21. What do the Autosizing settings of the Size Inspector do?
*
count++;
Command+1
Determine how controls resize/reposition themselves when a device changes orientation
22. Negation symbol
!
hash
Model-View-Controller
Look at the three icons at the upper left portion of the Debug console. The far left one - 'Show only the Variables View' will not show the NSLog-ed information. Click the center icon ('Show the Variables View and the Console') or the right icon ('Sh
23. Used to indicate any type of object
com.basicversity
id
@
Application Programming Interface
24. In your implementation file - the _____ method (provided in stub form by Apple) runs after machine language code reserves some space in memory for your View. This method is often used to create a 'clean slate' as an app opens.
viewDidLoad
Object-oriented programming
bool
Collections
25. Shortcut for writing: y = y * 5;
1024 x 768
Actions
NSArray
y *= 5;
26. Crash statement likely when an NSString is assigned a value with an incorrect format
%@
Outlets ... pointer
Program received signal: EXC_BAD_ACCESS
Command plus the navigator's position in the selector. For example - the project navigator shortcut is Command-1
27. Used to set up an outgoing connection from the implementation code to the view
Command + Tab
%@
%
IBOutlet
28. A file folder in the navigator panel is called a ________
@
Something unique - based on the app's name (perhaps abbreviated). Avoid 'NS' or 'UI' since they are used in Apple's frameworks. A framework or library should always be prefixed. For a simple app - they are not necessary.
Group
C
29. Given: #import <UIKit/UIKit.h> @interface WelcomeViewController : UIViewController @end The superclass for WelcomeViewController
sending an object a message
UIViewController
retain - release - dealloc - autorelease
prototyping
30. How do you show a storyboard file as source code?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
31. Key sequence to hide/show the Assistant Editor
eXtensible Markup Language
ption+Command+Return
320 x 480
controller
32. Under what circumstances would you need an outlet for a button if it's just needed to trigger an action?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
33. You have two labels in Interface Builder. One is selected (You clicked on it). How can you tell the distance between it and the other label?
To provide a convenient way of setting the button's title in the code
Hold down the Option key and point to the other label. The distance will be shown
Group
/*blah blah blah */
34. The Inspector you would use to control your layout in Interface Builder
Size Inspector
pipe
YES
'Interface Builder'
35. In the MVC design pattern for iOS apps - this aspect is responsible for receiving user input and acting accordingly - and serves as a 'bridge' between the other two components. It is the backbone of the app.
!
y *= 5;
controller
Commmand-R
36. Shortcut for writing: x = x - 1;
pound
x--;
affine
Cocoa Touch
37. Way to refer to an object within its own methods
Command+R
self
Commmand-R
Application Programming Interface
38. Postcondition repetition structure syntax
NSString *userName;
Application Programming Interface
Disables the Return key on the keyboard unless the user has entered at least a single character of input into the field
do{/*stuff to do here*/}while(<boolean expression>);
39. SDK
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. A view has a 'Shrink' button whose label needs to change once it is clicked to 'Grow'. Write a 'message' type command to change it's label to 'Grow'
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
41. This keyword in the property directive is related to the concept of mutability and basically asks Apple to handle the details. This is the more 'relaxed' - less 'powerful' setting of two possibilities
[shrinkButton setTitle:@'Grow' forState: UIControlStateNormal];
nonatomic
count++;
contentSize
42. A virtual 'box' for organizing related projects
workspace
@synthesize directive
modal
UILabel *myLabel = [[UILabel alloc] initWithString:@'GO!'];
43. If you wish to 'echo print' breadcrumb info as you develop your app - this panel must be visible
storyboard
self
The Console area of the Debug area
UIImage *wp1 = [UIImage imageNamed:@'wallPaper_01.png'];
44. Write a statement to declare and initialize a label object called 'myLabel'
inspector and library
UILabel *myLabel = [[UILabel alloc] init];
[<object variable> <method name>];
Nib (but a few call it 'zib' but that's not preferred)
45. The Inspector you would access to gain access to various accessibility attributes
Identity Inspector
UITextView
Utility apps
C
46. Term used to describe each screen of an iPhone app
model
Isolate the functional components of an app
eXtensible Markup Language
view
47. getters
C
Isolate the functional components of an app
accessors
accessible apps
48. Method used to print information in an output panel
viewDidLoad
stub
NSLog
Cocoa is the development framework used for most native Mac OS X applications; Cocoa Touch is customized for a touch interface
49. Denotes a class method
Isolate the functional components of an app
label.text=@'Hello World!';
IBAction
+
50. Boolean for 'false' in Objective-C
interface file
NO
NSArray
Application Programming Interface