Technology Questions

Q:

What are the principles in providing the security for the computer programs?

Answer

- The principle of least privilege is used to provide more security to the computer programs. 


- The principle allows the designing of the program such that any unauthorized access is not allowed and only the person who owns the program will be able to access it. 


- The services provided should be able to access only those products that need the services. 


- Web servers that are involved in responding the queries of the web users provide only accessing to the HTML files that will serve the purpose of the programs. 


- Computer programs should be made such that it provides secure features of logging into the program with proper authentication.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1770
Q:

Write a program to fix the error being produced by the Infinite file?

Answer

- The infinite file error can be solved when the data will be read continuously from the file. 


- The error can be solved by using the keys that provide only the resources that are required. 


- The following program is as follows:


osw.write ("HTTP/1.0 200 OK\n\n"); 


while (c != -1) { 


sb.append((char)c); 


c = fr.read(); 



osw.write (sb.toString()); 


- This converts the requested file in such a way that if the file exists it shows the messages as ok otherwise it shows an error.


- Limited file access is to be given to the file to remove the error from the infinite file type.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1770
Q:

How to assign address to the reference?

Answer

ClassName refName = new ClassName();


or


ClassName refName;


refName = new ClassName();

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1769
Q:

How does a try statement determine which catch clause should be used to handle an exception?

Answer

When an exception is thrown , the catch block of the try statement are examined in the order in which they appear. The first catch block that is capable of handling the exception is executed. The remaining catch blocks are ignored

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1768
Q:

Which of the following topologies has the highest reliability?

A) Mesh B) Ring
C) Bus D) Star
 
Answer & Explanation Answer: A) Mesh

Explanation:

In the mesh topology, each computer is connected to the other with a separate physical link in a network. It is most reliable topology as the network does not get down in case one of the nodes is failed.

Report Error

View Answer Report Error Discuss

1 1767
Q:

What is the difference between a Windows server operating system and a workstation version?

Answer

The server version of a Windows operating system is designed to provide more optimized networking services over a network. It can manage domains better and it includes more security feature and data backup support. Workstation versions act merely as clients and therefore do not need to have as much resources when compared to the server versions.

Report Error

View answer Workspace Report Error Discuss

0 1767
Q:

Describe the functionality of accelerometer of an iphone

Answer

iPhone responds to motion using a built-in accelerometer.
The accelerometer detects the movement and changes the display accordingly, at the time of rotating iPhone from portrait to landscape. 

Report Error

View answer Workspace Report Error Discuss

0 1766
Q:

What are the the different ways for creating a thread?

Answer

A thread can be created by subclassing Thread, or by implementing the Runnable interface.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1766