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. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
nonatomic
Cocoa
implementation
2. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
doubles
event
instance method
deprecated
3. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
distributed objects
value
procedures
designated
4. Any method that can be used by an instance of a class rather than by the class object.
NSObject
9
zero
instance method
5. Xcode sequence to convert non-ARC apps to ARC
method
Edit>Refactor>Convert to Objective-C ARC
interface
asynchronous message
6. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
9
mutex
protocol
dynamic allocation
7. Objective-C objects should use strong or weak ______
informal protocol
class object
attributes
struct
8. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
doubles
asterisk (*)
precedence
deprecated
9. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
instance variable
class
instance method
zero
10. Property attribute that causes the setter to store a strong reference to the assigned value
abstract superclass
strong
formal protocol
instance method
11. ______ operators take a single operand
long long
Unitary
Unsigned
distributed objects
12. Objective-C is a _____ of the C language
designated initializer
superset
printf( )
link time
13. 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.
event
namespace
class
structures
14. Symbol used to denote a placeholder in a format string
Unsigned
subclass
designated initializer
%
15. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
runtime
implementation
value
heap
16. In a format string the place holder for an object is ______
class method
%@
compile time
comma-separated
17. _____ allow you to add new methods to existing classes
properties
Categories
%
Product>Profile>Leaks>Profile
18. A set of method definitions that is segregated from the rest of the class definition.
id
developer intent
category
instance
19. Objective-C binds methods and arguments at _____ instead of compile time
attributes
class
polymorphism
runtime
20. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance variable
instance
static typing
floating-point
21. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
selector
formal protocol
dereference (dereferencing)
null
22. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
designated
static typing
delegate
23. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
abstract superclass
mutex
instance
adopt
24. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
deprecated
attributes
dangling pointer
delegates
25. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
dynamic binding
floating-point
informal protocol
26. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
heap
runtime
comma-separated
27. A struct may contain multiple ____ consisting of different data types
Pointers
remote message
fields
inheritance
28. 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.
floating-point
remote object
class object
abstract superclass
29. Instance variables are optional in iOS if ________ are used
object
9
assign
properties
30. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
assignment
cycles
Protocols
31. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
selector
framework
distributed objects
designated
32. Property attribute that causes the setter to store a copy of the assigned value
copy
inheritance hierarchy
designated initializer
unitary
33. The first index in an array is valued at ____
zero
developer intent
readwrite
designated initializer
34. A ____ _____ is where you forget to free up memory
cannot
memory leak
nonatomic
Encapsulation
35. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
designated
instance variable
abstract superclass
36. A message sent from one application to an object in another application.
-
adopt
remote message
procedural programming language
37. 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.
Interface Builder
C operators
compile time
link time
38. _____ operators take 2 operands
Signed
asterisk (*)
informal protocol
Binary
39. 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.
receiver
procedures
outlet
runtime
40. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
pointer
framework
id
41. A protocol declared as a category usually as a category of the NSObject class.
superset
designated initializer
informal protocol
nonatomic
42. a++; is an example of using a _____ operator
NSObject
unitary
9
-
43. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
anonymous object
assignment
mutex
chars
44. C-style strings are stored in an array of _____
chars
assignment
superset
readwrite
45. In object-oriented programming a procedure that can be executed by an object.
Edit>Refactor>Convert to Objective-C ARC
method
mutex
precedence
46. The most flexible C data type: ______
doubles
abstract superclass
subclass
struct
47. A compiler feature that provides automated memory management
chars
ARC
class object
remote object
48. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
assignment
@implementation
Unsigned
Enumerations
49. _____ allow indirect access and modification of a variable's value.
Categories
dereference (dereferencing)
receiver
Pointers
50. An object id with a value of 0.
nil
encapsulation
readwrite
properties