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. Discovering the class of an object at runtime rather than at compile time.
id
dynamic typing
abstract class
attributes
2. Property attribute that synthesizes only a getter for the property
dynamic typing
developer intent
readonly
[receiver message];
3. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
precedence
dereference (dereferencing)
chars
4. Objective-C binds methods and arguments at _____ instead of compile time
instance method
message expression
designated
runtime
5. Property attribute that causes the setter to store a copy of the assigned value
formal protocol
doubles
[receiver message];
copy
6. The first index in an array is valued at ____
method
%@
zero
factory
7. Data types are divided into two main categories: integer and ______
mutex
framework
class object
floating-point
8. 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.
instance
designated initializer
Edit>Refactor>Convert to Objective-C ARC
synchronous message
9. The _____ function can be used to print a message to the console
delegate
value
class object
printf( )
10. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Encapsulation
9
@implementation
outlet
11. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
ARC
strong
asterisk (*)
Product>Profile>Leaks>Profile
12. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
assignment
properties
namespace
framework
13. Any class that's one step below another class in the inheritance hierarchy.
Binary
informal protocol
subclass
message expression
14. Finding the method implementation to invoke in response to the message
ARC
delegates
dynamic binding
asynchronous message
15. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
synchronous message
delegates
Binary
16. Any method that can be used by an instance of a class rather than by the class object.
instance
memory leak
precedence
instance method
17. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
Unsigned
assignment
binary
static typing
18. A variable that points to the memory address of another value
remote message
doubles
pointer
Smalltalk
19. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
compile time
id
polymorphism
distributed objects
20. A compiler feature that provides automated memory management
ARC
synchronous message
namespace
Enumerations
21. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Protocols
dynamic typing
Smalltalk
[receiver message];
22. Symbol used to denote a placeholder in a format string
%
unitary
dereference (dereferencing)
readwrite
23. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
copy
Cocoa
weak
delegate
24. The root class in Objective-C
nil
cycles
abstract class
NSObject
25. A set of method definitions that is segregated from the rest of the class definition.
nil
category
value
precedence
26. To destroy an object set the variable that points to it to _____
dynamic allocation
square brackets
nil
cycles
27. 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).
readwrite
inheritance hierarchy
properties
message expression
28. 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
heap
mutex
designated initializer
developer intent
29. 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.
conform
implementation
outlet
subclass
30. A class is said to do this when it declares that it implements all the methods in the protocol.
id
Smalltalk
adopt
Interface Builder
31. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
interface
instance variable
dereference (dereferencing)
32. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
null
compile time
designated initializer
%@
33. ARC is susceptible to retain _____
value
cycles
dereference (dereferencing)
instance variable
34. 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
encapsulation
fields
structures
factory object
35. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
Cocoa
heap
category
36. _____ allow indirect access and modification of a variable's value.
compile time
attributes
Pointers
-
37. C-style strings always end with a ____ character
inheritance hierarchy
C operators
null
category
38. a++; is an example of using a _____ operator
object
message expression
unitary
synchronous message
39. Xcode sequence to convert non-ARC apps to ARC
mutex
Edit>Refactor>Convert to Objective-C ARC
message expression
dangling pointer
40. In a home building analogy a ____ is the blueprint and the object is the house
dynamic allocation
class
Smalltalk
Edit>Refactor>Convert to Objective-C ARC
41. C-style strings are stored in an array of _____
readonly
C operators
chars
class method
42. Placing a ____ before a normal variable name gives it's address
Pointers
assignment
nil
ampersand (&)
43. An architecture that facilitates communication between objects in different address spaces.
distributed objects
pointer
printf( )
implementation
44. Property attribute that synthesizes both a getter and setter for the property
C operators
class
readwrite
mutex
45. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
superset
class
AppKit
deprecated
46. Same as class object. (first way to say it.)
category
factory
Enumerations
9
47. 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.
object
abstract class
anonymous object
namespace
48. This symbol denotes a method as being an instance method
-
remote object
object
reference counting
49. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
%
null
precedence
50. 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.
Interface Builder
instance variable
interface
class