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. To destroy an object set the variable that points to it to _____
init
readonly
nil
%
2. This symbol denotes a method as being a class method
attributes
copy
delegate
+
3. A method that can operate on class objects rather than instances of the class.
class method
conform
@interface
reference counting
4. _____ allow indirect access and modification of a variable's value.
Pointers
@interface
weak
inheritance
5. An object in another application - one that's a potential receiver for a remote message.
asynchronous message
remote object
reference counting
superset
6. 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.
Interface Builder
Edit>Refactor>Convert to Objective-C ARC
unitary
+
7. 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.
runtime
instance
assignment
[receiver message];
8. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
namespace
weak
chars
delegate
9. Same as class object. (second way to say it.)
unitary
conform
factory object
Interface Builder
10. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
Pointers
class
remote message
interface
11. Data types are divided into two main categories: integer and ______
designated initializer
floating-point
selector
ampersand (&)
12. Objective-C's protocols are really about communicating _____ _______
nil
asterisk (*)
developer intent
readonly
13. Property attribute that synthesizes accessors that are not thread safe
Smalltalk
nonatomic
properties
readwrite
14. This symbol denotes a method as being an instance method
Smalltalk
message
procedural programming language
-
15. Objective-C is a _____ of the C language
superset
dispatch table
method
C operators
16. Instance variables are optional in iOS if ________ are used
Unitary
properties
weak
procedures
17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
dynamic typing
framework
NSString
message
18. Square bracket syntax for calling a method
readwrite
Enumerations
class
[receiver message];
19. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
inheritance hierarchy
delegate
procedures
Unsigned
20. Property attribute that synthesizes only a getter for the property
selector
ARC
readonly
protocol
21. Placing a ____ before a normal variable name gives it's address
designated
asynchronous message
ampersand (&)
9
22. C-style strings are stored in an array of _____
instance variable
chars
factory object
pointers
23. 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.
compile time
Smalltalk
class object
AppKit
24. Any class that's one step below another class in the inheritance hierarchy.
value
mutex
subclass
designated
25. 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
dynamic binding
object
26. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
copy
procedural programming language
compile time
readonly
27. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
long long
synchronous message
inheritance
copy
28. ______ data types are always zero or greate
assignment
chars
properties
Unsigned
29. Same as class object. (first way to say it.)
Enumerations
instance method
pointer
factory
30. Objective-C objects should use strong or weak ______
attributes
polymorphism
procedures
ARC
31. a++; is an example of using a _____ operator
static typing
%
unitary
framework
32. _____ operators take 2 operands
Binary
%@
deprecated
namespace
33. In a format string the place holder for an object is ______
inheritance
heap
%@
Unsigned
34. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
nonatomic
zero
Protocols
distributed objects
35. A class is said to do this when it declares that it implements all the methods in the protocol.
receiver
ampersand (&)
adopt
Unsigned
36. There are ____ fundamental building blocks in Objective-C
Interface Builder
method
9
anonymous object
37. In object-oriented programming a procedure that can be executed by an object.
-
Signed
method
doubles
38. Another name for a class that's defined solely so that other classes can inherit from it.
memory leak
inheritance hierarchy
abstract superclass
double
39. A compiler feature that provides automated memory management
unitary
ARC
weak
subclass
40. C-style strings always end with a ____ character
dynamic binding
Edit>Refactor>Convert to Objective-C ARC
instance
null
41. Objective-C binds methods and arguments at _____ instead of compile time
zero
runtime
polymorphism
subclass
42. 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).
distributed objects
class
Edit>Refactor>Convert to Objective-C ARC
message expression
43. Property attribute that causes the setter to store a copy of the assigned value
Protocols
double
copy
structures
44. In Objective-C floats are more commonly used than ______
Signed
doubles
instance variable
asterisk (*)
45. ______ operators take a single operand
comma-separated
fields
Unitary
pointer
46. An object that acts on behalf of another object.
dynamic binding
copy
memory leak
delegate
47. Property attribute that causes the setter to store a strong reference to the assigned value
id
instance method
asterisk (*)
strong
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.
designated
encapsulation
Unsigned
Protocols
49. The most flexible C data type: ______
factory object
long long
binary
struct
50. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
Categories
superclass
C operators
attributes