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. 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
distributed objects
synchronous message
dispatch table
compile time
2. 3 Common Float data types: float - _____ - CGFloat
instance variable
readwrite
double
category
3. 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.
Signed
asynchronous message
cycles
Cocoa
4. This symbol denotes a method as being a class method
Unitary
framework
NSObject
+
5. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
@implementation
long long
superset
anonymous object
6. Property attribute that synthesizes accessors that are not thread safe
procedural programming language
nonatomic
delegate
double
7. _____ allow you to add new methods to existing classes
Categories
synchronous message
heap
factory
8. In a home building analogy a ____ is the blueprint and the object is the house
synchronous message
class
reference counting
attributes
9. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
designated initializer
protocol
static typing
instance method
10. 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.
delegates
conform
outlet
@implementation
11. A method that can operate on class objects rather than instances of the class.
%@
receiver
selector
class method
12. A ____ _____ is where you forget to free up memory
-
Signed
framework
memory leak
13. A message sent from one application to an object in another application.
remote message
%
pointers
value
14. An architecture that facilitates communication between objects in different address spaces.
inheritance hierarchy
dispatch table
distributed objects
procedural programming language
15. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
conform
message expression
@implementation
superset
16. An object of unknown class. Interface is published through protocol declaration.
protocol
instance
anonymous object
runtime
17. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
square brackets
cycles
synchronous message
Smalltalk
18. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
chars
fields
inheritance hierarchy
19. The _____ function can be used to print a message to the console
cycles
delegates
printf( )
designated
20. There are ____ fundamental building blocks in Objective-C
link time
9
assignment
deprecated
21. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
precedence
class method
designated
cannot
22. A class is said to do this when it declares that it implements all the methods in the protocol.
factory object
adopt
interface
compile time
23. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
fields
instance variable
class object
24. This symbol denotes a method as being an instance method
-
floating-point
factory object
subclass
25. 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.
C operators
abstract superclass
instance
instance variable
26. A set of method definitions that is segregated from the rest of the class definition.
category
designated
selector
conform
27. a++; is an example of using a _____ operator
ARC
polymorphism
unitary
reference counting
28. Placing a ____ before a normal variable name gives it's address
subclass
factory
Signed
ampersand (&)
29. Property attribute that causes the setter to store a copy of the assigned value
@interface
framework
Smalltalk
copy
30. 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.
selector
factory
inheritance
dynamic allocation
31. 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.
Edit>Refactor>Convert to Objective-C ARC
selector
floating-point
abstract superclass
32. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Unitary
AppKit
%@
protocol
33. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
remote message
instance variable
properties
34. C-style strings are stored in an array of _____
abstract superclass
fields
chars
formal protocol
35. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
instance variable
assignment
fields
superclass
36. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
precedence
double
inheritance hierarchy
37. In a format string the place holder for an object is ______
asterisk (*)
%@
deprecated
value
38. 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.
runtime
AppKit
adopt
struct
39. 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).
instance
assign
NSString
message expression
40. Objective-C methods are called using ____ _____
assignment
weak
square brackets
link time
41. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
instance method
precedence
procedural programming language
%
42. C-style strings always end with a ____ character
compile time
null
NSObject
polymorphism
43. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
NSObject
formal protocol
polymorphism
44. 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
delegate
NSString
delegates
init
45. Property attribute that causes the setter to store a strong reference to the assigned value
namespace
synchronous message
strong
message expression
46. Data types are divided into two main categories: integer and ______
floating-point
double
C operators
instance
47. A compiler feature that provides automated memory management
ARC
null
method
9
48. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
implementation
NSObject
assignment
NSString
49. All objects are created on the _____
heap
compile time
C operators
message
50. _____ 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'.
Encapsulation
Categories
polymorphism
protocol
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