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 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.
object
dynamic typing
synchronous message
abstract class
2. 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.
subclass
dynamic allocation
factory
zero
3. An object that acts on behalf of another object.
unitary
compile time
abstract class
delegate
4. C-style strings always end with a ____ character
null
inheritance hierarchy
attributes
distributed objects
5. The first index in an array is valued at ____
assignment
designated initializer
zero
C operators
6. Property attribute that causes the setter to store a strong reference to the assigned value
selector
informal protocol
strong
designated
7. A message sent from one application to an object in another application.
message
Unsigned
remote message
unitary
8. a+b; is an example of using a _____ operator
%@
binary
Smalltalk
@interface
9. 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.
ARC
reference counting
AppKit
assign
10. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
dynamic binding
inheritance
Interface Builder
11. Placing a ____ before a normal variable name gives it's address
9
compile time
ampersand (&)
subclass
12. C-style strings are stored in an array of _____
distributed objects
precedence
inheritance hierarchy
chars
13. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
remote message
init
structures
compile time
14. Instance variables are optional in iOS if ________ are used
outlet
dispatch table
object
properties
15. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
value
-
binary
16. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
designated initializer
properties
reference counting
precedence
17. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
Product>Profile>Leaks>Profile
ampersand (&)
instance
18. Data types are divided into two main categories: integer and ______
deprecated
assignment
ampersand (&)
floating-point
19. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
nil
attributes
class object
object
20. In object-oriented programming the object that is sent a message.
informal protocol
designated
designated initializer
receiver
21. Property attribute that synthesizes both a getter and setter for the property
protocol
class
AppKit
readwrite
22. A method that can operate on class objects rather than instances of the class.
distributed objects
Cocoa
pointers
class method
23. An object id with a value of 0.
inheritance
init
nil
object
24. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
nil
cannot
factory object
25. 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.
compile time
init
id
framework
26. 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.
instance
polymorphism
informal protocol
[receiver message];
27. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
class method
long long
@interface
Binary
28. Finding the method implementation to invoke in response to the message
message expression
dynamic binding
procedural programming language
long long
29. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
null
compile time
mutex
Enumerations
30. A struct may contain multiple ____ consisting of different data types
id
cycles
Cocoa
fields
31. Objective-C binds methods and arguments at _____ instead of compile time
[receiver message];
runtime
link time
anonymous object
32. Xcode sequence to examine an app for memory leaks or retain cycles
Encapsulation
printf( )
cycles
Product>Profile>Leaks>Profile
33. 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.
instance
runtime
NSObject
comma-separated
34. The most flexible C data type: ______
superset
instance variable
struct
AppKit
35. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
AppKit
Cocoa
readwrite
assign
36. 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.
dynamic typing
readwrite
dispatch table
outlet
37. Property attribute that causes the setter to store a copy of the assigned value
copy
%
procedural programming language
id
38. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
compile time
readonly
Enumerations
39. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
adopt
doubles
factory object
delegates
40. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
structures
@implementation
9
delegate
41. This symbol denotes a method as being an instance method
compile time
square brackets
-
dangling pointer
42. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
+
distributed objects
comma-separated
encapsulation
43. _____ data types can be both positive and negative
zero
C operators
Signed
conform
44. Objective-C's protocols are really about communicating _____ _______
Signed
developer intent
Categories
method
45. ARC is susceptible to retain _____
readwrite
superclass
cycles
@interface
46. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
outlet
instance method
unitary
link time
47. In Objective-C floats are more commonly used than ______
pointer
asynchronous message
dangling pointer
doubles
48. 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
class method
weak
Edit>Refactor>Convert to Objective-C ARC
NSString
49. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
fields
developer intent
Categories
reference counting
50. An object of unknown class. Interface is published through protocol declaration.
cannot
strong
zero
anonymous object