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. Three main categories of more complicated data structures:_______ - arrays and structs
developer intent
printf( )
init
pointers
2. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
distributed objects
Binary
cycles
3. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
init
outlet
precedence
class
4. a++; is an example of using a _____ operator
unitary
distributed objects
formal protocol
superclass
5. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
designated initializer
properties
readwrite
long long
6. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
struct
structures
deprecated
7. _____ 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'.
deprecated
Encapsulation
%
ampersand (&)
8. 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
factory
conform
floating-point
9. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
fields
procedural programming language
pointers
dynamic binding
10. In object-oriented programming a procedure that can be executed by an object.
encapsulation
method
[receiver message];
message expression
11. An object in another application - one that's a potential receiver for a remote message.
remote object
NSString
fields
deprecated
12. Xcode sequence to convert non-ARC apps to ARC
strong
instance
procedures
Edit>Refactor>Convert to Objective-C ARC
13. 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).
interface
precedence
implementation
inheritance
14. In a home building analogy a ____ is the blueprint and the object is the house
class
%
Enumerations
floating-point
15. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
+
dynamic allocation
instance method
C operators
16. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
Unsigned
Interface Builder
class method
17. The most flexible C data type: ______
fields
floating-point
Smalltalk
struct
18. 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.
readonly
Signed
instance
abstract class
19. ______ data types are always zero or greate
id
compile time
Unsigned
printf( )
20. In the Objective-C language the declaration of a group of methods not associated with any particular class.
synchronous message
compile time
protocol
inheritance
21. Another name for a class that's defined solely so that other classes can inherit from it.
protocol
attributes
abstract superclass
designated initializer
22. 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.
attributes
Interface Builder
weak
instance variable
23. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
value
asterisk (*)
framework
chars
24. Same as class object. (second way to say it.)
factory
factory object
class
adopt
25. In a format string the place holder for an object is ______
delegate
unitary
%@
value
26. Symbol used to denote a placeholder in a format string
developer intent
dynamic binding
compile time
%
27. 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.
framework
event
asynchronous message
deprecated
28. Instance variables are optional in iOS if ________ are used
static typing
id
properties
readwrite
29. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
dynamic binding
runtime
structures
30. A variable that points to the memory address of another value
delegate
init
pointer
value
31. A compiler feature that provides automated memory management
Categories
mutex
designated initializer
ARC
32. Data types are divided into two main categories: integer and ______
floating-point
@interface
Encapsulation
class method
33. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
%@
weak
framework
synchronous message
34. 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
link time
asterisk (*)
class object
35. Objective-C methods are called using ____ _____
%@
Encapsulation
square brackets
informal protocol
36. Any method that can be used by an instance of a class rather than by the class object.
factory
instance method
remote message
memory leak
37. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
informal protocol
assignment
interface
polymorphism
38. ARC is susceptible to retain _____
printf( )
cycles
runtime
delegates
39. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
-
static typing
doubles
abstract superclass
40. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Unitary
Smalltalk
cannot
null
41. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
class
superclass
object
fields
42. _____ data types can be both positive and negative
Signed
nil
chars
runtime
43. 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.
formal protocol
selector
dangling pointer
object
44. _____ allow indirect access and modification of a variable's value.
+
dynamic allocation
9
Pointers
45. Objective-C binds methods and arguments at _____ instead of compile time
ampersand (&)
pointers
mutex
runtime
46. A message sent from one application to an object in another application.
readwrite
remote message
inheritance
instance
47. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
-
Categories
strong
compile time
48. 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.
fields
delegates
instance
Unsigned
49. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dangling pointer
nonatomic
@implementation
synchronous message
50. An object id with a value of 0.
nil
weak
Categories
protocol