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. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
selector
init
heap
2. Data types are divided into two main categories: integer and ______
delegates
floating-point
assignment
Protocols
3. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
strong
printf( )
class
namespace
4. In the Objective-C language the declaration of a group of methods not associated with any particular class.
framework
Signed
protocol
NSObject
5. A set of method definitions that is segregated from the rest of the class definition.
id
category
distributed objects
designated
6. A method that can operate on class objects rather than instances of the class.
procedures
class method
structures
unitary
7. 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 method
distributed objects
runtime
8. A ____ _____ is where you forget to free up memory
memory leak
+
inheritance hierarchy
-
9. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
binary
event
nil
value
10. ____ provide a concise & elegant method for defining a discrete set of values
outlet
Enumerations
formal protocol
mutex
11. A protocol declared as a category usually as a category of the NSObject class.
inheritance
informal protocol
attributes
weak
12. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
link time
framework
-
compile time
13. Objective-C binds methods and arguments at _____ instead of compile time
runtime
informal protocol
developer intent
struct
14. A struct may contain multiple ____ consisting of different data types
polymorphism
fields
Categories
doubles
15. _____ data types can be both positive and negative
nil
procedural programming language
abstract class
Signed
16. 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
structures
doubles
adopt
17. The root class in Objective-C
NSObject
nil
double
superset
18. In a format string the place holder for an object is ______
Signed
%@
class object
nil
19. Property attribute that synthesizes accessors that are not thread safe
nonatomic
runtime
receiver
distributed objects
20. 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.
nonatomic
Pointers
class object
link time
21. Objective-C is a _____ of the C language
instance
strong
superset
@implementation
22. Square bracket syntax for calling a method
weak
asterisk (*)
[receiver message];
square brackets
23. a+b; is an example of using a _____ operator
assignment
delegates
binary
polymorphism
24. Instance variables are optional in iOS if ________ are used
designated
properties
factory object
chars
25. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
dispatch table
selector
instance
precedence
26. Initializer method traditionally begin with the _____ prefix
abstract class
runtime
doubles
init
27. Finding the method implementation to invoke in response to the message
doubles
dynamic binding
heap
superclass
28. A message sent from one application to an object in another application.
strong
nil
instance method
remote message
29. 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
%
mutex
developer intent
30. In Objective-C floats are more commonly used than ______
[receiver message];
nil
doubles
readonly
31. There are ____ fundamental building blocks in Objective-C
inheritance hierarchy
square brackets
9
doubles
32. 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).
long long
cannot
conform
message expression
33. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
deprecated
interface
%
34. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
nil
compile time
long long
mutex
35. Objective-C objects should use strong or weak ______
abstract superclass
dynamic allocation
ampersand (&)
attributes
36. C-style strings are stored in an array of _____
object
nil
chars
ARC
37. Any method that can be used by an instance of a class rather than by the class object.
formal protocol
instance method
protocol
@interface
38. 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
message
Cocoa
structures
39. 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.
dangling pointer
Interface Builder
instance
ARC
40. To destroy an object set the variable that points to it to _____
synchronous message
nil
Pointers
developer intent
41. A compiler feature that provides automated memory management
nil
precedence
ARC
properties
42. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
abstract class
factory object
inheritance
procedures
43. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
delegates
@implementation
square brackets
44. 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
message
Cocoa
distributed objects
45. _____ allow you to add new methods to existing classes
remote object
polymorphism
properties
Categories
46. Same as class object. (second way to say it.)
factory object
class
+
Encapsulation
47. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
framework
%@
value
48. 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.
runtime
abstract class
properties
factory object
49. 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.
asynchronous message
structures
AppKit
abstract class
50. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
conform
AppKit
abstract class
event