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 causes the setter to store a zeroing weak reference to the assigned value
+
printf( )
weak
factory object
2. Any method that can be used by an instance of a class rather than by the class object.
Protocols
long long
dynamic typing
instance method
3. An object that acts on behalf of another object.
inheritance
Encapsulation
delegate
nil
4. Same as class object. (second way to say it.)
struct
init
factory object
deprecated
5. There are ____ fundamental building blocks in Objective-C
binary
9
chars
message
6. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
pointer
assignment
mutex
zero
7. Placing a ____ before a normal variable name gives it's address
ampersand (&)
procedures
assign
Signed
8. Square bracket syntax for calling a method
asterisk (*)
heap
[receiver message];
pointers
9. Objective-C objects should use strong or weak ______
instance
id
attributes
Edit>Refactor>Convert to Objective-C ARC
10. A class is said to do this when it declares that it implements all the methods in the protocol.
cannot
null
struct
adopt
11. 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.
instance variable
NSObject
anonymous object
Interface Builder
12. Any class that's one step below another class in the inheritance hierarchy.
subclass
assign
link time
informal protocol
13. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
%
precedence
factory
cycles
14. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
@interface
remote object
dispatch table
superclass
15. A struct may contain multiple ____ consisting of different data types
fields
Interface Builder
protocol
attributes
16. In Objective-C floats are more commonly used than ______
dynamic typing
formal protocol
doubles
init
17. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
interface
zero
designated
nonatomic
18. Symbol used to denote a placeholder in a format string
dynamic typing
Encapsulation
null
%
19. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
ARC
assignment
procedures
class object
20. A ____ _____ is where you forget to free up memory
nonatomic
memory leak
%
namespace
21. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
remote object
C operators
ARC
null
22. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
runtime
Unitary
remote message
compile time
23. An architecture that facilitates communication between objects in different address spaces.
distributed objects
dispatch table
formal protocol
instance
24. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
conform
Edit>Refactor>Convert to Objective-C ARC
Smalltalk
floating-point
25. Property attribute that synthesizes only a getter for the property
category
AppKit
encapsulation
readonly
26. A compiler feature that provides automated memory management
static typing
category
ARC
Categories
27. The root class in Objective-C
+
long long
NSObject
class object
28. Instance variables are optional in iOS if ________ are used
properties
chars
unitary
remote object
29. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
zero
class
instance
protocol
30. 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.
Pointers
protocol
namespace
NSString
31. Initializer method traditionally begin with the _____ prefix
remote object
properties
init
cannot
32. A method that can operate on class objects rather than instances of the class.
procedural programming language
Edit>Refactor>Convert to Objective-C ARC
object
class method
33. All objects are created on the _____
heap
instance variable
Interface Builder
interface
34. The first index in an array is valued at ____
polymorphism
selector
zero
interface
35. 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.
Unitary
encapsulation
init
outlet
36. a++; is an example of using a _____ operator
subclass
selector
unitary
adopt
37. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
strong
procedural programming language
[receiver message];
instance
38. The _____ function can be used to print a message to the console
struct
Binary
printf( )
selector
39. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
superclass
Categories
remote message
AppKit
40. 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.
Product>Profile>Leaks>Profile
printf( )
Interface Builder
Cocoa
41. An object of unknown class. Interface is published through protocol declaration.
heap
anonymous object
Unsigned
readonly
42. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
assignment
implementation
+
interface
43. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
compile time
runtime
init
cannot
44. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
method
dispatch table
asterisk (*)
asynchronous message
45. This symbol denotes a method as being a class method
selector
delegate
NSObject
+
46. C-style strings are stored in an array of _____
chars
polymorphism
-
dynamic binding
47. _____ allow you to add new methods to existing classes
cannot
pointers
attributes
Categories
48. Property attribute that causes the setter to store a strong reference to the assigned value
double
delegates
dynamic allocation
strong
49. In object-oriented programming a procedure that can be executed by an object.
Product>Profile>Leaks>Profile
compile time
subclass
method
50. Another name for a class that's defined solely so that other classes can inherit from it.
value
abstract superclass
Pointers
developer intent