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. Instance variables are optional in iOS if ________ are used
properties
asterisk (*)
nonatomic
instance variable
2. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
pointers
class object
Signed
comma-separated
3. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
abstract superclass
superclass
comma-separated
procedures
4. A variable that points to the memory address of another value
inheritance hierarchy
strong
pointer
unitary
5. 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.
framework
NSString
AppKit
distributed objects
6. a++; is an example of using a _____ operator
unitary
receiver
dynamic typing
inheritance hierarchy
7. Initializer method traditionally begin with the _____ prefix
init
dereference (dereferencing)
double
unitary
8. 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
asterisk (*)
method
conform
id
9. 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
value
compile time
nil
10. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
Interface Builder
C operators
asterisk (*)
structures
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.
Interface Builder
namespace
Encapsulation
pointers
12. Xcode sequence to examine an app for memory leaks or retain cycles
class
Product>Profile>Leaks>Profile
reference counting
assign
13. ARC is susceptible to retain _____
cycles
adopt
properties
asynchronous message
14. All objects are created on the _____
dynamic binding
heap
init
link time
15. In object-oriented programming a procedure that can be executed by an object.
method
adopt
message
init
16. Any class that's one step below another class in the inheritance hierarchy.
delegate
subclass
Protocols
mutex
17. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
pointer
class method
long long
Categories
18. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
runtime
instance variable
readwrite
19. A ____ _____ is where you forget to free up memory
square brackets
memory leak
Unitary
Categories
20. The _____ function can be used to print a message to the console
class method
printf( )
instance
nil
21. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
comma-separated
precedence
event
developer intent
22. Property attribute that synthesizes accessors that are not thread safe
nonatomic
properties
Enumerations
Pointers
23. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
subclass
interface
namespace
comma-separated
24. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
[receiver message];
heap
reference counting
delegates
25. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
@interface
comma-separated
interface
26. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
nil
Protocols
runtime
27. a+b; is an example of using a _____ operator
Smalltalk
binary
structures
Signed
28. 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.
designated
class
outlet
formal protocol
29. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
class method
dynamic allocation
pointers
30. In a format string the place holder for an object is ______
nonatomic
binary
static typing
%@
31. 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
remote message
Categories
heap
NSString
32. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
asterisk (*)
asynchronous message
link time
33. A message sent from one application to an object in another application.
informal protocol
remote message
zero
chars
34. In the Objective-C language the declaration of a group of methods not associated with any particular class.
inheritance
asterisk (*)
Signed
protocol
35. Any method that can be used by an instance of a class rather than by the class object.
runtime
instance method
Unitary
remote object
36. In a home building analogy a ____ is the blueprint and the object is the house
weak
factory object
object
class
37. Finding the method implementation to invoke in response to the message
zero
anonymous object
Unsigned
dynamic binding
38. Property attribute where the setter stores the assigned value but does not perform any memory management.
class
distributed objects
Enumerations
assign
39. _____ allow you to add new methods to existing classes
doubles
dynamic allocation
asynchronous message
Categories
40. C-style strings always end with a ____ character
AppKit
cycles
interface
null
41. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
[receiver message];
link time
subclass
designated
42. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
factory object
nil
procedures
43. Data types are divided into two main categories: integer and ______
nil
floating-point
interface
dispatch table
44. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
instance
Smalltalk
dangling pointer
Protocols
45. Objective-C's protocols are really about communicating _____ _______
asterisk (*)
assignment
developer intent
doubles
46. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
inheritance hierarchy
namespace
framework
receiver
47. 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.
zero
abstract class
@interface
pointer
48. Objective-C methods are called using ____ _____
doubles
null
@implementation
square brackets
49. A struct may contain multiple ____ consisting of different data types
fields
Categories
remote message
developer intent
50. Property attribute that synthesizes only a getter for the property
namespace
readonly
superclass
class method