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. 3 Common Float data types: float - _____ - CGFloat
category
Product>Profile>Leaks>Profile
double
Unsigned
2. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Edit>Refactor>Convert to Objective-C ARC
pointer
@interface
readonly
3. Property attribute that causes the setter to store a strong reference to the assigned value
binary
zero
strong
instance
4. _____ operators take 2 operands
adopt
Binary
receiver
class method
5. Symbol used to denote a placeholder in a format string
struct
NSString
Binary
%
6. Finding the method implementation to invoke in response to the message
message expression
9
dynamic binding
dangling pointer
7. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
NSObject
copy
doubles
instance
8. Objective-C is a _____ of the C language
%
[receiver message];
superset
pointers
9. Property attribute that synthesizes accessors that are not thread safe
Smalltalk
%
synchronous message
nonatomic
10. 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
nonatomic
structures
%@
runtime
11. Property attribute where the setter stores the assigned value but does not perform any memory management.
AppKit
assign
Smalltalk
conform
12. In a home building analogy a ____ is the blueprint and the object is the house
class
encapsulation
long long
C operators
13. 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.
anonymous object
class
id
implementation
14. 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.
floating-point
formal protocol
Encapsulation
init
15. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
informal protocol
procedural programming language
encapsulation
formal protocol
16. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
dynamic allocation
init
event
dereference (dereferencing)
17. C-style strings are stored in an array of _____
chars
asterisk (*)
pointers
designated
18. A variable that points to the memory address of another value
class object
compile time
pointer
inheritance hierarchy
19. An object of unknown class. Interface is published through protocol declaration.
copy
Cocoa
Binary
anonymous object
20. An object that acts on behalf of another object.
init
selector
delegate
Unsigned
21. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
dangling pointer
conform
delegates
zero
22. 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.
properties
Product>Profile>Leaks>Profile
runtime
synchronous message
23. a+b; is an example of using a _____ operator
dispatch table
dynamic allocation
binary
encapsulation
24. This symbol denotes a method as being an instance method
method
heap
-
ARC
25. Objective-C objects should use strong or weak ______
selector
attributes
doubles
%
26. A struct may contain multiple ____ consisting of different data types
message
fields
struct
formal protocol
27. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
assign
null
Smalltalk
link time
28. 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.
class object
fields
object
id
29. A method that can operate on class objects rather than instances of the class.
category
abstract class
dereference (dereferencing)
class method
30. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
NSString
synchronous message
framework
value
31. To destroy an object set the variable that points to it to _____
nil
dispatch table
dereference (dereferencing)
framework
32. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
value
abstract class
@implementation
33. A class is said to do this when it declares that it implements all the methods in the protocol.
delegate
9
abstract superclass
adopt
34. A ____ _____ is where you forget to free up memory
Product>Profile>Leaks>Profile
memory leak
dynamic typing
framework
35. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
doubles
Protocols
dispatch table
distributed objects
36. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
message expression
remote object
delegates
37. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Pointers
dispatch table
selector
namespace
38. _____ allow indirect access and modification of a variable's value.
implementation
remote object
Pointers
chars
39. The process of setting or reading the value at an address pointed to by a pointer
class
Signed
copy
dereference (dereferencing)
40. A compiler feature that provides automated memory management
ARC
strong
Unsigned
Edit>Refactor>Convert to Objective-C ARC
41. 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
Protocols
%
NSString
instance
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).
factory object
message expression
abstract class
readwrite
43. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
asynchronous message
link time
dispatch table
44. In a format string the place holder for an object is ______
%@
procedures
outlet
doubles
45. C-style strings always end with a ____ character
conform
null
asterisk (*)
printf( )
46. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
instance variable
class
Smalltalk
47. Instance variables are optional in iOS if ________ are used
properties
message
NSString
instance
48. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
[receiver message];
Encapsulation
+
49. Another name for a class that's defined solely so that other classes can inherit from it.
runtime
Product>Profile>Leaks>Profile
framework
abstract superclass
50. a++; is an example of using a _____ operator
abstract class
strong
unitary
procedures