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. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
compile time
struct
cannot
class method
2. Data types are divided into two main categories: integer and ______
asterisk (*)
id
instance variable
floating-point
3. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
remote message
id
formal protocol
4. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
comma-separated
Encapsulation
memory leak
5. 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.
assign
id
Binary
encapsulation
6. A ____ _____ is where you forget to free up memory
memory leak
developer intent
class method
readwrite
7. ______ operators take a single operand
procedures
null
receiver
Unitary
8. Property attribute that synthesizes only a getter for the property
readonly
zero
object
-
9. Xcode sequence to examine an app for memory leaks or retain cycles
dangling pointer
deprecated
nil
Product>Profile>Leaks>Profile
10. Initializer method traditionally begin with the _____ prefix
init
class
Interface Builder
square brackets
11. Finding the method implementation to invoke in response to the message
dynamic binding
inheritance
nil
runtime
12. ______ data types are always zero or greate
Unsigned
ARC
strong
long long
13. Objective-C's protocols are really about communicating _____ _______
developer intent
class method
%
properties
14. 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.
Binary
instance
informal protocol
asynchronous message
15. A variable that points to the memory address of another value
pointer
ARC
conform
null
16. This symbol denotes a method as being a class method
+
class method
ARC
method
17. A compiler feature that provides automated memory management
informal protocol
nil
designated
ARC
18. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
receiver
event
precedence
protocol
19. _____ operators take 2 operands
superset
pointers
compile time
Binary
20. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
Binary
procedural programming language
pointer
21. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
protocol
message
designated
fields
22. 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.
dangling pointer
link time
properties
Edit>Refactor>Convert to Objective-C ARC
23. 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.
-
outlet
factory object
dynamic typing
24. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Edit>Refactor>Convert to Objective-C ARC
anonymous object
static typing
link time
25. Xcode sequence to convert non-ARC apps to ARC
pointers
Edit>Refactor>Convert to Objective-C ARC
comma-separated
Smalltalk
26. A message sent from one application to an object in another application.
remote message
synchronous message
NSString
cycles
27. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
Unsigned
binary
comma-separated
developer intent
28. Property attribute that causes the setter to store a strong reference to the assigned value
namespace
strong
AppKit
instance
29. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
weak
copy
polymorphism
formal protocol
30. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
init
class object
assignment
structures
31. 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.
object
+
remote message
unitary
32. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
instance variable
runtime
unitary
33. An object in another application - one that's a potential receiver for a remote message.
NSString
abstract superclass
protocol
remote object
34. A struct may contain multiple ____ consisting of different data types
fields
abstract superclass
Enumerations
instance
35. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
pointer
-
polymorphism
36. 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.
nonatomic
inheritance hierarchy
distributed objects
instance
37. Property attribute that causes the setter to store a copy of the assigned value
9
copy
precedence
instance variable
38. There are ____ fundamental building blocks in Objective-C
9
instance
assign
message expression
39. A set of method definitions that is segregated from the rest of the class definition.
message expression
category
Encapsulation
Pointers
40. Property attribute that synthesizes both a getter and setter for the property
informal protocol
readwrite
asynchronous message
Enumerations
41. An object id with a value of 0.
nil
interface
polymorphism
AppKit
42. Objective-C methods are called using ____ _____
null
developer intent
memory leak
square brackets
43. A class is said to do this when it declares that it implements all the methods in the protocol.
runtime
precedence
adopt
inheritance hierarchy
44. _____ data types can be both positive and negative
asynchronous message
instance method
Signed
readwrite
45. 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
[receiver message];
assignment
NSString
delegates
46. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
attributes
Categories
Pointers
47. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
assignment
structures
reference counting
deprecated
48. In object-oriented programming a procedure that can be executed by an object.
strong
abstract class
method
abstract superclass
49. 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
abstract class
Cocoa
deprecated
50. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Protocols
init
class
pointer