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 compiler feature that provides automated memory management
ARC
assign
value
NSString
2. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
object
ARC
inheritance
dereference (dereferencing)
3. Xcode sequence to convert non-ARC apps to ARC
assign
9
Edit>Refactor>Convert to Objective-C ARC
anonymous object
4. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
dynamic typing
category
subclass
static typing
5. Property attribute that synthesizes both a getter and setter for the property
Edit>Refactor>Convert to Objective-C ARC
dynamic typing
readwrite
synchronous message
6. Instance variables are optional in iOS if ________ are used
class method
superclass
assign
properties
7. There are ____ fundamental building blocks in Objective-C
9
printf( )
dynamic typing
ampersand (&)
8. A method that can operate on class objects rather than instances of the class.
@implementation
delegates
superset
class method
9. 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
receiver
comma-separated
NSString
doubles
10. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
protocol
Cocoa
compile time
11. This symbol denotes a method as being an instance method
outlet
Edit>Refactor>Convert to Objective-C ARC
-
protocol
12. 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.
Edit>Refactor>Convert to Objective-C ARC
inheritance hierarchy
id
printf( )
13. Same as class object. (first way to say it.)
factory
link time
binary
NSString
14. 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.
nil
null
id
dangling pointer
15. 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.
printf( )
procedures
class object
object
16. Another name for a class that's defined solely so that other classes can inherit from it.
+
conform
abstract superclass
informal protocol
17. 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.
abstract class
asynchronous message
NSString
Smalltalk
18. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
implementation
binary
assignment
static typing
19. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
cannot
attributes
double
event
20. In object-oriented programming a procedure that can be executed by an object.
floating-point
struct
method
dynamic allocation
21. _____ allow indirect access and modification of a variable's value.
Pointers
assign
long long
encapsulation
22. In a format string the place holder for an object is ______
struct
factory object
%@
dangling pointer
23. 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).
[receiver message];
%
strong
message expression
24. In object-oriented programming the object that is sent a message.
receiver
formal protocol
dereference (dereferencing)
event
25. This symbol denotes a method as being a class method
implementation
asterisk (*)
category
+
26. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
value
square brackets
class
C operators
27. ______ operators take a single operand
memory leak
informal protocol
Unitary
instance method
28. Any method that can be used by an instance of a class rather than by the class object.
Pointers
instance method
delegate
properties
29. An object of unknown class. Interface is published through protocol declaration.
C operators
anonymous object
null
designated initializer
30. 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.
floating-point
instance variable
@implementation
Signed
31. Property attribute that synthesizes only a getter for the property
Enumerations
readonly
conform
structures
32. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
square brackets
mutex
assignment
9
33. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Unsigned
adopt
binary
protocol
34. 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.
Smalltalk
reference counting
NSString
factory
35. Symbol used to denote a placeholder in a format string
protocol
formal protocol
%
null
36. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
distributed objects
NSString
subclass
deprecated
37. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
informal protocol
framework
subclass
adopt
38. The process of setting or reading the value at an address pointed to by a pointer
NSString
informal protocol
dispatch table
dereference (dereferencing)
39. The root class in Objective-C
conform
formal protocol
ARC
NSObject
40. 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.
dereference (dereferencing)
Product>Profile>Leaks>Profile
remote message
instance
41. In Objective-C floats are more commonly used than ______
procedural programming language
doubles
Interface Builder
designated
42. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
class object
compile time
delegates
runtime
43. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
NSString
value
Protocols
anonymous object
44. A variable that points to the memory address of another value
pointer
printf( )
floating-point
framework
45. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
event
mutex
init
46. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
runtime
precedence
abstract class
@implementation
47. a+b; is an example of using a _____ operator
designated initializer
instance method
dynamic allocation
binary
48. ______ data types are always zero or greate
instance
pointers
zero
Unsigned
49. Xcode sequence to examine an app for memory leaks or retain cycles
9
Product>Profile>Leaks>Profile
doubles
Categories
50. An architecture that facilitates communication between objects in different address spaces.
Cocoa
message expression
distributed objects
binary
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