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
properties
formal protocol
doubles
runtime
2. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
assign
procedures
ampersand (&)
Smalltalk
3. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
designated initializer
framework
synchronous message
printf( )
4. In object-oriented programming a procedure that can be executed by an object.
superset
method
Cocoa
asterisk (*)
5. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
id
delegate
asterisk (*)
AppKit
6. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Cocoa
abstract class
static typing
@interface
7. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
Cocoa
Encapsulation
dynamic allocation
Pointers
8. An object of unknown class. Interface is published through protocol declaration.
asterisk (*)
fields
anonymous object
nonatomic
9. A ____ _____ is where you forget to free up memory
Product>Profile>Leaks>Profile
class method
memory leak
anonymous object
10. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
instance variable
attributes
double
nonatomic
11. Objective-C objects should use strong or weak ______
asynchronous message
factory
class
attributes
12. This symbol denotes a method as being a class method
memory leak
+
null
Categories
13. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
outlet
structures
unitary
14. 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).
attributes
message expression
instance variable
asterisk (*)
15. a++; is an example of using a _____ operator
link time
instance method
developer intent
unitary
16. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
chars
strong
attributes
C operators
17. Property attribute that causes the setter to store a strong reference to the assigned value
instance method
mutex
strong
attributes
18. The root class in Objective-C
ampersand (&)
nonatomic
NSObject
object
19. Same as class object. (first way to say it.)
implementation
class
factory
delegates
20. Symbol used to denote a placeholder in a format string
%
namespace
designated initializer
heap
21. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
link time
remote object
designated
Protocols
22. A compiler feature that provides automated memory management
Protocols
9
ARC
@interface
23. 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
distributed objects
outlet
conform
factory object
24. Objective-C is a _____ of the C language
subclass
Edit>Refactor>Convert to Objective-C ARC
receiver
superset
25. Instance variables are optional in iOS if ________ are used
message expression
adopt
message
properties
26. _____ allow indirect access and modification of a variable's value.
doubles
deprecated
Pointers
selector
27. A message sent from one application to an object in another application.
C operators
namespace
interface
remote message
28. 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.
instance
selector
binary
NSObject
29. Property attribute that synthesizes accessors that are not thread safe
class object
category
procedural programming language
nonatomic
30. Finding the method implementation to invoke in response to the message
long long
dangling pointer
dynamic binding
instance
31. Objective-C methods are called using ____ _____
binary
NSObject
square brackets
encapsulation
32. An architecture that facilitates communication between objects in different address spaces.
Enumerations
dangling pointer
distributed objects
weak
33. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
NSString
synchronous message
outlet
34. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
interface
Pointers
runtime
35. A variable that points to the memory address of another value
dynamic typing
pointer
printf( )
superset
36. There are ____ fundamental building blocks in Objective-C
assignment
9
Pointers
instance method
37. 3 Common Float data types: float - _____ - CGFloat
remote message
informal protocol
double
Protocols
38. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
long long
category
superset
39. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
deprecated
delegates
formal protocol
encapsulation
40. Xcode sequence to examine an app for memory leaks or retain cycles
unitary
protocol
Protocols
Product>Profile>Leaks>Profile
41. In a home building analogy a ____ is the blueprint and the object is the house
strong
class
class method
double
42. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
designated
NSString
long long
Pointers
43. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
Unsigned
encapsulation
anonymous object
method
44. 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.
ampersand (&)
link time
unitary
dispatch table
45. ARC is susceptible to retain _____
copy
Interface Builder
cycles
Encapsulation
46. _____ operators take 2 operands
factory
encapsulation
Binary
conform
47. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
instance
Smalltalk
encapsulation
9
48. Another name for a class that's defined solely so that other classes can inherit from it.
nonatomic
category
remote message
abstract superclass
49. ______ data types are always zero or greate
Binary
NSString
Unsigned
class
50. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
strong
class
init
compile time
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