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 way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
inheritance hierarchy
framework
dangling pointer
designated
2. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
adopt
factory
inheritance
3. Objective-C binds methods and arguments at _____ instead of compile time
reference counting
Unitary
inheritance
runtime
4. Initializer method traditionally begin with the _____ prefix
heap
asterisk (*)
init
strong
5. All objects are created on the _____
instance
Unitary
method
heap
6. A message sent from one application to an object in another application.
remote message
printf( )
anonymous object
designated
7. To destroy an object set the variable that points to it to _____
formal protocol
asynchronous message
nil
precedence
8. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
method
pointers
abstract superclass
9. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
Categories
dynamic typing
message
10. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
anonymous object
instance method
weak
11. 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.
Edit>Refactor>Convert to Objective-C ARC
structures
designated initializer
selector
12. In a home building analogy a ____ is the blueprint and the object is the house
class
@implementation
assignment
remote message
13. Objective-C methods are called using ____ _____
C operators
attributes
square brackets
dereference (dereferencing)
14. a+b; is an example of using a _____ operator
C operators
-
doubles
binary
15. An object in another application - one that's a potential receiver for a remote message.
remote object
static typing
9
@implementation
16. C-style strings are stored in an array of _____
class method
compile time
floating-point
chars
17. Objective-C is a _____ of the C language
superset
strong
pointers
instance
18. 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
distributed objects
polymorphism
doubles
19. A struct may contain multiple ____ consisting of different data types
id
fields
%
procedures
20. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
assign
double
mutex
+
21. _____ allow you to add new methods to existing classes
Encapsulation
square brackets
Categories
remote object
22. Data types are divided into two main categories: integer and ______
runtime
floating-point
+
remote object
23. An object of unknown class. Interface is published through protocol declaration.
anonymous object
runtime
class
readonly
24. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
binary
copy
instance
remote message
25. The process of setting or reading the value at an address pointed to by a pointer
long long
Encapsulation
outlet
dereference (dereferencing)
26. ______ data types are always zero or greate
+
Unsigned
copy
long long
27. This symbol denotes a method as being a class method
+
assign
dereference (dereferencing)
designated initializer
28. There are ____ fundamental building blocks in Objective-C
Cocoa
instance variable
Enumerations
9
29. Symbol used to denote a placeholder in a format string
long long
static typing
%
framework
30. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
weak
binary
dispatch table
interface
31. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
runtime
instance variable
conform
asynchronous message
32. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
protocol
method
deprecated
33. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
+
asynchronous message
cannot
memory leak
34. 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.
method
Protocols
reference counting
runtime
35. Property attribute that synthesizes both a getter and setter for the property
Pointers
AppKit
readwrite
polymorphism
36. Property attribute that synthesizes only a getter for the property
Protocols
readonly
9
subclass
37. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
factory
Smalltalk
init
double
38. Any class that's one step below another class in the inheritance hierarchy.
class
subclass
encapsulation
procedural programming language
39. Same as class object. (second way to say it.)
comma-separated
factory object
9
long long
40. A variable that points to the memory address of another value
class
formal protocol
strong
pointer
41. A method that can operate on class objects rather than instances of the class.
id
strong
Pointers
class method
42. In a format string the place holder for an object is ______
subclass
%@
informal protocol
[receiver message];
43. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
Categories
comma-separated
method
anonymous object
44. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
instance variable
Interface Builder
delegate
45. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
Categories
abstract superclass
delegates
instance variable
46. Instance variables are optional in iOS if ________ are used
anonymous object
properties
category
instance
47. This symbol denotes a method as being an instance method
-
unitary
designated
Smalltalk
48. Property attribute that synthesizes accessors that are not thread safe
nonatomic
inheritance hierarchy
dereference (dereferencing)
delegate
49. 3 Common Float data types: float - _____ - CGFloat
heap
value
id
double
50. Objective-C objects should use strong or weak ______
attributes
dynamic binding
designated initializer
anonymous object