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. In a format string the place holder for an object is ______
link time
%@
Signed
object
2. To destroy an object set the variable that points to it to _____
nil
informal protocol
delegates
double
3. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
superset
designated
delegates
value
4. 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.
class object
class method
class
asynchronous message
5. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
dereference (dereferencing)
class
unitary
6. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
asynchronous message
Edit>Refactor>Convert to Objective-C ARC
weak
readonly
7. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
square brackets
Binary
dangling pointer
8. _____ operators take 2 operands
structures
encapsulation
dynamic binding
Binary
9. 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
id
Encapsulation
NSString
class
10. A method that can operate on class objects rather than instances of the class.
heap
%@
NSString
class method
11. 3 Common Float data types: float - _____ - CGFloat
double
namespace
comma-separated
synchronous message
12. An object in another application - one that's a potential receiver for a remote message.
@interface
Pointers
%
remote object
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.
abstract class
double
deprecated
event
14. An object that acts on behalf of another object.
Unsigned
object
remote message
delegate
15. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
ampersand (&)
message
Encapsulation
16. ______ operators take a single operand
Unitary
dangling pointer
class method
nil
17. 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.
zero
cycles
copy
outlet
18. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
strong
long long
synchronous message
abstract class
19. An object of unknown class. Interface is published through protocol declaration.
Unsigned
dynamic binding
binary
anonymous object
20. _____ data types can be both positive and negative
readwrite
Signed
designated
class object
21. 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.
link time
selector
dereference (dereferencing)
superset
22. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
Pointers
C operators
compile time
dereference (dereferencing)
23. In the Objective-C language the declaration of a group of methods not associated with any particular class.
dereference (dereferencing)
protocol
-
+
24. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class object
%
class
pointers
25. Objective-C's protocols are really about communicating _____ _______
superclass
developer intent
struct
asynchronous message
26. Data types are divided into two main categories: integer and ______
floating-point
ampersand (&)
9
readonly
27. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
Binary
assign
link time
28. An architecture that facilitates communication between objects in different address spaces.
interface
distributed objects
struct
memory leak
29. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
properties
designated
synchronous message
deprecated
30. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
implementation
factory object
assign
message
31. Finding the method implementation to invoke in response to the message
value
static typing
dynamic binding
factory object
32. A set of method definitions that is segregated from the rest of the class definition.
category
factory object
assign
designated
33. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
synchronous message
floating-point
Smalltalk
34. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
protocol
Protocols
implementation
class
35. Objective-C is a _____ of the C language
object
superset
Cocoa
class
36. ARC is susceptible to retain _____
cycles
pointers
@interface
dangling pointer
37. 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.
C operators
precedence
formal protocol
weak
38. This symbol denotes a method as being a class method
selector
+
receiver
Categories
39. The root class in Objective-C
superset
strong
ampersand (&)
NSObject
40. 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.
factory object
inheritance hierarchy
delegates
asynchronous message
41. 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
namespace
[receiver message];
AppKit
42. An object id with a value of 0.
method
nil
@implementation
structures
43. Placing a ____ before a normal variable name gives it's address
cannot
zero
designated
ampersand (&)
44. 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
pointer
reference counting
NSObject
45. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
static typing
dereference (dereferencing)
NSString
46. Symbol used to denote a placeholder in a format string
+
pointers
%
dangling pointer
47. 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.
Enumerations
message
static typing
runtime
48. A struct may contain multiple ____ consisting of different data types
distributed objects
cannot
fields
cycles
49. 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.
Protocols
encapsulation
category
selector
50. ______ data types are always zero or greate
Unsigned
nonatomic
conform
class method