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. Data types are divided into two main categories: integer and ______
+
floating-point
Signed
abstract superclass
2. Initializer method traditionally begin with the _____ prefix
Protocols
init
comma-separated
strong
3. _____ allow indirect access and modification of a variable's value.
nil
Pointers
runtime
designated
4. This symbol denotes a method as being an instance method
-
nil
delegates
C operators
5. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
synchronous message
namespace
conform
6. 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.
anonymous object
abstract class
instance method
Unitary
7. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
weak
doubles
id
delegates
8. Objective-C's protocols are really about communicating _____ _______
Edit>Refactor>Convert to Objective-C ARC
developer intent
Cocoa
procedures
9. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
@implementation
synchronous message
value
cannot
10. In Objective-C floats are more commonly used than ______
doubles
long long
superset
properties
11. 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.
remote object
id
namespace
square brackets
12. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
null
class
assignment
Product>Profile>Leaks>Profile
13. 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.
anonymous object
runtime
remote object
inheritance hierarchy
14. 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.
selector
namespace
assignment
formal protocol
15. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
nil
Edit>Refactor>Convert to Objective-C ARC
strong
16. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
polymorphism
conform
Signed
asynchronous message
17. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
instance
receiver
class
conform
18. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
memory leak
asterisk (*)
formal protocol
nil
19. An object of unknown class. Interface is published through protocol declaration.
init
anonymous object
C operators
method
20. _____ operators take 2 operands
Binary
procedural programming language
cycles
outlet
21. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
Categories
namespace
anonymous object
22. 3 Common Float data types: float - _____ - CGFloat
object
double
Product>Profile>Leaks>Profile
mutex
23. 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
Unsigned
static typing
deprecated
24. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
NSString
event
informal protocol
struct
25. A method that can operate on class objects rather than instances of the class.
dynamic typing
Product>Profile>Leaks>Profile
Unsigned
class method
26. Property attribute that synthesizes only a getter for the property
asterisk (*)
readonly
category
assignment
27. Instance variables are optional in iOS if ________ are used
delegate
reference counting
properties
interface
28. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
message expression
superset
%@
event
29. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
procedural programming language
anonymous object
Protocols
formal protocol
30. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
procedural programming language
polymorphism
inheritance
fields
31. 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).
superset
developer intent
Interface Builder
message expression
32. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
@implementation
static typing
procedures
attributes
33. A compiler feature that provides automated memory management
formal protocol
ARC
message
unitary
34. The _____ function can be used to print a message to the console
printf( )
9
nil
@implementation
35. A message sent from one application to an object in another application.
nil
remote message
informal protocol
init
36. Finding the method implementation to invoke in response to the message
Interface Builder
dynamic binding
Binary
procedural programming language
37. 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.
asterisk (*)
ampersand (&)
dynamic allocation
pointer
38. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
pointer
delegates
namespace
39. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
dispatch table
designated initializer
doubles
40. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
nil
Unitary
class method
41. Objective-C objects should use strong or weak ______
Protocols
class
attributes
adopt
42. The most flexible C data type: ______
interface
protocol
asterisk (*)
struct
43. Objective-C is a _____ of the C language
nil
asynchronous message
factory
superset
44. 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.
dynamic typing
strong
instance
nil
45. A struct may contain multiple ____ consisting of different data types
fields
cannot
Categories
anonymous object
46. A ____ _____ is where you forget to free up memory
square brackets
dangling pointer
memory leak
weak
47. 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.
factory object
asynchronous message
dynamic binding
outlet
48. A ____ ____ is a situation where you free memory and then accidentally continue to use it
assign
dangling pointer
polymorphism
runtime
49. Xcode sequence to convert non-ARC apps to ARC
value
Edit>Refactor>Convert to Objective-C ARC
delegates
structures
50. 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
AppKit
selector
polymorphism