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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
zero
Edit>Refactor>Convert to Objective-C ARC
structures
Cocoa
2. Three main categories of more complicated data structures:_______ - arrays and structs
link time
Signed
floating-point
pointers
3. Property attribute where the setter stores the assigned value but does not perform any memory management.
asynchronous message
message
weak
assign
4. _____ 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'.
compile time
deprecated
@interface
Encapsulation
5. An object of unknown class. Interface is published through protocol declaration.
formal protocol
procedures
synchronous message
anonymous object
6. The process of setting or reading the value at an address pointed to by a pointer
cycles
dereference (dereferencing)
implementation
Product>Profile>Leaks>Profile
7. 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
nil
comma-separated
NSString
procedural programming language
8. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
long long
unitary
class
superset
9. ______ data types are always zero or greate
encapsulation
pointers
heap
Unsigned
10. 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).
Pointers
message expression
formal protocol
attributes
11. C-style strings always end with a ____ character
null
cycles
Binary
Categories
12. In the Objective-C language the declaration of a group of methods not associated with any particular class.
message expression
abstract class
protocol
class method
13. A set of method definitions that is segregated from the rest of the class definition.
mutex
NSObject
category
instance method
14. A method that can operate on class objects rather than instances of the class.
Interface Builder
nil
class method
message expression
15. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
cannot
value
pointer
16. 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.
encapsulation
dynamic allocation
value
namespace
17. 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
fields
Unsigned
18. 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).
delegate
remote object
implementation
nil
19. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
Unsigned
designated
factory object
20. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
procedures
delegates
Interface Builder
designated
21. Xcode sequence to convert non-ARC apps to ARC
delegate
%@
Edit>Refactor>Convert to Objective-C ARC
class
22. 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.
object
null
outlet
dynamic binding
23. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
class object
null
asynchronous message
24. 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.
-
Unitary
instance
ARC
25. Any class that's one step below another class in the inheritance hierarchy.
AppKit
fields
subclass
message
26. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
@interface
inheritance hierarchy
procedural programming language
27. In Objective-C floats are more commonly used than ______
double
doubles
dynamic typing
inheritance hierarchy
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.
formal protocol
9
asynchronous message
floating-point
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.
distributed objects
cannot
subclass
class object
30. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
message expression
developer intent
synchronous message
31. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
delegates
Edit>Refactor>Convert to Objective-C ARC
interface
value
32. 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.
properties
superset
instance variable
id
33. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
factory
class object
class method
procedures
34. Same as class object. (first way to say it.)
factory
implementation
C operators
delegates
35. 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
class method
conform
factory
long long
36. 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
category
designated initializer
implementation
class object
37. A variable that points to the memory address of another value
factory object
pointer
namespace
designated
38. In a format string the place holder for an object is ______
%@
Product>Profile>Leaks>Profile
instance variable
memory leak
39. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
namespace
Protocols
informal protocol
zero
40. 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.
remote object
class object
namespace
runtime
41. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
outlet
AppKit
distributed objects
C operators
42. All objects are created on the _____
struct
delegates
factory object
heap
43. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
value
subclass
polymorphism
delegates
44. The most flexible C data type: ______
struct
init
9
delegates
45. A compiler feature that provides automated memory management
[receiver message];
cannot
ARC
readonly
46. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
abstract class
procedures
ampersand (&)
weak
47. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
message
comma-separated
null
ARC
48. ____ provide a concise & elegant method for defining a discrete set of values
procedures
Enumerations
nonatomic
pointer
49. 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.
dynamic typing
selector
runtime
link time
50. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
dangling pointer
dynamic typing
structures
framework