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. C-style strings always end with a ____ character
null
binary
dynamic allocation
Product>Profile>Leaks>Profile
2. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
init
inheritance
nil
zero
3. Instance variables are optional in iOS if ________ are used
remote object
inheritance
properties
procedures
4. In object-oriented programming a procedure that can be executed by an object.
designated initializer
comma-separated
method
framework
5. 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.
assign
class
NSObject
abstract class
6. A set of method definitions that is segregated from the rest of the class definition.
category
Binary
init
mutex
7. Same as class object. (second way to say it.)
factory object
class
designated
protocol
8. An object of unknown class. Interface is published through protocol declaration.
anonymous object
9
subclass
implementation
9. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
cannot
object
cycles
distributed objects
10. _____ data types can be both positive and negative
Cocoa
developer intent
runtime
Signed
11. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
asynchronous message
NSString
method
12. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
binary
polymorphism
dangling pointer
pointers
13. 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
synchronous message
structures
anonymous object
Enumerations
14. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
cannot
Smalltalk
inheritance hierarchy
15. The most flexible C data type: ______
struct
reference counting
precedence
dereference (dereferencing)
16. Property attribute that causes the setter to store a copy of the assigned value
subclass
developer intent
copy
namespace
17. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
chars
weak
event
subclass
18. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
dynamic allocation
Protocols
adopt
Unsigned
19. ____ provide a concise & elegant method for defining a discrete set of values
assignment
cannot
mutex
Enumerations
20. This symbol denotes a method as being an instance method
reference counting
-
inheritance
@implementation
21. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
ARC
Smalltalk
precedence
link time
22. When creating a class header file you begin with the _____ keyword and close with the @end keyword
method
cannot
outlet
@interface
23. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
developer intent
namespace
framework
superset
24. Data types are divided into two main categories: integer and ______
class
floating-point
strong
pointer
25. 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.
cannot
synchronous message
memory leak
id
26. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
superset
nonatomic
cannot
Product>Profile>Leaks>Profile
27. Square bracket syntax for calling a method
[receiver message];
reference counting
compile time
Encapsulation
28. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
factory
static typing
procedures
memory leak
29. 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.
dynamic allocation
long long
-
Unsigned
30. 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.
comma-separated
category
formal protocol
-
31. In Objective-C floats are more commonly used than ______
doubles
Smalltalk
nil
developer intent
32. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
encapsulation
structures
deprecated
struct
33. Xcode sequence to convert non-ARC apps to ARC
conform
Edit>Refactor>Convert to Objective-C ARC
instance method
protocol
34. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
readwrite
class
dynamic typing
chars
35. All objects are created on the _____
object
inheritance hierarchy
heap
memory leak
36. 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.
superclass
ARC
polymorphism
selector
37. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
runtime
asterisk (*)
anonymous object
38. Three main categories of more complicated data structures:_______ - arrays and structs
Unsigned
doubles
mutex
pointers
39. Initializer method traditionally begin with the _____ prefix
asterisk (*)
synchronous message
init
class
40. Discovering the class of an object at runtime rather than at compile time.
designated initializer
Unitary
dynamic typing
class method
41. A method that can operate on class objects rather than instances of the class.
long long
cannot
class method
encapsulation
42. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Cocoa
designated
Signed
adopt
43. 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.
id
inheritance hierarchy
Categories
conform
44. 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
conform
ARC
Encapsulation
delegate
45. Any method that can be used by an instance of a class rather than by the class object.
instance method
mutex
deprecated
dynamic binding
46. 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
@implementation
NSString
strong
ampersand (&)
47. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
abstract class
runtime
reference counting
readonly
48. Property attribute that causes the setter to store a strong reference to the assigned value
strong
pointer
developer intent
interface
49. 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.
message
Interface Builder
instance
-
50. ______ operators take a single operand
asynchronous message
nil
Unitary
inheritance
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