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. Any method that can be used by an instance of a class rather than by the class object.
instance method
synchronous message
dynamic typing
asterisk (*)
2. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
link time
weak
dereference (dereferencing)
synchronous message
3. A method that can operate on class objects rather than instances of the class.
copy
link time
dynamic binding
class method
4. 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.
developer intent
id
Unsigned
unitary
5. Data types are divided into two main categories: integer and ______
floating-point
conform
inheritance
outlet
6. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
Interface Builder
floating-point
fields
7. 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.
value
runtime
formal protocol
printf( )
8. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
selector
long long
inheritance
category
9. 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.
event
class object
weak
nil
10. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
Product>Profile>Leaks>Profile
floating-point
class
mutex
11. Property attribute that causes the setter to store a copy of the assigned value
attributes
%
copy
null
12. 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.
memory leak
ampersand (&)
superclass
dynamic allocation
13. 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.
fields
printf( )
AppKit
anonymous object
14. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
superset
dynamic typing
remote object
comma-separated
15. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
superset
ARC
static typing
16. Symbol used to denote a placeholder in a format string
%
properties
class object
9
17. A set of method definitions that is segregated from the rest of the class definition.
doubles
delegates
factory
category
18. C-style strings always end with a ____ character
null
-
informal protocol
nonatomic
19. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
pointer
instance
fields
cycles
20. Property attribute that synthesizes only a getter for the property
receiver
readonly
asterisk (*)
binary
21. Initializer method traditionally begin with the _____ prefix
init
AppKit
developer intent
comma-separated
22. An object id with a value of 0.
nil
superset
instance method
polymorphism
23. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
memory leak
double
Smalltalk
adopt
24. Objective-C objects should use strong or weak ______
synchronous message
inheritance hierarchy
nil
attributes
25. In Objective-C floats are more commonly used than ______
abstract superclass
-
strong
doubles
26. Three main categories of more complicated data structures:_______ - arrays and structs
dereference (dereferencing)
instance
pointers
class
27. Objective-C binds methods and arguments at _____ instead of compile time
informal protocol
runtime
NSObject
floating-point
28. 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.
distributed objects
deprecated
abstract class
weak
29. All objects are created on the _____
[receiver message];
protocol
implementation
heap
30. 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
synchronous message
assignment
inheritance
developer intent
31. In a home building analogy a ____ is the blueprint and the object is the house
abstract superclass
instance
class
class object
32. Discovering the class of an object at runtime rather than at compile time.
conform
dynamic typing
weak
nil
33. _____ operators take 2 operands
Categories
delegate
Binary
nil
34. _____ data types can be both positive and negative
message
C operators
Product>Profile>Leaks>Profile
Signed
35. 3 Common Float data types: float - _____ - CGFloat
reference counting
heap
double
asynchronous message
36. In object-oriented programming the object that is sent a message.
assignment
class
receiver
developer intent
37. A protocol declared as a category usually as a category of the NSObject class.
unitary
informal protocol
pointer
Encapsulation
38. An object that acts on behalf of another object.
delegate
instance method
Categories
mutex
39. Finding the method implementation to invoke in response to the message
dangling pointer
asterisk (*)
remote object
dynamic binding
40. 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
designated initializer
nil
conform
method
41. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
polymorphism
factory object
Cocoa
informal protocol
42. The most flexible C data type: ______
instance variable
Smalltalk
adopt
struct
43. _____ allow indirect access and modification of a variable's value.
precedence
Pointers
cycles
Encapsulation
44. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
implementation
delegates
inheritance hierarchy
asynchronous message
45. Objective-C's protocols are really about communicating _____ _______
runtime
developer intent
superclass
informal protocol
46. The root class in Objective-C
event
NSObject
zero
runtime
47. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
object
developer intent
AppKit
48. Objective-C methods are called using ____ _____
-
square brackets
reference counting
delegate
49. 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.
struct
distributed objects
protocol
link time
50. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
instance
floating-point
fields