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 Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
struct
dispatch table
receiver
attributes
2. To destroy an object set the variable that points to it to _____
structures
attributes
class
nil
3. a++; is an example of using a _____ operator
9
factory
class
unitary
4. 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
weak
ARC
NSString
deprecated
5. 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.
inheritance hierarchy
nil
runtime
superclass
6. In object-oriented programming the object that is sent a message.
long long
assign
receiver
Smalltalk
7. Objective-C methods are called using ____ _____
square brackets
readwrite
polymorphism
mutex
8. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
remote message
-
framework
dispatch table
9. The process of setting or reading the value at an address pointed to by a pointer
pointers
dereference (dereferencing)
binary
adopt
10. Data types are divided into two main categories: integer and ______
procedures
dangling pointer
designated initializer
floating-point
11. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Enumerations
anonymous object
NSObject
designated
12. An object in another application - one that's a potential receiver for a remote message.
remote object
asterisk (*)
ARC
runtime
13. 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.
ampersand (&)
fields
category
inheritance hierarchy
14. _____ 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'.
-
static typing
Categories
Encapsulation
15. Property attribute that synthesizes accessors that are not thread safe
instance
message
nonatomic
delegates
16. A message sent from one application to an object in another application.
zero
remote message
Edit>Refactor>Convert to Objective-C ARC
implementation
17. The first index in an array is valued at ____
procedural programming language
zero
Unitary
procedures
18. An architecture that facilitates communication between objects in different address spaces.
distributed objects
9
category
heap
19. C-style strings are stored in an array of _____
receiver
remote message
factory object
chars
20. 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
delegate
%@
superclass
synchronous message
21. Any method that can be used by an instance of a class rather than by the class object.
NSString
instance method
compile time
value
22. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
nonatomic
dynamic allocation
Cocoa
long long
23. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
designated initializer
binary
message
procedural programming language
24. 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.
conform
id
NSObject
dangling pointer
25. 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.
anonymous object
informal protocol
square brackets
abstract class
26. In Objective-C floats are more commonly used than ______
doubles
superset
subclass
factory object
27. Same as class object. (first way to say it.)
instance variable
class
factory
struct
28. Property attribute that synthesizes both a getter and setter for the property
double
readwrite
namespace
Binary
29. Another name for a class that's defined solely so that other classes can inherit from it.
instance
framework
abstract superclass
ampersand (&)
30. Objective-C binds methods and arguments at _____ instead of compile time
runtime
asynchronous message
factory object
superclass
31. 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.
Encapsulation
ampersand (&)
heap
namespace
32. A method that can operate on class objects rather than instances of the class.
weak
inheritance
Pointers
class method
33. Any class that's one step below another class in the inheritance hierarchy.
Product>Profile>Leaks>Profile
adopt
delegate
subclass
34. Property attribute where the setter stores the assigned value but does not perform any memory management.
Signed
event
assign
Pointers
35. A struct may contain multiple ____ consisting of different data types
instance
category
fields
zero
36. Xcode sequence to convert non-ARC apps to ARC
nil
instance
Edit>Refactor>Convert to Objective-C ARC
value
37. This symbol denotes a method as being a class method
%@
delegate
implementation
+
38. 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
init
value
cycles
structures
39. An object id with a value of 0.
dynamic allocation
printf( )
comma-separated
nil
40. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dynamic binding
class
formal protocol
dangling pointer
41. ______ operators take a single operand
memory leak
Categories
anonymous object
Unitary
42. ARC is susceptible to retain _____
remote object
zero
subclass
cycles
43. All objects are created on the _____
subclass
struct
class
heap
44. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
static typing
compile time
interface
procedures
45. A compiler feature that provides automated memory management
Cocoa
ARC
link time
printf( )
46. 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
Binary
conform
assign
cycles
47. _____ allow you to add new methods to existing classes
Categories
cycles
reference counting
%
48. Xcode sequence to examine an app for memory leaks or retain cycles
adopt
instance
value
Product>Profile>Leaks>Profile
49. The _____ function can be used to print a message to the console
dispatch table
delegate
designated initializer
printf( )
50. 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.
Unitary
runtime
dynamic allocation
delegate