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 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
Protocols
class object
synchronous message
encapsulation
2. Initializer method traditionally begin with the _____ prefix
init
method
floating-point
assign
3. A compiler feature that provides automated memory management
reference counting
ARC
NSObject
strong
4. A message sent from one application to an object in another application.
pointer
remote message
instance
chars
5. Three main categories of more complicated data structures:_______ - arrays and structs
struct
comma-separated
class object
pointers
6. A ____ ____ is a situation where you free memory and then accidentally continue to use it
anonymous object
Unsigned
dangling pointer
pointers
7. ARC is susceptible to retain _____
%
long long
link time
cycles
8. There are ____ fundamental building blocks in Objective-C
instance method
precedence
Enumerations
9
9. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
informal protocol
null
properties
procedures
10. 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.
runtime
designated initializer
class object
Protocols
11. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
assign
NSObject
static typing
asterisk (*)
12. A set of method definitions that is segregated from the rest of the class definition.
category
runtime
Unsigned
Categories
13. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Unsigned
event
abstract class
anonymous object
14. C-style strings always end with a ____ character
asynchronous message
instance
procedures
null
15. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
instance variable
protocol
asterisk (*)
event
16. This symbol denotes a method as being an instance method
floating-point
-
Interface Builder
binary
17. Property attribute that causes the setter to store a copy of the assigned value
NSString
copy
outlet
dangling pointer
18. Property attribute where the setter stores the assigned value but does not perform any memory management.
C operators
reference counting
namespace
assign
19. Instance variables are optional in iOS if ________ are used
properties
Binary
comma-separated
remote object
20. Placing a ____ before a normal variable name gives it's address
encapsulation
@implementation
ampersand (&)
class method
21. To destroy an object set the variable that points to it to _____
receiver
event
nil
dynamic allocation
22. 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.
double
class method
outlet
formal protocol
23. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
class object
dynamic allocation
attributes
24. _____ allow you to add new methods to existing classes
procedural programming language
Categories
asterisk (*)
distributed objects
25. In a format string the place holder for an object is ______
abstract class
fields
%@
pointer
26. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
@interface
interface
abstract class
dereference (dereferencing)
27. Another name for a class that's defined solely so that other classes can inherit from it.
receiver
abstract superclass
readwrite
ampersand (&)
28. An object that acts on behalf of another object.
outlet
strong
delegate
Signed
29. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
interface
abstract class
nonatomic
copy
30. 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.
pointer
compile time
memory leak
link time
31. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
fields
protocol
cannot
struct
32. When creating a class header file you begin with the _____ keyword and close with the @end keyword
weak
@interface
dynamic typing
Categories
33. _____ operators take 2 operands
implementation
conform
Binary
dispatch table
34. 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
dynamic typing
%@
subclass
structures
35. Same as class object. (first way to say it.)
runtime
message
factory
subclass
36. 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
compile time
distributed objects
class method
37. Objective-C methods are called using ____ _____
deprecated
compile time
struct
square brackets
38. Property attribute that synthesizes both a getter and setter for the property
readwrite
doubles
id
NSObject
39. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
nil
%@
Cocoa
40. Property attribute that causes the setter to store a strong reference to the assigned value
reference counting
object
message
strong
41. This symbol denotes a method as being a class method
+
class
superset
instance variable
42. Objective-C's protocols are really about communicating _____ _______
dynamic binding
assign
developer intent
binary
43. The process of setting or reading the value at an address pointed to by a pointer
abstract class
dereference (dereferencing)
Encapsulation
inheritance
44. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
inheritance
assign
abstract class
45. A class is said to do this when it declares that it implements all the methods in the protocol.
pointer
Unsigned
precedence
adopt
46. In object-oriented programming a procedure that can be executed by an object.
Categories
9
method
distributed objects
47. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
dynamic allocation
delegates
double
remote message
48. A variable that points to the memory address of another value
message
remote message
pointer
Product>Profile>Leaks>Profile
49. 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.
heap
asynchronous message
implementation
remote message
50. Symbol used to denote a placeholder in a format string
%
informal protocol
encapsulation
memory leak