1.
Objective-C uses the concept of ______ which allows modifications to an
existing class in-place.
Answers:
•
categories
• inheritance
• class copying
• private classes
2.
What does the term "nil" mean in reference to a variable?
Answers:
• It doesn't affect the
value of a variable at all.
• "nil" is
only used inreference to exception management
• "nil" is
incorrect it should be dispose
• No
object is in reference to the variable
3.
There is only one computer you can code iOS on.
Which is it?
Answers:
• Dell
• Mac
• ASUS
• XBox360
4.
Does the current iOS version support multitasking?
Answers:
• No
• Yes
5.
What framework(s) make up Cocoa?
Answers:
• System.Web
• AppKit
and Foundation
• Spring
• MVC
6.
Imutable objects can't be__:
Answers:
• moved
• changed
• started
• disposed
7.
What are atomic and nonatomic associated with?
Answers:
•
Multithreading
• Exception handling
• Mac Lion
• iPhone 3
8.
The "NS" in NSObject stands for:
Answers:
• Name Steve
• Nothing Short
• Nasa Studios
• Next
Step
9.
In the Interface Builder, the _______ contains stock items in Cocoa that you
can drag-and-drop into your application.
Answers:
• Application Window
• Document Window
•
Library Palette
• Menu Bar
10.
The ________ object is the application's main controlling object.
Answers:
• NSDocument
• NSWindow
• NSApp
• NSApplication
11.
What is the proper statement?
Answers:
• #import
"MyCodeAppDelegate.h";
•
#import "MyCodeAppDelegate.h"
• #import
"MyCodeAppDelegate.h"...
• &import
"MyCodeAppDelegate.h"
12.
________ is the preferred language for Cocoa applications.
Answers:
• Java
•
Objective-C
• PHP
• C++
13.
The Cocoa Framework is OOP. Why is that
helpful?
Answers:
• Its not worth the time
to learn
• You cannot reuse code
once it exists
• Everytime you want to
uses code that someone has written, you have to rewrite every line
• OOP
allows the coder to reuse and customize existing objects into their new code.
14.
True or False? Cocoa uses the Model-View-Controller (MVC) design pattern.
Answers:
• False
• True
15.
Which language are iOS apps coded in?
Answers:
• C++
• C#.Net
• J2EE
•
Objective-C
16.
Which statement is correct:
Answers:
• !
(void)drawRect:(NSRect)rect
• -
[void]drawRect:(NSRect)rect
• /
(void)drawRect:(NSRect)rect
• -
(void)drawRect:(NSRect)rect
17.
Which objects DO exist in the Cocoa framework?
Answers:
• LSLog
• MSLog
• NSLog
• KSLog
18.
Before you can begin,you must download and install the ____.
Answers:
• ZIP FILE
• iOS
SDK
• Windows OS
• Microsoft Word
19.
All of Cocoa's built in classes start with:
Answers:
• MS
• postive attitude
• NS
• A letter
20.
What IDE does iOS use?
Answers:
• Eclipse
• Xcode
• Visual Studio
• Apple
21.
The Cocoa API for iOS is called?
Answers:
• JellyBean
• Cocoa
Touch
• Chocolate Cake
• Cocoa Gesture
22. _______ provides Cocoa as its object-oriented
appliciation programming interface (API).
Answers:
• Sun
• Microsoft
• Apple
• Oracle
23. Which statement is correct:
Answers:
• NSString* myXstring.
• NSString* myXstring%
•
NSString* myXstring;
• NSString* myXstring,
24. Which extension file is NOT in use in Xcode?
Answers:
• Possesion.m
• Possession.xib
•
Possesion.aspx
• Possession.h
25. Which is the correct statement:
Answers:
• $import
<UIKit/UIKit.h>
• &import
<UIKit/UIKit.h
• ()import
<UIKit/UIKit.h>
•
#import <UIKit/UIKit.h>
26. True or False? The two most important Mac OS
X developer tools are XCode (formerly Project Builder) and Interface Builder.
Answers:
• False
• True
27. Which is the correct statement:
Answers:
• int x == 0:
• int x = 0:
• int x
= 0;
• integer x == 0;
28. ______ is the root class for most classes in
the Objective-C class hierarchy.
Answers:
• NSLog
• NSResponder
• NSEvent
•
NSObject
29. What does a debugger do?
Answers:
• It is used to
troubleshoot OS problems with iPad
• It is used to create
UIViews in Xcode
• Helps
finds errors in your code.
• It sets up your iOS
environment
30. Which one is NOT a UI control in Xcode?
Answers:
• ASP
Textbox
• Label
• View Controller
• Page View Controller
31. AutoReleasePool BEST refers to:
Answers:
• Oracle
• Memory
Management
• Xcode functionality
• Exception classes
32. What is protocol?
Answers:
• A list of variables
• Part
of classes interface
• Not used
• Used in Java
33. ________ is used to create application
interfaces and make connections between interface objects.
Answers:
• Dock
• XCode
•
Interface Builder
• Aqua
34. _______ is Cocoa's integrated development
environment (IDE).
Answers:
• XCode
• Dock
• Interface Builder
• Aqua
35. Which objects are NOT part of Cocoa
framework?
Answers:
• NSMutableDictionary
• NSPoint
• NSSting
•
NSApple
36. Which objects are NOT part of Cocoa
framework?
Answers:
• NSMutableDictionary
• NSPoint
• NSSting
•
NSApple
37. True or False? NSDictionary objects can be
changed after initialization.
Answers:
• False
• True
38. A ________ is a list of information read by
applications while they are launching.
Answers:
• function
• class
• method
•
property list
39. The ________ is a framework that defines a
base layer of Objective-C classes.
Answers:
• Core Data
• Application Kit
•
Foundation Kit
• Aqua
40. Which statement is correct:
Answers:
• @interface GCWhatUp '
NSView {} @end
• @interface GCWhatUp :
NSView [] @end
•
@interface GCWhatUp : NSView {} @end
• @interface GCWhatUp :
MSView {} @end
41. What does GCD stand for?
Answers:
• Grand
Central Dispatch
• Great Central
Dispatcher
• Grand Control Display
• General Code Destroyer
42. True or False? A Cocoa program may not be
compiled from a command-line prompt.
Answers:
• False
• True
43. What is the proper statement?
Answers:
• #import
"MyCodeAppDelegate.h"...
• &import
"MyCodeAppDelegate.h"
•
#import "MyCodeAppDelegate.h"
• #import
"MyCodeAppDelegate.h";
44. True or False? Objective-C classes are
objects.
Answers:
• False
• True
45. The most commonly used debugger used with
Cocoa is ______.
Answers:
• Mac OS X
• GDB
• Visual Studio debugger
• Aqua
46. In Objective-C, methods are represented by a
______ which is a string describing the method to call.
Answers:
• cursor
• category
•
selector
• object
47. __________ is NOT one of the Cocoa
Objective-C object libraries.
Answers:
• Core Data
• Foundation Kit
• Touch
Kit
• Application Kit
48. ______ class will implement a mutex.
Answers:
• NSApplication
• NSCell
• NSResponder
• NSLock
49. In the XCode window, the _____ lists files,
search results, and build settings.
Answers:
•
Project View
• Interface Builder
• File View
• Document Window
50. True or False? Objective-C does not have a
constructor or destructor.
Answers:
• True
• False
51. Which control wold you want to use as a data
source?
Answers:
• Button
• View Controller
•
UITableView
• label
52. ______ is Apple's computing infrastructure
that consists of Mach, Unix services, and Mac OS X networking and filesystems.
Answers:
• Darwin
• Cocoa
• Aqua
• Interface Builder
53. _______ class allows you to journal events
in your application.
Answers:
• NSResponder
• NSApplication
• NSDocument
• NSLog
54. _______ is the object persistence framework
included with Foundation Kit.
Answers:
• Core
Data
• Interface Builder
• Application Kit
• Project Builder
55. Which control can the user add a small piece
of data?
Answers:
• Button
• Label
•
UITextField
• View Controller
56. The Mac OS X graphical user interface (GUI)
is called _________.
Answers:
• iOS
• Objective-C
• Aqua
• Cocoa
57. True or False? Memory management is
completely automatic.
Answers:
• True
• False
58. ______ is NOT a type of Mac OS X on-screen
window.
Answers:
• Cursor
Window
• Dialog
• Utility Window
• Document Window
59. True or False? NSNumber objects cannot be
changed after initialization.
Answers:
• True
• False
60. The ______ is a section of code that reads
events and performs appropriate functions for those events.
Answers:
• main nib
• NSResponder
• event
loop
• NSEvent
61. NSDocument class is used for ______.
Answers:
• saving
the contents of a window into a file
• printing the contents
of a window
• loading a saved file
• alerting a user who
tries to close an edited window without first saving
62. The ________ is a framework that contains
all the objects needed to implement a graphical event-driven user interface.
Answers:
• Core Data
• Core Functions
•
Application Kit
• Foundation Kit
63. _______ is not a subclass of NSResponder.
Answers:
•
NSEvent
• NSApplication
• NSWindow
• NSView
64. The Mac OS X _______ replaces the Mac OS 9
Application menu.
Answers:
• Dock
• Document Window
• Controls
• Menu Bar
65. ________ are NOT a Cocoa event.
Answers:
• Keyboard events
• Mouse events
•
Repeating events
• Periodic events
66. Which one is not a Navigator in Xcode?
Answers:
• Project Navigator
• Assistant
Navigator
• Symbol Navigator
• Issue Navigator
67. What does the Interface Builder in Xcode do?
Answers:
• Code
reuse of the views classes
• It cannot create views
• Reuse of the Button
object, but need to code it each time you need it.
• Create the View class
manually
68. Which statement is correct:
Answers:
• -
[void]drawRect:(NSRect)rect
• /
(void)drawRect:(NSRect)rect
• !
(void)drawRect:(NSRect)rect
• -
(void)drawRect:(NSRect)rect
69. What is the proper statement?
Answers:
•
label.text = @"Hello World";
• label.text =
&"Hello World";
• label.text =
@"Hello World",
• label.text =
@"Hello World":
70. Which is the correct statement:
Answers:
• $import
<UIKit/UIKit.h>
• &import
<UIKit/UIKit.h
•
#import <UIKit/UIKit.h>
• ()import
<UIKit/UIKit.h>
71. Which statement is correct:
Answers:
• NSString* myXstring%
• NSString* myXstring.
•
NSString* myXstring;
• NSString* myXstring,
72. There is only one computer you can code IOS
on. Which is it?
Answers:
• ASUS
• Xbox360
• Dell
• Mac
73. Which Cocoa class is used to create a
string?
Answers:
•
NSString
• MSString
• MSLog
• NSLog
74. Which statement is correct:
Answers:
•
@interface GCWhatUp : NSView {} @end
• @interface GCWhatUp '
NSView {} @end
• @interface GCWhatUp :
NSView [] @end
• @interface GCWhatUp :
MSView {} @end
75. A Cocoa ______ is a message and a
corresponding object sent to an application in response to some action taken by
the user.
Answers:
• selector
• class
• event
• nib
76. What is the proper statement?
Answers:
• label.text =
&"Hello World";
•
label.text = @"Hello World";
• label.text =
@"Hello World":
• label.text =
@"Hello World",
77. Application ______ are stored in a file with
a .icns extension.
Answers:
• icons
• headers
• includes
• nibs
78. Which statement is correct:
Answers:
• NSColor* houseColor =
[housePaintObj color]\
• NSColor* houseColor =
[housePaintObj color].
•
NSColor* houseColor = [housePaintObj color];
• NSColor* houseColor =
[housePaintObj color]]
79. Which objects do NOT exist in the Cocoa
framework?
Answers:
•
NSRedman
• NSMutableDictionary
• NSLog
• NSString
80. OOP stands for Object Oriented
Programming. It is used for:
Answers:
• Its an installer to
download XCode from the internet and build on your Mac
• Code
reuse
• It will send your
completed app project to the App Store.
• In Xcode its called
the Simulator which allows you to test your mobile apps in a virtual
environment
81. Whenever you customize an existing class, it
is called:
Answers:
• Disposing
• Programming
• Architecting
•
subclassing
82. A _________ file stores all information
about an application's user interface objects.
Answers:
• class
• header
• nib
• category
83. A property:
Answers:
• A point in time
• sets
getter/setter methods
• a characteristic
• A list of variables
84. True or False? Cocoa allows you to move
objects in the main nib to other separate nibs to improve load performance.
Answers:
• True
• False
85. True or False? Objective-C is a static typed
language.
Answers:
• True
• False
86. In Xcode, what does the Identity Inspector
do?
Answers:
• Set
the properties of an object
• None of the Above
• Find the identity of
the programmer
• Inspects your code for
errors
87. Which does not belong in web infrastructure:
Answers:
• Database
• Web server
• Smartphone
•
Mainframe
88. A ______ object sends a message
automatically to a target when an on-screen object is manipulated.
Answers:
• nib
• selector
•
control
• responder
89. What does GCD stand for?
Answers:
• Grand Central Dispatch
• Great Central
Dispatcher
• Grand Control Display
• General Code Destroyer
No comments:
Post a Comment