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 part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
link time
class
namespace
interface
2. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
attributes
Unitary
double
C operators
3. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
abstract class
Smalltalk
Categories
Product>Profile>Leaks>Profile
4. Initializer method traditionally begin with the _____ prefix
selector
init
asterisk (*)
Binary
5. a++; is an example of using a _____ operator
precedence
Product>Profile>Leaks>Profile
unitary
Categories
6. Property attribute that synthesizes only a getter for the property
%@
pointer
readonly
distributed objects
7. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
informal protocol
inheritance
designated initializer
designated
8. 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).
mutex
implementation
Smalltalk
binary
9. Property attribute that synthesizes accessors that are not thread safe
nonatomic
delegate
dangling pointer
implementation
10. In Objective-C floats are more commonly used than ______
superset
null
doubles
cycles
11. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dangling pointer
message
readonly
dispatch table
12. _____ allow indirect access and modification of a variable's value.
Pointers
class method
long long
nil
13. In a format string the place holder for an object is ______
nonatomic
factory object
%@
dereference (dereferencing)
14. All objects are created on the _____
Protocols
delegates
doubles
heap
15. ____ provide a concise & elegant method for defining a discrete set of values
+
Enumerations
readonly
nonatomic
16. The _____ function can be used to print a message to the console
anonymous object
ampersand (&)
printf( )
Unitary
17. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
mutex
unitary
asynchronous message
floating-point
18. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
strong
cannot
instance
instance
19. 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.
formal protocol
Cocoa
asynchronous message
mutex
20. Property attribute that causes the setter to store a strong reference to the assigned value
9
strong
designated
null
21. Instance variables are optional in iOS if ________ are used
properties
assign
deprecated
selector
22. The process of setting or reading the value at an address pointed to by a pointer
value
class object
precedence
dereference (dereferencing)
23. 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.
instance variable
Unsigned
Pointers
Encapsulation
24. Same as class object. (first way to say it.)
factory
conform
Cocoa
instance
25. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
nil
reference counting
distributed objects
mutex
26. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Binary
category
delegates
weak
27. Xcode sequence to convert non-ARC apps to ARC
dynamic binding
weak
method
Edit>Refactor>Convert to Objective-C ARC
28. A method that can operate on class objects rather than instances of the class.
procedural programming language
category
nil
class method
29. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
protocol
namespace
conform
30. This symbol denotes a method as being an instance method
framework
floating-point
-
message expression
31. A ____ _____ is where you forget to free up memory
reference counting
memory leak
asynchronous message
comma-separated
32. 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.
procedural programming language
AppKit
developer intent
assign
33. Placing a ____ before a normal variable name gives it's address
synchronous message
id
Product>Profile>Leaks>Profile
ampersand (&)
34. 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.
memory leak
nonatomic
NSString
object
35. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
message expression
value
long long
deprecated
36. A ____ ____ is a situation where you free memory and then accidentally continue to use it
mutex
dangling pointer
heap
message
37. In a home building analogy a ____ is the blueprint and the object is the house
class
%@
informal protocol
assign
38. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
copy
factory
precedence
39. An object of unknown class. Interface is published through protocol declaration.
anonymous object
abstract superclass
strong
unitary
40. 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.
nil
dynamic allocation
fields
link time
41. A struct may contain multiple ____ consisting of different data types
fields
Unitary
class
mutex
42. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
dispatch table
floating-point
value
outlet
43. 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
chars
[receiver message];
NSString
instance variable
44. 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
category
value
synchronous message
abstract class
45. 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.
informal protocol
factory object
abstract class
init
46. 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.
class method
pointer
runtime
link time
47. 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
Enumerations
designated initializer
NSObject
weak
48. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Categories
@implementation
message expression
delegates
49. When creating a class header file you begin with the _____ keyword and close with the @end keyword
pointer
unitary
pointers
@interface
50. 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.
@implementation
inheritance hierarchy
mutex
framework