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. All objects are created on the _____
cannot
conform
heap
Interface Builder
2. ARC is susceptible to retain _____
cycles
%
factory object
+
3. The first index in an array is valued at ____
9
zero
synchronous message
assign
4. An object id with a value of 0.
value
nil
designated initializer
@implementation
5. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
cannot
factory
doubles
6. Property attribute that causes the setter to store a copy of the assigned value
Product>Profile>Leaks>Profile
procedural programming language
copy
runtime
7. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
instance
@implementation
protocol
8. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
distributed objects
category
dereference (dereferencing)
assignment
9. There are ____ fundamental building blocks in Objective-C
informal protocol
designated initializer
remote object
9
10. 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
@implementation
Smalltalk
conform
11. In a format string the place holder for an object is ______
nonatomic
value
%@
[receiver message];
12. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
NSObject
Product>Profile>Leaks>Profile
object
13. Property attribute that causes the setter to store a strong reference to the assigned value
runtime
dereference (dereferencing)
strong
Product>Profile>Leaks>Profile
14. This symbol denotes a method as being a class method
dynamic typing
conform
+
chars
15. Any method that can be used by an instance of a class rather than by the class object.
cannot
instance method
delegates
polymorphism
16. Instance variables are optional in iOS if ________ are used
properties
double
framework
link time
17. A struct may contain multiple ____ consisting of different data types
comma-separated
category
fields
link time
18. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
Signed
delegates
adopt
dynamic typing
19. 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.
Unsigned
outlet
zero
floating-point
20. A class is said to do this when it declares that it implements all the methods in the protocol.
properties
asynchronous message
adopt
Binary
21. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
nonatomic
adopt
polymorphism
protocol
22. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
inheritance
instance
9
message
23. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
runtime
readwrite
fields
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.
informal protocol
instance variable
factory object
%
25. Property attribute that synthesizes both a getter and setter for the property
structures
factory object
AppKit
readwrite
26. 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).
delegate
ampersand (&)
attributes
implementation
27. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
reference counting
Binary
copy
class method
28. Data types are divided into two main categories: integer and ______
asterisk (*)
Binary
dynamic typing
floating-point
29. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
pointer
Interface Builder
formal protocol
Product>Profile>Leaks>Profile
30. In object-oriented programming a procedure that can be executed by an object.
method
weak
conform
nil
31. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
double
static typing
fields
formal protocol
32. 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
pointers
NSString
compile time
message
33. A method that can operate on class objects rather than instances of the class.
instance method
class method
assign
mutex
34. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
developer intent
link time
Encapsulation
readwrite
35. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
selector
mutex
attributes
assignment
36. A message sent from one application to an object in another application.
remote message
memory leak
class method
Categories
37. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
Protocols
properties
long long
Enumerations
38. _____ allow indirect access and modification of a variable's value.
Protocols
Pointers
asynchronous message
C operators
39. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
mutex
class
instance
factory object
40. Objective-C binds methods and arguments at _____ instead of compile time
runtime
-
designated initializer
informal protocol
41. Objective-C's protocols are really about communicating _____ _______
binary
event
Pointers
developer intent
42. 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.
class object
Binary
strong
remote message
43. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
instance variable
9
object
cannot
44. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
inheritance hierarchy
NSString
chars
45. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
developer intent
factory
value
floating-point
46. 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.
encapsulation
Pointers
square brackets
9
47. A compiler feature that provides automated memory management
factory object
procedures
ARC
anonymous object
48. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
designated
protocol
static typing
49. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
Pointers
message expression
distributed objects
50. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
strong
+
Encapsulation