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. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
reference counting
implementation
Smalltalk
distributed objects
2. 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.
informal protocol
class object
instance
superset
3. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
reference counting
assignment
NSObject
polymorphism
4. The first index in an array is valued at ____
zero
doubles
square brackets
assignment
5. An object in another application - one that's a potential receiver for a remote message.
remote object
dangling pointer
weak
Edit>Refactor>Convert to Objective-C ARC
6. An object of unknown class. Interface is published through protocol declaration.
anonymous object
class object
asterisk (*)
heap
7. 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.
dangling pointer
square brackets
distributed objects
object
8. 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.
namespace
runtime
message
readwrite
9. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
subclass
%
nonatomic
10. _____ allow indirect access and modification of a variable's value.
protocol
ampersand (&)
Pointers
properties
11. In the Objective-C language the declaration of a group of methods not associated with any particular class.
@implementation
protocol
nil
adopt
12. ______ operators take a single operand
encapsulation
Unsigned
Unitary
cannot
13. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Edit>Refactor>Convert to Objective-C ARC
asterisk (*)
protocol
static typing
14. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
static typing
weak
dynamic allocation
Signed
15. 3 Common Float data types: float - _____ - CGFloat
Enumerations
doubles
double
inheritance
16. 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.
chars
encapsulation
Protocols
properties
17. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
object
namespace
long long
compile time
18. 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
delegates
developer intent
Interface Builder
NSString
19. A protocol declared as a category usually as a category of the NSObject class.
encapsulation
informal protocol
Smalltalk
runtime
20. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
square brackets
value
+
runtime
21. 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).
message expression
link time
class method
class
22. There are ____ fundamental building blocks in Objective-C
formal protocol
9
instance method
encapsulation
23. The most flexible C data type: ______
dynamic typing
class method
memory leak
struct
24. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
double
dereference (dereferencing)
factory
25. C-style strings are stored in an array of _____
dereference (dereferencing)
Cocoa
chars
class object
26. 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.
long long
selector
properties
nonatomic
27. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
NSObject
%
precedence
interface
28. 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
abstract superclass
event
delegate
synchronous message
29. Any class that's one step below another class in the inheritance hierarchy.
subclass
floating-point
doubles
long long
30. 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.
precedence
class object
weak
category
31. The root class in Objective-C
printf( )
copy
NSObject
instance method
32. _____ data types can be both positive and negative
message
Signed
properties
procedures
33. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
struct
assignment
conform
protocol
34. In Objective-C floats are more commonly used than ______
doubles
properties
class
init
35. C-style strings always end with a ____ character
null
Categories
dispatch table
static typing
36. 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).
readwrite
abstract class
chars
implementation
37. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
ampersand (&)
pointer
asterisk (*)
event
38. A method that can operate on class objects rather than instances of the class.
class method
class
Binary
square brackets
39. Xcode sequence to examine an app for memory leaks or retain cycles
copy
nonatomic
encapsulation
Product>Profile>Leaks>Profile
40. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
interface
delegates
remote object
41. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
Unitary
struct
instance
42. 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.
[receiver message];
dereference (dereferencing)
AppKit
superset
43. 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.
deprecated
distributed objects
message expression
Interface Builder
44. 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
init
ampersand (&)
distributed objects
45. In a home building analogy a ____ is the blueprint and the object is the house
object
class
asterisk (*)
instance method
46. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
NSObject
procedures
nil
dereference (dereferencing)
47. ____ provide a concise & elegant method for defining a discrete set of values
distributed objects
Enumerations
precedence
implementation
48. Property attribute that causes the setter to store a strong reference to the assigned value
Enumerations
instance
receiver
strong
49. 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.
9
Cocoa
binary
inheritance hierarchy
50. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
formal protocol
NSString
precedence
Protocols