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 binds methods and arguments at _____ instead of compile time
Encapsulation
selector
runtime
Unsigned
2. Property attribute that synthesizes accessors that are not thread safe
nonatomic
instance method
properties
class
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).
inheritance
message expression
Product>Profile>Leaks>Profile
dangling pointer
4. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Cocoa
NSString
pointer
cannot
5. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
+
class
C operators
remote object
6. Property attribute where the setter stores the assigned value but does not perform any memory management.
delegates
nil
mutex
assign
7. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
link time
ampersand (&)
@interface
inheritance hierarchy
8. _____ allow indirect access and modification of a variable's value.
event
Pointers
adopt
class object
9. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
value
factory
designated
category
10. In Objective-C floats are more commonly used than ______
doubles
Categories
square brackets
ampersand (&)
11. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
formal protocol
NSObject
inheritance hierarchy
12. An object id with a value of 0.
class method
cannot
runtime
nil
13. Placing a ____ before a normal variable name gives it's address
receiver
ARC
ampersand (&)
dereference (dereferencing)
14. Initializer method traditionally begin with the _____ prefix
init
delegates
@implementation
ampersand (&)
15. ARC is susceptible to retain _____
class
Product>Profile>Leaks>Profile
cycles
delegates
16. 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).
implementation
factory object
nil
asynchronous message
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.
designated
message
category
instance
18. An object in another application - one that's a potential receiver for a remote message.
message
remote object
null
class
19. 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.
receiver
subclass
inheritance hierarchy
Encapsulation
20. Xcode sequence to examine an app for memory leaks or retain cycles
reference counting
-
chars
Product>Profile>Leaks>Profile
21. A method that can operate on class objects rather than instances of the class.
Categories
class method
procedures
deprecated
22. Data types are divided into two main categories: integer and ______
assign
floating-point
zero
long long
23. A variable that points to the memory address of another value
null
pointer
ARC
heap
24. The process of setting or reading the value at an address pointed to by a pointer
synchronous message
developer intent
dereference (dereferencing)
class method
25. Same as class object. (first way to say it.)
Unsigned
chars
dynamic allocation
factory
26. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
inheritance
Cocoa
synchronous message
ARC
27. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
implementation
instance method
asynchronous message
procedures
28. Any method that can be used by an instance of a class rather than by the class object.
C operators
instance method
nil
procedural programming language
29. _____ 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'.
9
Encapsulation
attributes
Cocoa
30. A message sent from one application to an object in another application.
remote message
nil
comma-separated
Enumerations
31. 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
category
heap
designated initializer
properties
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.
asynchronous message
receiver
assign
conform
33. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
%
developer intent
Encapsulation
34. Property attribute that causes the setter to store a strong reference to the assigned value
pointer
strong
Unsigned
floating-point
35. 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.
strong
receiver
dynamic allocation
id
36. The _____ function can be used to print a message to the console
floating-point
abstract superclass
nil
printf( )
37. 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.
structures
Interface Builder
class
Signed
38. 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
Encapsulation
remote object
namespace
structures
39. This symbol denotes a method as being an instance method
-
chars
developer intent
subclass
40. Objective-C's protocols are really about communicating _____ _______
developer intent
attributes
-
fields
41. Symbol used to denote a placeholder in a format string
%
structures
event
Smalltalk
42. 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.
strong
Edit>Refactor>Convert to Objective-C ARC
dynamic allocation
NSString
43. An architecture that facilitates communication between objects in different address spaces.
distributed objects
C operators
procedural programming language
-
44. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
binary
link time
event
45. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
receiver
implementation
selector
class
46. C-style strings are stored in an array of _____
dynamic binding
designated initializer
chars
unitary
47. ______ operators take a single operand
Unitary
chars
AppKit
nonatomic
48. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
Encapsulation
id
class
49. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
class
nil
doubles
50. A set of method definitions that is segregated from the rest of the class definition.
superclass
ampersand (&)
static typing
category
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