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. Objective-C is a _____ of the C language
[receiver message];
delegate
superset
C operators
2. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
floating-point
event
heap
reference counting
3. Objective-C binds methods and arguments at _____ instead of compile time
ARC
adopt
remote object
runtime
4. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
instance
asterisk (*)
assignment
cannot
5. 3 Common Float data types: float - _____ - CGFloat
double
[receiver message];
attributes
NSObject
6. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
factory object
namespace
framework
procedures
7. An object of unknown class. Interface is published through protocol declaration.
anonymous object
square brackets
precedence
receiver
8. 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.
%@
remote object
asynchronous message
event
9. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
inheritance
ARC
C operators
abstract superclass
10. a+b; is an example of using a _____ operator
binary
9
properties
NSObject
11. 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.
inheritance hierarchy
selector
designated initializer
conform
12. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
developer intent
factory object
init
13. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dynamic allocation
designated initializer
object
@implementation
14. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
id
dispatch table
interface
15. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
9
value
category
comma-separated
16. A ____ _____ is where you forget to free up memory
dynamic typing
abstract class
memory leak
%@
17. 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
structures
Signed
receiver
formal protocol
18. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
remote message
struct
%
19. Same as class object. (first way to say it.)
category
procedural programming language
factory
mutex
20. Initializer method traditionally begin with the _____ prefix
formal protocol
inheritance
superset
init
21. _____ data types can be both positive and negative
value
outlet
assign
Signed
22. A class is said to do this when it declares that it implements all the methods in the protocol.
encapsulation
anonymous object
adopt
class
23. Data types are divided into two main categories: integer and ______
Unsigned
runtime
superset
floating-point
24. C-style strings are stored in an array of _____
copy
dynamic binding
Edit>Refactor>Convert to Objective-C ARC
chars
25. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
runtime
value
comma-separated
selector
26. Square bracket syntax for calling a method
nonatomic
[receiver message];
mutex
instance variable
27. All objects are created on the _____
strong
heap
designated initializer
interface
28. A struct may contain multiple ____ consisting of different data types
fields
Unsigned
copy
Pointers
29. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
nil
asterisk (*)
object
procedures
30. Any class that's one step below another class in the inheritance hierarchy.
Categories
nil
subclass
static typing
31. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
formal protocol
remote object
unitary
weak
32. ____ provide a concise & elegant method for defining a discrete set of values
informal protocol
dispatch table
distributed objects
Enumerations
33. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
printf( )
superset
cannot
weak
34. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
-
polymorphism
superclass
35. An object in another application - one that's a potential receiver for a remote message.
remote object
%@
superset
attributes
36. Another name for a class that's defined solely so that other classes can inherit from it.
pointer
Unsigned
abstract superclass
informal protocol
37. The first index in an array is valued at ____
readwrite
structures
informal protocol
zero
38. Objective-C objects should use strong or weak ______
attributes
Enumerations
doubles
implementation
39. A message sent from one application to an object in another application.
selector
developer intent
remote message
informal protocol
40. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
heap
Pointers
selector
long long
41. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
superclass
pointers
id
zero
42. 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
implementation
square brackets
Product>Profile>Leaks>Profile
43. 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
square brackets
abstract class
ampersand (&)
designated initializer
44. 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
[receiver message];
anonymous object
abstract class
45. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
superset
message expression
dynamic binding
dispatch table
46. Instance variables are optional in iOS if ________ are used
inheritance
designated initializer
properties
Encapsulation
47. a++; is an example of using a _____ operator
Pointers
instance
formal protocol
unitary
48. A set of method definitions that is segregated from the rest of the class definition.
informal protocol
category
class
doubles
49. 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.
abstract class
Interface Builder
strong
reference counting
50. The process of setting or reading the value at an address pointed to by a pointer
synchronous message
dereference (dereferencing)
event
Cocoa