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.
developer intent
class object
namespace
category
2. In Objective-C floats are more commonly used than ______
doubles
AppKit
properties
instance variable
3. In a home building analogy a ____ is the blueprint and the object is the house
NSObject
implementation
procedural programming language
class
4. Square bracket syntax for calling a method
Edit>Refactor>Convert to Objective-C ARC
superset
[receiver message];
assign
5. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
protocol
attributes
Protocols
6. The _____ function can be used to print a message to the console
namespace
printf( )
link time
%@
7. Objective-C is a _____ of the C language
superset
9
dynamic binding
Categories
8. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
structures
runtime
static typing
conform
9. In the Objective-C language the declaration of a group of methods not associated with any particular class.
-
protocol
anonymous object
Cocoa
10. A compiler feature that provides automated memory management
doubles
delegates
ARC
unitary
11. An architecture that facilitates communication between objects in different address spaces.
distributed objects
+
remote message
Unitary
12. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
instance variable
distributed objects
pointer
inheritance
13. Property attribute where the setter stores the assigned value but does not perform any memory management.
Edit>Refactor>Convert to Objective-C ARC
assign
-
Pointers
14. a++; is an example of using a _____ operator
unitary
Unsigned
instance method
doubles
15. _____ 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
nil
object
NSString
16. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
encapsulation
@interface
weak
readonly
17. Finding the method implementation to invoke in response to the message
binary
floating-point
factory
dynamic binding
18. 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
conform
9
instance
[receiver message];
19. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
[receiver message];
cycles
factory
mutex
20. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
asynchronous message
floating-point
precedence
21. _____ data types can be both positive and negative
floating-point
event
Signed
delegates
22. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
%@
delegates
superclass
dereference (dereferencing)
23. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
printf( )
%
weak
procedural programming language
24. All objects are created on the _____
designated
null
heap
value
25. Three main categories of more complicated data structures:_______ - arrays and structs
%
readonly
pointers
value
26. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
message expression
ARC
pointer
Signed
27. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
class method
assignment
nil
struct
28. Data types are divided into two main categories: integer and ______
Pointers
floating-point
properties
dynamic allocation
29. Property attribute that synthesizes only a getter for the property
superset
nil
C operators
readonly
30. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
procedures
cannot
class
fields
31. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
zero
cannot
abstract superclass
value
32. _____ allow you to add new methods to existing classes
factory object
polymorphism
instance
Categories
33. ______ data types are always zero or greate
pointer
encapsulation
subclass
Unsigned
34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
[receiver message];
anonymous object
cycles
procedures
35. 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.
class
polymorphism
reference counting
object
36. Same as class object. (first way to say it.)
informal protocol
structures
factory
weak
37. In a format string the place holder for an object is ______
init
message expression
weak
%@
38. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
dynamic binding
message
C operators
value
39. 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
static typing
dynamic typing
inheritance
structures
40. This symbol denotes a method as being a class method
class
+
Categories
class object
41. _____ allow indirect access and modification of a variable's value.
Pointers
procedural programming language
class
designated
42. 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
object
precedence
@interface
43. C-style strings are stored in an array of _____
informal protocol
chars
remote message
%
44. Instance variables are optional in iOS if ________ are used
NSString
properties
[receiver message];
copy
45. ARC is susceptible to retain _____
dynamic binding
attributes
cycles
ampersand (&)
46. There are ____ fundamental building blocks in Objective-C
9
init
informal protocol
subclass
47. Any class that's one step below another class in the inheritance hierarchy.
Unsigned
link time
subclass
cycles
48. Objective-C's protocols are really about communicating _____ _______
developer intent
copy
[receiver message];
encapsulation
49. A struct may contain multiple ____ consisting of different data types
fields
9
heap
distributed objects
50. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
remote message
long long
chars
delegate