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 init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
designated initializer
double
abstract superclass
zero
2. A protocol declared as a category usually as a category of the NSObject class.
+
Edit>Refactor>Convert to Objective-C ARC
informal protocol
dereference (dereferencing)
3. 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.
namespace
instance
method
delegate
4. ARC is susceptible to retain _____
cycles
developer intent
instance
readwrite
5. In the Objective-C language the declaration of a group of methods not associated with any particular class.
method
Edit>Refactor>Convert to Objective-C ARC
protocol
dynamic binding
6. 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).
NSObject
implementation
developer intent
%
7. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
asynchronous message
polymorphism
deprecated
link time
8. 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.
weak
instance
outlet
copy
9. ______ data types are always zero or greate
developer intent
abstract class
nil
Unsigned
10. Placing a ____ before a normal variable name gives it's address
link time
heap
class
ampersand (&)
11. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
inheritance hierarchy
Protocols
unitary
heap
12. Another name for a class that's defined solely so that other classes can inherit from it.
instance
abstract superclass
ARC
asynchronous message
13. _____ operators take 2 operands
inheritance
readonly
Binary
polymorphism
14. A ____ _____ is where you forget to free up memory
compile time
mutex
memory leak
nil
15. There are ____ fundamental building blocks in Objective-C
floating-point
9
compile time
Product>Profile>Leaks>Profile
16. Property attribute that synthesizes both a getter and setter for the property
@interface
9
readwrite
NSObject
17. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
unitary
asterisk (*)
copy
18. a++; is an example of using a _____ operator
static typing
informal protocol
procedures
unitary
19. ____ provide a concise & elegant method for defining a discrete set of values
message
Enumerations
Edit>Refactor>Convert to Objective-C ARC
9
20. Same as class object. (second way to say it.)
value
Unitary
factory object
link time
21. Three main categories of more complicated data structures:_______ - arrays and structs
factory
Cocoa
pointers
dynamic allocation
22. Discovering the class of an object at runtime rather than at compile time.
dispatch table
dynamic allocation
namespace
dynamic typing
23. 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
printf( )
AppKit
%@
conform
24. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
assign
properties
@implementation
Unitary
25. C-style strings always end with a ____ character
chars
instance
Encapsulation
null
26. 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.
conform
runtime
class object
distributed objects
27. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
value
class object
assign
Encapsulation
28. 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.
printf( )
struct
Cocoa
object
29. A message sent from one application to an object in another application.
NSString
@interface
remote message
outlet
30. Property attribute that causes the setter to store a strong reference to the assigned value
assignment
strong
nil
Encapsulation
31. Objective-C binds methods and arguments at _____ instead of compile time
struct
superclass
dangling pointer
runtime
32. The _____ function can be used to print a message to the console
nil
printf( )
Encapsulation
inheritance
33. 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.
cannot
id
inheritance hierarchy
pointers
34. Objective-C objects should use strong or weak ______
attributes
anonymous object
Cocoa
method
35. Instance variables are optional in iOS if ________ are used
protocol
properties
dynamic binding
subclass
36. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
abstract superclass
interface
weak
init
37. An object of unknown class. Interface is published through protocol declaration.
anonymous object
precedence
class object
Unitary
38. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
AppKit
runtime
cycles
39. Any method that can be used by an instance of a class rather than by the class object.
Signed
instance method
link time
instance variable
40. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
synchronous message
designated
attributes
41. Objective-C's protocols are really about communicating _____ _______
superset
unitary
developer intent
message
42. Property attribute that synthesizes only a getter for the property
conform
nil
fields
readonly
43. 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).
factory object
message expression
square brackets
dereference (dereferencing)
44. 3 Common Float data types: float - _____ - CGFloat
runtime
+
double
@implementation
45. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
dangling pointer
9
designated
instance
46. 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.
anonymous object
designated
chars
selector
47. 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
synchronous message
category
abstract class
dereference (dereferencing)
48. In a home building analogy a ____ is the blueprint and the object is the house
compile time
class
chars
nonatomic
49. 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.
memory leak
Unsigned
formal protocol
object
50. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
C operators
synchronous message
compile time
asterisk (*)