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. Data types are divided into two main categories: integer and ______
superset
instance
square brackets
floating-point
2. 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.
delegate
asynchronous message
chars
pointers
3. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
doubles
dynamic binding
attributes
4. Property attribute that causes the setter to store a strong reference to the assigned value
strong
runtime
runtime
remote object
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.
runtime
AppKit
readonly
%@
6. Finding the method implementation to invoke in response to the message
dynamic binding
event
message
struct
7. Property attribute that synthesizes only a getter for the property
factory object
readonly
dynamic binding
binary
8. An architecture that facilitates communication between objects in different address spaces.
Enumerations
instance variable
@interface
distributed objects
9. The _____ function can be used to print a message to the console
formal protocol
NSObject
printf( )
informal protocol
10. 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
delegates
struct
instance
11. An object in another application - one that's a potential receiver for a remote message.
remote object
cannot
Smalltalk
binary
12. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
@implementation
link time
inheritance hierarchy
13. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Categories
adopt
deprecated
anonymous object
14. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
%@
synchronous message
distributed objects
15. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
delegate
deprecated
comma-separated
Protocols
16. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
AppKit
Cocoa
assignment
17. The root class in Objective-C
protocol
%
assignment
NSObject
18. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
polymorphism
framework
informal protocol
class
19. This symbol denotes a method as being an instance method
Signed
value
remote message
-
20. Objective-C binds methods and arguments at _____ instead of compile time
runtime
static typing
ARC
floating-point
21. _____ operators take 2 operands
Binary
encapsulation
link time
namespace
22. A variable that points to the memory address of another value
pointer
inheritance hierarchy
Unitary
Binary
23. Discovering the class of an object at runtime rather than at compile time.
memory leak
C operators
dynamic typing
synchronous message
24. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
floating-point
designated
ampersand (&)
%@
25. 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.
C operators
class object
method
Interface Builder
26. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
designated initializer
inheritance
Unitary
AppKit
27. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
chars
@implementation
superset
asynchronous message
28. Initializer method traditionally begin with the _____ prefix
init
zero
long long
asynchronous message
29. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
dereference (dereferencing)
factory object
designated initializer
reference counting
30. _____ allow indirect access and modification of a variable's value.
Pointers
dynamic binding
AppKit
method
31. When creating a class header file you begin with the _____ keyword and close with the @end keyword
protocol
@interface
pointer
precedence
32. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
class method
message
informal protocol
unitary
33. Symbol used to denote a placeholder in a format string
%@
instance
%
superclass
34. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
polymorphism
value
structures
Interface Builder
35. Property attribute that synthesizes accessors that are not thread safe
runtime
%@
class object
nonatomic
36. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Encapsulation
%@
framework
cannot
37. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
instance variable
asterisk (*)
dispatch table
procedures
38. A protocol declared as a category usually as a category of the NSObject class.
Interface Builder
informal protocol
%@
+
39. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
+
AppKit
delegates
40. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
assignment
inheritance hierarchy
dispatch table
interface
41. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
abstract class
Product>Profile>Leaks>Profile
long long
nonatomic
42. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
cannot
init
mutex
Product>Profile>Leaks>Profile
43. This symbol denotes a method as being a class method
Cocoa
instance
mutex
+
44. 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.
static typing
init
Pointers
formal protocol
45. Instance variables are optional in iOS if ________ are used
@interface
properties
doubles
chars
46. 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.
dynamic allocation
Interface Builder
Binary
precedence
47. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
inheritance hierarchy
zero
factory object
48. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
abstract superclass
dynamic typing
long long
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.
reference counting
Enumerations
long long
readwrite
50. Objective-C methods are called using ____ _____
square brackets
double
message
runtime