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 time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
reference counting
remote object
Cocoa
2. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
class
C operators
chars
3. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
printf( )
assignment
floating-point
class method
4. This symbol denotes a method as being an instance method
-
designated initializer
[receiver message];
zero
5. 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
deprecated
abstract class
unitary
NSString
6. An object that acts on behalf of another object.
distributed objects
long long
square brackets
delegate
7. The process of setting or reading the value at an address pointed to by a pointer
struct
zero
dereference (dereferencing)
delegate
8. Property attribute that synthesizes only a getter for the property
nonatomic
dynamic typing
readonly
message
9. A ____ ____ is a situation where you free memory and then accidentally continue to use it
class
remote object
Protocols
dangling pointer
10. Same as class object. (first way to say it.)
procedural programming language
pointer
factory
superclass
11. Property attribute that synthesizes accessors that are not thread safe
nonatomic
class
informal protocol
message expression
12. Property attribute that causes the setter to store a strong reference to the assigned value
deprecated
Binary
-
strong
13. 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.
category
weak
dangling pointer
instance variable
14. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
link time
nil
instance
Cocoa
15. a++; is an example of using a _____ operator
class object
+
cannot
unitary
16. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
conform
mutex
unitary
delegates
17. Objective-C objects should use strong or weak ______
attributes
superclass
pointer
synchronous message
18. Objective-C's protocols are really about communicating _____ _______
mutex
object
developer intent
ampersand (&)
19. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
anonymous object
formal protocol
abstract class
nil
20. 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).
dynamic allocation
instance
weak
implementation
21. Data types are divided into two main categories: integer and ______
superclass
delegates
dynamic typing
floating-point
22. 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.
runtime
Cocoa
class
class object
23. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
cycles
instance
superclass
informal protocol
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.
dereference (dereferencing)
instance
dynamic allocation
zero
25. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
binary
inheritance
long long
nil
26. 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 object
printf( )
AppKit
class
27. A compiler feature that provides automated memory management
polymorphism
nonatomic
ARC
@implementation
28. Placing a ____ before a normal variable name gives it's address
ampersand (&)
binary
abstract class
protocol
29. A method that can operate on class objects rather than instances of the class.
zero
unitary
nil
class method
30. ______ operators take a single operand
namespace
Unitary
dangling pointer
Edit>Refactor>Convert to Objective-C ARC
31. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
compile time
Enumerations
event
designated
32. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
Product>Profile>Leaks>Profile
inheritance hierarchy
delegate
33. 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.
link time
compile time
Smalltalk
designated
34. C-style strings always end with a ____ character
fields
assign
AppKit
null
35. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
object
instance
struct
36. Any method that can be used by an instance of a class rather than by the class object.
instance method
ampersand (&)
weak
doubles
37. ____ provide a concise & elegant method for defining a discrete set of values
event
object
instance method
Enumerations
38. The most flexible C data type: ______
struct
designated initializer
value
Edit>Refactor>Convert to Objective-C ARC
39. Discovering the class of an object at runtime rather than at compile time.
assign
Binary
asynchronous message
dynamic typing
40. In a format string the place holder for an object is ______
%@
Unitary
distributed objects
Cocoa
41. Objective-C is a _____ of the C language
distributed objects
superset
implementation
structures
42. Property attribute that causes the setter to store a copy of the assigned value
pointers
conform
copy
ARC
43. 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.
Enumerations
reference counting
Pointers
static typing
44. Symbol used to denote a placeholder in a format string
abstract class
%
NSString
nil
45. Objective-C binds methods and arguments at _____ instead of compile time
runtime
chars
copy
Categories
46. In a home building analogy a ____ is the blueprint and the object is the house
anonymous object
Unitary
class method
class
47. The _____ function can be used to print a message to the console
comma-separated
factory
printf( )
readwrite
48. There are ____ fundamental building blocks in Objective-C
9
printf( )
Cocoa
@interface
49. 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
selector
Encapsulation
inheritance
synchronous message
50. When creating a class header file you begin with the _____ keyword and close with the @end keyword
instance variable
@interface
distributed objects
weak