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. 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
formal protocol
Product>Profile>Leaks>Profile
designated
2. _____ allow indirect access and modification of a variable's value.
distributed objects
Pointers
struct
assignment
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
pointers
NSObject
inheritance
conform
4. ____ provide a concise & elegant method for defining a discrete set of values
structures
implementation
selector
Enumerations
5. Objective-C binds methods and arguments at _____ instead of compile time
Protocols
runtime
encapsulation
NSString
6. In object-oriented programming the object that is sent a message.
receiver
inheritance
nonatomic
protocol
7. _____ data types can be both positive and negative
Signed
anonymous object
@implementation
value
8. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
factory
Binary
structures
delegate
9. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
instance method
Protocols
inheritance hierarchy
nil
10. Property attribute that synthesizes only a getter for the property
readonly
informal protocol
protocol
receiver
11. 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.
ampersand (&)
encapsulation
message expression
weak
12. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
polymorphism
dynamic typing
procedural programming language
13. A class is said to do this when it declares that it implements all the methods in the protocol.
-
precedence
adopt
NSString
14. The most flexible C data type: ______
Unsigned
strong
abstract class
struct
15. An object of unknown class. Interface is published through protocol declaration.
floating-point
dangling pointer
anonymous object
dynamic binding
16. In the Objective-C language the declaration of a group of methods not associated with any particular class.
runtime
runtime
protocol
assignment
17. 3 Common Float data types: float - _____ - CGFloat
double
runtime
Cocoa
static typing
18. Discovering the class of an object at runtime rather than at compile time.
ampersand (&)
@implementation
dynamic typing
Cocoa
19. 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.
nonatomic
dynamic typing
namespace
dereference (dereferencing)
20. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
dispatch table
class
[receiver message];
Protocols
21. Another name for a class that's defined solely so that other classes can inherit from it.
NSString
formal protocol
floating-point
abstract superclass
22. Property attribute that causes the setter to store a strong reference to the assigned value
abstract class
distributed objects
strong
Binary
23. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
floating-point
precedence
pointer
Interface Builder
24. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
static typing
dispatch table
method
25. 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.
precedence
long long
anonymous object
object
26. In a format string the place holder for an object is ______
%@
protocol
distributed objects
delegate
27. The process of setting or reading the value at an address pointed to by a pointer
NSString
Interface Builder
Unsigned
dereference (dereferencing)
28. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
id
runtime
encapsulation
memory leak
29. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
runtime
synchronous message
value
init
30. A compiler feature that provides automated memory management
dynamic typing
polymorphism
AppKit
ARC
31. 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.
structures
strong
encapsulation
inheritance hierarchy
32. 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.
abstract class
designated
adopt
developer intent
33. _____ allow you to add new methods to existing classes
Categories
properties
class
remote object
34. Same as class object. (first way to say it.)
factory
copy
heap
designated
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.
adopt
designated
runtime
asynchronous message
36. 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
runtime
cycles
[receiver message];
NSString
37. An object that acts on behalf of another object.
delegate
value
runtime
AppKit
38. There are ____ fundamental building blocks in Objective-C
9
cycles
formal protocol
receiver
39. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
Binary
procedural programming language
struct
assignment
40. Any class that's one step below another class in the inheritance hierarchy.
double
subclass
value
Categories
41. All objects are created on the _____
protocol
heap
category
ARC
42. _____ operators take 2 operands
Binary
nonatomic
Cocoa
designated initializer
43. 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
assignment
receiver
doubles
44. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
memory leak
Categories
@implementation
@interface
45. Any method that can be used by an instance of a class rather than by the class object.
instance method
class method
%@
zero
46. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
distributed objects
class
compile time
47. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
procedures
attributes
Product>Profile>Leaks>Profile
48. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
%@
AppKit
fields
delegates
49. A set of method definitions that is segregated from the rest of the class definition.
AppKit
binary
cannot
category
50. To destroy an object set the variable that points to it to _____
nil
designated initializer
doubles
subclass