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. Property attribute that synthesizes both a getter and setter for the property
procedures
fields
readwrite
+
2. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
remote object
long long
inheritance hierarchy
factory
3. There are ____ fundamental building blocks in Objective-C
9
namespace
chars
superclass
4. 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.
instance
attributes
category
null
5. Finding the method implementation to invoke in response to the message
runtime
message
dynamic binding
static typing
6. Objective-C is a _____ of the C language
adopt
encapsulation
class method
superset
7. A ____ _____ is where you forget to free up memory
pointer
adopt
dangling pointer
memory leak
8. Xcode sequence to convert non-ARC apps to ARC
subclass
Edit>Refactor>Convert to Objective-C ARC
Binary
namespace
9. Placing a ____ before a normal variable name gives it's address
ampersand (&)
nil
method
null
10. 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.
precedence
dynamic allocation
superclass
factory
11. Objective-C methods are called using ____ _____
compile time
assignment
square brackets
id
12. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
class object
unitary
adopt
framework
13. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
asynchronous message
dynamic binding
instance method
weak
14. Same as class object. (first way to say it.)
long long
class method
interface
factory
15. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
9
binary
inheritance
framework
16. _____ data types can be both positive and negative
[receiver message];
Unitary
Signed
@implementation
17. 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.
dynamic typing
dynamic binding
Interface Builder
developer intent
18. An architecture that facilitates communication between objects in different address spaces.
distributed objects
remote message
superclass
nonatomic
19. A method that can operate on class objects rather than instances of the class.
copy
class method
weak
inheritance hierarchy
20. In object-oriented programming the object that is sent a message.
subclass
runtime
receiver
init
21. An object that acts on behalf of another object.
outlet
abstract class
informal protocol
delegate
22. ______ data types are always zero or greate
Interface Builder
Unsigned
anonymous object
dangling pointer
23. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
dereference (dereferencing)
Interface Builder
long long
24. Three main categories of more complicated data structures:_______ - arrays and structs
9
[receiver message];
Protocols
pointers
25. Property attribute that synthesizes accessors that are not thread safe
dangling pointer
superclass
nonatomic
doubles
26. An object of unknown class. Interface is published through protocol declaration.
reference counting
assign
anonymous object
comma-separated
27. Square bracket syntax for calling a method
[receiver message];
weak
instance method
factory object
28. 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
Unsigned
structures
binary
weak
29. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
memory leak
framework
Smalltalk
Binary
30. Initializer method traditionally begin with the _____ prefix
chars
memory leak
class object
init
31. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
readonly
dispatch table
anonymous object
32. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
factory
readwrite
compile time
pointers
33. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
dispatch table
outlet
delegates
init
34. ______ operators take a single operand
+
comma-separated
Unitary
readwrite
35. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
ampersand (&)
procedures
protocol
zero
36. 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.
unitary
remote object
AppKit
namespace
37. 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.
category
inheritance hierarchy
delegates
Pointers
38. Property attribute where the setter stores the assigned value but does not perform any memory management.
@implementation
assign
properties
dynamic typing
39. Property attribute that causes the setter to store a copy of the assigned value
null
dynamic binding
copy
+
40. A variable that points to the memory address of another value
ampersand (&)
dynamic binding
pointer
chars
41. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
copy
superset
properties
C operators
42. Any method that can be used by an instance of a class rather than by the class object.
NSObject
nil
instance method
outlet
43. The process of setting or reading the value at an address pointed to by a pointer
designated
procedures
@interface
dereference (dereferencing)
44. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
Product>Profile>Leaks>Profile
mutex
init
45. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
NSObject
message
Categories
id
46. 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
null
cannot
long long
synchronous message
47. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
asynchronous message
compile time
designated initializer
receiver
48. _____ allow you to add new methods to existing classes
%
nil
Categories
Product>Profile>Leaks>Profile
49. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
nonatomic
NSString
message expression
50. 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
doubles
conform
delegate
instance