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+b; is an example of using a _____ operator
reference counting
binary
printf( )
@interface
2. 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
Interface Builder
factory object
superclass
conform
3. C-style strings always end with a ____ character
receiver
[receiver message];
null
polymorphism
4. 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
instance
anonymous object
memory leak
5. Property attribute that synthesizes only a getter for the property
mutex
readonly
compile time
struct
6. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
class
instance method
deprecated
delegates
7. A ____ _____ is where you forget to free up memory
polymorphism
memory leak
abstract superclass
fields
8. Any method that can be used by an instance of a class rather than by the class object.
instance method
zero
synchronous message
C operators
9. _____ allow indirect access and modification of a variable's value.
protocol
Pointers
runtime
class
10. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Enumerations
Smalltalk
protocol
Cocoa
11. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
designated initializer
subclass
event
readwrite
12. 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.
inheritance hierarchy
class object
memory leak
doubles
13. ____ provide a concise & elegant method for defining a discrete set of values
Edit>Refactor>Convert to Objective-C ARC
cannot
assignment
Enumerations
14. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
abstract superclass
fields
Pointers
15. ______ data types are always zero or greate
dynamic binding
static typing
Unsigned
designated
16. Objective-C objects should use strong or weak ______
attributes
formal protocol
class
static typing
17. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
+
class
readwrite
18. 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
developer intent
designated initializer
Signed
properties
19. An object id with a value of 0.
instance method
id
nil
Unitary
20. 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
Enumerations
asynchronous message
dynamic allocation
21. This symbol denotes a method as being an instance method
-
receiver
designated
ARC
22. The process of setting or reading the value at an address pointed to by a pointer
selector
dynamic allocation
superset
dereference (dereferencing)
23. In object-oriented programming the object that is sent a message.
receiver
[receiver message];
value
structures
24. Objective-C binds methods and arguments at _____ instead of compile time
class object
runtime
heap
deprecated
25. Instance variables are optional in iOS if ________ are used
link time
properties
method
Encapsulation
26. A struct may contain multiple ____ consisting of different data types
instance variable
delegate
fields
implementation
27. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
@interface
procedural programming language
implementation
outlet
28. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
memory leak
anonymous object
Unsigned
procedures
29. A message sent from one application to an object in another application.
event
init
Interface Builder
remote message
30. Property attribute that synthesizes both a getter and setter for the property
readwrite
runtime
nonatomic
adopt
31. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
receiver
adopt
AppKit
32. a++; is an example of using a _____ operator
unitary
instance variable
square brackets
runtime
33. Symbol used to denote a placeholder in a format string
%
nil
Pointers
factory object
34. 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.
formal protocol
polymorphism
ARC
designated initializer
35. Initializer method traditionally begin with the _____ prefix
memory leak
deprecated
init
value
36. An object that acts on behalf of another object.
delegates
memory leak
fields
delegate
37. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
null
Cocoa
polymorphism
mutex
38. Objective-C methods are called using ____ _____
square brackets
heap
polymorphism
mutex
39. 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.
copy
namespace
assignment
pointers
40. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
ARC
zero
asterisk (*)
Product>Profile>Leaks>Profile
41. 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
value
factory object
structures
Cocoa
42. Property attribute that synthesizes accessors that are not thread safe
square brackets
Product>Profile>Leaks>Profile
nonatomic
@interface
43. In Objective-C floats are more commonly used than ______
doubles
deprecated
superset
nil
44. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
object
category
chars
45. An object in another application - one that's a potential receiver for a remote message.
runtime
remote object
implementation
Cocoa
46. _____ operators take 2 operands
instance method
subclass
Binary
class method
47. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
synchronous message
ARC
encapsulation
value
48. Another name for a class that's defined solely so that other classes can inherit from it.
structures
abstract superclass
selector
NSString
49. Same as class object. (first way to say it.)
%@
Smalltalk
factory
dangling pointer
50. C-style strings are stored in an array of _____
delegates
square brackets
instance method
chars
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