Technology Questions

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 1739
Q:

You want only a vertical scrollbar and no horizontal scrollbar on your page. How would you do it?

Answer

- This can be done by defining the frame with SCROLLING = auto and having content to just fit into this frame. 


- SCROLLING="yes" gets the scroll bar on both the sides, even when not needed. 


- SCROLLING="no" doesn’t get the scrollbars at all, even when they are needed.


 

Report Error

View answer Workspace Report Error Discuss

0 1739
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 1737
Q:

What do you understand by private, protected and public?

Answer

These are accessibility modifiers. Private is the most restrictive, while public is the least restrictive. There is no real difference between protected and the default type (also known as package protected) within the context of the same package, however the protected keyword allows visibility to a derived class in a different package.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1737
Q:

In a database table, the category of information is called

A) Record B) Field
C) Tuple D) None of the above
 
Answer & Explanation Answer: B) Field

Explanation:

In a database table, the category of information is called Field.

Report Error

View Answer Report Error Discuss

0 1736
Q:

Explain Non Breaking space in HTML.

Answer

When we add many spaces in the content then HTML remove all space except one space this is Non Breaking Space. To overcome this problem we use “&nbsp”. Suppose we want to add 3 space between two words then we have to use &nbp three time. 


 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1735
Q:

How will you launch an Activity within you application?

Answer

For launching an application, we will need to create an intent that explicitly defines the activity that we wish to start. For example:


Code


        Intent intent = new Intent(this, MyTestActivity.class);


        startActivity(intent);

Report Error

View answer Workspace Report Error Discuss

0 1732
Q:

Whats a struct?

Answer

A struct is a special C data type that encapsulates other pieces of data into a single cohesive unit. Like an object, but built into C.

Report Error

View answer Workspace Report Error Discuss

0 1731