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. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
id
procedures
dynamic binding
event
2. Any class that's one step below another class in the inheritance hierarchy.
superclass
@implementation
implementation
subclass
3. 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.
assign
fields
designated initializer
Interface Builder
4. In a format string the place holder for an object is ______
memory leak
%@
@interface
class object
5. Instance variables are optional in iOS if ________ are used
properties
init
cycles
struct
6. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
class
selector
static typing
runtime
7. Initializer method traditionally begin with the _____ prefix
encapsulation
instance variable
instance
init
8. This symbol denotes a method as being a class method
+
developer intent
protocol
superset
9. In Objective-C floats are more commonly used than ______
conform
Product>Profile>Leaks>Profile
message
doubles
10. 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
pointer
-
nil
structures
11. Any method that can be used by an instance of a class rather than by the class object.
Categories
instance method
readwrite
assign
12. An object id with a value of 0.
conform
class object
fields
nil
13. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
@interface
designated
protocol
factory
14. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
link time
synchronous message
delegates
+
15. Objective-C's protocols are really about communicating _____ _______
dereference (dereferencing)
category
C operators
developer intent
16. The _____ function can be used to print a message to the console
nonatomic
unitary
printf( )
+
17. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Signed
Cocoa
Protocols
value
18. A class is said to do this when it declares that it implements all the methods in the protocol.
@interface
struct
binary
adopt
19. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
Product>Profile>Leaks>Profile
9
readwrite
20. An architecture that facilitates communication between objects in different address spaces.
distributed objects
doubles
pointer
memory leak
21. _____ 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'.
id
Encapsulation
memory leak
asterisk (*)
22. ______ data types are always zero or greate
Unsigned
abstract class
%
memory leak
23. Placing a ____ before a normal variable name gives it's address
Pointers
fields
ampersand (&)
unitary
24. 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.
dynamic allocation
subclass
ARC
link time
25. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Edit>Refactor>Convert to Objective-C ARC
protocol
event
cycles
26. C-style strings are stored in an array of _____
instance
chars
asynchronous message
[receiver message];
27. A method that can operate on class objects rather than instances of the class.
class method
floating-point
comma-separated
nonatomic
28. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
weak
readwrite
deprecated
inheritance
29. 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.
instance
abstract class
informal protocol
message
30. Property attribute that causes the setter to store a copy of the assigned value
Pointers
binary
copy
synchronous message
31. _____ data types can be both positive and negative
procedures
conform
Binary
Signed
32. Property attribute that synthesizes accessors that are not thread safe
copy
nonatomic
object
floating-point
33. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
outlet
Pointers
instance
Protocols
34. 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.
class object
instance
dangling pointer
AppKit
35. Property attribute where the setter stores the assigned value but does not perform any memory management.
readonly
Edit>Refactor>Convert to Objective-C ARC
copy
assign
36. Data types are divided into two main categories: integer and ______
factory object
polymorphism
floating-point
cycles
37. 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.
doubles
double
assign
AppKit
38. Objective-C is a _____ of the C language
AppKit
superset
implementation
instance
39. A variable that points to the memory address of another value
NSObject
heap
Pointers
pointer
40. Property attribute that causes the setter to store a strong reference to the assigned value
strong
pointer
cycles
superclass
41. a++; is an example of using a _____ operator
class object
unitary
anonymous object
outlet
42. An object in another application - one that's a potential receiver for a remote message.
superclass
remote object
ARC
category
43. C-style strings always end with a ____ character
abstract superclass
attributes
superset
null
44. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
protocol
C operators
memory leak
nil
45. a+b; is an example of using a _____ operator
9
interface
floating-point
binary
46. Same as class object. (first way to say it.)
factory
event
unitary
subclass
47. 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.
encapsulation
abstract class
asynchronous message
anonymous object
48. An object of unknown class. Interface is published through protocol declaration.
anonymous object
class method
method
instance
49. There are ____ fundamental building blocks in Objective-C
factory
anonymous object
9
weak
50. 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).
implementation
Cocoa
designated initializer
namespace