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. ______ data types are always zero or greate
AppKit
abstract class
Unsigned
ampersand (&)
2. 3 Common Float data types: float - _____ - CGFloat
struct
double
category
link time
3. 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
selector
conform
@interface
class method
4. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
class
class object
struct
cannot
5. 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.
precedence
dynamic binding
encapsulation
reference counting
6. Xcode sequence to convert non-ARC apps to ARC
NSObject
Edit>Refactor>Convert to Objective-C ARC
delegates
NSString
7. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
copy
cycles
interface
struct
8. All objects are created on the _____
precedence
dangling pointer
heap
%@
9. An object of unknown class. Interface is published through protocol declaration.
instance
anonymous object
dangling pointer
@interface
10. A variable that points to the memory address of another value
deprecated
pointer
procedural programming language
category
11. An object id with a value of 0.
nil
double
NSString
struct
12. 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.
nonatomic
AppKit
anonymous object
Cocoa
13. The process of setting or reading the value at an address pointed to by a pointer
floating-point
assignment
dereference (dereferencing)
delegate
14. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
Enumerations
Edit>Refactor>Convert to Objective-C ARC
NSString
15. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
printf( )
Interface Builder
event
compile time
16. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
formal protocol
readonly
NSString
comma-separated
17. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
cannot
mutex
superset
inheritance hierarchy
18. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
inheritance hierarchy
procedural programming language
outlet
19. A set of method definitions that is segregated from the rest of the class definition.
protocol
superclass
category
abstract class
20. In Objective-C floats are more commonly used than ______
Interface Builder
selector
doubles
Edit>Refactor>Convert to Objective-C ARC
21. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
dereference (dereferencing)
selector
factory object
mutex
22. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
procedures
event
long long
chars
23. 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.
dispatch table
instance
class method
@implementation
24. Property attribute where the setter stores the assigned value but does not perform any memory management.
informal protocol
asterisk (*)
event
assign
25. The _____ function can be used to print a message to the console
inheritance hierarchy
class
printf( )
Protocols
26. _____ allow you to add new methods to existing classes
Categories
ampersand (&)
distributed objects
square brackets
27. In object-oriented programming the object that is sent a message.
selector
Signed
receiver
attributes
28. Finding the method implementation to invoke in response to the message
dynamic binding
Categories
adopt
dynamic typing
29. An object in another application - one that's a potential receiver for a remote message.
developer intent
properties
remote object
NSString
30. Placing a ____ before a normal variable name gives it's address
%
superclass
instance variable
ampersand (&)
31. C-style strings always end with a ____ character
null
id
nonatomic
fields
32. a++; is an example of using a _____ operator
pointer
unitary
mutex
Interface Builder
33. This symbol denotes a method as being an instance method
dynamic typing
NSObject
-
binary
34. 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.
dynamic binding
event
Signed
asynchronous message
35. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
link time
distributed objects
asynchronous message
procedural programming language
36. Square bracket syntax for calling a method
[receiver message];
NSString
square brackets
+
37. When creating a class header file you begin with the _____ keyword and close with the @end keyword
floating-point
@interface
readonly
mutex
38. Same as class object. (second way to say it.)
Encapsulation
object
adopt
factory object
39. Instance variables are optional in iOS if ________ are used
properties
NSString
runtime
Unsigned
40. a+b; is an example of using a _____ operator
message expression
@interface
compile time
binary
41. Property attribute that causes the setter to store a copy of the assigned value
doubles
Categories
copy
binary
42. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
inheritance hierarchy
Interface Builder
class object
43. A method that can operate on class objects rather than instances of the class.
remote object
class method
factory object
inheritance hierarchy
44. Same as class object. (first way to say it.)
message expression
asynchronous message
fields
factory
45. _____ operators take 2 operands
designated initializer
designated
C operators
Binary
46. 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
runtime
mutex
Product>Profile>Leaks>Profile
synchronous message
47. An architecture that facilitates communication between objects in different address spaces.
Product>Profile>Leaks>Profile
message expression
distributed objects
pointers
48. In a home building analogy a ____ is the blueprint and the object is the house
readwrite
class
unitary
class
49. Any method that can be used by an instance of a class rather than by the class object.
Pointers
instance method
dynamic allocation
method
50. 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.
receiver
id
instance method
formal protocol