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. The process of setting or reading the value at an address pointed to by a pointer
runtime
remote message
dereference (dereferencing)
link time
2. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
distributed objects
link time
long long
factory object
3. _____ data types can be both positive and negative
Unsigned
Signed
message expression
method
4. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
Categories
chars
weak
5. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
assign
procedural programming language
chars
nil
6. An object in another application - one that's a potential receiver for a remote message.
event
delegate
remote object
nil
7. 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
polymorphism
binary
method
conform
8. A protocol declared as a category usually as a category of the NSObject class.
Pointers
designated initializer
distributed objects
informal protocol
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
designated initializer
fields
-
memory leak
10. C-style strings always end with a ____ character
null
comma-separated
double
dynamic allocation
11. 3 Common Float data types: float - _____ - CGFloat
heap
selector
chars
double
12. Initializer method traditionally begin with the _____ prefix
heap
cannot
NSString
init
13. Property attribute that synthesizes both a getter and setter for the property
readwrite
value
informal protocol
attributes
14. ARC is susceptible to retain _____
cycles
dynamic allocation
informal protocol
Interface Builder
15. Property attribute that synthesizes accessors that are not thread safe
unitary
dynamic typing
pointer
nonatomic
16. 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.
struct
informal protocol
AppKit
link time
17. 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.
polymorphism
Product>Profile>Leaks>Profile
message expression
id
18. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
Categories
Protocols
selector
long long
19. The root class in Objective-C
attributes
NSObject
delegate
abstract class
20. To destroy an object set the variable that points to it to _____
NSString
unitary
nil
instance
21. Objective-C is a _____ of the C language
%
superset
strong
class method
22. _____ 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'.
Encapsulation
event
dynamic typing
Unsigned
23. 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.
superclass
inheritance hierarchy
heap
assign
24. 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.
polymorphism
encapsulation
selector
C operators
25. Property attribute that synthesizes only a getter for the property
Protocols
instance
runtime
readonly
26. Objective-C methods are called using ____ _____
instance method
properties
square brackets
C operators
27. Property attribute where the setter stores the assigned value but does not perform any memory management.
Edit>Refactor>Convert to Objective-C ARC
designated
weak
assign
28. Same as class object. (second way to say it.)
factory object
message
inheritance hierarchy
ampersand (&)
29. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Protocols
[receiver message];
pointer
weak
30. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
NSString
mutex
procedural programming language
31. A ____ ____ is a situation where you free memory and then accidentally continue to use it
nil
ARC
class
dangling pointer
32. An object id with a value of 0.
class method
remote object
formal protocol
nil
33. 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.
ARC
encapsulation
remote object
Pointers
34. 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.
adopt
nil
distributed objects
class object
35. When creating a class header file you begin with the _____ keyword and close with the @end keyword
subclass
dynamic binding
dangling pointer
@interface
36. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
readonly
mutex
instance
chars
37. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
doubles
C operators
Cocoa
ampersand (&)
38. A variable that points to the memory address of another value
Unitary
heap
pointer
square brackets
39. 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.
unitary
memory leak
instance variable
runtime
40. All objects are created on the _____
factory
message expression
heap
9
41. A method that can operate on class objects rather than instances of the class.
object
implementation
class method
compile time
42. The first index in an array is valued at ____
zero
runtime
NSObject
message
43. 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).
runtime
encapsulation
implementation
Smalltalk
44. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
structures
instance
Edit>Refactor>Convert to Objective-C ARC
factory
45. 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.
instance method
adopt
NSString
object
46. _____ operators take 2 operands
Binary
weak
value
Interface Builder
47. This symbol denotes a method as being a class method
inheritance
dereference (dereferencing)
+
Interface Builder
48. Any method that can be used by an instance of a class rather than by the class object.
instance method
fields
dereference (dereferencing)
dispatch table
49. Xcode sequence to examine an app for memory leaks or retain cycles
AppKit
interface
strong
Product>Profile>Leaks>Profile
50. Property attribute that causes the setter to store a strong reference to the assigned value
strong
Interface Builder
class
Smalltalk