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 always zero or greate
message
value
id
Unsigned
2. A compiler feature that provides automated memory management
polymorphism
attributes
ARC
Edit>Refactor>Convert to Objective-C ARC
3. 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.
dynamic binding
asynchronous message
Interface Builder
Encapsulation
4. Any class that's one step below another class in the inheritance hierarchy.
chars
null
subclass
floating-point
5. A method that can operate on class objects rather than instances of the class.
class
-
message
class method
6. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
fields
message
procedural programming language
assignment
7. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
superclass
object
delegates
event
8. This symbol denotes a method as being an instance method
strong
null
-
heap
9. In a home building analogy a ____ is the blueprint and the object is the house
Pointers
%@
subclass
class
10. Data types are divided into two main categories: integer and ______
Binary
copy
floating-point
factory
11. A ____ _____ is where you forget to free up memory
nonatomic
memory leak
remote message
structures
12. 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
message
link time
id
synchronous message
13. Square bracket syntax for calling a method
object
class
instance method
[receiver message];
14. 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.
dynamic allocation
Unitary
zero
receiver
15. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
unitary
instance variable
namespace
16. In object-oriented programming the object that is sent a message.
receiver
anonymous object
memory leak
floating-point
17. Placing a ____ before a normal variable name gives it's address
selector
polymorphism
ampersand (&)
9
18. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
nonatomic
-
value
cannot
19. An object id with a value of 0.
nil
deprecated
dereference (dereferencing)
encapsulation
20. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
square brackets
synchronous message
static typing
informal protocol
21. Objective-C methods are called using ____ _____
nil
Smalltalk
encapsulation
square brackets
22. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
outlet
selector
polymorphism
class
23. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
NSString
-
instance variable
24. 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
static typing
structures
zero
25. Objective-C binds methods and arguments at _____ instead of compile time
NSString
runtime
Signed
category
26. Property attribute that synthesizes accessors that are not thread safe
instance method
runtime
nonatomic
Interface Builder
27. Property attribute where the setter stores the assigned value but does not perform any memory management.
interface
assign
copy
dynamic binding
28. a++; is an example of using a _____ operator
NSString
square brackets
unitary
dereference (dereferencing)
29. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
structures
copy
Unitary
Protocols
30. A variable that points to the memory address of another value
procedural programming language
NSObject
pointer
object
31. C-style strings are stored in an array of _____
instance
chars
asynchronous message
+
32. 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.
formal protocol
comma-separated
class
NSObject
33. 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.
cannot
Interface Builder
Binary
weak
34. Property attribute that causes the setter to store a copy of the assigned value
id
outlet
conform
copy
35. Discovering the class of an object at runtime rather than at compile time.
Interface Builder
instance
dynamic typing
assignment
36. An architecture that facilitates communication between objects in different address spaces.
[receiver message];
pointers
superclass
distributed objects
37. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
ampersand (&)
receiver
strong
deprecated
38. 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.
encapsulation
instance method
namespace
message expression
39. The process of setting or reading the value at an address pointed to by a pointer
chars
framework
namespace
dereference (dereferencing)
40. An object of unknown class. Interface is published through protocol declaration.
long long
assignment
anonymous object
strong
41. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
floating-point
procedures
link time
event
42. To destroy an object set the variable that points to it to _____
nil
subclass
ampersand (&)
printf( )
43. 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.
object
class method
Pointers
abstract class
44. ______ operators take a single operand
class method
developer intent
Unitary
framework
45. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
properties
asterisk (*)
square brackets
46. 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.
procedures
reference counting
dynamic binding
class
47. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
double
category
Smalltalk
48. Same as class object. (first way to say it.)
Unitary
Binary
factory
nonatomic
49. A message sent from one application to an object in another application.
reference counting
runtime
remote message
superclass
50. 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.
inheritance
doubles
copy
AppKit