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 logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
inheritance
designated initializer
ARC
namespace
2. An object in another application - one that's a potential receiver for a remote message.
remote object
instance method
structures
attributes
3. Placing a ____ before a normal variable name gives it's address
cannot
synchronous message
ampersand (&)
readwrite
4. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
subclass
value
inheritance hierarchy
AppKit
5. ____ provide a concise & elegant method for defining a discrete set of values
conform
%
Enumerations
Binary
6. Property attribute that synthesizes accessors that are not thread safe
nonatomic
instance
formal protocol
method
7. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
inheritance
compile time
heap
8. Any class that's one step below another class in the inheritance hierarchy.
distributed objects
selector
floating-point
subclass
9. 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.
@interface
polymorphism
encapsulation
subclass
10. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Edit>Refactor>Convert to Objective-C ARC
pointer
framework
designated
11. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
adopt
superset
null
12. ______ operators take a single operand
properties
Unitary
Enumerations
9
13. 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
%
Signed
nil
14. _____ 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'.
Encapsulation
informal protocol
pointers
formal protocol
15. A struct may contain multiple ____ consisting of different data types
fields
properties
adopt
category
16. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
-
readonly
message expression
17. A compiler feature that provides automated memory management
method
designated
remote message
ARC
18. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
comma-separated
chars
Enumerations
event
19. An architecture that facilitates communication between objects in different address spaces.
distributed objects
readwrite
selector
instance
20. The first index in an array is valued at ____
abstract superclass
conform
zero
superclass
21. ______ data types are always zero or greate
formal protocol
distributed objects
Unsigned
abstract superclass
22. Any method that can be used by an instance of a class rather than by the class object.
Product>Profile>Leaks>Profile
zero
instance method
method
23. In Objective-C floats are more commonly used than ______
delegates
doubles
remote object
attributes
24. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Encapsulation
properties
static typing
formal protocol
25. Another name for a class that's defined solely so that other classes can inherit from it.
Enumerations
developer intent
abstract superclass
instance variable
26. a++; is an example of using a _____ operator
dispatch table
abstract superclass
unitary
assign
27. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
informal protocol
delegate
readonly
28. _____ data types can be both positive and negative
designated
binary
Signed
runtime
29. 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.
reference counting
nonatomic
runtime
fields
30. 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
binary
NSString
%
31. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
nil
procedural programming language
comma-separated
designated
32. 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.
class object
procedures
square brackets
delegates
33. Same as class object. (second way to say it.)
factory object
deprecated
ARC
comma-separated
34. Property attribute where the setter stores the assigned value but does not perform any memory management.
anonymous object
synchronous message
assign
designated initializer
35. In a format string the place holder for an object is ______
superset
Unitary
runtime
%@
36. 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.
pointers
runtime
object
instance
37. Objective-C methods are called using ____ _____
protocol
anonymous object
selector
square brackets
38. 3 Common Float data types: float - _____ - CGFloat
double
procedures
designated
message
39. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
class
designated
mutex
event
40. A message sent from one application to an object in another application.
superset
remote message
Product>Profile>Leaks>Profile
static typing
41. a+b; is an example of using a _____ operator
dynamic binding
binary
+
compile time
42. 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
Interface Builder
nil
message expression
43. ARC is susceptible to retain _____
instance variable
Binary
cycles
anonymous object
44. 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
event
remote message
procedures
45. Square bracket syntax for calling a method
factory
class
compile time
[receiver message];
46. 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
Signed
instance method
conform
class
47. Data types are divided into two main categories: integer and ______
cannot
printf( )
implementation
floating-point
48. The root class in Objective-C
NSObject
cannot
instance variable
Edit>Refactor>Convert to Objective-C ARC
49. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
9
doubles
message expression
dispatch table
50. 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.
asynchronous message
class
instance
factory object