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. 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
factory object
designated
readonly
2. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
factory
anonymous object
asynchronous message
static typing
3. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
doubles
Smalltalk
instance variable
Categories
4. A message sent from one application to an object in another application.
remote message
designated
Unitary
memory leak
5. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
dangling pointer
formal protocol
Enumerations
weak
6. The _____ function can be used to print a message to the console
message expression
pointer
NSObject
printf( )
7. An object of unknown class. Interface is published through protocol declaration.
anonymous object
C operators
class method
heap
8. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
NSObject
procedures
class object
9. 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
doubles
designated initializer
long long
Unsigned
10. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
object
nil
asynchronous message
11. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
message expression
factory object
Protocols
12. Same as class object. (second way to say it.)
factory object
Signed
copy
pointers
13. ARC is susceptible to retain _____
cycles
floating-point
designated
Interface Builder
14. 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.
link time
dereference (dereferencing)
Product>Profile>Leaks>Profile
reference counting
15. ______ data types are always zero or greate
C operators
instance method
Unsigned
fields
16. An architecture that facilitates communication between objects in different address spaces.
Signed
distributed objects
binary
nonatomic
17. 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.
class
Interface Builder
developer intent
inheritance hierarchy
18. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
@implementation
class method
class
null
19. a+b; is an example of using a _____ operator
binary
anonymous object
Protocols
instance variable
20. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Smalltalk
instance
id
%@
21. Property attribute that synthesizes accessors that are not thread safe
heap
abstract superclass
nonatomic
object
22. All objects are created on the _____
heap
object
polymorphism
superclass
23. Symbol used to denote a placeholder in a format string
chars
dynamic typing
%
delegate
24. An object that acts on behalf of another object.
receiver
%
delegate
zero
25. _____ operators take 2 operands
Binary
conform
nil
category
26. _____ data types can be both positive and negative
Unitary
Signed
Pointers
dispatch table
27. Instance variables are optional in iOS if ________ are used
properties
value
NSObject
readwrite
28. 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.
%@
delegate
nonatomic
formal protocol
29. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
Encapsulation
developer intent
@interface
30. A ____ ____ is a situation where you free memory and then accidentally continue to use it
chars
null
dangling pointer
+
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.
doubles
heap
zero
encapsulation
32. 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
pointer
structures
comma-separated
designated initializer
33. There are ____ fundamental building blocks in Objective-C
deprecated
9
formal protocol
nil
34. Property attribute that causes the setter to store a copy of the assigned value
@implementation
ampersand (&)
Product>Profile>Leaks>Profile
copy
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.
factory
asynchronous message
dynamic binding
Signed
36. Property attribute where the setter stores the assigned value but does not perform any memory management.
strong
assign
asterisk (*)
dangling pointer
37. A variable that points to the memory address of another value
attributes
inheritance hierarchy
weak
pointer
38. Objective-C binds methods and arguments at _____ instead of compile time
@implementation
class
strong
runtime
39. 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.
compile time
square brackets
Smalltalk
outlet
40. Initializer method traditionally begin with the _____ prefix
Encapsulation
Categories
runtime
init
41. 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).
message expression
procedures
runtime
fields
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.
square brackets
asynchronous message
designated initializer
AppKit
43. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
asynchronous message
Protocols
C operators
compile time
44. Objective-C's protocols are really about communicating _____ _______
properties
abstract superclass
Pointers
developer intent
45. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
Encapsulation
static typing
long long
46. 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.
dangling pointer
informal protocol
Pointers
instance variable
47. 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.
Protocols
deprecated
class object
runtime
48. a++; is an example of using a _____ operator
binary
memory leak
unitary
remote message
49. A class is said to do this when it declares that it implements all the methods in the protocol.
method
Categories
interface
adopt
50. _____ allow indirect access and modification of a variable's value.
@implementation
dynamic allocation
factory
Pointers