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. 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.
copy
namespace
object
delegate
2. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
readonly
instance
+
3. 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.
inheritance hierarchy
Encapsulation
object
doubles
4. 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
strong
binary
structures
Cocoa
5. C-style strings always end with a ____ character
designated initializer
value
superset
null
6. The _____ function can be used to print a message to the console
printf( )
floating-point
mutex
dynamic typing
7. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
class
conform
procedures
class method
8. There are ____ fundamental building blocks in Objective-C
9
nil
readwrite
encapsulation
9. _____ operators take 2 operands
unitary
formal protocol
Binary
readwrite
10. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
9
designated
instance
instance
11. _____ data types can be both positive and negative
Signed
-
abstract superclass
link time
12. Objective-C methods are called using ____ _____
Edit>Refactor>Convert to Objective-C ARC
Interface Builder
square brackets
properties
13. In a home building analogy a ____ is the blueprint and the object is the house
Smalltalk
class
conform
Binary
14. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
%@
dynamic allocation
C operators
message
15. 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.
9
AppKit
readwrite
namespace
16. Same as class object. (first way to say it.)
synchronous message
dynamic allocation
binary
factory
17. 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.
properties
asynchronous message
memory leak
instance method
18. 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.
informal protocol
formal protocol
deprecated
encapsulation
19. 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).
adopt
method
@interface
implementation
20. ____ provide a concise & elegant method for defining a discrete set of values
developer intent
Enumerations
remote message
%
21. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
interface
memory leak
zero
22. 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
formal protocol
readonly
instance
23. In object-oriented programming a procedure that can be executed by an object.
pointer
method
ARC
message
24. C-style strings are stored in an array of _____
informal protocol
chars
remote object
heap
25. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
class method
@implementation
null
compile time
26. An object of unknown class. Interface is published through protocol declaration.
subclass
%
deprecated
anonymous object
27. Objective-C objects should use strong or weak ______
dynamic allocation
attributes
doubles
encapsulation
28. ARC is susceptible to retain _____
dynamic typing
assignment
readwrite
cycles
29. 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.
selector
NSString
runtime
class object
30. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
assignment
Enumerations
deprecated
dispatch table
31. Any method that can be used by an instance of a class rather than by the class object.
instance method
id
printf( )
readwrite
32. Data types are divided into two main categories: integer and ______
weak
Protocols
selector
floating-point
33. 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
message expression
printf( )
Protocols
34. The most flexible C data type: ______
struct
nil
inheritance hierarchy
NSString
35. Xcode sequence to examine an app for memory leaks or retain cycles
anonymous object
Product>Profile>Leaks>Profile
instance variable
long long
36. All objects are created on the _____
id
static typing
heap
%
37. Any class that's one step below another class in the inheritance hierarchy.
AppKit
remote message
Edit>Refactor>Convert to Objective-C ARC
subclass
38. Discovering the class of an object at runtime rather than at compile time.
Binary
null
dynamic typing
adopt
39. Property attribute that synthesizes both a getter and setter for the property
@implementation
binary
readwrite
delegate
40. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
procedures
delegates
ampersand (&)
namespace
41. A class is said to do this when it declares that it implements all the methods in the protocol.
distributed objects
adopt
instance variable
ampersand (&)
42. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
heap
deprecated
@interface
superset
43. An object id with a value of 0.
assign
Unsigned
nil
instance variable
44. Same as class object. (second way to say it.)
encapsulation
factory object
nil
receiver
45. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
[receiver message];
selector
mutex
anonymous object
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.
Unsigned
assign
abstract class
encapsulation
47. _____ 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
category
Interface Builder
strong
48. Property attribute that synthesizes accessors that are not thread safe
designated initializer
double
nonatomic
link time
49. An object in another application - one that's a potential receiver for a remote message.
class method
assign
remote object
distributed objects
50. A method that can operate on class objects rather than instances of the class.
delegates
class method
abstract class
init