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. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
developer intent
properties
NSString
C operators
2. 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.
Encapsulation
reference counting
%
instance variable
3. Same as class object. (second way to say it.)
factory object
floating-point
fields
nil
4. 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
remote message
doubles
NSString
Smalltalk
5. In object-oriented programming the object that is sent a message.
@implementation
receiver
Enumerations
pointers
6. This symbol denotes a method as being a class method
+
mutex
ARC
superset
7. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
dynamic typing
nil
instance variable
8. 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).
cannot
Product>Profile>Leaks>Profile
implementation
structures
9. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
long long
null
instance
chars
10. In Objective-C floats are more commonly used than ______
deprecated
cycles
doubles
instance variable
11. Objective-C methods are called using ____ _____
Pointers
@implementation
subclass
square brackets
12. An object id with a value of 0.
nil
outlet
precedence
message expression
13. Objective-C's protocols are really about communicating _____ _______
nil
double
dispatch table
developer intent
14. 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.
compile time
fields
dynamic allocation
namespace
15. ____ provide a concise & elegant method for defining a discrete set of values
delegates
outlet
Enumerations
ARC
16. 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.
class
Interface Builder
informal protocol
superclass
17. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
receiver
mutex
Encapsulation
remote object
18. Three main categories of more complicated data structures:_______ - arrays and structs
designated
nil
message expression
pointers
19. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
%@
dispatch table
strong
dynamic typing
20. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
delegates
formal protocol
procedural programming language
21. ARC is susceptible to retain _____
cycles
asterisk (*)
polymorphism
copy
22. Objective-C binds methods and arguments at _____ instead of compile time
runtime
binary
delegates
mutex
23. Xcode sequence to convert non-ARC apps to ARC
conform
fields
Edit>Refactor>Convert to Objective-C ARC
9
24. An object that acts on behalf of another object.
delegate
instance method
receiver
doubles
25. A compiler feature that provides automated memory management
ARC
unitary
procedures
comma-separated
26. 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
deprecated
object
instance
27. Any method that can be used by an instance of a class rather than by the class object.
instance method
copy
doubles
cannot
28. Square bracket syntax for calling a method
[receiver message];
instance method
static typing
runtime
29. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
deprecated
long long
dereference (dereferencing)
inheritance
30. Property attribute that causes the setter to store a copy of the assigned value
pointer
adopt
copy
reference counting
31. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
delegates
polymorphism
square brackets
compile time
32. 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.
designated initializer
formal protocol
subclass
%
33. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
compile time
structures
long long
%
34. To destroy an object set the variable that points to it to _____
superclass
procedural programming language
nil
-
35. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
formal protocol
Smalltalk
asterisk (*)
readwrite
36. 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.
class
Product>Profile>Leaks>Profile
AppKit
category
37. The first index in an array is valued at ____
structures
Product>Profile>Leaks>Profile
zero
readonly
38. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dangling pointer
NSString
@implementation
category
39. 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.
formal protocol
instance
NSObject
object
40. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Signed
protocol
instance
dynamic allocation
41. 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.
message
object
id
category
42. 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.
Unsigned
printf( )
readwrite
runtime
43. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
designated initializer
memory leak
readonly
Cocoa
44. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
%
delegates
structures
@interface
45. Objective-C is a _____ of the C language
inheritance hierarchy
category
superset
printf( )
46. _____ allow indirect access and modification of a variable's value.
%
instance
long long
Pointers
47. 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.
static typing
instance
%
encapsulation
48. 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.
Interface Builder
Protocols
compile time
reference counting
49. A variable that points to the memory address of another value
namespace
properties
pointer
null
50. 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.
@implementation
pointers
selector
inheritance hierarchy