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.
square brackets
nonatomic
Cocoa
developer intent
2. _____ allow indirect access and modification of a variable's value.
9
inheritance
Enumerations
Pointers
3. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
procedures
cannot
conform
Protocols
4. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
printf( )
weak
precedence
message
5. To destroy an object set the variable that points to it to _____
implementation
remote message
designated
nil
6. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
attributes
printf( )
asterisk (*)
comma-separated
7. The process of setting or reading the value at an address pointed to by a pointer
implementation
selector
dereference (dereferencing)
instance
8. ____ provide a concise & elegant method for defining a discrete set of values
adopt
Enumerations
unitary
id
9. Property attribute that synthesizes accessors that are not thread safe
nonatomic
Unitary
ARC
weak
10. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
Edit>Refactor>Convert to Objective-C ARC
readonly
C operators
selector
11. An object that acts on behalf of another object.
heap
delegate
inheritance hierarchy
category
12. 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.
formal protocol
AppKit
delegates
object
13. 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.
cycles
structures
precedence
class object
14. A compiler feature that provides automated memory management
Signed
ARC
instance variable
zero
15. _____ 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'.
9
receiver
Encapsulation
comma-separated
16. 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
properties
pointer
conform
square brackets
17. Objective-C objects should use strong or weak ______
superclass
NSObject
Signed
attributes
18. _____ operators take 2 operands
object
factory
Binary
procedural programming language
19. _____ allow you to add new methods to existing classes
double
Categories
informal protocol
factory
20. Another name for a class that's defined solely so that other classes can inherit from it.
formal protocol
abstract superclass
binary
floating-point
21. 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.
double
attributes
object
adopt
22. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
NSObject
abstract class
framework
mutex
23. 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.
reference counting
procedures
cannot
dynamic allocation
24. 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.
Edit>Refactor>Convert to Objective-C ARC
namespace
properties
class
25. C-style strings are stored in an array of _____
chars
properties
Categories
delegate
26. Initializer method traditionally begin with the _____ prefix
ampersand (&)
anonymous object
init
asynchronous message
27. Property attribute that synthesizes only a getter for the property
comma-separated
readonly
deprecated
object
28. In a format string the place holder for an object is ______
remote object
%@
[receiver message];
comma-separated
29. 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).
nonatomic
implementation
unitary
chars
30. In the Objective-C language the declaration of a group of methods not associated with any particular class.
precedence
Protocols
Binary
protocol
31. ______ data types are always zero or greate
Unsigned
remote object
cannot
NSObject
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.
readwrite
interface
procedures
heap
33. 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.
method
deprecated
developer intent
Interface Builder
34. A struct may contain multiple ____ consisting of different data types
class
designated initializer
runtime
fields
35. Square bracket syntax for calling a method
Signed
strong
[receiver message];
double
36. 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
asterisk (*)
synchronous message
@implementation
printf( )
37. 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.
selector
instance
synchronous message
precedence
38. Property attribute where the setter stores the assigned value but does not perform any memory management.
ARC
Product>Profile>Leaks>Profile
weak
assign
39. All objects are created on the _____
Smalltalk
heap
anonymous object
C operators
40. An object id with a value of 0.
precedence
abstract superclass
deprecated
nil
41. 3 Common Float data types: float - _____ - CGFloat
id
protocol
double
Encapsulation
42. C-style strings always end with a ____ character
interface
null
inheritance hierarchy
init
43. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
nonatomic
superset
distributed objects
deprecated
44. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
cycles
id
abstract superclass
45. 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.
polymorphism
strong
instance variable
cycles
46. The root class in Objective-C
long long
object
NSObject
protocol
47. 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
nil
Cocoa
Product>Profile>Leaks>Profile
48. ARC is susceptible to retain _____
factory
cycles
instance variable
namespace
49. In a home building analogy a ____ is the blueprint and the object is the house
instance
class
anonymous object
dynamic typing
50. A ____ _____ is where you forget to free up memory
superclass
printf( )
memory leak
remote message