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 borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
remote object
pointers
Encapsulation
2. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
Signed
object
developer intent
%
3. 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).
runtime
message expression
9
Categories
4. The most flexible C data type: ______
binary
subclass
struct
floating-point
5. All objects are created on the _____
heap
readwrite
deprecated
Signed
6. Any class that's one step below another class in the inheritance hierarchy.
remote message
subclass
selector
Protocols
7. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
framework
strong
%
8. 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
NSString
square brackets
printf( )
factory object
9. A struct may contain multiple ____ consisting of different data types
nil
id
fields
compile time
10. 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.
reference counting
event
asynchronous message
delegates
11. 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.
value
id
inheritance
synchronous message
12. 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
structures
asynchronous message
readonly
Edit>Refactor>Convert to Objective-C ARC
13. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
%@
assign
properties
weak
14. This symbol denotes a method as being a class method
+
init
Interface Builder
conform
15. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
synchronous message
message
[receiver message];
compile time
16. Objective-C objects should use strong or weak ______
NSString
synchronous message
compile time
attributes
17. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Binary
Smalltalk
interface
superclass
18. To destroy an object set the variable that points to it to _____
dynamic binding
adopt
cycles
nil
19. 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.
instance
Pointers
namespace
%
20. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
fields
compile time
floating-point
outlet
21. Same as class object. (second way to say it.)
Cocoa
factory object
dangling pointer
%
22. Property attribute that causes the setter to store a copy of the assigned value
instance variable
copy
assign
@implementation
23. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
runtime
synchronous message
Interface Builder
cannot
24. Xcode sequence to examine an app for memory leaks or retain cycles
distributed objects
Product>Profile>Leaks>Profile
instance method
@interface
25. 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).
mutex
runtime
implementation
dynamic allocation
26. In Objective-C floats are more commonly used than ______
strong
NSObject
Interface Builder
doubles
27. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
init
Enumerations
interface
Unitary
28. _____ 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'.
-
id
Encapsulation
memory leak
29. A ____ _____ is where you forget to free up memory
message
memory leak
class method
deprecated
30. 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.
cannot
inheritance hierarchy
asynchronous message
interface
31. 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
class
Unsigned
class method
32. Property attribute that synthesizes both a getter and setter for the property
weak
-
pointers
readwrite
33. _____ data types can be both positive and negative
null
object
Signed
Pointers
34. A variable that points to the memory address of another value
nonatomic
pointer
event
runtime
35. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
instance method
procedures
Edit>Refactor>Convert to Objective-C ARC
nonatomic
36. Instance variables are optional in iOS if ________ are used
properties
instance
nonatomic
procedures
37. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
class object
conform
interface
strong
38. a+b; is an example of using a _____ operator
pointers
NSObject
binary
struct
39. 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.
binary
Signed
[receiver message];
dynamic allocation
40. An object that acts on behalf of another object.
assignment
assign
delegate
Pointers
41. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dispatch table
dangling pointer
compile time
selector
42. 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
mutex
synchronous message
message
+
43. ______ data types are always zero or greate
polymorphism
ARC
Smalltalk
Unsigned
44. Property attribute where the setter stores the assigned value but does not perform any memory management.
comma-separated
assign
category
Interface Builder
45. Objective-C's protocols are really about communicating _____ _______
developer intent
inheritance
object
comma-separated
46. In a home building analogy a ____ is the blueprint and the object is the house
class
%@
class object
instance variable
47. There are ____ fundamental building blocks in Objective-C
9
cannot
pointer
strong
48. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
Interface Builder
dereference (dereferencing)
cycles
49. 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.
abstract class
Signed
Interface Builder
dynamic typing
50. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
delegate
framework
adopt
pointers
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