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. Finding the method implementation to invoke in response to the message
assign
category
dynamic binding
Smalltalk
2. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
class method
outlet
distributed objects
3. Objective-C binds methods and arguments at _____ instead of compile time
abstract superclass
doubles
runtime
readwrite
4. In a home building analogy a ____ is the blueprint and the object is the house
Enumerations
static typing
dispatch table
class
5. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
value
Categories
nil
6. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
informal protocol
pointers
delegate
designated
7. Property attribute that causes the setter to store a copy of the assigned value
message
%@
square brackets
copy
8. 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.
memory leak
superset
abstract superclass
encapsulation
9. Xcode sequence to convert non-ARC apps to ARC
NSObject
chars
Interface Builder
Edit>Refactor>Convert to Objective-C ARC
10. _____ 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'.
outlet
pointer
structures
Encapsulation
11. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
class method
asynchronous message
nonatomic
event
12. A method that can operate on class objects rather than instances of the class.
factory object
Unsigned
assign
class method
13. 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).
abstract class
receiver
assign
implementation
14. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
long long
framework
precedence
15. In object-oriented programming the object that is sent a message.
remote object
receiver
Smalltalk
copy
16. C-style strings always end with a ____ character
class method
null
instance
Unitary
17. Property attribute that synthesizes accessors that are not thread safe
9
NSString
event
nonatomic
18. The most flexible C data type: ______
adopt
struct
factory
%@
19. 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.
superclass
dynamic allocation
Product>Profile>Leaks>Profile
abstract class
20. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
copy
static typing
deprecated
Interface Builder
21. A compiler feature that provides automated memory management
doubles
informal protocol
ARC
dynamic binding
22. a+b; is an example of using a _____ operator
mutex
instance variable
binary
anonymous object
23. Three main categories of more complicated data structures:_______ - arrays and structs
implementation
pointers
receiver
%@
24. Placing a ____ before a normal variable name gives it's address
reference counting
zero
informal protocol
ampersand (&)
25. C-style strings are stored in an array of _____
chars
object
class object
distributed objects
26. A struct may contain multiple ____ consisting of different data types
instance
implementation
receiver
fields
27. Objective-C methods are called using ____ _____
square brackets
dynamic allocation
selector
delegate
28. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
object
factory
Cocoa
conform
29. 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
comma-separated
Edit>Refactor>Convert to Objective-C ARC
conform
subclass
30. ARC is susceptible to retain _____
cycles
namespace
square brackets
nonatomic
31. To destroy an object set the variable that points to it to _____
-
nil
conform
Binary
32. The _____ function can be used to print a message to the console
printf( )
object
fields
nonatomic
33. An object that acts on behalf of another object.
delegate
runtime
properties
namespace
34. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
9
long long
Product>Profile>Leaks>Profile
dynamic binding
35. ______ data types are always zero or greate
Unsigned
dispatch table
heap
protocol
36. 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.
asynchronous message
object
dynamic typing
receiver
37. ____ provide a concise & elegant method for defining a discrete set of values
floating-point
readwrite
Enumerations
outlet
38. A ____ _____ is where you forget to free up memory
superclass
null
message expression
memory leak
39. 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.
id
link time
ARC
inheritance
40. _____ operators take 2 operands
Binary
value
Smalltalk
message
41. Another name for a class that's defined solely so that other classes can inherit from it.
Signed
developer intent
abstract superclass
protocol
42. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
procedural programming language
Edit>Refactor>Convert to Objective-C ARC
informal protocol
@implementation
43. 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
Interface Builder
formal protocol
doubles
44. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
nil
id
compile time
45. Any method that can be used by an instance of a class rather than by the class object.
struct
readonly
instance method
deprecated
46. 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).
-
doubles
abstract class
message expression
47. ______ operators take a single operand
strong
protocol
abstract class
Unitary
48. _____ allow you to add new methods to existing classes
%@
long long
Categories
dispatch table
49. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
@interface
Interface Builder
instance
dynamic typing
50. In Objective-C floats are more commonly used than ______
doubles
dispatch table
binary
implementation