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. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
init
superclass
deprecated
inheritance hierarchy
2. Discovering the class of an object at runtime rather than at compile time.
doubles
synchronous message
dynamic typing
Interface Builder
3. Any class that's one step below another class in the inheritance hierarchy.
remote message
floating-point
subclass
pointers
4. 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.
anonymous object
inheritance hierarchy
ARC
struct
5. To destroy an object set the variable that points to it to _____
asterisk (*)
assignment
readwrite
nil
6. A set of method definitions that is segregated from the rest of the class definition.
namespace
category
selector
long long
7. Property attribute that synthesizes accessors that are not thread safe
value
nonatomic
dangling pointer
assignment
8. A compiler feature that provides automated memory management
double
procedural programming language
method
ARC
9. a+b; is an example of using a _____ operator
protocol
binary
printf( )
runtime
10. 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
zero
Smalltalk
11. 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.
namespace
Product>Profile>Leaks>Profile
precedence
zero
12. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
structures
delegates
adopt
class object
13. 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
inheritance
null
Signed
designated initializer
14. Data types are divided into two main categories: integer and ______
receiver
@implementation
+
floating-point
15. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
square brackets
doubles
event
16. _____ data types can be both positive and negative
ampersand (&)
Enumerations
Signed
structures
17. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
subclass
factory object
cycles
procedures
18. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
Categories
class method
dangling pointer
19. ______ data types are always zero or greate
Unsigned
procedures
NSObject
link time
20. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
assignment
square brackets
precedence
compile time
21. 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.
nil
AppKit
category
link time
22. In the Objective-C language the declaration of a group of methods not associated with any particular class.
class object
%
distributed objects
protocol
23. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
formal protocol
class
deprecated
pointers
24. 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.
dereference (dereferencing)
Edit>Refactor>Convert to Objective-C ARC
heap
runtime
25. C-style strings are stored in an array of _____
delegates
chars
-
factory object
26. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
id
structures
Product>Profile>Leaks>Profile
27. 3 Common Float data types: float - _____ - CGFloat
message expression
-
%
double
28. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
Categories
AppKit
NSString
compile time
29. In object-oriented programming the object that is sent a message.
designated
cycles
doubles
receiver
30. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
assignment
unitary
assign
@implementation
31. C-style strings always end with a ____ character
precedence
null
copy
inheritance hierarchy
32. A struct may contain multiple ____ consisting of different data types
distributed objects
fields
class
deprecated
33. Property attribute that causes the setter to store a strong reference to the assigned value
strong
copy
message expression
procedures
34. ______ operators take a single operand
Unitary
class
doubles
runtime
35. The root class in Objective-C
developer intent
NSObject
fields
instance
36. 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.
protocol
pointer
AppKit
delegates
37. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
dynamic binding
asynchronous message
%
framework
38. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
precedence
instance
compile time
Interface Builder
39. Objective-C binds methods and arguments at _____ instead of compile time
adopt
protocol
nil
runtime
40. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
asterisk (*)
properties
framework
41. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
%@
designated
Pointers
procedures
42. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
static typing
comma-separated
Product>Profile>Leaks>Profile
procedures
43. 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.
abstract class
readonly
properties
nil
44. An object of unknown class. Interface is published through protocol declaration.
pointer
anonymous object
cannot
link time
45. 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.
floating-point
inheritance
double
id
46. The process of setting or reading the value at an address pointed to by a pointer
cycles
doubles
Signed
dereference (dereferencing)
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.
asterisk (*)
selector
chars
asynchronous message
48. An object in another application - one that's a potential receiver for a remote message.
instance
abstract superclass
remote object
framework
49. 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.
adopt
instance method
Encapsulation
formal protocol
50. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
readwrite
printf( )
outlet
encapsulation