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. Objective-C binds methods and arguments at _____ instead of compile time
inheritance hierarchy
runtime
attributes
unitary
2. 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
runtime
designated initializer
Edit>Refactor>Convert to Objective-C ARC
pointers
3. A class is said to do this when it declares that it implements all the methods in the protocol.
pointer
adopt
asterisk (*)
dynamic binding
4. Objective-C methods are called using ____ _____
nil
nonatomic
double
square brackets
5. A message sent from one application to an object in another application.
deprecated
class
remote message
Binary
6. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
formal protocol
pointer
reference counting
7. Finding the method implementation to invoke in response to the message
outlet
9
dynamic binding
dereference (dereferencing)
8. 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.
remote object
heap
class object
square brackets
9. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
delegate
Encapsulation
precedence
10. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
ARC
superset
receiver
11. The root class in Objective-C
pointer
NSObject
floating-point
event
12. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
method
precedence
asynchronous message
weak
13. A ____ ____ is a situation where you free memory and then accidentally continue to use it
id
dangling pointer
method
precedence
14. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
protocol
conform
@interface
+
15. There are ____ fundamental building blocks in Objective-C
9
distributed objects
+
remote message
16. 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.
factory object
%
runtime
attributes
17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
C operators
delegates
implementation
framework
18. Three main categories of more complicated data structures:_______ - arrays and structs
unitary
NSString
assignment
pointers
19. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
selector
runtime
instance
inheritance
20. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
cycles
dangling pointer
deprecated
init
21. When creating a class header file you begin with the _____ keyword and close with the @end keyword
abstract superclass
@interface
square brackets
compile time
22. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
implementation
assign
Cocoa
23. The _____ function can be used to print a message to the console
ARC
printf( )
Cocoa
Categories
24. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
@implementation
%
procedural programming language
instance method
25. In a home building analogy a ____ is the blueprint and the object is the house
comma-separated
Cocoa
copy
class
26. a++; is an example of using a _____ operator
ampersand (&)
cycles
Unsigned
unitary
27. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
message expression
class object
readwrite
comma-separated
28. Objective-C's protocols are really about communicating _____ _______
Binary
%
developer intent
pointer
29. ______ operators take a single operand
interface
developer intent
abstract class
Unitary
30. 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
structures
value
inheritance
attributes
31. A method that can operate on class objects rather than instances of the class.
class method
Unitary
value
dynamic allocation
32. 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.
AppKit
asynchronous message
Unsigned
Edit>Refactor>Convert to Objective-C ARC
33. Any class that's one step below another class in the inheritance hierarchy.
asynchronous message
subclass
protocol
fields
34. 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).
formal protocol
implementation
class
dynamic allocation
35. _____ allow indirect access and modification of a variable's value.
Edit>Refactor>Convert to Objective-C ARC
Pointers
Protocols
readwrite
36. An object of unknown class. Interface is published through protocol declaration.
anonymous object
copy
class method
printf( )
37. In the Objective-C language the declaration of a group of methods not associated with any particular class.
nonatomic
designated initializer
encapsulation
protocol
38. a+b; is an example of using a _____ operator
distributed objects
Product>Profile>Leaks>Profile
binary
long long
39. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
struct
superclass
comma-separated
40. Same as class object. (second way to say it.)
[receiver message];
superset
factory object
factory
41. 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.
assignment
delegates
ARC
instance
42. 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
implementation
procedures
43. Square bracket syntax for calling a method
category
implementation
[receiver message];
message expression
44. Placing a ____ before a normal variable name gives it's address
reference counting
ampersand (&)
AppKit
class method
45. In object-oriented programming a procedure that can be executed by an object.
struct
delegate
method
mutex
46. _____ allow you to add new methods to existing classes
unitary
method
Categories
instance
47. The most flexible C data type: ______
assignment
init
struct
conform
48. In Objective-C floats are more commonly used than ______
Unsigned
chars
compile time
doubles
49. A protocol declared as a category usually as a category of the NSObject class.
9
[receiver message];
informal protocol
fields
50. Symbol used to denote a placeholder in a format string
Unsigned
object
%
Unitary