Questions

Q:

What grows when it eats but dies when it drinks?

Answer

A fire grows when it eats but dies when it drinks.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: AIEEE , Bank Exams , GRE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

12 6578
Q:

Which dml command is used in conjunction with @@identity?

A) INSERT and UPDATE B) UPDATE and DELETE
C) SCOPE_IDENTITY and IDENT_CURRENT D) Commit and rollback
 
Answer & Explanation Answer: C) SCOPE_IDENTITY and IDENT_CURRENT

Explanation:

Using automatically incrementing IDENTITY columns is very popular with database developers. You don’t need to explicitly calculate unique surrogate keys when inserting new data, the IDENTITY column functionality does that for you. The IDENTITY feature also allows you to specify useful Seed and Increment properties. When you use an INSERT statement to insert data into a table with an IDENTITY column defined, SQL Server will generate a new IDENTITY value.

 

You can use the @@IDENTITY variable and the SCOPE_IDENTITY and IDENT_CURRENT functions to return the last IDENTITY value that has been generated by SQL Server. This is very useful when you need to return the key for the row that has just been inserted, back to the caller.

Report Error

View Answer Report Error Discuss

9 6575
Q:

Who invented fuel cells in 1839?

A) Buckminster Fuller B) Sir William Grove
C) Sylvester Graham D) Joyce Hall
 
Answer & Explanation Answer: B) Sir William Grove

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

11 6573
Q:

In which district of Andhra Pradesh, the Kuchipudi village is located from which the Kuchipudi dance

A) Anantapur B) Krishna
C) Kurnool D) Nellore
 
Answer & Explanation Answer: B) Krishna

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

86 6570
Q:

What is the output after compile and run the following code ?

int Output = 10;
boolean b = false;
if((b == true) && ((Output += 10) == 20))
{
System.out.println("We are equal " + Output);
}
else
{
System.out.println("Not equal! " + Output);
}

A) Compilation and output of "We are equal 10" B) Compilation and output of "Not equal! 10"
C) Compilation error, attempting to perform binary comparison on logical data type D) Compilation and output of "Not equal! 20"
 
Answer & Explanation Answer: B) Compilation and output of "Not equal! 10"

Explanation:

The output will be "Not equal! 10". Please note that && is logical AND operator. If first operand before (&&) is false then the other operand will not be evaluated. This illustrates that the Output +=10 calculation was never performed because processing stopped after the first operand was evaluated to be false. If you change the value of b1 to true, processing occurs as you would expect and the output would be "We are equal 20".

Report Error

View Answer Report Error Discuss

Filed Under: Oracle Certification
Job Role: Analyst

6 6569
Q:

How many legs a mosquito has

 

A) 4 B) 6
C) 8 D) 10
 
Answer & Explanation Answer: B) 6

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: Bank Exams

4 6565
Q:

The question of disqualification of a member of a State Legislature shall be decided by the Governor after consultation with the 

A) Chief Minister B) Election Commission
C) Supreme Court D) Public Service Commission
 
Answer & Explanation Answer: B) Election Commission

Explanation:

Article 192

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

11 6563
Q:

Heavy water is

A) PH7 B) rain water
C) deuterium oxide D) tritium oxide
 
Answer & Explanation Answer: C) deuterium oxide

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science

22 6562