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 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.
[receiver message];
id
@implementation
NSObject
2. 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.
9
selector
runtime
Product>Profile>Leaks>Profile
3. A class is said to do this when it declares that it implements all the methods in the protocol.
instance
delegate
weak
adopt
4. In a format string the place holder for an object is ______
%@
printf( )
synchronous message
factory
5. 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).
inheritance
attributes
chars
message expression
6. a++; is an example of using a _____ operator
abstract superclass
selector
attributes
unitary
7. An architecture that facilitates communication between objects in different address spaces.
superclass
floating-point
C operators
distributed objects
8. 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
conform
developer intent
structures
9. Same as class object. (first way to say it.)
factory
superset
long long
value
10. 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.
remote object
designated
%
class object
11. Data types are divided into two main categories: integer and ______
asterisk (*)
link time
floating-point
instance
12. A message sent from one application to an object in another application.
remote message
namespace
C operators
subclass
13. A compiler feature that provides automated memory management
@interface
conform
Smalltalk
ARC
14. A ____ ____ is a situation where you free memory and then accidentally continue to use it
pointers
+
inheritance hierarchy
dangling pointer
15. Any class that's one step below another class in the inheritance hierarchy.
deprecated
value
inheritance hierarchy
subclass
16. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
framework
message
Protocols
formal protocol
17. Square bracket syntax for calling a method
[receiver message];
instance
class
Signed
18. Property attribute that causes the setter to store a copy of the assigned value
formal protocol
asterisk (*)
copy
protocol
19. Property attribute that synthesizes both a getter and setter for the property
@implementation
readwrite
synchronous message
ampersand (&)
20. C-style strings are stored in an array of _____
distributed objects
selector
chars
init
21. All objects are created on the _____
abstract class
reference counting
heap
synchronous message
22. A struct may contain multiple ____ consisting of different data types
Product>Profile>Leaks>Profile
fields
binary
Unsigned
23. 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.
abstract class
message expression
reference counting
[receiver message];
24. Discovering the class of an object at runtime rather than at compile time.
designated initializer
dynamic typing
precedence
9
25. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
remote object
C operators
formal protocol
designated
26. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
designated initializer
delegates
instance
distributed objects
27. Initializer method traditionally begin with the _____ prefix
null
structures
init
dispatch table
28. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
class method
heap
floating-point
message
29. Xcode sequence to convert non-ARC apps to ARC
dynamic allocation
distributed objects
comma-separated
Edit>Refactor>Convert to Objective-C ARC
30. A set of method definitions that is segregated from the rest of the class definition.
reference counting
printf( )
designated initializer
category
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.
remote object
Signed
encapsulation
Categories
32. Finding the method implementation to invoke in response to the message
comma-separated
dynamic binding
@interface
floating-point
33. 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.
asynchronous message
readwrite
dangling pointer
cycles
34. A method that can operate on class objects rather than instances of the class.
inheritance hierarchy
class method
instance
class object
35. Another name for a class that's defined solely so that other classes can inherit from it.
message
strong
abstract superclass
floating-point
36. Objective-C's protocols are really about communicating _____ _______
message expression
readonly
comma-separated
developer intent
37. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
nil
mutex
Interface Builder
receiver
38. The root class in Objective-C
NSObject
Encapsulation
synchronous message
chars
39. This symbol denotes a method as being a class method
init
+
class object
factory
40. A ____ _____ is where you forget to free up memory
memory leak
C operators
precedence
Product>Profile>Leaks>Profile
41. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
struct
inheritance
factory object
cycles
42. A variable that points to the memory address of another value
pointer
static typing
developer intent
Protocols
43. In a home building analogy a ____ is the blueprint and the object is the house
attributes
class
Edit>Refactor>Convert to Objective-C ARC
class
44. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
designated
@implementation
receiver
45. 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).
@interface
implementation
nonatomic
printf( )
46. An object of unknown class. Interface is published through protocol declaration.
fields
instance
@interface
anonymous object
47. Property attribute that synthesizes accessors that are not thread safe
Smalltalk
comma-separated
reference counting
nonatomic
48. _____ 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'.
encapsulation
nil
zero
Encapsulation
49. 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.
instance
Product>Profile>Leaks>Profile
struct
properties
50. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
fields
Protocols
floating-point