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 a format string the place holder for an object is ______
Unitary
formal protocol
instance method
%@
2. Property attribute where the setter stores the assigned value but does not perform any memory management.
dynamic binding
assign
Categories
id
3. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
event
deprecated
delegate
remote object
4. ____ provide a concise & elegant method for defining a discrete set of values
null
floating-point
%
Enumerations
5. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
strong
remote object
Cocoa
init
6. A ____ _____ is where you forget to free up memory
memory leak
heap
delegate
NSObject
7. Data types are divided into two main categories: integer and ______
ARC
message expression
struct
floating-point
8. 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
binary
dynamic binding
instance
9. An object of unknown class. Interface is published through protocol declaration.
fields
Pointers
-
anonymous object
10. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
NSObject
value
superset
Product>Profile>Leaks>Profile
11. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
fields
ampersand (&)
abstract class
C operators
12. A compiler feature that provides automated memory management
adopt
Cocoa
instance
ARC
13. 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.
class method
factory object
precedence
encapsulation
14. 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.
square brackets
message expression
protocol
Interface Builder
15. 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.
abstract class
dynamic allocation
distributed objects
message expression
16. 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
unitary
designated initializer
Unsigned
Cocoa
17. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
doubles
%@
instance
static typing
18. An architecture that facilitates communication between objects in different address spaces.
reference counting
[receiver message];
Cocoa
distributed objects
19. Finding the method implementation to invoke in response to the message
memory leak
dynamic binding
category
doubles
20. Symbol used to denote a placeholder in a format string
%
NSObject
framework
asynchronous message
21. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
formal protocol
delegate
inheritance
interface
22. 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.
AppKit
superclass
Edit>Refactor>Convert to Objective-C ARC
asterisk (*)
23. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
-
class
unitary
null
24. All objects are created on the _____
conform
AppKit
heap
encapsulation
25. Xcode sequence to convert non-ARC apps to ARC
informal protocol
superclass
Encapsulation
Edit>Refactor>Convert to Objective-C ARC
26. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
class
cannot
procedures
polymorphism
27. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
link time
procedures
asterisk (*)
long long
28. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
remote message
procedural programming language
inheritance
comma-separated
29. Same as class object. (first way to say it.)
struct
AppKit
factory
anonymous object
30. Any method that can be used by an instance of a class rather than by the class object.
method
instance method
readonly
Signed
31. 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
Smalltalk
delegate
NSString
distributed objects
32. Initializer method traditionally begin with the _____ prefix
procedures
init
@interface
runtime
33. _____ data types can be both positive and negative
abstract class
Signed
inheritance hierarchy
asterisk (*)
34. Objective-C objects should use strong or weak ______
attributes
nonatomic
dereference (dereferencing)
object
35. The root class in Objective-C
procedural programming language
NSObject
+
adopt
36. A ____ ____ is a situation where you free memory and then accidentally continue to use it
remote message
subclass
[receiver message];
dangling pointer
37. 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.
encapsulation
reference counting
attributes
interface
38. An object that acts on behalf of another object.
message
assign
delegate
pointer
39. Another name for a class that's defined solely so that other classes can inherit from it.
attributes
abstract superclass
object
distributed objects
40. This symbol denotes a method as being a class method
Product>Profile>Leaks>Profile
object
runtime
+
41. In the Objective-C language the declaration of a group of methods not associated with any particular class.
init
deprecated
asterisk (*)
protocol
42. 3 Common Float data types: float - _____ - CGFloat
polymorphism
id
double
adopt
43. The process of setting or reading the value at an address pointed to by a pointer
unitary
dereference (dereferencing)
dangling pointer
init
44. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
double
cannot
AppKit
45. 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.
instance variable
long long
namespace
Edit>Refactor>Convert to Objective-C ARC
46. 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.
object
class
binary
class
47. 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
@implementation
synchronous message
Binary
nil
48. A class is said to do this when it declares that it implements all the methods in the protocol.
init
procedures
Encapsulation
adopt
49. Any class that's one step below another class in the inheritance hierarchy.
subclass
doubles
Cocoa
zero
50. In object-oriented programming a procedure that can be executed by an object.
method
selector
long long
formal protocol