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. An architecture that facilitates communication between objects in different address spaces.
class method
procedures
asterisk (*)
distributed objects
2. ____ provide a concise & elegant method for defining a discrete set of values
distributed objects
method
event
Enumerations
3. Property attribute that causes the setter to store a strong reference to the assigned value
strong
polymorphism
namespace
dangling pointer
4. Instance variables are optional in iOS if ________ are used
runtime
remote message
properties
instance
5. Same as class object. (second way to say it.)
ampersand (&)
factory object
dispatch table
conform
6. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
double
anonymous object
Unsigned
7. Property attribute that synthesizes only a getter for the property
readonly
reference counting
cannot
Binary
8. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
chars
event
subclass
object
9. Objective-C is a _____ of the C language
cycles
AppKit
superset
doubles
10. Finding the method implementation to invoke in response to the message
Interface Builder
printf( )
dynamic binding
abstract class
11. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
cycles
object
+
12. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
abstract class
instance
asynchronous message
designated
13. 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.
instance
value
binary
AppKit
14. C-style strings always end with a ____ character
interface
null
assign
Categories
15. The most flexible C data type: ______
event
framework
struct
[receiver message];
16. C-style strings are stored in an array of _____
instance
Unsigned
chars
class
17. An object of unknown class. Interface is published through protocol declaration.
anonymous object
Binary
@implementation
object
18. In a format string the place holder for an object is ______
adopt
conform
%@
instance variable
19. There are ____ fundamental building blocks in Objective-C
instance method
unitary
9
AppKit
20. A ____ ____ is a situation where you free memory and then accidentally continue to use it
memory leak
9
selector
dangling pointer
21. 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.
strong
weak
method
asynchronous message
22. The first index in an array is valued at ____
procedures
formal protocol
properties
zero
23. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
message expression
interface
object
delegates
24. A method that can operate on class objects rather than instances of the class.
class method
class
id
zero
25. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
nil
Product>Profile>Leaks>Profile
ampersand (&)
precedence
26. Xcode sequence to convert non-ARC apps to ARC
floating-point
Edit>Refactor>Convert to Objective-C ARC
receiver
informal protocol
27. Three main categories of more complicated data structures:_______ - arrays and structs
init
heap
abstract class
pointers
28. Any class that's one step below another class in the inheritance hierarchy.
static typing
deprecated
dynamic binding
subclass
29. _____ allow indirect access and modification of a variable's value.
Pointers
init
remote object
Categories
30. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
nonatomic
doubles
outlet
31. A class is said to do this when it declares that it implements all the methods in the protocol.
class method
Categories
adopt
nil
32. a+b; is an example of using a _____ operator
factory
-
binary
long long
33. Initializer method traditionally begin with the _____ prefix
instance
conform
Protocols
init
34. 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
memory leak
instance
conform
assignment
35. The root class in Objective-C
NSObject
NSString
Smalltalk
receiver
36. Placing a ____ before a normal variable name gives it's address
selector
ampersand (&)
nil
heap
37. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
Pointers
square brackets
outlet
38. 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.
inheritance hierarchy
reference counting
nonatomic
assign
39. A ____ _____ is where you forget to free up memory
copy
procedures
memory leak
runtime
40. 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
memory leak
dynamic binding
synchronous message
distributed objects
41. An object id with a value of 0.
AppKit
mutex
nonatomic
nil
42. A message sent from one application to an object in another application.
dereference (dereferencing)
remote message
event
formal protocol
43. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
ARC
Protocols
9
properties
44. An object that acts on behalf of another object.
delegate
struct
properties
chars
45. In a home building analogy a ____ is the blueprint and the object is the house
assignment
remote object
class
Categories
46. 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
category
weak
init
NSString
47. The _____ function can be used to print a message to the console
cycles
printf( )
instance
copy
48. Property attribute that synthesizes accessors that are not thread safe
Unitary
inheritance hierarchy
nonatomic
[receiver message];
49. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
@interface
interface
inheritance hierarchy
adopt
50. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
-
deprecated
zero