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. 3 Common Float data types: float - _____ - CGFloat
double
link time
weak
informal protocol
2. Property attribute where the setter stores the assigned value but does not perform any memory management.
Unsigned
precedence
cannot
assign
3. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
AppKit
Encapsulation
memory leak
4. Discovering the class of an object at runtime rather than at compile time.
Signed
dynamic typing
strong
Enumerations
5. Property attribute that causes the setter to store a strong reference to the assigned value
assignment
%
strong
readwrite
6. a+b; is an example of using a _____ operator
%@
binary
value
message expression
7. 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.
Unitary
delegates
AppKit
value
8. Same as class object. (second way to say it.)
class method
event
precedence
factory object
9. Same as class object. (first way to say it.)
formal protocol
factory
precedence
dispatch table
10. A class is said to do this when it declares that it implements all the methods in the protocol.
reference counting
Interface Builder
class
adopt
11. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
ARC
ampersand (&)
inheritance
formal protocol
12. 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
C operators
NSString
instance
13. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
C operators
method
designated
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).
message expression
reference counting
[receiver message];
interface
15. 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
Unitary
polymorphism
comma-separated
16. All objects are created on the _____
NSString
heap
ampersand (&)
class method
17. 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
struct
Encapsulation
pointers
18. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
polymorphism
Pointers
class
assignment
19. _____ data types can be both positive and negative
fields
Signed
namespace
copy
20. This symbol denotes a method as being an instance method
square brackets
procedures
-
fields
21. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
structures
fields
category
22. _____ allow you to add new methods to existing classes
Categories
readwrite
Smalltalk
framework
23. 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.
compile time
event
id
copy
24. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
init
deprecated
instance
superclass
25. A protocol declared as a category usually as a category of the NSObject class.
Smalltalk
ampersand (&)
ARC
informal protocol
26. a++; is an example of using a _____ operator
unitary
dispatch table
binary
class
27. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
binary
mutex
%@
value
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'.
Encapsulation
Enumerations
memory leak
namespace
29. The process of setting or reading the value at an address pointed to by a pointer
assignment
dereference (dereferencing)
outlet
C operators
30. The root class in Objective-C
Encapsulation
link time
NSObject
Interface Builder
31. 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
instance variable
square brackets
assignment
32. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
instance method
selector
cannot
33. A message sent from one application to an object in another application.
superset
dereference (dereferencing)
remote message
informal protocol
34. Placing a ____ before a normal variable name gives it's address
chars
square brackets
selector
ampersand (&)
35. Xcode sequence to convert non-ARC apps to ARC
Product>Profile>Leaks>Profile
printf( )
instance method
Edit>Refactor>Convert to Objective-C ARC
36. Property attribute that causes the setter to store a copy of the assigned value
floating-point
copy
value
memory leak
37. A method that can operate on class objects rather than instances of the class.
unitary
NSObject
C operators
class method
38. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
asterisk (*)
framework
event
abstract class
39. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
structures
asterisk (*)
Categories
runtime
40. A set of method definitions that is segregated from the rest of the class definition.
procedural programming language
Protocols
category
runtime
41. Symbol used to denote a placeholder in a format string
polymorphism
comma-separated
%
double
42. Property attribute that synthesizes only a getter for the property
unitary
dynamic binding
readonly
event
43. C-style strings always end with a ____ character
strong
null
floating-point
framework
44. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
dispatch table
runtime
dynamic allocation
weak
45. 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
comma-separated
synchronous message
id
binary
46. An object id with a value of 0.
nil
remote object
square brackets
delegates
47. 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.
namespace
factory
dereference (dereferencing)
reference counting
48. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
comma-separated
namespace
@interface
procedural programming language
49. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
[receiver message];
struct
instance variable
superclass
50. An object of unknown class. Interface is published through protocol declaration.
anonymous object
Pointers
structures
informal protocol
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