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. Property attribute that synthesizes accessors that are not thread safe
runtime
nonatomic
anonymous object
Product>Profile>Leaks>Profile
2. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
Interface Builder
long long
runtime
3. A compiler feature that provides automated memory management
ARC
nonatomic
init
subclass
4. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
static typing
binary
mutex
inheritance
5. a+b; is an example of using a _____ operator
NSObject
interface
binary
long long
6. C-style strings always end with a ____ character
-
null
square brackets
+
7. The most flexible C data type: ______
instance variable
struct
printf( )
message
8. Any class that's one step below another class in the inheritance hierarchy.
superset
namespace
subclass
chars
9. 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.
superset
AppKit
id
message expression
10. ______ data types are always zero or greate
inheritance hierarchy
Unsigned
dynamic allocation
pointers
11. All objects are created on the _____
heap
Encapsulation
remote object
informal protocol
12. Property attribute that causes the setter to store a strong reference to the assigned value
strong
Smalltalk
instance
procedures
13. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
binary
factory
formal protocol
14. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
instance
framework
double
Categories
15. Property attribute that causes the setter to store a copy of the assigned value
reference counting
copy
protocol
readonly
16. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
message
delegate
cannot
assignment
17. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
encapsulation
Pointers
interface
dereference (dereferencing)
18. Property attribute that synthesizes both a getter and setter for the property
readwrite
event
strong
runtime
19. Another name for a class that's defined solely so that other classes can inherit from it.
Signed
double
abstract superclass
dynamic binding
20. The root class in Objective-C
message expression
Categories
class object
NSObject
21. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
abstract class
struct
dispatch table
NSString
22. The process of setting or reading the value at an address pointed to by a pointer
heap
Unitary
dereference (dereferencing)
chars
23. ARC is susceptible to retain _____
link time
cycles
Categories
dynamic typing
24. a++; is an example of using a _____ operator
square brackets
anonymous object
copy
unitary
25. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
AppKit
selector
binary
procedural programming language
26. A struct may contain multiple ____ consisting of different data types
fields
strong
binary
properties
27. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
dynamic binding
Binary
factory object
28. Instance variables are optional in iOS if ________ are used
formal protocol
Signed
properties
designated
29. In a format string the place holder for an object is ______
%@
cannot
instance variable
id
30. 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).
dereference (dereferencing)
interface
message expression
anonymous object
31. 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.
NSObject
Unsigned
selector
double
32. An architecture that facilitates communication between objects in different address spaces.
structures
distributed objects
C operators
interface
33. Xcode sequence to convert non-ARC apps to ARC
cannot
Edit>Refactor>Convert to Objective-C ARC
assign
unitary
34. Same as class object. (first way to say it.)
factory
message expression
pointer
event
35. Objective-C is a _____ of the C language
superset
cycles
id
Smalltalk
36. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
weak
-
Protocols
instance
37. A message sent from one application to an object in another application.
%@
ampersand (&)
subclass
remote message
38. 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.
strong
informal protocol
namespace
instance
39. 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.
namespace
object
printf( )
9
40. Objective-C objects should use strong or weak ______
nil
Product>Profile>Leaks>Profile
attributes
[receiver message];
41. There are ____ fundamental building blocks in Objective-C
link time
nil
9
factory object
42. _____ allow indirect access and modification of a variable's value.
@implementation
Pointers
encapsulation
superset
43. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
nil
@implementation
instance
instance
44. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
procedural programming language
+
dynamic binding
precedence
45. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
delegate
NSString
Smalltalk
9
46. Objective-C methods are called using ____ _____
remote message
square brackets
[receiver message];
outlet
47. An object in another application - one that's a potential receiver for a remote message.
outlet
remote object
readwrite
Signed
48. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
reference counting
encapsulation
instance method
class object
49. 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
adopt
weak
category
50. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
namespace
dynamic typing
asterisk (*)