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
abstract superclass
instance
nonatomic
cycles
2. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
%
framework
link time
Cocoa
3. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
implementation
%
value
4. Property attribute that synthesizes both a getter and setter for the property
dynamic allocation
nonatomic
readwrite
class
5. In object-oriented programming the object that is sent a message.
category
class
inheritance hierarchy
receiver
6. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
precedence
message
@implementation
dispatch table
7. The process of setting or reading the value at an address pointed to by a pointer
struct
designated
formal protocol
dereference (dereferencing)
8. Property attribute where the setter stores the assigned value but does not perform any memory management.
namespace
assign
chars
Pointers
9. A protocol declared as a category usually as a category of the NSObject class.
zero
informal protocol
nil
square brackets
10. Property attribute that causes the setter to store a strong reference to the assigned value
compile time
strong
category
%@
11. A struct may contain multiple ____ consisting of different data types
interface
fields
abstract class
9
12. ______ operators take a single operand
instance variable
Unitary
Signed
formal protocol
13. The most flexible C data type: ______
floating-point
instance
struct
null
14. When creating a class header file you begin with the _____ keyword and close with the @end keyword
square brackets
%
@interface
floating-point
15. 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
readwrite
fields
dynamic typing
16. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
delegate
weak
copy
asterisk (*)
17. Objective-C objects should use strong or weak ______
delegate
9
attributes
abstract class
18. 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
9
delegate
NSString
19. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
instance method
printf( )
instance
cannot
20. 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.
%@
object
Pointers
class method
21. ____ provide a concise & elegant method for defining a discrete set of values
square brackets
Enumerations
dynamic typing
class
22. In object-oriented programming a procedure that can be executed by an object.
procedures
method
class
ARC
23. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
inheritance
designated initializer
dynamic allocation
long long
24. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
value
heap
designated
mutex
25. 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
subclass
conform
distributed objects
object
26. A variable that points to the memory address of another value
pointer
informal protocol
Smalltalk
weak
27. Any method that can be used by an instance of a class rather than by the class object.
encapsulation
instance method
Interface Builder
object
28. 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.
precedence
abstract class
encapsulation
link time
29. C-style strings are stored in an array of _____
delegate
delegates
cycles
chars
30. All objects are created on the _____
9
ARC
reference counting
heap
31. A set of method definitions that is segregated from the rest of the class definition.
informal protocol
assign
category
%
32. To destroy an object set the variable that points to it to _____
nil
class
factory object
%
33. In Objective-C floats are more commonly used than ______
doubles
formal protocol
instance
polymorphism
34. Finding the method implementation to invoke in response to the message
dynamic binding
NSString
cannot
inheritance
35. The root class in Objective-C
%@
NSObject
event
struct
36. C-style strings always end with a ____ character
Interface Builder
null
category
Pointers
37. 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).
implementation
framework
NSString
unitary
38. 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.
pointers
dynamic typing
namespace
factory object
39. Another name for a class that's defined solely so that other classes can inherit from it.
category
Pointers
abstract superclass
attributes
40. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
heap
compile time
chars
informal protocol
41. 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.
%@
factory
runtime
outlet
42. Instance variables are optional in iOS if ________ are used
runtime
properties
binary
value
43. Objective-C's protocols are really about communicating _____ _______
event
Pointers
developer intent
9
44. A message sent from one application to an object in another application.
remote message
assignment
conform
factory
45. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
designated
Edit>Refactor>Convert to Objective-C ARC
object
46. The _____ function can be used to print a message to the console
%@
value
printf( )
Smalltalk
47. A compiler feature that provides automated memory management
@implementation
ARC
instance
procedural programming language
48. An object in another application - one that's a potential receiver for a remote message.
remote object
memory leak
dereference (dereferencing)
class
49. An object of unknown class. Interface is published through protocol declaration.
anonymous object
9
unitary
formal protocol
50. 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
synchronous message
superclass
assign