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. _____ 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
%@
protocol
static typing
2. 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.
remote object
developer intent
delegate
reference counting
3. _____ operators take 2 operands
Binary
attributes
dispatch table
object
4. Instance variables are optional in iOS if ________ are used
cycles
event
factory object
properties
5. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
outlet
event
value
NSObject
6. ____ provide a concise & elegant method for defining a discrete set of values
remote object
Enumerations
-
nil
7. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
inheritance hierarchy
init
factory
8. 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
selector
id
Enumerations
structures
9. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
precedence
value
inheritance
instance
10. ______ data types are always zero or greate
attributes
long long
delegate
Unsigned
11. 3 Common Float data types: float - _____ - CGFloat
inheritance
formal protocol
class
double
12. Square bracket syntax for calling a method
[receiver message];
superclass
link time
delegate
13. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
@interface
readonly
attributes
14. To destroy an object set the variable that points to it to _____
nil
[receiver message];
adopt
superclass
15. Initializer method traditionally begin with the _____ prefix
inheritance hierarchy
Encapsulation
init
%@
16. Any class that's one step below another class in the inheritance hierarchy.
runtime
id
subclass
[receiver message];
17. 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
Product>Profile>Leaks>Profile
superclass
18. C-style strings are stored in an array of _____
properties
chars
instance method
dynamic binding
19. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
9
readwrite
Interface Builder
class method
20. Property attribute that causes the setter to store a copy of the assigned value
superset
event
copy
compile time
21. Objective-C methods are called using ____ _____
abstract class
distributed objects
square brackets
cycles
22. In object-oriented programming the object that is sent a message.
subclass
fields
superset
receiver
23. Xcode sequence to examine an app for memory leaks or retain cycles
Binary
nil
Product>Profile>Leaks>Profile
value
24. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
id
weak
polymorphism
init
25. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
remote object
anonymous object
Signed
26. Finding the method implementation to invoke in response to the message
factory object
NSObject
dynamic binding
assign
27. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
value
dereference (dereferencing)
long long
double
28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
assign
fields
procedural programming language
polymorphism
29. 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.
informal protocol
reference counting
remote object
formal protocol
30. Objective-C is a _____ of the C language
protocol
AppKit
superset
properties
31. Another name for a class that's defined solely so that other classes can inherit from it.
struct
factory
anonymous object
abstract superclass
32. A protocol declared as a category usually as a category of the NSObject class.
Signed
class object
informal protocol
printf( )
33. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
strong
message
copy
category
34. In a home building analogy a ____ is the blueprint and the object is the house
object
weak
Categories
class
35. 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).
factory
message expression
heap
readwrite
36. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
Unitary
namespace
link time
37. C-style strings always end with a ____ character
AppKit
nil
null
class object
38. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
ampersand (&)
implementation
copy
39. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
designated
namespace
distributed objects
deprecated
40. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
message
C operators
Signed
selector
41. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
structures
conform
adopt
42. 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.
designated initializer
link time
readwrite
class
43. 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.
remote object
Unitary
id
polymorphism
44. a+b; is an example of using a _____ operator
binary
zero
subclass
readwrite
45. Any method that can be used by an instance of a class rather than by the class object.
pointers
Edit>Refactor>Convert to Objective-C ARC
instance method
delegate
46. An object that acts on behalf of another object.
cycles
delegate
nil
instance method
47. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
instance method
framework
procedures
nil
48. An object id with a value of 0.
delegate
unitary
nil
strong
49. 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.
comma-separated
dynamic typing
event
object
50. An architecture that facilitates communication between objects in different address spaces.
copy
heap
distributed objects
structures