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. Property attribute that causes the setter to store a copy of the assigned value
pointers
%
copy
+
2. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
comma-separated
NSObject
framework
class
3. An object of unknown class. Interface is published through protocol declaration.
weak
anonymous object
Edit>Refactor>Convert to Objective-C ARC
instance
4. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
Cocoa
comma-separated
precedence
memory leak
5. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
event
mutex
assign
6. Property attribute where the setter stores the assigned value but does not perform any memory management.
%@
structures
compile time
assign
7. In a home building analogy a ____ is the blueprint and the object is the house
%@
unitary
procedural programming language
class
8. In object-oriented programming the object that is sent a message.
receiver
C operators
asynchronous message
memory leak
9. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
subclass
ARC
link time
10. Property attribute that synthesizes both a getter and setter for the property
dangling pointer
readwrite
abstract class
Categories
11. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
asterisk (*)
protocol
message
weak
12. C-style strings are stored in an array of _____
procedures
abstract class
chars
reference counting
13. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
mutex
Signed
dangling pointer
static typing
14. A compiler feature that provides automated memory management
value
Enumerations
ARC
attributes
15. To destroy an object set the variable that points to it to _____
interface
nil
readwrite
abstract class
16. 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
dynamic typing
C operators
developer intent
17. Instance variables are optional in iOS if ________ are used
Cocoa
event
dangling pointer
properties
18. All objects are created on the _____
delegate
conform
heap
square brackets
19. Objective-C is a _____ of the C language
instance
superset
+
pointer
20. The root class in Objective-C
%
dynamic typing
NSObject
dispatch table
21. _____ allow you to add new methods to existing classes
Unitary
Categories
floating-point
reference counting
22. ARC is susceptible to retain _____
abstract class
polymorphism
category
cycles
23. A variable that points to the memory address of another value
id
abstract class
NSObject
pointer
24. An object id with a value of 0.
Binary
Interface Builder
nil
C operators
25. 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.
anonymous object
readwrite
asynchronous message
dynamic allocation
26. ______ operators take a single operand
Product>Profile>Leaks>Profile
Unitary
factory
receiver
27. Data types are divided into two main categories: integer and ______
link time
Smalltalk
superclass
floating-point
28. A ____ ____ is a situation where you free memory and then accidentally continue to use it
protocol
dynamic typing
dangling pointer
runtime
29. Objective-C's protocols are really about communicating _____ _______
developer intent
fields
outlet
framework
30. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
floating-point
message
static typing
asterisk (*)
31. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
NSString
instance
cycles
precedence
32. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
delegates
init
message expression
33. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
-
attributes
floating-point
34. a+b; is an example of using a _____ operator
factory object
Unsigned
binary
nonatomic
35. The _____ function can be used to print a message to the console
abstract class
printf( )
procedural programming language
factory object
36. When creating a class header file you begin with the _____ keyword and close with the @end keyword
nil
properties
ampersand (&)
@interface
37. 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).
framework
Product>Profile>Leaks>Profile
Edit>Refactor>Convert to Objective-C ARC
message expression
38. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
category
pointers
-
39. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
assign
designated
NSString
null
40. The first index in an array is valued at ____
framework
pointer
zero
Unitary
41. 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.
init
selector
@interface
unitary
42. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
protocol
doubles
instance variable
43. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
mutex
adopt
interface
44. Symbol used to denote a placeholder in a format string
null
weak
asterisk (*)
%
45. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
class
dispatch table
designated
compile time
46. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
class
nil
link time
inheritance hierarchy
47. An object in another application - one that's a potential receiver for a remote message.
remote object
floating-point
assign
superset
48. 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.
class object
Cocoa
superclass
NSObject
49. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
nonatomic
receiver
factory
Protocols
50. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
nonatomic
compile time
delegates
runtime