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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
abstract superclass
superclass
deprecated
Protocols
2. In object-oriented programming a procedure that can be executed by an object.
NSString
factory object
method
dynamic binding
3. 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.
formal protocol
designated initializer
class
init
4. 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
asterisk (*)
AppKit
structures
delegate
5. Objective-C methods are called using ____ _____
square brackets
%@
abstract class
instance method
6. In Objective-C floats are more commonly used than ______
subclass
designated initializer
doubles
properties
7. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
superclass
compile time
remote object
structures
8. There are ____ fundamental building blocks in Objective-C
remote object
dereference (dereferencing)
assign
9
9. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
inheritance hierarchy
pointers
weak
message
10. 3 Common Float data types: float - _____ - CGFloat
inheritance hierarchy
struct
double
abstract class
11. Property attribute that synthesizes both a getter and setter for the property
chars
readwrite
designated initializer
copy
12. 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.
object
[receiver message];
double
subclass
13. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
encapsulation
superset
procedures
14. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
AppKit
pointers
dangling pointer
15. Square bracket syntax for calling a method
subclass
[receiver message];
link time
nonatomic
16. Symbol used to denote a placeholder in a format string
attributes
@implementation
subclass
%
17. _____ allow you to add new methods to existing classes
method
zero
delegate
Categories
18. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
deprecated
Unsigned
reference counting
19. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
cannot
precedence
encapsulation
@implementation
20. 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.
instance variable
class object
encapsulation
%@
21. A ____ ____ is a situation where you free memory and then accidentally continue to use it
unitary
Categories
dangling pointer
AppKit
22. ______ operators take a single operand
Unitary
Product>Profile>Leaks>Profile
long long
remote object
23. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Interface Builder
framework
class object
superclass
24. 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.
formal protocol
strong
dynamic allocation
-
25. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
developer intent
C operators
[receiver message];
26. Data types are divided into two main categories: integer and ______
printf( )
weak
floating-point
abstract superclass
27. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
memory leak
%
nonatomic
instance
28. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
dangling pointer
+
comma-separated
message
29. Property attribute that synthesizes accessors that are not thread safe
abstract superclass
nonatomic
instance variable
event
30. _____ operators take 2 operands
superset
comma-separated
Binary
informal protocol
31. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
attributes
class object
inheritance hierarchy
32. C-style strings always end with a ____ character
printf( )
null
framework
outlet
33. Any method that can be used by an instance of a class rather than by the class object.
nil
cannot
framework
instance method
34. 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).
procedures
class method
message expression
static typing
35. This symbol denotes a method as being a class method
Protocols
selector
+
unitary
36. _____ 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'.
class method
assign
namespace
Encapsulation
37. A method that can operate on class objects rather than instances of the class.
selector
class method
nil
framework
38. The most flexible C data type: ______
developer intent
receiver
struct
abstract class
39. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
Cocoa
mutex
Categories
assignment
40. Property attribute that causes the setter to store a strong reference to the assigned value
class
strong
9
abstract superclass
41. _____ allow indirect access and modification of a variable's value.
Pointers
factory object
NSObject
static typing
42. 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.
delegates
null
interface
runtime
43. Discovering the class of an object at runtime rather than at compile time.
Cocoa
value
Edit>Refactor>Convert to Objective-C ARC
dynamic typing
44. Property attribute where the setter stores the assigned value but does not perform any memory management.
class method
NSString
zero
assign
45. Finding the method implementation to invoke in response to the message
asynchronous message
delegates
adopt
dynamic binding
46. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
NSString
procedural programming language
receiver
printf( )
47. A compiler feature that provides automated memory management
AppKit
ARC
runtime
zero
48. ARC is susceptible to retain _____
cycles
nil
Product>Profile>Leaks>Profile
doubles
49. A protocol declared as a category usually as a category of the NSObject class.
class
static typing
informal protocol
class object
50. A ____ _____ is where you forget to free up memory
memory leak
-
readonly
asynchronous message