SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Objective C Programming 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. Xcode sequence to convert non-ARC apps to ARC
double
strong
Edit>Refactor>Convert to Objective-C ARC
selector
2. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
runtime
@interface
double
inheritance
3. An architecture that facilitates communication between objects in different address spaces.
NSString
distributed objects
designated initializer
receiver
4. To destroy an object set the variable that points to it to _____
C operators
class object
anonymous object
nil
5. Same as class object. (first way to say it.)
factory
delegates
dynamic typing
Edit>Refactor>Convert to Objective-C ARC
6. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
AppKit
Pointers
Unitary
deprecated
7. C-style strings are stored in an array of _____
Pointers
procedural programming language
Cocoa
chars
8. An object of unknown class. Interface is published through protocol declaration.
heap
runtime
anonymous object
Interface Builder
9. The _____ function can be used to print a message to the console
printf( )
remote message
framework
dereference (dereferencing)
10. Instance variables are optional in iOS if ________ are used
fields
abstract superclass
C operators
properties
11. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
+
synchronous message
assignment
[receiver message];
12. A class is said to do this when it declares that it implements all the methods in the protocol.
interface
strong
adopt
fields
13. _____ allow indirect access and modification of a variable's value.
framework
Interface Builder
Pointers
designated
14. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
cycles
Enumerations
+
15. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
NSString
@interface
asynchronous message
Protocols
16. Property attribute that synthesizes both a getter and setter for the property
Signed
class
encapsulation
readwrite
17. Property attribute that synthesizes accessors that are not thread safe
nonatomic
receiver
Unitary
C operators
18. A ____ _____ is where you forget to free up memory
memory leak
pointer
receiver
procedures
19. An object id with a value of 0.
structures
nil
dispatch table
Interface Builder
20. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
Edit>Refactor>Convert to Objective-C ARC
pointer
Enumerations
21. Objective-C's protocols are really about communicating _____ _______
developer intent
cannot
Binary
Edit>Refactor>Convert to Objective-C ARC
22. An object that acts on behalf of another object.
protocol
remote message
deprecated
delegate
23. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
ampersand (&)
designated
class object
event
24. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
Categories
instance
instance variable
NSString
25. A message sent from one application to an object in another application.
Edit>Refactor>Convert to Objective-C ARC
compile time
readonly
remote message
26. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
class method
doubles
factory
long long
27. a+b; is an example of using a _____ operator
properties
binary
designated
inheritance
28. Property attribute that synthesizes only a getter for the property
C operators
asynchronous message
readonly
doubles
29. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
Interface Builder
outlet
Binary
abstract class
30. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
NSString
structures
remote object
pointers
31. The process of setting or reading the value at an address pointed to by a pointer
Categories
class object
dereference (dereferencing)
mutex
32. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
asterisk (*)
dispatch table
informal protocol
category
33. ____ provide a concise & elegant method for defining a discrete set of values
anonymous object
cannot
Enumerations
outlet
34. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
NSObject
outlet
framework
35. Objective-C objects should use strong or weak ______
readonly
dangling pointer
attributes
chars
36. A set of method definitions that is segregated from the rest of the class definition.
instance
Encapsulation
category
binary
37. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
procedures
value
outlet
38. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
C operators
instance
method
dangling pointer
39. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
@interface
factory object
dispatch table
40. In object-oriented programming the object that is sent a message.
init
receiver
namespace
informal protocol
41. a++; is an example of using a _____ operator
readonly
delegate
precedence
unitary
42. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
remote object
Smalltalk
instance variable
43. The root class in Objective-C
NSObject
delegate
fields
zero
44. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
Signed
readonly
namespace
NSObject
45. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
selector
id
assign
double
46. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
informal protocol
9
dynamic binding
interface
47. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
-
designated initializer
unitary
remote message
48. Placing a ____ before a normal variable name gives it's address
method
cannot
formal protocol
ampersand (&)
49. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
protocol
floating-point
NSString
50. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
designated initializer
procedures
abstract class
polymorphism