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. Objective-C binds methods and arguments at _____ instead of compile time
-
null
receiver
runtime
2. Placing a ____ before a normal variable name gives it's address
link time
null
floating-point
ampersand (&)
3. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
id
[receiver message];
class object
Cocoa
4. Another name for a class that's defined solely so that other classes can inherit from it.
Unsigned
abstract superclass
readwrite
delegate
5. 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
superclass
designated initializer
chars
factory
6. A set of method definitions that is segregated from the rest of the class definition.
superset
instance variable
Binary
category
7. A struct may contain multiple ____ consisting of different data types
heap
Edit>Refactor>Convert to Objective-C ARC
fields
remote object
8. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
Unsigned
runtime
Unitary
9. Finding the method implementation to invoke in response to the message
selector
assign
dynamic binding
Unsigned
10. 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
nil
Pointers
message
11. Discovering the class of an object at runtime rather than at compile time.
informal protocol
attributes
dynamic typing
Product>Profile>Leaks>Profile
12. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
interface
inheritance hierarchy
synchronous message
delegates
13. Property attribute that synthesizes accessors that are not thread safe
doubles
nonatomic
instance
developer intent
14. a+b; is an example of using a _____ operator
%@
pointers
attributes
binary
15. In Objective-C floats are more commonly used than ______
assign
interface
anonymous object
doubles
16. 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.
class
reference counting
interface
assign
17. Objective-C's protocols are really about communicating _____ _______
link time
+
developer intent
inheritance
18. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
%
nil
mutex
value
19. In a home building analogy a ____ is the blueprint and the object is the house
class
outlet
interface
precedence
20. 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.
runtime
structures
zero
%@
21. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
dynamic binding
floating-point
Edit>Refactor>Convert to Objective-C ARC
22. 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.
polymorphism
readwrite
namespace
formal protocol
23. Property attribute that causes the setter to store a strong reference to the assigned value
printf( )
ampersand (&)
strong
abstract superclass
24. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
nonatomic
floating-point
class
Protocols
25. 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.
heap
precedence
memory leak
outlet
26. The root class in Objective-C
inheritance hierarchy
NSObject
%
attributes
27. C-style strings are stored in an array of _____
chars
doubles
compile time
remote object
28. A message sent from one application to an object in another application.
formal protocol
remote message
subclass
dynamic typing
29. There are ____ fundamental building blocks in Objective-C
weak
9
designated initializer
double
30. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
9
delegates
id
31. 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.
runtime
encapsulation
synchronous message
ARC
32. 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.
init
assignment
object
pointers
33. ARC is susceptible to retain _____
superset
pointer
interface
cycles
34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
polymorphism
ARC
procedures
receiver
35. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
outlet
assignment
Protocols
long long
36. ______ operators take a single operand
mutex
procedural programming language
adopt
Unitary
37. This symbol denotes a method as being a class method
Pointers
class method
NSString
+
38. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Categories
ampersand (&)
static typing
copy
39. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
%@
message
informal protocol
abstract superclass
40. 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.
instance variable
id
framework
delegate
41. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
subclass
link time
long long
static typing
42. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
designated initializer
pointer
remote object
Cocoa
43. A class is said to do this when it declares that it implements all the methods in the protocol.
encapsulation
NSString
adopt
static typing
44. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
@interface
class method
comma-separated
receiver
45. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
link time
asterisk (*)
attributes
dynamic binding
46. ______ data types are always zero or greate
instance method
value
Unsigned
structures
47. An architecture that facilitates communication between objects in different address spaces.
Enumerations
distributed objects
instance method
Protocols
48. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
nonatomic
instance
class object
49. _____ 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'.
unitary
inheritance hierarchy
Encapsulation
copy
50. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
Protocols
null
Cocoa