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. Objective-C's protocols are really about communicating _____ _______
developer intent
conform
assignment
designated
2. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
cannot
dynamic binding
weak
3. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
adopt
assignment
procedures
conform
4. Instance variables are optional in iOS if ________ are used
polymorphism
-
properties
inheritance hierarchy
5. Objective-C objects should use strong or weak ______
attributes
Categories
fields
zero
6. Property attribute that synthesizes only a getter for the property
delegates
adopt
readonly
procedural programming language
7. 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).
pointers
message expression
copy
instance
8. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
+
procedural programming language
ARC
9. 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.
developer intent
readonly
inheritance hierarchy
synchronous message
10. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
dereference (dereferencing)
subclass
class
message expression
11. Property attribute that synthesizes accessors that are not thread safe
superset
adopt
properties
nonatomic
12. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
Encapsulation
C operators
instance method
implementation
13. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
class
nonatomic
deprecated
14. 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.
asynchronous message
AppKit
Unitary
selector
15. A class is said to do this when it declares that it implements all the methods in the protocol.
Unsigned
adopt
method
instance method
16. An architecture that facilitates communication between objects in different address spaces.
outlet
object
polymorphism
distributed objects
17. All objects are created on the _____
anonymous object
assignment
heap
struct
18. ______ data types are always zero or greate
cycles
fields
Unsigned
binary
19. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
Cocoa
square brackets
interface
20. Objective-C is a _____ of the C language
dynamic allocation
Binary
attributes
superset
21. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
Edit>Refactor>Convert to Objective-C ARC
formal protocol
struct
assignment
22. In a format string the place holder for an object is ______
Interface Builder
mutex
%@
readwrite
23. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
nil
protocol
polymorphism
pointer
24. C-style strings are stored in an array of _____
nonatomic
chars
class method
struct
25. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
conform
-
dynamic allocation
adopt
26. Initializer method traditionally begin with the _____ prefix
event
readonly
assign
init
27. ______ operators take a single operand
instance variable
instance
Binary
Unitary
28. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
+
runtime
class
29. 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.
Cocoa
object
dereference (dereferencing)
developer intent
30. 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.
instance
Signed
Interface Builder
selector
31. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
instance method
dynamic binding
%
interface
32. Objective-C methods are called using ____ _____
interface
deprecated
chars
square brackets
33. 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.
designated initializer
Edit>Refactor>Convert to Objective-C ARC
C operators
id
34. 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.
designated initializer
Cocoa
formal protocol
synchronous message
35. There are ____ fundamental building blocks in Objective-C
attributes
runtime
9
asterisk (*)
36. In a home building analogy a ____ is the blueprint and the object is the house
factory
nil
receiver
class
37. _____ allow you to add new methods to existing classes
doubles
runtime
Categories
attributes
38. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
instance
square brackets
long long
designated initializer
39. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
remote message
properties
long long
delegates
40. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
floating-point
weak
framework
41. Property attribute that causes the setter to store a strong reference to the assigned value
zero
procedures
deprecated
strong
42. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
square brackets
nil
superclass
designated
43. Another name for a class that's defined solely so that other classes can inherit from it.
message expression
namespace
ARC
abstract superclass
44. ARC is susceptible to retain _____
instance
synchronous message
cycles
Signed
45. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
nonatomic
Unsigned
long long
asterisk (*)
46. In Objective-C floats are more commonly used than ______
doubles
superclass
reference counting
factory object
47. a+b; is an example of using a _____ operator
binary
Encapsulation
method
Enumerations
48. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
method
procedural programming language
9
@implementation
49. 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
memory leak
zero
double
structures
50. 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
implementation
comma-separated
NSString