Searching for "HO"

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

Q:

What's the difference between GET() and POST() method?

Answer

We can send 1024 bytes utilizing GET() yet POST() can exchange extensive measure of information and POST is the protected strategy than GET technique .

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Database Administration

Q:

What is the difference between _construct() and _destruct() methods in php?

Answer

These two methods are bulid-in methods  in php. with  construct() we can overwride the parent class method. The inverse of the __construct() PHP capacity while making another class, is the __destruct() technique. The __destruct() technique will consequently keep running, after you've completed with the PHP class.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: Software Architect

Q:

In a certain office, 1/3 of workers are women, 1/2 of the women are married and 1/3 of the married women have children. If 3/4  of the men are married and 2/3  of the married men have children, what part of the workers are without children?

A) 5/18 B) 4/9
C) 11/18 D) 17/36
 
Answer & Explanation Answer: C) 11/18

Explanation:

Let the total number of workers be x. Then, 

 

Number of women = x/3 and number of men = x - x/3  = 2x/3

 

Number of women having children = x/18

 

Number of men having children = x/3

 

Number of workers having children = (x/18) + (x/3) = 7x/18

  

Therefore, workers having no children = x - 7x/18 = 11/18 of all workers.

Report Error

View Answer Report Error Discuss

Filed Under: Arithmetical Reasoning
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

Q:

Whose winter residence did potala palace serve as till 1959 ?  

A) Jodhpur Maharaj B) Dalai lama
C) Pope D) Nepal Raju
 
Answer & Explanation Answer: B) Dalai lama

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History

Q:

Who of the following presidents of India was the recipient of Bharata Rana Award before becoming the president of India ?

A) Rajendra Prasad B) VV Giri
C) S. Radha Krishnana D) Fakruddin Ali Ahmed
 
Answer & Explanation Answer: C) S. Radha Krishnana

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

Q:

Which of these national parks has the world's largest population of the Indian one horned Rhino ?

A) Mrugavani national park B) Kajiranga national park
C) Manas national park D) Gir national park
 
Answer & Explanation Answer: B) Kajiranga national park

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

Q:

The lotus temple in Delhi is a house of worship of which of the following religions ? 

A) Buddhism B) Baha'i Religion
C) Zoroastrian D) Islam
 
Answer & Explanation Answer: B) Baha'i Religion

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History