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. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Cocoa
method
fields
asterisk (*)
2. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
namespace
interface
framework
NSString
3. 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.
Binary
mutex
instance variable
comma-separated
4. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
properties
@interface
interface
5. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
double
abstract class
mutex
class
6. In a home building analogy a ____ is the blueprint and the object is the house
Protocols
NSObject
class
dynamic binding
7. 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
formal protocol
encapsulation
attributes
8. 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.
AppKit
outlet
Unitary
instance variable
9. An object of unknown class. Interface is published through protocol declaration.
namespace
Signed
runtime
anonymous object
10. The process of setting or reading the value at an address pointed to by a pointer
readonly
ampersand (&)
dereference (dereferencing)
Categories
11. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
precedence
unitary
pointers
12. 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
unitary
asterisk (*)
distributed objects
NSString
13. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
asterisk (*)
double
framework
14. A method that can operate on class objects rather than instances of the class.
Enumerations
zero
class method
instance variable
15. 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
dynamic binding
designated initializer
unitary
weak
16. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
runtime
Product>Profile>Leaks>Profile
properties
17. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
Smalltalk
abstract class
selector
interface
18. ARC is susceptible to retain _____
cycles
Unitary
init
@implementation
19. An object that acts on behalf of another object.
implementation
delegate
long long
class
20. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
mutex
developer intent
dispatch table
readwrite
21. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
instance
factory
delegates
weak
22. Property attribute that causes the setter to store a copy of the assigned value
binary
category
copy
factory
23. 3 Common Float data types: float - _____ - CGFloat
floating-point
double
superclass
readwrite
24. Instance variables are optional in iOS if ________ are used
properties
ampersand (&)
Pointers
designated
25. 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.
subclass
Signed
Smalltalk
inheritance hierarchy
26. a++; is an example of using a _____ operator
mutex
NSObject
unitary
square brackets
27. Property attribute that synthesizes only a getter for the property
long long
remote object
readonly
designated initializer
28. Property attribute that synthesizes accessors that are not thread safe
Unsigned
nonatomic
null
C operators
29. 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.
class
Interface Builder
NSObject
mutex
30. The most flexible C data type: ______
reference counting
struct
developer intent
mutex
31. A class is said to do this when it declares that it implements all the methods in the protocol.
square brackets
adopt
nonatomic
remote message
32. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
binary
interface
method
dispatch table
33. In the Objective-C language the declaration of a group of methods not associated with any particular class.
namespace
protocol
-
class object
34. Any method that can be used by an instance of a class rather than by the class object.
dangling pointer
inheritance hierarchy
instance method
square brackets
35. Square bracket syntax for calling a method
fields
procedural programming language
[receiver message];
class object
36. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
synchronous message
remote message
runtime
37. A variable that points to the memory address of another value
namespace
event
object
pointer
38. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
pointer
precedence
factory object
Cocoa
39. A ____ _____ is where you forget to free up memory
asynchronous message
heap
memory leak
link time
40. Property attribute that causes the setter to store a strong reference to the assigned value
NSObject
-
strong
formal protocol
41. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
method
runtime
event
link time
42. Objective-C's protocols are really about communicating _____ _______
dynamic binding
developer intent
comma-separated
event
43. An architecture that facilitates communication between objects in different address spaces.
nonatomic
strong
distributed objects
receiver
44. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
nil
dynamic allocation
remote message
dangling pointer
45. 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
reference counting
asynchronous message
long long
46. 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.
abstract class
compile time
encapsulation
NSObject
47. ______ data types are always zero or greate
Encapsulation
instance
Unsigned
Edit>Refactor>Convert to Objective-C ARC
48. An object in another application - one that's a potential receiver for a remote message.
Product>Profile>Leaks>Profile
class method
remote object
compile time
49. The _____ function can be used to print a message to the console
printf( )
nil
factory
instance variable
50. _____ data types can be both positive and negative
informal protocol
properties
mutex
Signed