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 protocol declared as a category usually as a category of the NSObject class.
informal protocol
compile time
Edit>Refactor>Convert to Objective-C ARC
event
2. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
encapsulation
value
fields
3. ______ operators take a single operand
dangling pointer
Enumerations
Unitary
strong
4. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
reference counting
Pointers
compile time
superset
5. Data types are divided into two main categories: integer and ______
floating-point
fields
copy
binary
6. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
object
procedural programming language
pointers
weak
7. Property attribute that synthesizes only a getter for the property
strong
readonly
value
cannot
8. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
nil
static typing
init
Categories
9. In a format string the place holder for an object is ______
object
%@
zero
value
10. Same as class object. (first way to say it.)
runtime
factory
init
Encapsulation
11. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
zero
value
class
fields
12. 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.
Signed
abstract superclass
reference counting
init
13. The root class in Objective-C
pointer
NSObject
selector
Interface Builder
14. 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.
null
assign
namespace
NSObject
15. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
class method
assignment
Categories
dynamic allocation
16. 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.
dynamic typing
fields
pointer
encapsulation
17. Placing a ____ before a normal variable name gives it's address
ampersand (&)
instance variable
namespace
delegates
18. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
message
abstract superclass
nil
framework
19. 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
pointers
precedence
instance variable
20. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
superclass
delegates
class
assign
21. Objective-C's protocols are really about communicating _____ _______
instance method
conform
developer intent
init
22. An object that acts on behalf of another object.
delegate
factory
dynamic typing
factory object
23. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
superset
comma-separated
id
factory
24. A message sent from one application to an object in another application.
remote message
factory
strong
abstract superclass
25. This symbol denotes a method as being a class method
procedural programming language
+
method
developer intent
26. Objective-C objects should use strong or weak ______
attributes
runtime
dereference (dereferencing)
framework
27. Property attribute that synthesizes accessors that are not thread safe
Pointers
nonatomic
strong
static typing
28. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
zero
[receiver message];
formal protocol
compile time
29. Discovering the class of an object at runtime rather than at compile time.
Smalltalk
[receiver message];
heap
dynamic typing
30. 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.
inheritance
selector
AppKit
@interface
31. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
instance
factory object
null
32. 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.
comma-separated
floating-point
asynchronous message
reference counting
33. Another name for a class that's defined solely so that other classes can inherit from it.
runtime
properties
abstract superclass
dangling pointer
34. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Interface Builder
ARC
adopt
superclass
35. 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.
asterisk (*)
assignment
subclass
abstract class
36. 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
dispatch table
event
Edit>Refactor>Convert to Objective-C ARC
37. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
Enumerations
instance
Cocoa
38. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
%@
instance
class
class method
39. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
struct
receiver
C operators
namespace
40. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
class
doubles
dangling pointer
41. 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
Signed
synchronous message
polymorphism
Categories
42. Finding the method implementation to invoke in response to the message
class method
factory
inheritance hierarchy
dynamic binding
43. 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).
-
subclass
implementation
init
44. 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.
long long
@implementation
inheritance hierarchy
static typing
45. Square bracket syntax for calling a method
Categories
instance method
[receiver message];
pointer
46. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
delegate
precedence
@implementation
designated
47. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
copy
Unitary
@implementation
Protocols
48. An object id with a value of 0.
protocol
link time
nil
comma-separated
49. Any method that can be used by an instance of a class rather than by the class object.
readwrite
runtime
instance method
designated
50. 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
instance method
message expression
chars
structures
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