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.
nil
AppKit
interface
Smalltalk
2. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
anonymous object
%@
AppKit
3. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
delegate
fields
copy
dispatch table
4. ____ provide a concise & elegant method for defining a discrete set of values
structures
doubles
-
Enumerations
5. 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
+
doubles
Unsigned
6. This symbol denotes a method as being a class method
readwrite
+
Binary
%@
7. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
id
implementation
dynamic allocation
null
8. Placing a ____ before a normal variable name gives it's address
copy
ampersand (&)
NSString
Unsigned
9. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
delegate
nonatomic
structures
long long
10. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
@interface
class
procedures
event
11. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
reference counting
readwrite
C operators
message expression
12. Property attribute that synthesizes accessors that are not thread safe
square brackets
assign
nonatomic
zero
13. a++; is an example of using a _____ operator
Signed
unitary
designated initializer
Protocols
14. Objective-C's protocols are really about communicating _____ _______
developer intent
fields
subclass
compile time
15. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
link time
printf( )
Enumerations
16. Property attribute that synthesizes both a getter and setter for the property
asynchronous message
nil
readwrite
Encapsulation
17. 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.
Encapsulation
abstract class
Interface Builder
abstract superclass
18. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
event
namespace
encapsulation
procedures
19. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
object
pointers
nil
designated
20. 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.
link time
printf( )
fields
dereference (dereferencing)
21. Same as class object. (first way to say it.)
synchronous message
instance variable
instance
factory
22. This symbol denotes a method as being an instance method
dangling pointer
-
developer intent
formal protocol
23. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
floating-point
delegates
formal protocol
Smalltalk
24. All objects are created on the _____
heap
comma-separated
conform
class
25. 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.
class object
subclass
message
outlet
26. Symbol used to denote a placeholder in a format string
implementation
%
instance
deprecated
27. A ____ ____ is a situation where you free memory and then accidentally continue to use it
outlet
informal protocol
dangling pointer
@interface
28. A struct may contain multiple ____ consisting of different data types
fields
receiver
category
ARC
29. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
weak
procedural programming language
Edit>Refactor>Convert to Objective-C ARC
printf( )
30. An object in another application - one that's a potential receiver for a remote message.
nil
long long
remote object
Unitary
31. Three main categories of more complicated data structures:_______ - arrays and structs
fields
+
instance
pointers
32. The most flexible C data type: ______
ARC
class
struct
class method
33. Finding the method implementation to invoke in response to the message
[receiver message];
dynamic binding
instance method
Smalltalk
34. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
assign
object
anonymous object
Unitary
35. The root class in Objective-C
interface
receiver
compile time
NSObject
36. _____ operators take 2 operands
outlet
Binary
static typing
formal protocol
37. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
assignment
instance
printf( )
38. 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
Enumerations
asynchronous message
synchronous message
ARC
39. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Protocols
Product>Profile>Leaks>Profile
cannot
namespace
40. In object-oriented programming the object that is sent a message.
receiver
anonymous object
message expression
mutex
41. Objective-C objects should use strong or weak ______
reference counting
static typing
attributes
id
42. _____ allow indirect access and modification of a variable's value.
Encapsulation
Pointers
strong
dispatch table
43. Discovering the class of an object at runtime rather than at compile time.
delegates
Edit>Refactor>Convert to Objective-C ARC
dynamic typing
dispatch table
44. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
readonly
superclass
message
unitary
45. 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
Signed
fields
designated
46. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
outlet
delegate
deprecated
designated
47. Another name for a class that's defined solely so that other classes can inherit from it.
unitary
memory leak
Interface Builder
abstract superclass
48. Objective-C methods are called using ____ _____
instance method
designated
square brackets
strong
49. Property attribute that synthesizes only a getter for the property
readonly
floating-point
cannot
reference counting
50. An object of unknown class. Interface is published through protocol declaration.
receiver
anonymous object
encapsulation
double