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. 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.
anonymous object
method
long long
instance variable
2. Any class that's one step below another class in the inheritance hierarchy.
designated initializer
subclass
[receiver message];
dangling pointer
3. Instance variables are optional in iOS if ________ are used
adopt
Cocoa
properties
remote object
4. _____ allow you to add new methods to existing classes
weak
Categories
dynamic binding
conform
5. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
Signed
Categories
nonatomic
6. Data types are divided into two main categories: integer and ______
runtime
floating-point
init
remote message
7. The first index in an array is valued at ____
class
id
zero
superclass
8. Three main categories of more complicated data structures:_______ - arrays and structs
AppKit
adopt
compile time
pointers
9. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
message expression
Unsigned
assign
framework
10. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
null
readwrite
abstract superclass
11. A compiler feature that provides automated memory management
ARC
doubles
NSString
weak
12. Property attribute that causes the setter to store a strong reference to the assigned value
strong
Interface Builder
outlet
category
13. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
precedence
%@
instance
mutex
14. 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.
namespace
remote object
formal protocol
ARC
15. Objective-C is a _____ of the C language
memory leak
runtime
superset
subclass
16. Square bracket syntax for calling a method
square brackets
ampersand (&)
[receiver message];
zero
17. 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.
id
copy
remote message
dynamic typing
18. 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
factory object
NSString
compile time
remote object
19. Property attribute that synthesizes accessors that are not thread safe
class object
outlet
nonatomic
instance
20. 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.
dynamic allocation
unitary
dereference (dereferencing)
asterisk (*)
21. Any method that can be used by an instance of a class rather than by the class object.
%
instance method
pointers
heap
22. A class is said to do this when it declares that it implements all the methods in the protocol.
superclass
adopt
deprecated
Encapsulation
23. Objective-C's protocols are really about communicating _____ _______
properties
developer intent
NSObject
polymorphism
24. A struct may contain multiple ____ consisting of different data types
runtime
fields
C operators
precedence
25. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
double
fields
runtime
26. 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.
inheritance hierarchy
framework
pointers
reference counting
27. This symbol denotes a method as being an instance method
Pointers
runtime
inheritance
-
28. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
class object
remote message
comma-separated
abstract superclass
29. a+b; is an example of using a _____ operator
binary
cannot
Product>Profile>Leaks>Profile
formal 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.
double
selector
memory leak
namespace
31. An object in another application - one that's a potential receiver for a remote message.
NSObject
procedures
abstract superclass
remote object
32. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
outlet
assign
dispatch table
factory object
33. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Interface Builder
deprecated
weak
copy
34. In object-oriented programming a procedure that can be executed by an object.
precedence
-
method
long long
35. In object-oriented programming the object that is sent a message.
receiver
attributes
designated initializer
Edit>Refactor>Convert to Objective-C ARC
36. In the Objective-C language the declaration of a group of methods not associated with any particular class.
reference counting
class
protocol
double
37. Property attribute that synthesizes only a getter for the property
method
designated initializer
readonly
Interface Builder
38. 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
runtime
deprecated
mutex
39. 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.
heap
designated initializer
runtime
superclass
40. 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.
selector
category
ARC
abstract class
41. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
Pointers
long long
weak
Unsigned
42. _____ operators take 2 operands
structures
fields
inheritance hierarchy
Binary
43. 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
abstract superclass
formal protocol
structures
message expression
44. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
nonatomic
Cocoa
weak
informal protocol
45. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
long long
properties
inheritance
instance method
46. Objective-C binds methods and arguments at _____ instead of compile time
NSString
designated initializer
runtime
structures
47. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
static typing
polymorphism
procedures
strong
48. _____ data types can be both positive and negative
ARC
double
compile time
Signed
49. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
nil
mutex
message
id
50. Placing a ____ before a normal variable name gives it's address
formal protocol
runtime
ampersand (&)
instance variable