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. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
inheritance hierarchy
informal protocol
@interface
2. 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.
conform
inheritance hierarchy
instance method
memory leak
3. Objective-C is a _____ of the C language
superset
informal protocol
cannot
zero
4. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
strong
procedural programming language
struct
5. 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.
class object
dangling pointer
link time
conform
6. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
ampersand (&)
informal protocol
init
7. Square bracket syntax for calling a method
superset
nonatomic
[receiver message];
cannot
8. There are ____ fundamental building blocks in Objective-C
AppKit
9
dynamic typing
@interface
9. An object that acts on behalf of another object.
delegate
attributes
class object
procedural programming language
10. 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.
heap
runtime
nonatomic
Protocols
11. This symbol denotes a method as being an instance method
doubles
class
-
NSObject
12. Property attribute that causes the setter to store a copy of the assigned value
weak
Unitary
method
copy
13. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
anonymous object
structures
class
NSString
14. Objective-C methods are called using ____ _____
anonymous object
dynamic binding
square brackets
comma-separated
15. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
class object
reference counting
+
compile time
16. Three main categories of more complicated data structures:_______ - arrays and structs
mutex
reference counting
cycles
pointers
17. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
init
polymorphism
synchronous message
event
18. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
structures
Encapsulation
inheritance
19. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
NSString
long long
message
comma-separated
20. 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
Unsigned
fields
NSString
procedural programming language
21. The root class in Objective-C
strong
AppKit
NSObject
outlet
22. 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.
nonatomic
heap
ARC
instance variable
23. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
@implementation
double
factory object
24. Property attribute that synthesizes only a getter for the property
remote message
memory leak
NSString
readonly
25. In a home building analogy a ____ is the blueprint and the object is the house
subclass
distributed objects
class
%
26. 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).
message
mutex
dereference (dereferencing)
implementation
27. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
formal protocol
-
class method
long long
28. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
instance
runtime
asterisk (*)
deprecated
29. 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.
instance
doubles
pointers
informal protocol
30. Property attribute that causes the setter to store a strong reference to the assigned value
abstract class
strong
synchronous message
nil
31. 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.
Interface Builder
procedures
namespace
abstract class
32. Property attribute that synthesizes both a getter and setter for the property
conform
Protocols
readwrite
value
33. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
synchronous message
weak
printf( )
34. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
instance method
namespace
dynamic binding
[receiver message];
35. 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
formal protocol
delegate
%@
36. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
informal protocol
nil
ARC
37. 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.
encapsulation
nil
Binary
class method
38. 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.
abstract superclass
adopt
abstract class
outlet
39. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
unitary
readonly
class
40. Any class that's one step below another class in the inheritance hierarchy.
framework
%
subclass
inheritance hierarchy
41. A message sent from one application to an object in another application.
remote message
comma-separated
Cocoa
long long
42. C-style strings are stored in an array of _____
@interface
copy
chars
cannot
43. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
nil
value
attributes
heap
44. 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
memory leak
dynamic typing
designated initializer
ARC
45. When creating a class header file you begin with the _____ keyword and close with the @end keyword
outlet
@interface
conform
Protocols
46. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
properties
designated initializer
dispatch table
object
47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
selector
instance variable
doubles
delegates
48. A struct may contain multiple ____ consisting of different data types
fields
9
zero
ampersand (&)
49. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
null
C operators
compile time
init
50. Objective-C's protocols are really about communicating _____ _______
Edit>Refactor>Convert to Objective-C ARC
developer intent
receiver
remote message