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 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.
anonymous object
formal protocol
Edit>Refactor>Convert to Objective-C ARC
NSString
2. In a home building analogy a ____ is the blueprint and the object is the house
Signed
class
asynchronous message
instance
3. A method that can operate on class objects rather than instances of the class.
class method
nonatomic
Edit>Refactor>Convert to Objective-C ARC
Enumerations
4. 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
dynamic binding
Interface Builder
asynchronous message
5. _____ allow you to add new methods to existing classes
Categories
nil
compile time
cannot
6. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
Protocols
procedural programming language
id
class object
7. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
zero
encapsulation
message expression
8. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
Encapsulation
class
abstract superclass
9. Placing a ____ before a normal variable name gives it's address
ampersand (&)
Interface Builder
nonatomic
protocol
10. Property attribute that causes the setter to store a copy of the assigned value
Interface Builder
%
remote object
copy
11. A ____ ____ is a situation where you free memory and then accidentally continue to use it
null
Cocoa
dangling pointer
designated
12. Objective-C is a _____ of the C language
assign
zero
designated
superset
13. A struct may contain multiple ____ consisting of different data types
Smalltalk
fields
object
structures
14. ______ operators take a single operand
nonatomic
delegates
Unitary
designated
15. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Encapsulation
doubles
encapsulation
weak
16. 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
designated initializer
dynamic allocation
cycles
superset
17. 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.
struct
structures
namespace
instance variable
18. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
Protocols
init
Interface Builder
polymorphism
19. 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.
adopt
square brackets
id
subclass
20. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
init
conform
Product>Profile>Leaks>Profile
encapsulation
21. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
object
designated
ampersand (&)
22. The first index in an array is valued at ____
doubles
precedence
%@
zero
23. The _____ function can be used to print a message to the console
Unitary
printf( )
chars
-
24. An architecture that facilitates communication between objects in different address spaces.
%@
distributed objects
factory
-
25. Objective-C objects should use strong or weak ______
attributes
square brackets
%
Categories
26. 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
event
attributes
factory
structures
27. Same as class object. (second way to say it.)
factory
class method
Unitary
factory object
28. 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.
runtime
strong
message expression
doubles
29. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
runtime
Signed
factory
outlet
30. Another name for a class that's defined solely so that other classes can inherit from it.
AppKit
abstract superclass
@interface
framework
31. 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.
cannot
reference counting
link time
inheritance
32. A ____ _____ is where you forget to free up memory
memory leak
implementation
@implementation
remote object
33. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
selector
null
inheritance
class
34. In Objective-C floats are more commonly used than ______
delegate
doubles
inheritance hierarchy
zero
35. 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.
abstract class
ampersand (&)
properties
[receiver message];
36. 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.
cannot
designated initializer
instance
Categories
37. Property attribute that synthesizes accessors that are not thread safe
nil
ARC
dynamic allocation
nonatomic
38. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
selector
dereference (dereferencing)
Categories
interface
39. 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.
AppKit
message expression
NSString
selector
40. A class is said to do this when it declares that it implements all the methods in the protocol.
namespace
adopt
instance
memory leak
41. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
ampersand (&)
dispatch table
Enumerations
link time
42. ____ provide a concise & elegant method for defining a discrete set of values
reference counting
Enumerations
unitary
conform
43. 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.
remote object
subclass
synchronous message
selector
44. Same as class object. (first way to say it.)
message expression
printf( )
cannot
factory
45. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
cycles
precedence
struct
class
46. The process of setting or reading the value at an address pointed to by a pointer
instance method
dereference (dereferencing)
NSString
remote object
47. Property attribute that causes the setter to store a strong reference to the assigned value
strong
-
factory
ampersand (&)
48. This symbol denotes a method as being a class method
struct
memory leak
+
Encapsulation
49. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
class
comma-separated
asynchronous message
inheritance
50. Finding the method implementation to invoke in response to the message
struct
event
dynamic binding
comma-separated
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