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. ______ operators take a single operand
Unitary
[receiver message];
chars
instance method
2. 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.
id
polymorphism
implementation
abstract superclass
3. Objective-C binds methods and arguments at _____ instead of compile time
ARC
Edit>Refactor>Convert to Objective-C ARC
delegates
runtime
4. Data types are divided into two main categories: integer and ______
floating-point
conform
unitary
dangling pointer
5. ____ provide a concise & elegant method for defining a discrete set of values
class
Unitary
Protocols
Enumerations
6. The root class in Objective-C
double
runtime
NSObject
asterisk (*)
7. Symbol used to denote a placeholder in a format string
%
compile time
delegate
polymorphism
8. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
abstract class
value
Binary
polymorphism
9. Property attribute that causes the setter to store a copy of the assigned value
floating-point
copy
static typing
nil
10. ______ data types are always zero or greate
framework
id
protocol
Unsigned
11. A ____ _____ is where you forget to free up memory
ARC
memory leak
Edit>Refactor>Convert to Objective-C ARC
properties
12. An object of unknown class. Interface is published through protocol declaration.
delegates
namespace
anonymous object
+
13. 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
conform
namespace
inheritance hierarchy
category
14. Objective-C is a _____ of the C language
remote object
Categories
superset
instance
15. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
developer intent
instance
Binary
16. _____ allow you to add new methods to existing classes
interface
doubles
Categories
designated
17. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
abstract class
framework
properties
18. 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.
+
dynamic binding
protocol
namespace
19. 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.
mutex
AppKit
reference counting
Enumerations
20. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
subclass
Protocols
Unitary
properties
21. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
abstract superclass
designated
delegates
link time
22. _____ operators take 2 operands
Binary
delegate
message expression
Protocols
23. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
id
value
deprecated
event
24. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
message expression
dynamic typing
runtime
25. _____ allow indirect access and modification of a variable's value.
instance
Pointers
@implementation
instance method
26. A compiler feature that provides automated memory management
structures
Cocoa
framework
ARC
27. C-style strings always end with a ____ character
null
binary
selector
mutex
28. The most flexible C data type: ______
delegate
class
instance
struct
29. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
NSObject
+
class
30. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
reference counting
dynamic allocation
event
null
31. This symbol denotes a method as being a class method
abstract superclass
nil
Enumerations
+
32. Objective-C's protocols are really about communicating _____ _______
developer intent
instance
Pointers
structures
33. 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.
class object
double
inheritance hierarchy
protocol
34. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
init
instance
remote message
developer intent
35. 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.
abstract class
readwrite
outlet
object
36. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
[receiver message];
dispatch table
structures
value
37. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
doubles
Product>Profile>Leaks>Profile
assignment
38. Another name for a class that's defined solely so that other classes can inherit from it.
strong
abstract superclass
designated initializer
distributed objects
39. Placing a ____ before a normal variable name gives it's address
receiver
anonymous object
memory leak
ampersand (&)
40. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
instance variable
Protocols
reference counting
precedence
41. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
readwrite
informal protocol
interface
message
42. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
cannot
asterisk (*)
selector
attributes
43. 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.
runtime
heap
designated initializer
interface
44. a+b; is an example of using a _____ operator
binary
dynamic binding
Edit>Refactor>Convert to Objective-C ARC
receiver
45. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cycles
C operators
cannot
Categories
46. Any class that's one step below another class in the inheritance hierarchy.
instance
class
cycles
subclass
47. 3 Common Float data types: float - _____ - CGFloat
cycles
double
class
runtime
48. 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
framework
synchronous message
mutex
anonymous object
49. 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
chars
doubles
structures
category
50. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
attributes
init
comma-separated
ampersand (&)