Searching for "L"

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 is the purpose $_PHP_SELF variable?

Answer

The PHP default variable $_PHP_SELF is utilized for the PHP script name and when you click "submit" catch then same PHP script will be called.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP
Job Role: IT Trainer

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:

Which of the following tribes does not share its name to a mountain peak ?

A) Khasi B) Jaintia
C) Gaaro D) Bheel
 
Answer & Explanation Answer: D) Bheel

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History

Q:

The international crisis in 2014 between Russia and Ukraine belongs to which of the following place ?

A) Crimea B) Abkhazia
C) Georgia D) Keev
 
Answer & Explanation Answer: A) Crimea

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History

Q:

Florence Nightingale Medal is given internationally in which of these fields ?

A) Gaana B) Nursing
C) Architecture D) Teaching
 
Answer & Explanation Answer: B) Nursing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

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