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. All objects are created on the _____
class
compile time
heap
formal protocol
2. a++; is an example of using a _____ operator
method
unitary
runtime
outlet
3. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
procedures
nonatomic
ARC
framework
4. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
readwrite
nil
designated
assignment
5. 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.
static typing
@implementation
instance
Edit>Refactor>Convert to Objective-C ARC
6. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
readonly
polymorphism
asynchronous message
mutex
7. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
assignment
asynchronous message
Protocols
@implementation
8. C-style strings are stored in an array of _____
Edit>Refactor>Convert to Objective-C ARC
Encapsulation
asterisk (*)
chars
9. 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.
readonly
long long
dynamic allocation
@interface
10. In a format string the place holder for an object is ______
anonymous object
Binary
assign
%@
11. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
message expression
Binary
mutex
namespace
12. The root class in Objective-C
class
NSString
NSObject
receiver
13. The most flexible C data type: ______
struct
Product>Profile>Leaks>Profile
Binary
Smalltalk
14. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
%
polymorphism
method
15. 3 Common Float data types: float - _____ - CGFloat
Binary
double
null
readonly
16. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
message
instance
namespace
comma-separated
17. In Objective-C floats are more commonly used than ______
Encapsulation
@implementation
doubles
instance
18. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
nil
C operators
dynamic typing
asterisk (*)
19. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
abstract class
static typing
message
pointer
20. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
object
distributed objects
fields
21. Data types are divided into two main categories: integer and ______
static typing
copy
floating-point
compile time
22. 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.
unitary
runtime
nil
Enumerations
23. Any method that can be used by an instance of a class rather than by the class object.
anonymous object
instance method
dynamic typing
factory
24. Initializer method traditionally begin with the _____ prefix
init
inheritance hierarchy
event
attributes
25. 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.
factory object
id
inheritance hierarchy
encapsulation
26. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
assignment
distributed objects
memory leak
superclass
27. ____ provide a concise & elegant method for defining a discrete set of values
distributed objects
asynchronous message
Smalltalk
Enumerations
28. In a home building analogy a ____ is the blueprint and the object is the house
class
Binary
NSObject
Product>Profile>Leaks>Profile
29. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
factory
Cocoa
dispatch table
30. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
method
weak
assignment
inheritance
31. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
AppKit
remote object
value
32. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
instance method
nil
copy
33. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
dynamic binding
@interface
message expression
34. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
9
delegates
double
precedence
35. 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
double
superclass
developer intent
36. 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.
subclass
asterisk (*)
event
class object
37. Objective-C methods are called using ____ _____
remote object
null
square brackets
properties
38. Property attribute that synthesizes only a getter for the property
readonly
comma-separated
runtime
nonatomic
39. Placing a ____ before a normal variable name gives it's address
assign
ampersand (&)
@interface
outlet
40. A message sent from one application to an object in another application.
procedures
remote message
%@
runtime
41. Same as class object. (second way to say it.)
long long
link time
factory object
binary
42. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
cannot
static typing
nil
selector
43. 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.
struct
reference counting
abstract class
Unsigned
44. Objective-C's protocols are really about communicating _____ _______
Product>Profile>Leaks>Profile
runtime
inheritance hierarchy
developer intent
45. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
unitary
ARC
event
46. A method that can operate on class objects rather than instances of the class.
anonymous object
pointers
class method
mutex
47. Symbol used to denote a placeholder in a format string
%
@implementation
method
Cocoa
48. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
reference counting
+
dynamic binding
49. Finding the method implementation to invoke in response to the message
dynamic binding
Signed
conform
static typing
50. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
distributed objects
receiver
deprecated
delegates