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. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
subclass
instance
Protocols
double
2. Property attribute that synthesizes accessors that are not thread safe
chars
doubles
nonatomic
procedures
3. When creating a class header file you begin with the _____ keyword and close with the @end keyword
NSObject
procedures
@interface
conform
4. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
conform
factory object
Interface Builder
Protocols
5. The most flexible C data type: ______
Cocoa
struct
copy
dereference (dereferencing)
6. Data types are divided into two main categories: integer and ______
link time
dispatch table
@implementation
floating-point
7. A class is said to do this when it declares that it implements all the methods in the protocol.
object
protocol
adopt
subclass
8. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
Unsigned
implementation
framework
remote message
9. Same as class object. (second way to say it.)
factory object
double
Enumerations
zero
10. C-style strings always end with a ____ character
NSObject
null
%@
Signed
11. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
comma-separated
event
outlet
Categories
12. Property attribute that synthesizes both a getter and setter for the property
Pointers
Edit>Refactor>Convert to Objective-C ARC
readwrite
9
13. 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
NSString
designated initializer
Cocoa
%@
14. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
nil
event
instance method
15. C-style strings are stored in an array of _____
outlet
chars
abstract class
Cocoa
16. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
NSString
weak
designated initializer
compile time
17. In object-oriented programming the object that is sent a message.
dynamic binding
nonatomic
Pointers
receiver
18. In object-oriented programming a procedure that can be executed by an object.
asterisk (*)
protocol
properties
method
19. Square bracket syntax for calling a method
Binary
[receiver message];
message
inheritance hierarchy
20. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
dispatch table
delegates
Cocoa
developer intent
21. A compiler feature that provides automated memory management
ARC
cannot
dereference (dereferencing)
polymorphism
22. 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
structures
superset
assign
synchronous message
23. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
value
properties
@interface
24. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
compile time
runtime
static typing
weak
25. A protocol declared as a category usually as a category of the NSObject class.
comma-separated
AppKit
informal protocol
delegates
26. 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.
delegates
namespace
encapsulation
pointer
27. In a home building analogy a ____ is the blueprint and the object is the house
synchronous message
class
remote message
precedence
28. 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.
outlet
precedence
instance
selector
29. An object of unknown class. Interface is published through protocol declaration.
Binary
procedures
class
anonymous object
30. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
superclass
unitary
designated initializer
31. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
-
Categories
Pointers
32. A variable that points to the memory address of another value
pointer
nil
Encapsulation
Unsigned
33. 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
readwrite
structures
remote message
NSString
34. Objective-C methods are called using ____ _____
inheritance
namespace
-
square brackets
35. 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.
asynchronous message
%
comma-separated
cycles
36. Instance variables are optional in iOS if ________ are used
nonatomic
instance
properties
category
37. Same as class object. (first way to say it.)
class method
dynamic typing
factory
%
38. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
conform
polymorphism
double
39. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
link time
Unsigned
polymorphism
dispatch table
40. Property attribute where the setter stores the assigned value but does not perform any memory management.
pointer
superclass
inheritance hierarchy
assign
41. A method that can operate on class objects rather than instances of the class.
nil
class method
pointer
synchronous message
42. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
attributes
inheritance
cannot
43. The process of setting or reading the value at an address pointed to by a pointer
procedures
dereference (dereferencing)
dangling pointer
inheritance hierarchy
44. Objective-C's protocols are really about communicating _____ _______
inheritance
developer intent
delegate
doubles
45. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
ampersand (&)
class object
inheritance hierarchy
static typing
46. Xcode sequence to examine an app for memory leaks or retain cycles
event
printf( )
Product>Profile>Leaks>Profile
remote message
47. 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.
instance
NSObject
id
[receiver message];
48. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
Signed
doubles
instance method
encapsulation
49. A set of method definitions that is segregated from the rest of the class definition.
category
inheritance hierarchy
Product>Profile>Leaks>Profile
value
50. Property attribute that synthesizes only a getter for the property
readonly
Smalltalk
comma-separated
class