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 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
asterisk (*)
instance method
protocol
2. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
Enumerations
%
adopt
C operators
3. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
object
Unitary
unitary
4. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
distributed objects
method
value
5. All objects are created on the _____
heap
message expression
procedural programming language
designated
6. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
informal protocol
instance method
memory leak
7. A message sent from one application to an object in another application.
AppKit
remote message
long long
ARC
8. A compiler feature that provides automated memory management
designated
ARC
assignment
selector
9. 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.
superset
square brackets
formal protocol
[receiver message];
10. _____ operators take 2 operands
square brackets
null
Binary
factory
11. 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.
message expression
dispatch table
protocol
namespace
12. _____ allow you to add new methods to existing classes
C operators
Categories
weak
encapsulation
13. ______ data types are always zero or greate
Unsigned
[receiver message];
designated
%@
14. An object that acts on behalf of another object.
informal protocol
conform
delegate
abstract superclass
15. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
event
procedures
class object
init
16. A variable that points to the memory address of another value
runtime
assignment
memory leak
pointer
17. 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.
dereference (dereferencing)
reference counting
readwrite
selector
18. Same as class object. (second way to say it.)
square brackets
Cocoa
factory object
interface
19. Objective-C objects should use strong or weak ______
superclass
polymorphism
synchronous message
attributes
20. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
init
subclass
formal protocol
21. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
square brackets
pointer
inheritance
22. Any method that can be used by an instance of a class rather than by the class object.
instance method
chars
nonatomic
encapsulation
23. 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
strong
nil
runtime
24. a+b; is an example of using a _____ operator
namespace
binary
Interface Builder
memory leak
25. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
designated
assignment
precedence
26. In a home building analogy a ____ is the blueprint and the object is the house
class method
memory leak
designated initializer
class
27. ______ operators take a single operand
Unitary
static typing
informal protocol
floating-point
28. A ____ _____ is where you forget to free up memory
NSString
heap
memory leak
link time
29. Data types are divided into two main categories: integer and ______
floating-point
reference counting
inheritance
unitary
30. Objective-C is a _____ of the C language
superset
interface
subclass
doubles
31. A struct may contain multiple ____ consisting of different data types
Edit>Refactor>Convert to Objective-C ARC
procedural programming language
remote message
fields
32. Property attribute that synthesizes accessors that are not thread safe
nonatomic
factory
factory object
unitary
33. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
instance
inheritance
implementation
34. Instance variables are optional in iOS if ________ are used
properties
class method
NSString
cannot
35. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
printf( )
comma-separated
cycles
formal protocol
36. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
message
interface
pointers
37. 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
zero
pointer
synchronous message
Binary
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
9
structures
remote object
Categories
39. The first index in an array is valued at ____
zero
Edit>Refactor>Convert to Objective-C ARC
instance
subclass
40. 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
dangling pointer
delegate
encapsulation
41. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
mutex
informal protocol
implementation
instance
42. _____ 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
[receiver message];
synchronous message
comma-separated
43. Square bracket syntax for calling a method
conform
pointers
runtime
[receiver message];
44. 3 Common Float data types: float - _____ - CGFloat
assign
@interface
double
NSString
45. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
unitary
class
Encapsulation
Smalltalk
46. In the Objective-C language the declaration of a group of methods not associated with any particular class.
doubles
protocol
runtime
asterisk (*)
47. In Objective-C floats are more commonly used than ______
strong
factory
readwrite
doubles
48. 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.
event
instance
delegates
inheritance hierarchy
49. _____ allow indirect access and modification of a variable's value.
polymorphism
copy
Pointers
selector
50. 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.
Pointers
class object
nonatomic
memory leak