IT Trainer 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

5 11046
Q:

Tractor : Trailer :: Horse : ?

A) Saddle B) Engine
C) Cart D) Stable
 
Answer & Explanation Answer: C) Cart

Explanation:

Here the given words are related in such a way that,

Trailer is pulled by Tractor and similarly, Cart is pulled by Horse.

 

Hence, Tractor : Trailer :: Horse : Cart.

Report Error

View Answer Report Error Discuss

Filed Under: Analogy
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

13 11018
Q:

What could cause a Fixed Disk Error?

A) Slow Processor Speed B) RAM Space
C) Incorrect CMOS Settings D) None
 
Answer & Explanation Answer: C) Incorrect CMOS Settings

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams , CAT , GATE
Job Role: Analyst , Bank PO , Database Administration , IT Trainer

24 10990
Q:

Careful is to Cautious as Boastful is to

A) Surprisingly B) Happily
C) Arrogant D) Humble
 
Answer & Explanation Answer: C) Arrogant

Explanation:

Here the given words Careful and Cautious are related in such a way that they are Synonyms of each other.

Therefore, Similarly Boastful is synonym to the word Arrogant.

Happily and Humble are Antonyms of Boastful and Surprisingly is the word not related to Boastful in any way.

 

So, Careful is to Cautious as Boastful is to Arrogant.

Report Error

View Answer Report Error Discuss

Filed Under: Analogy
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

7 10981
Q:

A UNION query is which of the following?

A) Combines the output from multiple queries and does not include the same number of columns. B) Combines the output from multiple queries and must include the same number of columns.
C) Combines the output from no more than two queries and does not include the same number of columns. D) Combines the output from no more than two queries and must include the same number of columns.
 
Answer & Explanation Answer: B) Combines the output from multiple queries and must include the same number of columns.

Explanation:

A UNION query combines the output from multiple queries and must include the same number of columns.

Report Error

View Answer Report Error Discuss

Filed Under: SQL
Job Role: Analyst , Database Administration , IT Trainer

2 10972
Q:

Which of the following has the highest frequency?

A) Cosmic rays B) X-rays
C) Radio waves D) Microwaves
 
Answer & Explanation Answer: A) Cosmic rays

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

30 10968
Q:

Which of the following is not the member of class?

A) Virtual function B) Static function
C) Friend function D) Const function
 
Answer & Explanation Answer: C) Friend function

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++
Job Role: Analyst , Database Administration , IT Trainer

19 10952
Q:

Country : President :: State : ?

A) Governor B) Speaker
C) Prime Minister D) Chief Minister
 
Answer & Explanation Answer: A) Governor

Explanation:

The President is the highest officer in the country. Similarly, Governor is the highest officer of the state.

 

Hence, Country : President :: State : Governor.

Report Error

View Answer Report Error Discuss

Filed Under: Analogy
Exam Prep: AIEEE , Bank Exams , CAT , GRE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

18 10945