Technology Questions

Q:

How to create a basic text file in php?

Answer

$filename = "/home/user/guest/newfile.txt";
$file = fopen( $filename, "w" );
if( $file == false )
{
echo ( "Error in opening new file" );
exit();


}
fwrite( $file, "This is a simple test\n" );
fclose( $file );

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: IT Trainer

1 4825
Q:

Which of the following methods doesn't use sorting?

A) Insertion B) Deletion
C) Exchange D) Selection
 
Answer & Explanation Answer: A) Insertion

Explanation:

Using insertion we can perform insertion sort, using selection we can perform selection sort, using exchange we can perform the bubble sort.But by using deletion we cannot perform any sort.

Report Error

View Answer Report Error Discuss

Filed Under: C++

1 4818
Q:

What is APIPA? How would you recognize it?

Answer

Automatic Private IP Addressing


for small network if u see something default automatic numeric values entered in a device that is attached you can see someone novice has done that using APIPA


 

Report Error

View answer Workspace Report Error Discuss

1 4800
Q:

What are the properties and different Types of Sub-Queries?

Answer

Properties of Sub-Query


- A sub-query must be enclosed in the parenthesis.


- A sub-query must be put in the right hand of the comparison operator, and


- A sub-query cannot contain an ORDER-BY clause.


- A query can contain more than one sub-query.


Types of Sub-Query


- Single-row sub-query, where the sub-query returns only one row.


- Multiple-row sub-query, where the sub-query returns multiple rows,. and


- Multiple column sub-query, where the sub-query returns multiple columns

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

1 4794
Q:

How do you convert flat files to VSAM files?

Answer

Use IDCAMS REPRO to load the flat file into the VSAM file.


 

Report Error

View answer Workspace Report Error Discuss

0 4791
Q:

Does not overriding hashcode() method has any performance implication ?

Answer

A poor Hashcode() function will result in frequent collision in HashMap which eventually increase time for adding an object into Hash Map.

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: Analyst , IT Trainer

2 4790
Q:

What is Hypervisor in Cloud Computing and its types?

Answer

The hypervisor is a virtual machine monitor (VMM) that manages resources for virtual machines. The name hypervisor is suggested as it is a supervisory tool for the virtual machines. There are mainly two types of hypervisors :


- Type-1: the guest Vm runs directly over the host hardware, e.g Xen, Hyper-V, VmWare ESXi


- Type-2: the guest Vm runs over hardware through a host OS, e.g Kvm, Oracle virtualbox

Report Error

View answer Workspace Report Error Discuss

Subject: Cloud Computing

0 4782
Q:

What is the importance of XML-based layouts?

Answer

The use of XML-based layouts provides a consistent and somewhat standard means of setting GUI definition format. In common practice, layout details are placed in XML files while other items are placed in source files.

Report Error

View answer Workspace Report Error Discuss

2 4769