Searching for "If"

Q:

A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables?

Answer

Disable the foreign key constraint to the parent, drop the table, re-create the table, enable the foreign key constraint.

Report Error

View answer Workspace Report Error Discuss

Q:

In the following question select the one which is different from the other three responses .

1. DEB   2. RTP    3. HIF    4. NOL

Answer

Answer : (2)


1. D(E)B  --------> vowel in the middle


3. H(I)F   --------> vowel in the middle


4. N(O)L  --------> vowel in the middle


Option(2) ,No vowel in the middle.   

Report Error

View answer Workspace Report Error Discuss

Subject: Classification

Q:

If the first and third letters in the word 'ANNIHILATION' are interchanged , also the second and fourth, the fifth and seventh and so on, then which of the following letter would be the 6th from the left?

A) I B) L
C) A D) H
 
Answer & Explanation Answer: C) A

Explanation:

A N N I H I L A T I O N  => N I A N L A H I O N T I

 

After changes,  A is 6th from left.

Report Error

View Answer Report Error Discuss

Filed Under: Alphabet Test

Q:

If it is possible to form a word with the first , fourth, seventh and eleventh letters in the word "SUPERFLUOUS" write the first letter of that word. other wise x is the answer.

A) S B) L
C) E D) X
 
Answer & Explanation Answer: B) L

Explanation:

The first, fourth, seventh and eleventh letters of the word 'SUPERFLUOUS' 

The word formed is LESS

Therefore, The first letter is L.

Report Error

View Answer Report Error Discuss

Filed Under: Alphabet Test

Q:

How is 3G different from 2G?

Answer

- Packet data speed is higher in 3G, and it is up to 384 KBPS
- Voice and sms speed is also 384 KBPS in 3G
- 2G utilizes different switching techniques for voice and data, where as  3G uses single switching, irrespective of data
- 3G has at least 2MB of data link of a mobile, where in 2G the data rate is in KBPS
- 3G has WiMAX facility for faster VOIP and internet
- 2G uses GSM TDMA technology with narrowband 200Khz.
- 3G uses CDMA technology with broadband 5Mhz, with same frequency carrier and time.

Report Error

View answer Workspace Report Error Discuss

Q:

What is the main reason of using process lifecycle in Android?

Answer

The android system will keep all the process that are hosting the services together at one place till the time the service is not started or connected to the client. The priority of the process is divided when running low on memory or when the process has to be killed. The process lifecycle is as follows:
- The service is running currently then the methods onCreate(), onStartCommand(), and onDestroy()methods, will run in the foreground to execute the process without being killed.
- The service is already started then the process can be considered as less important then the processes that are currently visible and used. This is done as there are only few processes that are visible to the users on the screen.
- The clients are bounded to the services they are providing requires more priority in the execution list.
- The service that is started uses startForeground(int, Notification)API to allow all the services to run in the foreground state. The system considers only the services where the user is still active as the services not to be killed.

Report Error

View answer Workspace Report Error Discuss

Q:

What are the different modes of operations used in services for Android?

Answer

There are two modes of operations that are necessary to run depending on the value returned by the startcommand(). The modes are as follows:
-  START_STICKY: this mode is used for the services that are explicitly started and stopped according to the need and the requirement of the user.
- START_NOT_STICKY or START_REDELIEVER_INTENT: this service mode is used for services that are running only when the processing command sent to them. That means these run on the basis of the command that is passed to them by giving the instruction of execution.
- Clients uses the Context.bindService() that is used to get the persistent connection for a service. To create a service that is not already running the command onCreate is used.

Report Error

View answer Workspace Report Error Discuss

Q:

Differentiate between realloc() and free().

Answer

- Free() - A block of memory previously allocated by the malloc subroutine is freed by free subroutine. Undefined results come out if the Pointer parameter is not a valid pointer. If the Pointer parameter is a null value, no action will take place.


- Realloc() - This subroutine changes the size of the block of memory pointed to by the Pointer parameter to the number of bytes specified by the Size parameter and returns a new pointer to the block. The pointer specified by the Pointer parameter must be created with the malloc, calloc, or realloc subroutines and should not be deallocated with the free or realloc subroutines. Undefined results show up if the Pointer parameter is not a valid pointer.

Report Error

View answer Workspace Report Error Discuss

Subject: C++