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. This symbol denotes a method as being a class method
runtime
category
+
link time
2. There are ____ fundamental building blocks in Objective-C
attributes
instance
9
ARC
3. Symbol used to denote a placeholder in a format string
Binary
%
instance method
[receiver message];
4. Same as class object. (first way to say it.)
factory
class
asynchronous message
double
5. _____ allow you to add new methods to existing classes
[receiver message];
selector
category
Categories
6. 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
class
superset
NSString
dynamic allocation
7. 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
double
structures
event
8. Property attribute that synthesizes only a getter for the property
dangling pointer
printf( )
readonly
designated
9. 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
heap
structures
designated initializer
instance
10. _____ allow indirect access and modification of a variable's value.
strong
Enumerations
C operators
Pointers
11. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
designated initializer
instance
Interface Builder
Enumerations
12. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
receiver
init
double
precedence
13. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
null
reference counting
superset
14. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
receiver
Product>Profile>Leaks>Profile
message expression
15. Any class that's one step below another class in the inheritance hierarchy.
weak
subclass
runtime
struct
16. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
zero
instance method
category
framework
17. Property attribute that causes the setter to store a strong reference to the assigned value
informal protocol
id
strong
attributes
18. The root class in Objective-C
AppKit
instance
init
NSObject
19. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
method
strong
Categories
20. All objects are created on the _____
cannot
class object
heap
Edit>Refactor>Convert to Objective-C ARC
21. Any method that can be used by an instance of a class rather than by the class object.
class
nil
Unitary
instance method
22. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
method
Product>Profile>Leaks>Profile
dispatch table
long long
23. Objective-C's protocols are really about communicating _____ _______
pointer
method
developer intent
attributes
24. 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.
compile time
framework
dynamic allocation
instance method
25. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Smalltalk
value
zero
runtime
26. Property attribute that causes the setter to store a copy of the assigned value
chars
dereference (dereferencing)
copy
framework
27. 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.
init
-
precedence
object
28. A method that can operate on class objects rather than instances of the class.
procedural programming language
heap
class method
cycles
29. 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.
assign
delegate
NSObject
namespace
30. In Objective-C floats are more commonly used than ______
doubles
Binary
@implementation
informal protocol
31. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
dynamic binding
dispatch table
assignment
floating-point
32. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
double
delegates
factory object
static typing
33. a++; is an example of using a _____ operator
ampersand (&)
deprecated
factory
unitary
34. _____ operators take 2 operands
procedures
Binary
id
reference counting
35. A compiler feature that provides automated memory management
object
procedures
ARC
assign
36. 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
binary
zero
Binary
37. An object in another application - one that's a potential receiver for a remote message.
readwrite
runtime
binary
remote object
38. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
dangling pointer
asterisk (*)
-
nonatomic
39. A class is said to do this when it declares that it implements all the methods in the protocol.
dynamic allocation
procedures
adopt
protocol
40. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
dereference (dereferencing)
category
runtime
deprecated
41. Another name for a class that's defined solely so that other classes can inherit from it.
struct
abstract superclass
instance
properties
42. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
weak
chars
interface
cannot
43. 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
Categories
synchronous message
cycles
method
44. Data types are divided into two main categories: integer and ______
floating-point
inheritance hierarchy
designated
abstract superclass
45. 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.
dynamic binding
NSString
AppKit
binary
46. Same as class object. (second way to say it.)
message expression
compile time
factory object
AppKit
47. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
message expression
static typing
category
pointers
48. ______ operators take a single operand
Unitary
dynamic allocation
dynamic typing
zero
49. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Edit>Refactor>Convert to Objective-C ARC
readonly
Smalltalk
nil
50. 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.
NSString
reference counting
readwrite
zero