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 _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
asterisk (*)
Encapsulation
deprecated
message expression
2. There are ____ fundamental building blocks in Objective-C
chars
9
nil
distributed objects
3. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
dynamic typing
class object
+
4. In a format string the place holder for an object is ______
fields
abstract class
%@
square brackets
5. 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.
ARC
@interface
dynamic allocation
binary
6. 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.
chars
conform
inheritance hierarchy
runtime
7. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
C operators
zero
dangling pointer
8. A ____ _____ is where you forget to free up memory
memory leak
event
+
superclass
9. Placing a ____ before a normal variable name gives it's address
ampersand (&)
category
precedence
factory
10. To destroy an object set the variable that points to it to _____
@interface
nil
floating-point
link time
11. 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.
implementation
asynchronous message
floating-point
nonatomic
12. A struct may contain multiple ____ consisting of different data types
id
fields
C operators
adopt
13. 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
struct
class method
Product>Profile>Leaks>Profile
14. ______ operators take a single operand
abstract class
Unitary
superset
namespace
15. In object-oriented programming a procedure that can be executed by an object.
printf( )
nil
method
cannot
16. Property attribute that synthesizes both a getter and setter for the property
assign
readwrite
@implementation
protocol
17. The first index in an array is valued at ____
zero
dynamic binding
floating-point
printf( )
18. The most flexible C data type: ______
abstract class
assign
unitary
struct
19. Xcode sequence to convert non-ARC apps to ARC
zero
Edit>Refactor>Convert to Objective-C ARC
deprecated
designated
20. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
link time
designated
interface
21. 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
nonatomic
C operators
memory leak
NSString
22. An object id with a value of 0.
Pointers
nil
factory
interface
23. A set of method definitions that is segregated from the rest of the class definition.
category
heap
message
class
24. Three main categories of more complicated data structures:_______ - arrays and structs
zero
factory object
pointers
asynchronous message
25. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Signed
selector
Protocols
memory leak
26. 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.
[receiver message];
printf( )
subclass
formal protocol
27. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
printf( )
@interface
precedence
28. A method that can operate on class objects rather than instances of the class.
outlet
asynchronous message
assign
class method
29. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
receiver
deprecated
C operators
factory
30. An object in another application - one that's a potential receiver for a remote message.
@implementation
heap
copy
remote object
31. 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
runtime
memory leak
remote object
conform
32. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
abstract class
@interface
heap
mutex
33. C-style strings are stored in an array of _____
%@
cannot
delegates
chars
34. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
null
Binary
assign
instance
35. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Unsigned
properties
message
instance method
36. An object that acts on behalf of another object.
delegate
[receiver message];
instance method
Smalltalk
37. _____ 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'.
fields
printf( )
developer intent
Encapsulation
38. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
@interface
superset
framework
method
39. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Categories
value
inheritance
pointers
40. The root class in Objective-C
NSObject
designated initializer
inheritance
%@
41. 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
asterisk (*)
NSString
class object
42. Xcode sequence to examine an app for memory leaks or retain cycles
remote object
Pointers
Product>Profile>Leaks>Profile
Binary
43. Data types are divided into two main categories: integer and ______
dangling pointer
floating-point
selector
dynamic typing
44. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
dynamic binding
Edit>Refactor>Convert to Objective-C ARC
@interface
45. C-style strings always end with a ____ character
pointer
null
Enumerations
doubles
46. Symbol used to denote a placeholder in a format string
%
Protocols
asterisk (*)
weak
47. _____ allow indirect access and modification of a variable's value.
delegates
class
attributes
Pointers
48. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
[receiver message];
precedence
runtime
49. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Pointers
dispatch table
runtime
assign
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).
NSObject
floating-point
structures
implementation