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 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.
AppKit
@implementation
%
Smalltalk
2. 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).
message expression
polymorphism
receiver
designated initializer
3. 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.
mutex
class object
formal protocol
framework
4. An object of unknown class. Interface is published through protocol declaration.
polymorphism
anonymous object
-
delegates
5. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
informal protocol
receiver
Edit>Refactor>Convert to Objective-C ARC
6. In the Objective-C language the declaration of a group of methods not associated with any particular class.
link time
remote message
interface
protocol
7. _____ operators take 2 operands
9
Binary
dereference (dereferencing)
assignment
8. To destroy an object set the variable that points to it to _____
Unitary
nil
precedence
readwrite
9. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
factory object
compile time
copy
encapsulation
10. Objective-C is a _____ of the C language
Edit>Refactor>Convert to Objective-C ARC
superset
null
ARC
11. ______ operators take a single operand
instance variable
readwrite
Protocols
Unitary
12. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
null
encapsulation
delegates
Binary
13. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
Product>Profile>Leaks>Profile
mutex
message expression
NSObject
14. Property attribute that synthesizes both a getter and setter for the property
runtime
compile time
readwrite
readonly
15. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
Cocoa
Unitary
dynamic typing
16. 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
copy
structures
instance
instance variable
17. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
class
NSString
object
18. C-style strings always end with a ____ character
anonymous object
null
deprecated
namespace
19. Objective-C methods are called using ____ _____
object
square brackets
+
category
20. Placing a ____ before a normal variable name gives it's address
Protocols
category
ampersand (&)
Product>Profile>Leaks>Profile
21. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
class
procedures
weak
abstract superclass
22. 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.
delegate
selector
inheritance
interface
23. Objective-C objects should use strong or weak ______
runtime
superclass
square brackets
attributes
24. 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.
strong
Interface Builder
Unitary
outlet
25. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
fields
value
namespace
superset
26. A ____ _____ is where you forget to free up memory
ARC
message
polymorphism
memory leak
27. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
developer intent
category
Cocoa
Interface Builder
28. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
superclass
dynamic allocation
instance
protocol
29. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Binary
procedures
Signed
heap
30. Three main categories of more complicated data structures:_______ - arrays and structs
properties
Unitary
pointers
precedence
31. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
anonymous object
chars
dangling pointer
precedence
32. 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
synchronous message
id
asynchronous message
Encapsulation
33. The first index in an array is valued at ____
superset
subclass
zero
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.
Protocols
factory object
Product>Profile>Leaks>Profile
runtime
35. Any method that can be used by an instance of a class rather than by the class object.
instance
instance method
dynamic allocation
object
36. A message sent from one application to an object in another application.
remote message
inheritance hierarchy
cycles
cannot
37. Symbol used to denote a placeholder in a format string
procedural programming language
receiver
%
abstract superclass
38. _____ 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'.
abstract superclass
receiver
Encapsulation
instance
39. Another name for a class that's defined solely so that other classes can inherit from it.
compile time
link time
abstract superclass
implementation
40. Property attribute that synthesizes only a getter for the property
asterisk (*)
copy
readonly
@interface
41. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
object
Product>Profile>Leaks>Profile
Smalltalk
static typing
42. 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.
+
namespace
ampersand (&)
pointers
43. 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.
distributed objects
unitary
receiver
reference counting
44. 3 Common Float data types: float - _____ - CGFloat
double
floating-point
formal protocol
dangling pointer
45. Xcode sequence to examine an app for memory leaks or retain cycles
printf( )
inheritance
dynamic binding
Product>Profile>Leaks>Profile
46. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
ampersand (&)
dynamic binding
properties
47. An object in another application - one that's a potential receiver for a remote message.
remote object
NSObject
implementation
factory object
48. The process of setting or reading the value at an address pointed to by a pointer
protocol
dereference (dereferencing)
dynamic allocation
delegate
49. Discovering the class of an object at runtime rather than at compile time.
Categories
dynamic typing
NSObject
outlet
50. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
delegate
comma-separated
framework
message expression