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. Any method that can be used by an instance of a class rather than by the class object.
link time
implementation
instance method
Categories
2. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
Edit>Refactor>Convert to Objective-C ARC
nonatomic
nil
3. In object-oriented programming a procedure that can be executed by an object.
Pointers
encapsulation
method
protocol
4. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
formal protocol
factory object
abstract class
value
5. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
pointer
precedence
assign
instance method
6. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
properties
interface
doubles
7. 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
properties
synchronous message
%
reference counting
8. 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.
properties
delegate
asynchronous message
NSString
9. 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).
Encapsulation
attributes
instance
message expression
10. A struct may contain multiple ____ consisting of different data types
instance variable
class
value
fields
11. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
object
delegates
unitary
dynamic typing
12. 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
Encapsulation
dangling pointer
message expression
conform
13. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
category
method
instance
14. Property attribute where the setter stores the assigned value but does not perform any memory management.
pointers
readwrite
runtime
assign
15. Initializer method traditionally begin with the _____ prefix
dereference (dereferencing)
init
designated initializer
dangling pointer
16. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
reference counting
Cocoa
nil
zero
17. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
subclass
instance variable
[receiver message];
18. ARC is susceptible to retain _____
Categories
unitary
Edit>Refactor>Convert to Objective-C ARC
cycles
19. Another name for a class that's defined solely so that other classes can inherit from it.
null
event
structures
abstract superclass
20. 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.
abstract class
class method
long long
factory object
21. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
assignment
copy
class method
deprecated
22. 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.
framework
dynamic binding
inheritance hierarchy
mutex
23. Discovering the class of an object at runtime rather than at compile time.
runtime
object
dynamic typing
nil
24. All objects are created on the _____
encapsulation
inheritance
heap
pointer
25. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
informal protocol
nonatomic
long long
precedence
26. ______ data types are always zero or greate
remote message
Unsigned
category
C operators
27. A set of method definitions that is segregated from the rest of the class definition.
asterisk (*)
comma-separated
category
static typing
28. In a home building analogy a ____ is the blueprint and the object is the house
subclass
class
NSString
double
29. 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.
pointers
formal protocol
precedence
selector
30. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Edit>Refactor>Convert to Objective-C ARC
framework
pointers
designated initializer
31. A class is said to do this when it declares that it implements all the methods in the protocol.
zero
adopt
@implementation
abstract superclass
32. An architecture that facilitates communication between objects in different address spaces.
dynamic binding
distributed objects
Interface Builder
Edit>Refactor>Convert to Objective-C ARC
33. This symbol denotes a method as being a class method
zero
long long
heap
+
34. A ____ _____ is where you forget to free up memory
memory leak
structures
formal protocol
ARC
35. Square bracket syntax for calling a method
subclass
Cocoa
procedural programming language
[receiver message];
36. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
readwrite
memory leak
instance
37. Any class that's one step below another class in the inheritance hierarchy.
Enumerations
NSObject
subclass
@implementation
38. 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.
deprecated
reference counting
AppKit
Binary
39. Objective-C binds methods and arguments at _____ instead of compile time
ampersand (&)
structures
framework
runtime
40. A message sent from one application to an object in another application.
remote message
properties
inheritance
+
41. _____ allow you to add new methods to existing classes
Categories
conform
object
ampersand (&)
42. a++; is an example of using a _____ operator
Interface Builder
NSObject
informal protocol
unitary
43. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
printf( )
receiver
heap
polymorphism
44. In a format string the place holder for an object is ______
long long
%@
designated
mutex
45. 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.
reference counting
AppKit
procedures
designated
46. 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
object
implementation
instance variable
47. A protocol declared as a category usually as a category of the NSObject class.
selector
informal protocol
factory object
Unitary
48. 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.
dispatch table
encapsulation
designated
namespace
49. _____ data types can be both positive and negative
Signed
class method
precedence
nil
50. The root class in Objective-C
adopt
procedural programming language
asterisk (*)
NSObject