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. Finding the method implementation to invoke in response to the message
+
designated initializer
@interface
dynamic binding
2. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Protocols
nil
designated initializer
instance
3. 3 Common Float data types: float - _____ - CGFloat
comma-separated
precedence
double
informal protocol
4. An object that acts on behalf of another object.
Cocoa
Edit>Refactor>Convert to Objective-C ARC
delegate
chars
5. Property attribute that synthesizes both a getter and setter for the property
instance variable
class object
readwrite
procedural programming language
6. An object in another application - one that's a potential receiver for a remote message.
encapsulation
procedures
remote object
namespace
7. In a home building analogy a ____ is the blueprint and the object is the house
instance method
developer intent
inheritance
class
8. 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).
Smalltalk
pointer
subclass
implementation
9. When creating a class header file you begin with the _____ keyword and close with the @end keyword
+
@interface
object
instance
10. Same as class object. (second way to say it.)
readwrite
developer intent
delegate
factory object
11. _____ allow you to add new methods to existing classes
class
Categories
developer intent
unitary
12. Symbol used to denote a placeholder in a format string
fields
delegates
readwrite
%
13. 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.
factory
namespace
inheritance hierarchy
properties
14. Objective-C objects should use strong or weak ______
null
attributes
designated initializer
%@
15. In the Objective-C language the declaration of a group of methods not associated with any particular class.
synchronous message
protocol
class
@interface
16. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
comma-separated
id
class
readonly
17. 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.
mutex
zero
instance variable
assignment
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
NSString
class
nil
Protocols
19. a+b; is an example of using a _____ operator
dereference (dereferencing)
static typing
message
binary
20. C-style strings are stored in an array of _____
implementation
id
chars
readwrite
21. 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.
Protocols
Unsigned
Cocoa
formal protocol
22. This symbol denotes a method as being an instance method
selector
compile time
-
adopt
23. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
anonymous object
superset
memory leak
24. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
NSObject
comma-separated
unitary
informal protocol
25. _____ allow indirect access and modification of a variable's value.
heap
zero
designated
Pointers
26. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
fields
dynamic allocation
instance
27. Another name for a class that's defined solely so that other classes can inherit from it.
Edit>Refactor>Convert to Objective-C ARC
abstract superclass
remote message
designated initializer
28. All objects are created on the _____
Pointers
heap
memory leak
instance
29. Property attribute that synthesizes accessors that are not thread safe
delegates
@interface
nonatomic
mutex
30. The most flexible C data type: ______
class object
struct
class
structures
31. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
cannot
pointer
assignment
mutex
32. 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.
value
procedures
interface
Interface Builder
33. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
anonymous object
superset
adopt
cannot
34. Data types are divided into two main categories: integer and ______
dispatch table
polymorphism
floating-point
dangling pointer
35. Property attribute that causes the setter to store a copy of the assigned value
instance method
@implementation
readwrite
copy
36. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
chars
value
cycles
developer intent
37. The root class in Objective-C
precedence
conform
runtime
NSObject
38. Objective-C methods are called using ____ _____
nil
square brackets
abstract superclass
unitary
39. _____ data types can be both positive and negative
developer intent
zero
Signed
nil
40. ______ data types are always zero or greate
instance
Unsigned
pointer
instance variable
41. Objective-C's protocols are really about communicating _____ _______
developer intent
Edit>Refactor>Convert to Objective-C ARC
remote message
category
42. 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.
Binary
cycles
AppKit
polymorphism
43. Square bracket syntax for calling a method
heap
ampersand (&)
[receiver message];
deprecated
44. An architecture that facilitates communication between objects in different address spaces.
Unitary
selector
distributed objects
Encapsulation
45. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
method
square brackets
delegates
event
46. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
superclass
NSObject
assignment
47. The process of setting or reading the value at an address pointed to by a pointer
nil
null
dereference (dereferencing)
dispatch table
48. ARC is susceptible to retain _____
Categories
outlet
cycles
Protocols
49. Objective-C is a _____ of the C language
link time
superset
pointer
readonly
50. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
factory object
floating-point
namespace