Technology Questions

Q:

What is the syntax to create the object?

Answer

new ClassName();


This expression creates object in heap area and returns that obj address. Here JVM creates object but JVM does not returns object original address. JVM returns duplicate address, duplicate address is also called as hashcode. 

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1751
Q:

What is the Dictionary class?

Answer

- The Dictionary class is an abstract class.


- Classes like Hashtable which map keys to values inherit from this class. 


- An object can be looked for if a dictionary and a key is provided.


- Any non-null object can be used as a key and as a value.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

1 1750
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 1747
Q:

What is the difference between class selector and ID selector?

Answer

- Class selector can be given to an overall block. This is sometimes termed as block element as well, whereas ID selector identifies a unique name and a style for a specific element. 


- ID selector declares the style for only one particular element which can be differentiated from other element, whereas Class selector is being given for the whole complete block.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1746
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 1745
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 1744
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 1743
Q:

What is meant by a dedicated computer?

A) Which is assigned one and only one task B) Which is meant for application software
C) Which is used by one person only D) Which uses one kind of software
 
Answer & Explanation Answer: A) Which is assigned one and only one task

Explanation:

What_is_meant_by_a_dedicated_computer1560341069.jpg image

It is a single computer in a network reserved for serving the needs of the network.

Report Error

View Answer Report Error Discuss

0 1743