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. Xcode sequence to examine an app for memory leaks or retain cycles
Smalltalk
Product>Profile>Leaks>Profile
reference counting
designated
2. Property attribute that causes the setter to store a copy of the assigned value
pointers
copy
superclass
zero
3. Instance variables are optional in iOS if ________ are used
namespace
properties
@interface
factory
4. 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.
Encapsulation
dereference (dereferencing)
link time
class object
5. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
fields
remote message
message expression
Cocoa
6. In a format string the place holder for an object is ______
asynchronous message
%@
abstract superclass
readonly
7. _____ operators take 2 operands
Binary
structures
copy
assign
8. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
procedural programming language
asterisk (*)
method
weak
9. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
class
Protocols
strong
ampersand (&)
10. _____ allow you to add new methods to existing classes
Categories
cannot
AppKit
encapsulation
11. A ____ ____ is a situation where you free memory and then accidentally continue to use it
doubles
cycles
class method
dangling pointer
12. C-style strings always end with a ____ character
superclass
runtime
null
@interface
13. Data types are divided into two main categories: integer and ______
ampersand (&)
floating-point
reference counting
Encapsulation
14. Any method that can be used by an instance of a class rather than by the class object.
long long
Encapsulation
instance method
Smalltalk
15. A set of method definitions that is segregated from the rest of the class definition.
attributes
category
remote object
Product>Profile>Leaks>Profile
16. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
category
pointers
message
17. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
heap
%
static typing
C operators
18. Three main categories of more complicated data structures:_______ - arrays and structs
ampersand (&)
remote object
conform
pointers
19. 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.
formal protocol
assign
AppKit
square brackets
20. A protocol declared as a category usually as a category of the NSObject class.
conform
zero
asterisk (*)
informal protocol
21. _____ data types can be both positive and negative
Signed
C operators
delegates
event
22. 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
[receiver message];
Product>Profile>Leaks>Profile
chars
23. 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
readonly
designated initializer
cannot
adopt
24. 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
assignment
attributes
instance variable
25. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
%@
dispatch table
struct
Categories
26. Objective-C objects should use strong or weak ______
assign
fields
attributes
Smalltalk
27. 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.
instance method
dynamic allocation
nil
polymorphism
28. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Binary
instance
event
procedures
29. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
runtime
pointers
conform
weak
30. Objective-C binds methods and arguments at _____ instead of compile time
conform
Pointers
developer intent
runtime
31. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
class
compile time
dispatch table
32. Property attribute where the setter stores the assigned value but does not perform any memory management.
factory object
assign
Product>Profile>Leaks>Profile
designated
33. The root class in Objective-C
9
conform
cycles
NSObject
34. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
instance variable
factory object
runtime
35. A ____ _____ is where you forget to free up memory
object
memory leak
procedural programming language
framework
36. Same as class object. (second way to say it.)
adopt
copy
factory object
deprecated
37. An object in another application - one that's a potential receiver for a remote message.
remote object
readwrite
Cocoa
pointer
38. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
compile time
framework
instance method
encapsulation
39. Property attribute that synthesizes both a getter and setter for the property
readwrite
@implementation
link time
NSString
40. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
NSString
assignment
runtime
synchronous message
41. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
asynchronous message
assignment
compile time
long long
42. In Objective-C floats are more commonly used than ______
dereference (dereferencing)
double
namespace
doubles
43. Objective-C's protocols are really about communicating _____ _______
developer intent
+
class object
NSString
44. In the Objective-C language the declaration of a group of methods not associated with any particular class.
9
distributed objects
protocol
interface
45. 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
double
long long
Signed
46. Any class that's one step below another class in the inheritance hierarchy.
Unsigned
Categories
subclass
nil
47. 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.
remote object
selector
weak
link time
48. 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.
Pointers
Interface Builder
%
assign
49. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
distributed objects
comma-separated
C operators
message
50. Initializer method traditionally begin with the _____ prefix
init
abstract class
properties
remote message