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. An object of unknown class. Interface is published through protocol declaration.
receiver
long long
anonymous object
adopt
2. ______ data types are always zero or greate
unitary
instance method
Unsigned
procedural programming language
3. A set of method definitions that is segregated from the rest of the class definition.
category
weak
event
heap
4. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
interface
properties
procedures
instance
5. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
outlet
cannot
value
6. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
inheritance hierarchy
delegates
runtime
interface
7. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
asynchronous message
abstract class
mutex
8. 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).
zero
formal protocol
message expression
distributed objects
9. a+b; is an example of using a _____ operator
Smalltalk
binary
outlet
class
10. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
remote message
instance
outlet
compile time
11. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
dynamic binding
%@
weak
class
12. Xcode sequence to convert non-ARC apps to ARC
instance variable
zero
Edit>Refactor>Convert to Objective-C ARC
reference counting
13. Instance variables are optional in iOS if ________ are used
instance
readonly
properties
dereference (dereferencing)
14. 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.
precedence
dynamic allocation
doubles
dynamic binding
15. 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).
AppKit
implementation
compile time
designated
16. C-style strings are stored in an array of _____
dispatch table
receiver
properties
chars
17. 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.
runtime
deprecated
reference counting
assign
18. 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.
Unsigned
id
dynamic typing
Product>Profile>Leaks>Profile
19. _____ 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
delegate
comma-separated
Encapsulation
20. This symbol denotes a method as being an instance method
-
distributed objects
inheritance hierarchy
delegate
21. A message sent from one application to an object in another application.
nil
remote message
category
instance variable
22. In object-oriented programming a procedure that can be executed by an object.
copy
floating-point
precedence
method
23. 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
Cocoa
distributed objects
nonatomic
conform
24. Property attribute that causes the setter to store a copy of the assigned value
interface
copy
dynamic typing
reference counting
25. The first index in an array is valued at ____
message expression
zero
Categories
pointers
26. The most flexible C data type: ______
struct
properties
NSObject
category
27. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
encapsulation
zero
selector
value
28. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
receiver
Protocols
subclass
29. ______ operators take a single operand
%
properties
copy
Unitary
30. This symbol denotes a method as being a class method
+
class method
anonymous object
nonatomic
31. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
event
Signed
nil
32. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Enumerations
deprecated
cycles
receiver
33. 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.
%
inheritance
outlet
object
34. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
synchronous message
method
pointers
class
35. 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.
mutex
abstract superclass
instance
Protocols
36. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
attributes
dispatch table
message
+
37. Any class that's one step below another class in the inheritance hierarchy.
subclass
Smalltalk
compile time
Categories
38. An object id with a value of 0.
runtime
zero
nil
doubles
39. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
outlet
developer intent
factory
40. Data types are divided into two main categories: integer and ______
Categories
class
floating-point
ARC
41. Another name for a class that's defined solely so that other classes can inherit from it.
message expression
abstract superclass
Cocoa
nil
42. 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
@interface
fields
Signed
43. 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
C operators
designated initializer
asynchronous message
runtime
44. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
readwrite
namespace
ampersand (&)
message
45. The process of setting or reading the value at an address pointed to by a pointer
class
dereference (dereferencing)
9
nonatomic
46. The _____ function can be used to print a message to the console
printf( )
memory leak
strong
anonymous object
47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
method
superset
category
delegates
48. 3 Common Float data types: float - _____ - CGFloat
dereference (dereferencing)
+
double
mutex
49. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
9
properties
distributed objects
procedural programming language
50. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
dynamic allocation
event
@interface
Encapsulation