October 29, 2011

Android Interview Questions




1.What is Android?
Android is a software stack for mobile devices that includes an operating system, middleware and key applications.

2.Explain the Architecture of android ?
Top -> Applications (Contacts, Browser, Phone, etc)

Below Applications -> Application Framework(Activity Manager, Window Manager, Content Providers, View System, Package manager,
Telephony manager, Resource, Notification, Location managers)

Below Application Framework -> System Libraries(Like Sqlite, webkit, SSL, OpenGL, Media Framework etc) & Android Runtime( Core Libraries and DVM)

Atlast Last -> Linux Kernel (which composed of drivers like display, camera etc.)

3.Describe the APK format.
The APK file is compressed the AndroidManifest.xml file, application code (.dex files), resource files, and other files.A project is compiled into a single .apk file.

4.What is an action?
A description of something that an Intent sender desires.

5.What is an activity?
A single screen in an application, with supporting Java code.
An activity presents a visual user interface for one focused endeavor the user can undertake.
For example, an activity might present a list of menu items users can choose from or it might display photographs along with their captions.Each one is implemented as a subclass of the Activity base class.

6.What is a service?
A service doesn’t have a visual user interface, but rather runs in the background for an indefinite period of time.
For example, a service might play background music as the user attends to other matters, or it might fetch data over the network or calculate something and provide the result to activities that need it.Each service extends the Service base class.

7.What is a Broadcast receivers?
A broadcast receiver is a component that does nothing but receive and react to broadcast announcements.
For example, announcements that the timezone has changed, that the battery is low or that the user changed a language preference.All receivers extend the Broadcast Receiver base class.
Broadcast receivers do not display a user interface. However, they may start an activity in response to the information they receive, or they may use the Notification Manager to alert the user like(flashing the backlight, vibrating the device, playing a sound)

8.What is a content provider?
A content provider makes a specific set of the application’s data available to other applications.The content provider extends the ContentProvider
base class to implement a standard set of methods that enable other applications to retrieve and store data of the type it controls. However, applications do not call these methods directly. Rather they use a Content Resolver object and call its methods instead.

9.What is intent?
A class (Intent) describes what a caller desires to do. The caller sends this intent to Android’s intent resolver, which finds the most suitable activity for the intent.

10.How is nine-patch image different from a regular bitmap?
It is a resizable bitmap resource that can be used for backgrounds or other images on the device. The NinePatch class permits drawing a bitmap in nine sections. The four corners are unscaled; the four edges are scaled in one axis, and the middle is scaled in both axes.

11.What languages does Android support for application development?
Android applications are written using the Java programming language.

12.What is a resource?
A user-supplied XML, bitmap, or other file, injected into the application build process, which can later be loaded from code.

13.What Virtual Machine Android runs on?
Dalvik virtual machine

14.Android Latest Version?
Android 3.0

15.How do you define the user interface?
XML Format is the best.



January 16, 2011

UML Interview Questions

  1. What is inheritance?
  2. Difference between Composition and Aggregation.
  3. Difference: Sequence Diagrams, Collaboration Diagrams.
  4. Difference: 'uses', 'extends', 'includes'
  5. What shall I go for Package Diagram?
  6. What is Polymorphism?
  7. Is class an Object? Is object a class?
  8. Comment: C++ "includes" behavior and java "imports"
  9. What do you mean by "Realization"?
  10. What is a Presistent, Transient Object?
  11. What is the use of Operator Overloading?
  12. Does UML guarantee project success?
  13. Difference: Activity Diagram and Sequence Diagram.
  14. What is association?
  15. How to resolve many to many relationship?
  16. How do you represent static members and abstract classes in Class Diagram?
  17. Can we use UML for user interface (UI) design?
  18. Every object has : state, behavior and identity - explain
  19. How to reverse engineer C++ code in UML?
  20. What are the tools you used for OOAD?
  21. Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)?
  22. What are the four phases of the Unified Process ?
  23. How do you convert uses cases into test cases?
  24. Explain Class Diagram in Detail.
  25. What are the Design Patterns you know.
  26. When do you prefer to use composition than aggregation?
  27. UML: IS it a process, method or notation?
  28. Does a concept HAVE to become a class in Design?
  29. What are the good practices to use while designing for reuse?
  30. Can you think of some nice examples where *multiple* actors are associated with a use case ?
  31. How to use CRC Cards for Class Design?
  32. What is the difference between static and dynamic Classificaition.Give some examples.
  33. Explian following terms: Constraint Rules, Design by contract.
  34. What is Object Constraint Language (OCL)?
  35. Difference Between Attribute and Association.
  36. What are associative classes?

July 20, 2010

Cognos Interview Questions

  1. How you will design the report if the objects are available?
  2. How you will determine the performance tune will occur either in report or system?
  3. Can reportnet supports cubes?
  4. How you migrate the reports from impromptu to reportnet?
  5. How you provide security to reports?
  6. How you provide security to packages ?
  7. How can we improve performance of the reports?
  8. What is Stich Query in Reportnet?
  9. What is the use of Excel files in Cognos8?
  10. What is parameter maps & Session parameter?
  11. What is the importance of Dimension in the cognos?
  12. What is Report item?
  13. What is Cardinality?
  14. What are the filters in fwm and report studio?
  15. What is query subject?
  16. What is architecture of Cognos 8?
  17. How you migrate reports to cognos 8 from previous versions?
  18. How can I convert a list report/Cross tab Report in Cognos EP series into a bar chart or pie chart etc.?
  19. What steps should be taken by a report developer to interact with the client server?
  20. What should be done when a report running time will take long time in congnos? 
    How many levels can be used in drill through reports

July 16, 2010

CCNA Interview Question -11

211 Identify 2 characteristics of PPP?
A.) Uses LLC to establish the link
B.) Default serial encapsulation
C.) Support multiple layer 3 protocols
D.) Offers two types of authentication; PAP and CHAP

Ans C D
PPP is not the default encapsulation and uses LCP not LLC to establish the link. It support multiple layer 3 protocols and supports authentication.

212 Identify 3 characteristics of a connection oriented protocol?
A.) Path determination
B.) Flow control
C.) Acknowledgements
D.) Uses hop count as metric
E.) 3 step handshake

Ans B C E
Connection oriented protocols must first establish the connection (3 step handshake), employ methods to acknowledge the receipt of data (acknowledgements) and slow down the flow of data if required (flow control).

213 What is the maximum hop count for IP RIP?
A.) Infinity
B.) 16
C.) 15
D.) 1

Ans C
15 is the maximum hop count, underscoring the size limitation of RIP.

214 What is Cisco's default encapsulation method on serial interfaces?
A.) ANSI
B.) Cisco
C.) Q933a
D.) HDLC

Ans D
Cisco's implementation of HDLC is only compatible with Cisco routers. It is the default encapsulation type for serial interfaces.

215 Which of the following is a characteristic of a switch, but not of a repeater?
A.) Switches forward packets based on the IPX or IP address in the frame
B.) Switches forward packets based on the IP address in the frame
C.) Switches forward packets based on the MAC address in the frame
D.) Switches forward packets based only on the IP address in the packet

Ans C
A repeater regenerates the signal it receives, a switch makes decisions based upon MAC addresses to determine whether a frame should be forwarded. Repeaters forward all packets.

216 Ping uses which Internet layer protocol?
A.) RARP
B.) ICMP
C.) ARP
D.) FTP

Ans B
Internet Control Message Protocol - ICMP is a management protocol and messaging service provider for IP. Its messages are carried as IP datagrams.

ICMP is used in the following events:

Destination Unreachable - If a router cannot send an IP packet any further, it uses an ICMP echo to send a message back to the sender notifying it that the remote node is unreachable.

Buffer Full - If a routers memory buffer is full ICMP will send out a message to the originator.

Hops - Each IP datagram is assigned a path. This consists of hops. If it goes through the maximum number of hops, the packet is discarded and the discarding router sends an ICMP echo to the host. 
Ping - Ping use ICMP echo message to check connectivity.

217 Which is true regarding store-and-forward switching method?
A.) Latency varies depending on frame-length
B.) Latency is constant
C.) It is default for all Cisco switches
D.) It only reads the destination hardware address before forwarding the frame

Ans A
Store-and-Forward switching copies the entire frame into its buffer and computes the CRC. If a CRC error is detected, the frame is discarded, or if the frame is a runt (less than 64 bytes including the CRC) or a giant (more than 1518 bytes including the CRC). The LAN switch then looks up the destination address in its switching table and determines the outgoing interface. The frame is then forwarded to the outgoing interface. Cisco Catalyst 5000 switches uses the Store-and-Forward method. The problem with Store-and-Forward switching is latency is increased. Latency also varies with the size of the frame. The larger the frame, the more latency associated. This of course is due to the fact that the entire frame is copied into its buffer before being forwarded.

218 Which three of the following are true statements about connection-oriented sessions?
A.) The segments delivered are acknowledged back to the sender upon their reception
B.) Any segments not acknowledged the are retransmitted by the receiver
C.) A manageable data flow is maintained in order to avoid congestion, overloading and loss of any data
D.) Segments are sequenced back into their proper order upon arrival at their destination

Ans A C D
Connection-oriented services are useful for transmitting data from applications that are intolerant of delays and packet re-sequencing. FTP and Telnet applications are based on connection-oriented services as well as some voice and video programs. Any segment that is not acknowledged by the received is retransmitted by the sender.

219 What does a metric of 16 hops represent when using RIP?
A.) Number of hops to the destination
B.) Destination unreachable
C.) Number of routers
D.) Bandwidth

Ans B
Routing Information Protocol (RIP) is a distance vector routing protocol that used hop count as its metric. The maximum hop count is 15, 16 hops is considered unreachable. RIP updates are broadcast every 30 seconds by default. RIP has an administrative distance of 120.

220 You need to come up with a TCP/IP addressing scheme for your company. Which two factors must you consider when you define the subnet mask for the network?
A.) The location of DHCP servers
B.) The volume of traffic on each subnet
C.) The number of subnets on the network
D.) The location of the default gateway
E.) The number of host IDs on each subnet