Technology Questions

Q:

What is the use of API’s in cloud services?

Answer

API stands for Application programming interface is very useful in cloud platforms as it allows easy implementation of it on the system. It removes the need to write full fledged programs. It provides the instructions to make the communication between one or more applications. It also allows easy to create application with ease and link the cloud services with other systems.

Report Error

View answer Workspace Report Error Discuss

Subject: Cloud Computing

0 1828
Q:

How to check that whether the file object is pointing a folder or not?

Answer

boolean isDirectory();

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1826
Q:

What is the difference between path and classpath?

Answer

Path contains path of .exe files(commands).


Classpath contains path of packages. packages can be stored in folder or .jar files

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1824
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

1 1822
Q:

What are the various elements of OOPS?

Answer

Various elements of OOP are:


• Object


• Class


• Method


• Encapsulation


• Information Hiding


• Inheritance


• Polymorphism

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1822
Q:

why overriding finalize() method?

Answer

If constructor opens the file 


finalize() method closes that file.


 


If constructor opens the connection 


finalize() method closes that connection.


 


To perform finalization operation we must overriding finalize method.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1821
Q:

How to Estimate Testing effort ?

Answer

Time Estimation method for Testing Process:


 


Step 1 : count number of use cases (NUC) of system 


Step 2 : Set Avg. Time Test Cases(ATTC) as per test plan 


Step 3 : Estimate total number of test cases (NTC) 


Total number of test cases = Number of Use Cases X Avg. Test Cases per a use case 


Step 4 : Set Avg. Execution Time (AET) per a test case 


Step 5 : Calculate Total Execution Time (TET) 


TET = Total number of test cases * AET 


Step 6 : Calculate Test Case Creation Time (TCCT)


usually we will take 1.5 times of TET as TCCT


TCCT = 1.5 * TET


Step 7 : Time for Re-Test Case Execution (RTCE) this is for retesting


usually we take 0.5 times of TET


RTCE = 0.5 * TET


Step 8 : Set Report generation Time (RGT


usually we take 0.2 times of TET


RGT = 0.2 * TET


Step 9 : Set Test Environment Setup Time (TEST)


it also depends on test plan


Step 10 : Total Estimation time = TET + TCCT+ RTCE + RGT + TEST + some buffer.


 

Report Error

View answer Workspace Report Error Discuss

Subject: QA Testing

0 1819
Q:

What is static initializer block? What is its use?

Answer

A static initializer block is a block of code that declares with the static keyword. It normally contains the block of code that must execute at the time of class loading. The static initializer block will execute only once at the time of loading the class only.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1818