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++; is an example of using a _____ operator
ampersand (&)
nil
Pointers
unitary
2. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
delegates
runtime
memory leak
3. ______ operators take a single operand
Unitary
long long
developer intent
ampersand (&)
4. 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
instance method
unitary
[receiver message];
5. A set of method definitions that is segregated from the rest of the class definition.
synchronous message
category
null
structures
6. C-style strings are stored in an array of _____
reference counting
precedence
fields
chars
7. In the Objective-C language the declaration of a group of methods not associated with any particular class.
outlet
dynamic allocation
protocol
Encapsulation
8. 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.
dynamic allocation
class object
9
link time
9. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
category
runtime
framework
10. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
precedence
long long
dereference (dereferencing)
protocol
11. To destroy an object set the variable that points to it to _____
binary
nil
mutex
procedures
12. 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.
nil
selector
remote message
static typing
13. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
message
Cocoa
formal protocol
outlet
14. A class is said to do this when it declares that it implements all the methods in the protocol.
structures
informal protocol
receiver
adopt
15. 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).
implementation
dynamic allocation
remote message
pointers
16. ____ provide a concise & elegant method for defining a discrete set of values
Edit>Refactor>Convert to Objective-C ARC
nil
Enumerations
designated
17. The most flexible C data type: ______
event
framework
class object
struct
18. 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.
developer intent
+
synchronous message
instance
19. This symbol denotes a method as being an instance method
Product>Profile>Leaks>Profile
attributes
class object
-
20. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
adopt
implementation
@implementation
21. Property attribute where the setter stores the assigned value but does not perform any memory management.
struct
%
procedures
assign
22. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Smalltalk
deprecated
message
mutex
23. 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
runtime
class object
designated initializer
ARC
24. 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).
ampersand (&)
message expression
copy
class
25. An object that acts on behalf of another object.
delegate
ampersand (&)
event
Unitary
26. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
factory object
ARC
nil
27. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
%
asynchronous message
polymorphism
28. ______ data types are always zero or greate
value
Protocols
Unsigned
Product>Profile>Leaks>Profile
29. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
mutex
Smalltalk
static typing
subclass
30. All objects are created on the _____
subclass
runtime
%
heap
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
init
@interface
Categories
NSString
32. 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
object
dynamic binding
Encapsulation
conform
33. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
inheritance
%@
cannot
class
34. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
printf( )
designated
polymorphism
35. The process of setting or reading the value at an address pointed to by a pointer
conform
Smalltalk
class
dereference (dereferencing)
36. The first index in an array is valued at ____
Interface Builder
category
instance
zero
37. Same as class object. (second way to say it.)
factory object
Pointers
ampersand (&)
message expression
38. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
NSString
@implementation
dispatch table
weak
39. Finding the method implementation to invoke in response to the message
anonymous object
dynamic binding
instance variable
instance
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.
chars
namespace
readonly
strong
41. 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.
implementation
synchronous message
C operators
AppKit
42. Xcode sequence to convert non-ARC apps to ARC
designated
Edit>Refactor>Convert to Objective-C ARC
@implementation
framework
43. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
instance method
comma-separated
@interface
NSObject
44. An object of unknown class. Interface is published through protocol declaration.
outlet
inheritance
+
anonymous object
45. There are ____ fundamental building blocks in Objective-C
protocol
NSObject
9
nonatomic
46. Instance variables are optional in iOS if ________ are used
square brackets
properties
anonymous object
encapsulation
47. In object-oriented programming a procedure that can be executed by an object.
procedural programming language
fields
method
abstract class
48. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
superclass
runtime
class
49. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
printf( )
formal protocol
class
designated
50. 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.
init
procedures
instance
runtime