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. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
dangling pointer
assignment
Binary
long long
2. This symbol denotes a method as being an instance method
attributes
class object
-
message
3. 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.
id
heap
dynamic typing
inheritance hierarchy
4. In object-oriented programming a procedure that can be executed by an object.
nonatomic
reference counting
-
method
5. Placing a ____ before a normal variable name gives it's address
nonatomic
chars
Interface Builder
ampersand (&)
6. 3 Common Float data types: float - _____ - CGFloat
@implementation
dereference (dereferencing)
Smalltalk
double
7. The root class in Objective-C
designated
zero
square brackets
NSObject
8. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
readwrite
framework
heap
category
9. _____ data types can be both positive and negative
pointer
implementation
message
Signed
10. 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.
Edit>Refactor>Convert to Objective-C ARC
selector
cycles
copy
11. There are ____ fundamental building blocks in Objective-C
9
C operators
cannot
procedures
12. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
square brackets
nonatomic
cannot
13. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
delegates
Enumerations
value
static typing
14. Objective-C's protocols are really about communicating _____ _______
Cocoa
%
developer intent
ARC
15. The most flexible C data type: ______
struct
subclass
abstract superclass
unitary
16. In a home building analogy a ____ is the blueprint and the object is the house
remote message
+
class
binary
17. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
asterisk (*)
superclass
zero
%@
18. Symbol used to denote a placeholder in a format string
%
AppKit
outlet
conform
19. All objects are created on the _____
heap
zero
cannot
distributed objects
20. Three main categories of more complicated data structures:_______ - arrays and structs
procedural programming language
pointers
developer intent
9
21. Property attribute that synthesizes only a getter for the property
procedural programming language
readonly
receiver
dangling pointer
22. 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.
message
instance
dynamic allocation
synchronous message
23. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
[receiver message];
copy
instance method
24. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
factory
runtime
instance
binary
25. A variable that points to the memory address of another value
pointer
Binary
formal protocol
reference counting
26. 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
dynamic typing
remote object
conform
printf( )
27. C-style strings are stored in an array of _____
dispatch table
copy
class method
chars
28. C-style strings always end with a ____ character
receiver
init
null
pointers
29. In Objective-C floats are more commonly used than ______
Cocoa
doubles
Smalltalk
dispatch table
30. 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.
AppKit
remote message
factory object
abstract superclass
31. a+b; is an example of using a _____ operator
[receiver message];
dangling pointer
binary
message
32. Instance variables are optional in iOS if ________ are used
mutex
properties
Edit>Refactor>Convert to Objective-C ARC
nil
33. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
+
double
cannot
inheritance
34. 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
chars
Categories
runtime
35. In the Objective-C language the declaration of a group of methods not associated with any particular class.
binary
printf( )
struct
protocol
36. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
C operators
deprecated
+
Interface Builder
37. Property attribute where the setter stores the assigned value but does not perform any memory management.
unitary
assign
conform
compile time
38. An object id with a value of 0.
Binary
instance
nil
Protocols
39. ______ operators take a single operand
Unitary
dispatch table
long long
abstract superclass
40. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
pointers
factory
adopt
41. The first index in an array is valued at ____
Enumerations
zero
precedence
receiver
42. _____ operators take 2 operands
@interface
event
Binary
asynchronous message
43. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
nil
assignment
delegates
procedural programming language
44. ______ data types are always zero or greate
remote object
chars
Unsigned
distributed objects
45. Any class that's one step below another class in the inheritance hierarchy.
subclass
framework
init
chars
46. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
NSObject
message expression
precedence
superset
47. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
message
compile time
dynamic allocation
weak
48. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
receiver
assign
reference counting
49. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
runtime
nonatomic
delegate
value
50. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
instance
factory
inheritance hierarchy