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. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
anonymous object
superclass
instance
2. Square bracket syntax for calling a method
remote message
[receiver message];
inheritance
abstract class
3. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
double
static typing
runtime
4. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
class
framework
cannot
procedural programming language
5. C-style strings always end with a ____ character
factory object
struct
null
precedence
6. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
%
deprecated
C operators
binary
7. Placing a ____ before a normal variable name gives it's address
readonly
properties
superset
ampersand (&)
8. 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
Unitary
designated
@interface
9. The most flexible C data type: ______
struct
link time
zero
designated
10. Same as class object. (second way to say it.)
precedence
informal protocol
Signed
factory object
11. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
strong
floating-point
pointers
designated
12. Instance variables are optional in iOS if ________ are used
inheritance hierarchy
delegate
properties
distributed objects
13. An object that acts on behalf of another object.
receiver
delegate
encapsulation
interface
14. 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.
Unsigned
unitary
asynchronous message
%
15. An object of unknown class. Interface is published through protocol declaration.
pointers
heap
chars
anonymous object
16. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
informal protocol
value
developer intent
unitary
17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
@interface
receiver
framework
designated initializer
18. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
Interface Builder
namespace
init
19. Finding the method implementation to invoke in response to the message
readonly
dynamic binding
structures
abstract superclass
20. The root class in Objective-C
NSObject
superset
delegate
object
21. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
Categories
formal protocol
precedence
22. A message sent from one application to an object in another application.
9
delegate
mutex
remote message
23. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
nil
structures
superclass
24. Objective-C is a _____ of the C language
superset
class object
message expression
Enumerations
25. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
synchronous message
long long
weak
strong
26. In object-oriented programming the object that is sent a message.
class
selector
Pointers
receiver
27. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
weak
abstract class
readonly
28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
event
procedural programming language
floating-point
inheritance hierarchy
29. Property attribute that synthesizes both a getter and setter for the property
value
readwrite
inheritance hierarchy
abstract superclass
30. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
dangling pointer
message expression
distributed objects
31. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
subclass
adopt
id
32. Symbol used to denote a placeholder in a format string
object
%
id
+
33. A compiler feature that provides automated memory management
zero
properties
class object
ARC
34. To destroy an object set the variable that points to it to _____
value
nil
cycles
superclass
35. A protocol declared as a category usually as a category of the NSObject class.
floating-point
instance variable
informal protocol
chars
36. Data types are divided into two main categories: integer and ______
abstract class
doubles
object
floating-point
37. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
remote object
fields
compile time
38. Any class that's one step below another class in the inheritance hierarchy.
subclass
readwrite
runtime
pointer
39. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
superset
Cocoa
distributed objects
formal protocol
40. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
structures
double
encapsulation
41. 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.
distributed objects
AppKit
floating-point
Enumerations
42. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
designated
%
dispatch table
43. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
properties
class
chars
namespace
44. 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.
mutex
inheritance hierarchy
Interface Builder
message
45. In Objective-C floats are more commonly used than ______
doubles
encapsulation
copy
pointer
46. Objective-C's protocols are really about communicating _____ _______
developer intent
object
implementation
protocol
47. Property attribute that causes the setter to store a copy of the assigned value
strong
synchronous message
delegate
copy
48. Initializer method traditionally begin with the _____ prefix
object
Smalltalk
init
factory object
49. A method that can operate on class objects rather than instances of the class.
class method
value
printf( )
Protocols
50. 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.
readwrite
properties
%
reference counting