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. A protocol declared as a category usually as a category of the NSObject class.
message expression
informal protocol
instance method
object
2. Objective-C methods are called using ____ _____
precedence
outlet
printf( )
square brackets
3. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
compile time
method
[receiver message];
Protocols
4. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Categories
designated
class
NSString
5. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
id
value
abstract class
nonatomic
6. In a home building analogy a ____ is the blueprint and the object is the house
class
conform
mutex
synchronous message
7. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Smalltalk
factory
procedural programming language
dispatch table
8. A compiler feature that provides automated memory management
ARC
properties
procedural programming language
namespace
9. Initializer method traditionally begin with the _____ prefix
init
implementation
@implementation
readwrite
10. Objective-C objects should use strong or weak ______
heap
attributes
long long
%@
11. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Product>Profile>Leaks>Profile
distributed objects
copy
Cocoa
12. In the Objective-C language the declaration of a group of methods not associated with any particular class.
chars
procedural programming language
protocol
developer intent
13. 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).
procedural programming language
message expression
Protocols
Encapsulation
14. Same as class object. (second way to say it.)
structures
factory
outlet
factory object
15. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
protocol
cannot
object
16. A variable that points to the memory address of another value
attributes
deprecated
selector
pointer
17. Three main categories of more complicated data structures:_______ - arrays and structs
selector
factory
pointers
protocol
18. Property attribute that synthesizes only a getter for the property
Unsigned
dynamic allocation
inheritance
readonly
19. 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.
informal protocol
binary
compile time
runtime
20. Xcode sequence to examine an app for memory leaks or retain cycles
class
Product>Profile>Leaks>Profile
weak
superclass
21. A ____ _____ is where you forget to free up memory
Cocoa
remote object
Signed
memory leak
22. _____ allow indirect access and modification of a variable's value.
Categories
Pointers
method
Unsigned
23. The root class in Objective-C
strong
class
NSObject
designated
24. 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.
square brackets
inheritance
+
asynchronous message
25. An object that acts on behalf of another object.
procedures
delegate
Pointers
protocol
26. 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.
runtime
inheritance hierarchy
abstract class
attributes
27. A set of method definitions that is segregated from the rest of the class definition.
polymorphism
nil
category
instance method
28. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
structures
-
polymorphism
comma-separated
29. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
floating-point
@implementation
remote object
weak
30. There are ____ fundamental building blocks in Objective-C
9
inheritance hierarchy
nonatomic
C operators
31. Any class that's one step below another class in the inheritance hierarchy.
interface
superset
subclass
weak
32. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
[receiver message];
ampersand (&)
double
33. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
readonly
cannot
runtime
assignment
34. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
adopt
pointers
9
framework
35. In object-oriented programming a procedure that can be executed by an object.
procedural programming language
factory object
value
method
36. The _____ function can be used to print a message to the console
-
id
Interface Builder
printf( )
37. An object of unknown class. Interface is published through protocol declaration.
dereference (dereferencing)
polymorphism
anonymous object
Enumerations
38. ____ provide a concise & elegant method for defining a discrete set of values
receiver
Enumerations
struct
id
39. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
pointer
message
outlet
Smalltalk
40. Property attribute where the setter stores the assigned value but does not perform any memory management.
@interface
assign
value
Pointers
41. 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.
protocol
adopt
object
printf( )
42. The most flexible C data type: ______
zero
struct
dispatch table
@implementation
43. Objective-C is a _____ of the C language
Encapsulation
attributes
superset
long long
44. Data types are divided into two main categories: integer and ______
protocol
floating-point
Categories
%
45. ______ operators take a single operand
9
strong
Unitary
dynamic allocation
46. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
Encapsulation
assignment
asynchronous message
formal protocol
47. An object id with a value of 0.
chars
nil
dynamic allocation
superset
48. The first index in an array is valued at ____
dynamic allocation
nil
zero
outlet
49. Instance variables are optional in iOS if ________ are used
fields
remote object
Categories
properties
50. ARC is susceptible to retain _____
cycles
long long
double
abstract superclass