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 binds methods and arguments at _____ instead of compile time
runtime
floating-point
polymorphism
@interface
2. a++; is an example of using a _____ operator
printf( )
unitary
namespace
attributes
3. 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
Binary
NSString
instance method
link time
4. 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.
zero
doubles
inheritance hierarchy
abstract class
5. The root class in Objective-C
zero
NSObject
chars
event
6. To destroy an object set the variable that points to it to _____
readonly
selector
zero
nil
7. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
object
binary
Protocols
deprecated
8. Symbol used to denote a placeholder in a format string
dereference (dereferencing)
properties
%
pointer
9. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
outlet
AppKit
assignment
designated
10. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
remote message
class
Edit>Refactor>Convert to Objective-C ARC
comma-separated
11. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
NSString
factory object
adopt
comma-separated
12. 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
precedence
distributed objects
pointers
13. Xcode sequence to examine an app for memory leaks or retain cycles
Interface Builder
class
Product>Profile>Leaks>Profile
adopt
14. Objective-C methods are called using ____ _____
cycles
framework
assignment
square brackets
15. Discovering the class of an object at runtime rather than at compile time.
dereference (dereferencing)
precedence
dynamic typing
delegate
16. C-style strings always end with a ____ character
strong
remote message
cycles
null
17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
assign
Categories
formal protocol
framework
18. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
long long
dynamic binding
double
procedural programming language
19. _____ allow you to add new methods to existing classes
readonly
class method
Categories
category
20. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
anonymous object
Product>Profile>Leaks>Profile
abstract class
properties
21. 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
synchronous message
class object
Protocols
dispatch table
22. A protocol declared as a category usually as a category of the NSObject class.
Protocols
informal protocol
delegates
unitary
23. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
fields
protocol
memory leak
24. ____ provide a concise & elegant method for defining a discrete set of values
adopt
polymorphism
Enumerations
selector
25. 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.
class object
dynamic allocation
readonly
cycles
26. An object of unknown class. Interface is published through protocol declaration.
zero
link time
C operators
anonymous object
27. A ____ _____ is where you forget to free up memory
reference counting
memory leak
NSObject
category
28. An architecture that facilitates communication between objects in different address spaces.
factory object
distributed objects
chars
9
29. 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
anonymous object
instance variable
attributes
30. Property attribute that synthesizes accessors that are not thread safe
class method
nonatomic
event
Unitary
31. Instance variables are optional in iOS if ________ are used
static typing
properties
developer intent
compile time
32. In Objective-C floats are more commonly used than ______
doubles
value
distributed objects
static typing
33. 3 Common Float data types: float - _____ - CGFloat
dynamic typing
pointers
subclass
double
34. C-style strings are stored in an array of _____
floating-point
C operators
assignment
chars
35. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
procedural programming language
zero
mutex
instance
36. Property attribute that synthesizes both a getter and setter for the property
dispatch table
readwrite
+
binary
37. ARC is susceptible to retain _____
properties
cycles
instance
runtime
38. Square bracket syntax for calling a method
[receiver message];
Smalltalk
9
ARC
39. 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
Cocoa
selector
Categories
40. Placing a ____ before a normal variable name gives it's address
factory
C operators
ampersand (&)
Smalltalk
41. A compiler feature that provides automated memory management
receiver
Interface Builder
ARC
Encapsulation
42. Data types are divided into two main categories: integer and ______
polymorphism
asterisk (*)
dynamic typing
floating-point
43. Finding the method implementation to invoke in response to the message
abstract class
dynamic binding
printf( )
developer intent
44. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
reference counting
precedence
implementation
namespace
45. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
readwrite
dispatch table
method
Edit>Refactor>Convert to Objective-C ARC
46. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
properties
@implementation
asterisk (*)
precedence
47. The most flexible C data type: ______
struct
runtime
[receiver message];
ampersand (&)
48. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
remote object
superclass
AppKit
reference counting
49. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
doubles
Product>Profile>Leaks>Profile
remote object
static typing
50. _____ allow indirect access and modification of a variable's value.
Product>Profile>Leaks>Profile
Pointers
zero
Protocols
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests