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 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
value
dangling pointer
designated initializer
dispatch table
2. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
remote message
framework
Edit>Refactor>Convert to Objective-C ARC
C operators
3. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
zero
ampersand (&)
precedence
AppKit
4. An object that acts on behalf of another object.
binary
instance
interface
delegate
5. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
Protocols
strong
instance
Interface Builder
6. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
message
designated initializer
instance
7. Another name for a class that's defined solely so that other classes can inherit from it.
delegates
abstract superclass
strong
Categories
8. ____ provide a concise & elegant method for defining a discrete set of values
precedence
Enumerations
weak
AppKit
9. Property attribute where the setter stores the assigned value but does not perform any memory management.
Unsigned
@interface
assign
Categories
10. C-style strings always end with a ____ character
dereference (dereferencing)
Interface Builder
procedural programming language
null
11. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
implementation
designated initializer
precedence
12. 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
designated
synchronous message
Binary
@implementation
13. In object-oriented programming the object that is sent a message.
nil
receiver
structures
inheritance
14. Xcode sequence to examine an app for memory leaks or retain cycles
superset
asynchronous message
Product>Profile>Leaks>Profile
Enumerations
15. There are ____ fundamental building blocks in Objective-C
receiver
static typing
weak
9
16. 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.
instance
dynamic typing
cycles
encapsulation
17. 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
dispatch table
link time
ampersand (&)
18. Property attribute that causes the setter to store a strong reference to the assigned value
asterisk (*)
strong
NSString
Categories
19. The root class in Objective-C
[receiver message];
copy
NSObject
category
20. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
inheritance hierarchy
inheritance
outlet
asterisk (*)
21. A set of method definitions that is segregated from the rest of the class definition.
structures
class method
nonatomic
category
22. Same as class object. (first way to say it.)
message
instance
factory
class method
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.
+
precedence
instance variable
dynamic typing
24. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
category
instance
runtime
double
25. In Objective-C floats are more commonly used than ______
Protocols
Encapsulation
doubles
remote object
26. Instance variables are optional in iOS if ________ are used
properties
-
factory object
double
27. 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.
structures
Encapsulation
long long
object
28. 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.
Unsigned
class object
Edit>Refactor>Convert to Objective-C ARC
abstract class
29. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
cannot
readonly
inheritance hierarchy
30. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
dynamic binding
square brackets
class method
31. The most flexible C data type: ______
%
nil
chars
struct
32. The _____ function can be used to print a message to the console
printf( )
assignment
runtime
class object
33. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
nonatomic
NSObject
deprecated
asterisk (*)
34. 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.
init
runtime
readwrite
cycles
35. 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
Encapsulation
readwrite
+
NSString
36. 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.
designated
printf( )
selector
comma-separated
37. ______ data types are always zero or greate
Unsigned
dispatch table
class
asynchronous message
38. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
namespace
Cocoa
inheritance
asynchronous message
39. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
mutex
readonly
abstract superclass
procedural programming language
40. To destroy an object set the variable that points to it to _____
nil
value
dereference (dereferencing)
binary
41. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
instance variable
structures
superset
superclass
42. A message sent from one application to an object in another application.
remote message
zero
comma-separated
delegates
43. This symbol denotes a method as being an instance method
instance variable
-
delegates
properties
44. ARC is susceptible to retain _____
double
doubles
Interface Builder
cycles
45. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
static typing
C operators
event
attributes
46. C-style strings are stored in an array of _____
strong
pointer
dynamic binding
chars
47. All objects are created on the _____
ARC
NSObject
heap
value
48. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
null
@implementation
selector
printf( )
49. A struct may contain multiple ____ consisting of different data types
doubles
memory leak
class
fields
50. 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.
adopt
mutex
readonly
outlet