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. Property attribute that synthesizes both a getter and setter for the property
Unitary
inheritance
readwrite
event
2. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
%
delegates
null
9
3. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
readonly
reference counting
cannot
4. 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.
memory leak
Categories
object
%@
5. 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
abstract superclass
Unsigned
Categories
designated initializer
6. In a home building analogy a ____ is the blueprint and the object is the house
instance method
synchronous message
class
precedence
7. C-style strings are stored in an array of _____
inheritance hierarchy
value
comma-separated
chars
8. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
nil
class object
C operators
remote object
9. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
id
event
copy
link time
10. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
procedural programming language
C operators
subclass
polymorphism
11. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
receiver
asterisk (*)
cannot
NSString
12. Instance variables are optional in iOS if ________ are used
factory object
asynchronous message
Binary
properties
13. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
compile time
interface
encapsulation
dispatch table
14. A ____ _____ is where you forget to free up memory
runtime
fields
Unsigned
memory leak
15. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
printf( )
static typing
floating-point
16. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
readonly
init
NSObject
17. Property attribute that causes the setter to store a strong reference to the assigned value
id
class
strong
message expression
18. 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).
synchronous message
unitary
cannot
message expression
19. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
selector
comma-separated
init
readonly
20. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
informal protocol
weak
receiver
formal protocol
21. Objective-C binds methods and arguments at _____ instead of compile time
runtime
asynchronous message
cannot
Product>Profile>Leaks>Profile
22. _____ 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'.
+
abstract superclass
framework
Encapsulation
23. The process of setting or reading the value at an address pointed to by a pointer
designated initializer
dereference (dereferencing)
inheritance
copy
24. A message sent from one application to an object in another application.
remote message
readwrite
doubles
dispatch table
25. 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.
@interface
runtime
properties
%@
26. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
method
link time
square brackets
27. The root class in Objective-C
null
cycles
Interface Builder
NSObject
28. Finding the method implementation to invoke in response to the message
designated
null
dynamic binding
Cocoa
29. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
link time
Unsigned
[receiver message];
class
30. A method that can operate on class objects rather than instances of the class.
%
class method
event
pointers
31. _____ operators take 2 operands
Unitary
receiver
Binary
assign
32. Property attribute that causes the setter to store a copy of the assigned value
copy
Unsigned
abstract superclass
mutex
33. Three main categories of more complicated data structures:_______ - arrays and structs
weak
message
pointers
Unitary
34. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
message
compile time
reference counting
subclass
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
NSString
init
receiver
comma-separated
36. Objective-C is a _____ of the C language
superset
static typing
NSObject
NSString
37. Another name for a class that's defined solely so that other classes can inherit from it.
[receiver message];
assignment
zero
abstract superclass
38. 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.
fields
class method
ARC
instance variable
39. In a format string the place holder for an object is ______
method
assign
%@
@interface
40. A struct may contain multiple ____ consisting of different data types
memory leak
superset
class object
fields
41. a+b; is an example of using a _____ operator
binary
weak
comma-separated
ampersand (&)
42. 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.
Enumerations
dynamic binding
inheritance hierarchy
instance
43. 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.
formal protocol
nonatomic
designated initializer
doubles
44. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
%
unitary
mutex
null
45. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
ampersand (&)
method
precedence
dangling pointer
46. This symbol denotes a method as being an instance method
init
abstract superclass
square brackets
-
47. C-style strings always end with a ____ character
instance variable
namespace
null
Enumerations
48. An architecture that facilitates communication between objects in different address spaces.
distributed objects
Smalltalk
designated initializer
9
49. An object that acts on behalf of another object.
fields
delegate
adopt
procedures
50. a++; is an example of using a _____ operator
unitary
copy
factory
attributes