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 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.
anonymous object
attributes
compile time
AppKit
2. A ____ ____ is a situation where you free memory and then accidentally continue to use it
Enumerations
protocol
event
dangling pointer
3. In a format string the place holder for an object is ______
%@
synchronous message
inheritance
conform
4. 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.
event
Smalltalk
ARC
class object
5. Xcode sequence to examine an app for memory leaks or retain cycles
properties
abstract class
NSString
Product>Profile>Leaks>Profile
6. Instance variables are optional in iOS if ________ are used
dangling pointer
procedural programming language
properties
value
7. Property attribute that causes the setter to store a copy of the assigned value
NSString
copy
readwrite
comma-separated
8. Xcode sequence to convert non-ARC apps to ARC
superset
Edit>Refactor>Convert to Objective-C ARC
instance
factory
9. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Pointers
protocol
formal protocol
pointer
10. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
printf( )
mutex
strong
nil
11. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
inheritance
[receiver message];
9
designated
12. 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.
Product>Profile>Leaks>Profile
formal protocol
precedence
[receiver message];
13. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
dangling pointer
pointer
-
inheritance
14. 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
memory leak
properties
deprecated
15. ______ data types are always zero or greate
Unsigned
message
abstract superclass
copy
16. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
Interface Builder
precedence
C operators
dynamic typing
17. 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.
assign
message
long long
encapsulation
18. ____ provide a concise & elegant method for defining a discrete set of values
square brackets
conform
Enumerations
Unsigned
19. 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
pointers
9
comma-separated
20. The _____ function can be used to print a message to the console
pointers
runtime
printf( )
%
21. The most flexible C data type: ______
superclass
readonly
struct
delegates
22. 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
@interface
synchronous message
object
instance variable
23. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
memory leak
binary
[receiver message];
24. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
double
message expression
cannot
procedural programming language
25. 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
properties
Signed
class
26. When creating a class header file you begin with the _____ keyword and close with the @end keyword
copy
@interface
compile time
-
27. _____ allow indirect access and modification of a variable's value.
ARC
Smalltalk
protocol
Pointers
28. Same as class object. (first way to say it.)
cannot
printf( )
protocol
factory
29. In Objective-C floats are more commonly used than ______
procedural programming language
value
static typing
doubles
30. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
class object
memory leak
instance variable
comma-separated
31. An architecture that facilitates communication between objects in different address spaces.
struct
%
readonly
distributed objects
32. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
anonymous object
outlet
fields
dispatch table
33. In a home building analogy a ____ is the blueprint and the object is the house
9
superclass
class
Smalltalk
34. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
distributed objects
strong
namespace
value
35. 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.
designated
id
strong
asterisk (*)
36. An object of unknown class. Interface is published through protocol declaration.
subclass
ARC
anonymous object
chars
37. 3 Common Float data types: float - _____ - CGFloat
encapsulation
anonymous object
implementation
double
38. The process of setting or reading the value at an address pointed to by a pointer
encapsulation
category
copy
dereference (dereferencing)
39. 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.
receiver
delegate
pointer
asynchronous message
40. There are ____ fundamental building blocks in Objective-C
9
message expression
square brackets
ARC
41. ______ operators take a single operand
factory
%
message expression
Unitary
42. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
C operators
Unsigned
fields
event
43. Property attribute that causes the setter to store a strong reference to the assigned value
compile time
assign
factory object
strong
44. Finding the method implementation to invoke in response to the message
dynamic binding
factory object
reference counting
NSString
45. Symbol used to denote a placeholder in a format string
Cocoa
Interface Builder
%
implementation
46. Data types are divided into two main categories: integer and ______
class
designated initializer
floating-point
structures
47. 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
NSString
floating-point
mutex
dangling pointer
48. An object id with a value of 0.
instance
instance variable
unitary
nil
49. Objective-C is a _____ of the C language
floating-point
superset
Product>Profile>Leaks>Profile
receiver
50. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
inheritance
compile time
instance
C operators