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 direct or indirect report of external activity especially user activity on the keyboard and mouse.
Product>Profile>Leaks>Profile
runtime
event
dereference (dereferencing)
2. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
encapsulation
9
long long
value
3. A ____ _____ is where you forget to free up memory
memory leak
readonly
synchronous message
developer intent
4. Property attribute that synthesizes both a getter and setter for the property
conform
readwrite
deprecated
precedence
5. Objective-C objects should use strong or weak ______
readonly
attributes
binary
dangling pointer
6. C-style strings are stored in an array of _____
chars
heap
anonymous object
Unitary
7. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Pointers
designated
namespace
framework
8. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
dispatch table
value
instance method
9. A class is said to do this when it declares that it implements all the methods in the protocol.
polymorphism
adopt
%
developer intent
10. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
floating-point
anonymous object
Protocols
abstract superclass
11. A ____ ____ is a situation where you free memory and then accidentally continue to use it
runtime
instance method
double
dangling pointer
12. In the Objective-C language the declaration of a group of methods not associated with any particular class.
abstract class
attributes
protocol
pointers
13. 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
init
anonymous object
%
14. A method that can operate on class objects rather than instances of the class.
remote message
dynamic typing
class method
delegates
15. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
receiver
developer intent
abstract superclass
16. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
outlet
floating-point
doubles
17. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
weak
Cocoa
instance variable
compile time
18. _____ allow you to add new methods to existing classes
assign
dispatch table
dynamic binding
Categories
19. This symbol denotes a method as being a class method
protocol
event
%@
+
20. Finding the method implementation to invoke in response to the message
asterisk (*)
[receiver message];
nonatomic
dynamic binding
21. a+b; is an example of using a _____ operator
object
copy
binary
inheritance hierarchy
22. 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.
Pointers
id
inheritance
encapsulation
23. When creating a class header file you begin with the _____ keyword and close with the @end keyword
AppKit
abstract class
@interface
class
24. In Objective-C floats are more commonly used than ______
subclass
[receiver message];
runtime
doubles
25. 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.
double
instance
outlet
remote message
26. Property attribute that synthesizes accessors that are not thread safe
nonatomic
polymorphism
init
factory
27. 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
attributes
+
pointers
conform
28. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
abstract superclass
precedence
class
compile time
29. _____ operators take 2 operands
class method
Binary
nonatomic
asterisk (*)
30. 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.
+
NSString
interface
object
31. The most flexible C data type: ______
distributed objects
struct
procedures
outlet
32. Any class that's one step below another class in the inheritance hierarchy.
subclass
Cocoa
@interface
factory
33. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
factory object
ampersand (&)
structures
34. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
runtime
asynchronous message
mutex
instance
35. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
nonatomic
method
-
36. An object that acts on behalf of another object.
ARC
delegate
message
method
37. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
unitary
link time
mutex
38. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
structures
[receiver message];
instance method
39. The first index in an array is valued at ____
class method
ARC
pointer
zero
40. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
fields
-
struct
procedural programming language
41. 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.
ARC
precedence
runtime
formal protocol
42. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
dispatch table
Categories
procedures
dynamic binding
43. ______ data types are always zero or greate
superclass
Unsigned
copy
printf( )
44. 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.
interface
[receiver message];
structures
id
45. a++; is an example of using a _____ operator
unitary
binary
strong
nil
46. Objective-C's protocols are really about communicating _____ _______
pointers
protocol
developer intent
deprecated
47. 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.
selector
runtime
NSObject
%@
48. Any method that can be used by an instance of a class rather than by the class object.
instance method
9
pointer
-
49. In object-oriented programming a procedure that can be executed by an object.
NSObject
long long
method
designated initializer
50. 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.
precedence
heap
selector
runtime