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. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
fields
NSObject
inheritance
2. _____ allow you to add new methods to existing classes
ARC
Categories
Interface Builder
assign
3. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
%
remote message
-
4. C-style strings always end with a ____ character
Signed
outlet
null
developer intent
5. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
delegates
memory leak
assign
framework
6. 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
@interface
Pointers
asterisk (*)
7. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
ampersand (&)
nil
dispatch table
8. In object-oriented programming a procedure that can be executed by an object.
abstract class
method
id
binary
9. 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.
adopt
class object
reference counting
static typing
10. Same as class object. (first way to say it.)
readonly
factory
mutex
@implementation
11. When creating a class header file you begin with the _____ keyword and close with the @end keyword
class object
class
readwrite
@interface
12. ____ provide a concise & elegant method for defining a discrete set of values
remote object
properties
superset
Enumerations
13. 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.
floating-point
abstract class
pointer
compile time
14. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
class
assignment
C operators
15. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
conform
assign
Protocols
dynamic binding
16. A struct may contain multiple ____ consisting of different data types
superclass
nil
fields
mutex
17. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
pointer
Signed
Protocols
18. Same as class object. (second way to say it.)
strong
procedures
factory object
struct
19. Initializer method traditionally begin with the _____ prefix
class
ARC
cycles
init
20. In a format string the place holder for an object is ______
Signed
selector
%@
pointer
21. The first index in an array is valued at ____
%@
zero
method
designated initializer
22. Property attribute that synthesizes accessors that are not thread safe
nonatomic
ampersand (&)
developer intent
delegate
23. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
9
fields
precedence
static typing
24. A compiler feature that provides automated memory management
protocol
ARC
class object
dereference (dereferencing)
25. An object in another application - one that's a potential receiver for a remote message.
receiver
floating-point
remote object
Enumerations
26. A set of method definitions that is segregated from the rest of the class definition.
double
category
Product>Profile>Leaks>Profile
AppKit
27. Discovering the class of an object at runtime rather than at compile time.
value
dynamic typing
object
remote object
28. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
class
inheritance
Encapsulation
class method
29. Xcode sequence to examine an app for memory leaks or retain cycles
Signed
Encapsulation
Product>Profile>Leaks>Profile
double
30. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
event
Smalltalk
null
outlet
31. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
message expression
developer intent
abstract superclass
compile time
32. Placing a ____ before a normal variable name gives it's address
abstract superclass
pointers
ampersand (&)
precedence
33. An architecture that facilitates communication between objects in different address spaces.
instance
Binary
remote message
distributed objects
34. 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.
copy
AppKit
object
compile time
35. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
instance
ampersand (&)
Pointers
36. 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.
inheritance hierarchy
adopt
nil
class
37. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
event
synchronous message
procedures
38. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
ampersand (&)
nil
assign
39. A ____ _____ is where you forget to free up memory
attributes
object
memory leak
Enumerations
40. Objective-C binds methods and arguments at _____ instead of compile time
runtime
deprecated
message expression
inheritance hierarchy
41. 3 Common Float data types: float - _____ - CGFloat
readwrite
binary
inheritance
double
42. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
comma-separated
class method
value
43. Property attribute that synthesizes only a getter for the property
informal protocol
selector
readonly
procedures
44. The root class in Objective-C
NSObject
runtime
Enumerations
binary
45. 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).
implementation
long long
remote object
class
46. Symbol used to denote a placeholder in a format string
%
static typing
class
attributes
47. ______ data types are always zero or greate
Unsigned
developer intent
asterisk (*)
pointers
48. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
assignment
procedures
mutex
copy
49. Property attribute that causes the setter to store a strong reference to the assigned value
dynamic binding
AppKit
Categories
strong
50. _____ allow indirect access and modification of a variable's value.
doubles
Pointers
developer intent
AppKit